CN113837636A - Service data acquisition method, device, equipment and storage medium - Google Patents
Service data acquisition method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113837636A CN113837636A CN202111151648.5A CN202111151648A CN113837636A CN 113837636 A CN113837636 A CN 113837636A CN 202111151648 A CN202111151648 A CN 202111151648A CN 113837636 A CN113837636 A CN 113837636A
- Authority
- CN
- China
- Prior art keywords
- report
- subscription
- service data
- data
- acquiring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000013499 data model Methods 0.000 claims abstract description 48
- 238000012545 processing Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 15
- 238000010200 validation analysis Methods 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 8
- 238000005457 optimization Methods 0.000 abstract description 2
- 238000012423 maintenance Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000007726 management method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06311—Scheduling, planning or task assignment for a person or group
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06315—Needs-based resource requirements planning or analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/20—Administration of product repair or maintenance
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method, a device, equipment and a storage medium for acquiring service data, which relate to the technical field of system performance optimization, and the method comprises the following steps: receiving a first message from a first terminal, wherein the first message is used for requesting to subscribe at least one piece of service data of a first target type; when the first terminal is determined to have the authority of acquiring the service data, acquiring a data model corresponding to the first target type; acquiring a blank report; adding the data model, the preset mail parameters and the user-defined parameters to a blank report to obtain a first report; setting first subscription information, wherein the first subscription information is bound with a first report; acquiring a subscription task corresponding to the first subscription information, and setting the effective time and the sending period of the subscription task; and after the subscription task reaches the effective time, sending a second report to the first terminal in a sending period, wherein the service data in the second report is obtained based on the data model in the first report. The scheme can acquire comprehensive, targeted and uniform-format service data.
Description
Technical Field
The present application relates to the field of system performance optimization technologies, and in particular, to a method, an apparatus, a device, and a storage medium for acquiring service data.
Background
Generally, a business system pushes subscribed and validated business data to a subscribing user. The service system generally accesses the mail service, and pushes service data to the subscriber through the mail service. The business system needs to maintain the corresponding relationship between the data demander and the required data.
For the situation that a plurality of service systems exist, a background needs to respectively develop a set of mail service for the plurality of service systems and respectively maintain the mail service, which results in lower maintenance efficiency and cost of the system and is not beneficial to uniformly maintaining the plurality of service systems.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for acquiring service data, which can acquire comprehensive, targeted and uniform-format service data, and is convenient for maintaining a service system and improving the maintenance efficiency.
In a first aspect, an embodiment of the present application provides a method for acquiring service data, including:
receiving a first message from a first terminal, wherein the first message is used for requesting to subscribe at least one piece of service data of a first target type;
when the first terminal is determined to have the authority of acquiring the service data, acquiring a data model corresponding to the first target type;
acquiring a blank report;
adding the data model, preset mail parameters and preset custom parameters to the blank report to obtain a first report;
setting first subscription information, wherein the first subscription information is bound with the first report;
acquiring a subscription task corresponding to the first subscription information, and setting the effective time and the sending period of the subscription task;
and after the subscription task reaches the effective time, sending a second report to the first terminal in the sending period, wherein the service data in the second report is obtained based on the data model in the first report.
In a second aspect, an embodiment of the present application provides a service data obtaining apparatus, which includes:
a transceiver module, configured to receive a first message from a first terminal, where the first message is used to request a subscription to at least one piece of service data of a first target type;
the processing module is used for acquiring a data model corresponding to the first target type after the first terminal is determined to have the authority of acquiring the service data; acquiring a blank report through the transceiver module;
the processing module is further used for adding the data model, preset mail parameters and preset user-defined parameters to the blank report to obtain a first report; setting first subscription information, wherein the first subscription information is bound with the first report; acquiring a subscription task corresponding to the first subscription information through the transceiver module, and setting the effective time and the sending period of the subscription task;
and after the subscription task reaches the effective time, sending a second report to the first terminal through the transceiver module in the sending period, wherein service data in the second report is obtained based on the data model in the first report.
In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the service data acquiring method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the service data acquisition method according to the first aspect.
The embodiment of the application provides a method, a device, equipment and a storage medium for acquiring service data, wherein a first report is obtained by adding a data model, mail parameters and custom parameters to a blank report, first subscription information is set, the first subscription information is bound with the first report, a subscription task corresponding to the first subscription information is acquired, and the effective time and the sending period of the subscription task are set; therefore, after the subscription task reaches the effective time, the second report can be automatically sent to the first terminal in each sending period, and the data of the first target service type in the second report is obtained based on the data model in the first report, so that the service data is relatively comprehensive, has pertinence and is uniform in format.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication system architecture implementing a service data acquisition method in an embodiment of the present application;
fig. 2 is a schematic flowchart of a service data acquisition method according to an embodiment of the present application;
FIG. 3 is a diagram of a report editing page in an embodiment of the present application;
FIG. 4 is a schematic diagram of a subscription editing page in an embodiment of the present application;
fig. 5 is a schematic block diagram of a service data acquiring apparatus according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a service data acquisition method according to an embodiment of the present application. In the embodiment of the present application, a mail subscription system based on a data center station is designed to solve the above existing technical problems. Fig. 1 is a schematic diagram of a communication system architecture, which includes a mail subscription system, a data center station, a mail system, and terminals corresponding to a plurality of users. The mail subscription system is built on a data center station, and the data center station is used as a platform for data access of each service system, so that a relatively complete data model and data are provided. The mail subscription system has the functions of centralized management, unified management of subscription information, channels for data push, formats of data files and the like.
Fig. 2 is a schematic flow chart of a service data acquisition method provided in an embodiment of the present application, where the service data acquisition method is applied to a server and is executed by application software installed in the server.
As shown in fig. 2, the method includes steps S101 to S107.
S101, receiving a first message from a first terminal.
The first message is used for requesting to subscribe at least one piece of service data of a first target type. The first message may be for subscribing to service data from at least one service system.
And S102, acquiring a data model corresponding to the first target type after determining that the first terminal has the authority of acquiring the service data.
The data model is used to obtain at least one piece of business data of the first target type, and the data model may be a capture tool, which is not limited in the embodiments of the present application.
For example, when a data demand side puts forward a demand for acquiring certain type of data, firstly, a data acquisition authority is applied, after the authority passes, an operation and maintenance engineer of the mail subscription system finds a corresponding data model in the data according to the demanded data type, wherein the data model can be a virtual table, and the virtual table can be processed by different tables from a plurality of service systems.
S103, acquiring a blank report, and adding the data model, the preset mail parameters and the preset custom parameters to the blank report to obtain a first report.
For example, after determining the data model, a new report is added to a report management page of the mail subscription system, such as a report editing page shown in fig. 3, and a report name, a mail subject, a mail body, access logic (e.g., data model), and custom parameters are filled in.
In some embodiments, a pre-agreed report template may be uploaded, the access logic of the report template determines which types of service data are acquired, and the report template determines what type of file the service data are stored in.
S104, setting first subscription information.
Wherein the first subscription information is bound with the first report.
For example, after the report is created, the subscription information is added to a subscription management page of the email subscription, such as a subscription editing page shown in fig. 4, where the subscription editing page includes: the recipient, the subscribed report name (created), whether to customize the mail subject, the body, the delivery customization parameters, and the mail push strategy.
Therefore, after the subscription information is configured, a push strategy is set, the system can automatically generate a push plan and immediately push the service data to the user, and on one hand, the purposes of only once configuration and no manual intervention are achieved; on the other hand, the automatic service data recommendation (e.g., mail pushing) can be realized, the acquisition cost of the service data is reduced, and the human resources are saved.
In some embodiments, the management page may further provide a one-touch-triggered push mail entry, which facilitates manual push mail in special situations (e.g., a timer expires, a sending period expires, or the first subscription information expires).
And S105, acquiring the subscription task corresponding to the first subscription information, and setting the effective time and the sending period of the subscription task.
The subscription task is a thread task which is set for the first subscription information and starts to push the first subscription information to the user terminal. For example, the subscription task means that the user 1 subscribes to the service data of the service system a.
The effective time refers to that the subscription task meets a trigger condition for executing the subscription task, for example, the effective time is 2021.6.23.08:00:00, and then the subscription task takes effect at 2021.6.23.08:00:00 and starts a process of pushing the service data (i.e., pushing in the form of a report).
For example, the newly added subscription information can be checked, after the checking is completed, the subscription task is pushed to take effect the next day, and finally, the service data is pushed to the data demand party (i.e. the user terminal subscribing the service data) in a report form through an email.
And S106, after the subscription task reaches the effective time, sending a second report to the first terminal in the sending period.
Wherein the service data in the second report is obtained based on the data model in the first report. In some embodiments, the second report may be set as a report template with a uniform format, so that even if the service data comes from at least two service systems, the problem of data format diversification due to different data formats of different service systems does not occur after the corresponding service data is acquired from the at least two service systems according to the data model. And acquiring the service data according to the template with the uniform format, wherein the service data which really matches the requirement and is acquired according to the preset service parameter rule. Taking the mail subscription system as an example, the mail subscription system can set a report template with a uniform format. For example, the report template may uniformly adopt files in an excel format, and the excel file formats received by subscribers who subscribe to the same report are consistent and only the data is different. When a new data requirement is provided and a report corresponding to the data model already exists, the operation and maintenance personnel only need to add new subscription information and select the existing report, and the created report information is recycled.
Therefore, the format of the report data file is pushed by the unified mail, and the later maintenance file format is more convenient.
In some embodiments, before sending the second report, the service system that is to acquire the service data may be further located by a correspondence between the data model and the service system, and specifically, the method further includes:
establishing a corresponding relation between the data model and at least one service system;
acquiring at least one piece of service data from the at least one service system according to the corresponding relation;
obtaining target service data according to the at least one piece of service data;
and adding the target service data into the first report to obtain the second report.
Therefore, the business system which needs to acquire the business data can be quickly positioned through the corresponding relation.
In other embodiments, when the obtained service data is at least two parts, the obtaining the target service data according to the at least one part of service data includes:
classifying the at least two service data according to the system identification of the service system;
and merging the classified at least two service data to obtain the target service data.
In some embodiments, the at least two classified service data may be subjected to merging processing such as redundancy removal, duplicate removal, splicing, format unified session, and the like, and the embodiment of the present application does not limit the manner of merging processing.
For example, taking a mail subscription system as an example, a data middlebox is set in the mail subscription system. The service data model and data of the whole service line (even the whole company) can be obtained through the data center station without obtaining the data from each service system. The data of the data center station is large and complete, and the data fetching logic of the information reported by the mail subscription system can correspond to one or more physical tables of any service system and can also correspond to a result table processed by a plurality of tables of a plurality of service systems. Because the service systems are different and the types of the service data are also different, the id of the service system can be taken to indicate the data source when the service data are derived, and correspondingly, after a plurality of tables of a plurality of service systems are obtained through the data model, namely the data-taking logic, the plurality of tables from the plurality of service systems can be processed into one result table.
In some embodiments, after setting the validation time and the sending period of the subscription task, the method further comprises:
receiving a second message from the first terminal, the second message being used for requesting a subscription to data of a second target type;
and adding second subscription information according to the second message, and binding the second subscription information with the first report.
For example, the newly added subscription information is audited, after the auditing is completed, the pushed subscription task takes effect the next day, and finally the service data is pushed to the data demand party in the form of a report through an email.
Therefore, when a new data acquisition requirement comes, only one system is needed to maintain, and each service system does not need to be contacted.
In further embodiments, after setting the validation time and the sending period of the subscription task, the method further comprises:
receiving a third message from the first terminal, the third message being used to request to cancel subscription information for the first target type of data;
and deleting the first subscription information according to the third message, and unbinding the first subscription information and the first report.
Therefore, when the data cancellation requirement comes, only one system is needed to maintain, and all service systems are not needed to be contacted.
In some embodiments, after setting the validation time and the sending period of the subscription task, the method further comprises:
updating the first subscription information and the subscription task to a user subscription list;
receiving a fourth message;
and responding to the fourth message, and acquiring the user subscription list.
Therefore, by adopting the user subscription list to centrally and uniformly manage the mail subscription information, the operation and maintenance personnel can know which personnel subscribe to which data only by logging in the mail subscription system, and only need to maintain (for example, update the user subscription list) in one system when new data acquisition requirements or data cancellation requirements come, without contacting each service system.
In some embodiments, the first subscription information is subscription information subscribed by a first terminal with a priority higher than a preset priority; for the case that the priority is higher than the preset priority, after the user subscription list is obtained, a preset condition may be further set, and in some embodiments, the preset condition may include: and if the time interval is less than the preset time length, acquiring corresponding service data from at least one service system according to the data model. By this means, the service data is acquired in advance. Specifically, the method further comprises:
monitoring a subscription task corresponding to the first subscription information in the user subscription list;
and if the target time interval is less than the preset time length, acquiring corresponding service data from at least one service system according to the data model, wherein the target time interval is the time interval between the current time and the initial sending time of the next sending period of the subscription task.
For example, taking a mail subscription system as an example, a monitoring module is arranged in data center of the mail subscription system, and the monitoring module can monitor subscription tasks,
it can be seen that by monitoring the sending period of the report, the service data is obtained in advance when the sending period is expected to come, so that the service data can be sent to the first terminal at the first time when the initial sending time of the sending period is reached.
In the embodiment of the application, the priority of the first subscription information can be set fixedly or dynamically. The priority of the first subscription information may be dynamically adjusted under the dynamic setting of the priority of the first subscription information, for example, the priority of the first subscription information is higher than a preset priority in one time period, and the priority of the first subscription information is lower than the preset priority in another time period (including a case of low priority and no priority), which is not limited in the embodiment of the present application.
The preset condition may be set when the first subscription information is set, or may be set after the priority of the first subscription information is updated (for example, the priority of the first subscription information is increased and is higher than a preset priority), and this is not limited in this embodiment of the application.
It should be noted that, as the priority of the first subscription information is dynamically set, the preset condition is also set or cancelled correspondingly. For example, after the priority (original priority is lower than the preset priority) of the first subscription information is adjusted to be higher than the preset priority, the preset condition is set correspondingly, that is, at least one piece of service data can be obtained from at least one service system when the preset condition is met. For another example, after the priority of the first subscription information (the original priority is higher than the preset priority) is adjusted to be lower than the preset priority, the preset condition that has been set is cancelled, that is, after the subscription task reaches the effective time, at least one piece of service data is obtained from at least one service system and sent to the first terminal.
For example, for acquiring service data from at least one service system once according to the data model, in a case that the priority of the first subscription information is not updated and is not higher than a preset priority, whether to acquire the service data in advance may be determined by monitoring whether the target time interval is less than a preset duration.
For example, for obtaining service data from at least one service system once according to the data model (for example, for the first time), in the case that the priority of the first subscription information is updated and the priority is higher than the preset priority, it may be determined whether to obtain the service data in advance by monitoring whether the target time interval is less than a preset duration.
For another example, since at least one service data may be acquired from at least one service system in sequence according to the data model, if the priority of the first subscription information is updated and the priority is higher than the preset priority, whether the target time interval is less than the preset duration may be monitored to determine whether to acquire the service data in advance.
In some embodiments, a reading plug-in may be further configured in the email, where the reading plug-in is configured to detect whether the email containing the service data is read by a subscriber, and count reading records of emails sent in multiple sending cycles. And if the mail pushed in a plurality of continuous sending periods is determined not to be read according to the reading record, setting a first mark for the subscribing user, wherein the first mark is used for indicating that the subscribing user is an inactive user. Similarly, if the mails pushed in a plurality of continuous sending periods are determined to be read according to the reading record, setting a second mark for the subscribing user, wherein the second mark is used for indicating that the subscribing user is an active user. And for the inactive users, setting a third mark for the corresponding subscription information, and setting the sending period of the subscription task corresponding to the subscription information as failure. The failure may be set to be permanent or set to be within a preset time period, and the embodiment of the present application is not limited in particular.
Therefore, by marking the subscribing users, the subscribing mails can be flexibly selected to be temporarily abandoned to be sent to the inactive users, and the subscribed mails are only sent to the active users, so that the work load of the mail subscribing system for sending the subscribed mails is reduced, and the problem of network resource occupation caused by accumulation of a large amount of subscribed mails in user mailboxes is avoided.
In the embodiment of the application, the method comprises the steps of obtaining a first report by adding a data model, mail parameters and user-defined parameters to a blank report, setting first subscription information, binding the first subscription information and the first report, acquiring a subscription task corresponding to the first subscription information, and setting the effective time and the sending period of the subscription task; therefore, after the subscription task reaches the effective time, the second report can be automatically sent to the first terminal in each sending period, and the data of the first target service type in the second report is obtained based on the data model in the first report, so that the service data is relatively comprehensive, has pertinence and is uniform in format. Specifically, the following technical effects are provided:
1. by accessing the data center, more data models and data can be acquired, meanwhile, access to each service system is avoided, the cost of system development and maintenance is reduced, and the data uniformly comes from the data center, so that the consistency of the data is ensured.
2. Through accessing the data center, the subscription information (the relationship between the data demander and the required data) can be uniformly maintained, and the subscription information is more convenient to manage. And the operation and maintenance personnel can shield the data source and the information of each service system, and the data can be conveniently pushed to the demand side as long as the data exists in the data and the subscription information is simply configured. The format of the mail push report data file is unified, and the later maintenance of the file format is facilitated.
3. The mail (data) is pushed automatically without manual operation. Specifically, after subscription information configuration is completed, a push strategy is set, the system can automatically generate a push plan and immediately push data to a user, the purpose of only once configuration is achieved, and then no manual intervention is performed, so that the data acquisition cost is reduced, and the human resources are saved. Meanwhile, the management page provides an entrance for pushing the mails triggered by one key, so that the mails can be pushed manually under special conditions.
The embodiment of the present application further provides a service data acquiring device, where the service data acquiring device is configured to execute any embodiment of the foregoing service data acquiring method. Specifically, please refer to fig. 5, fig. 5 is a schematic block diagram of a service data acquiring apparatus according to an embodiment of the present application. The service data acquisition device 20 may be configured in a server.
As shown in fig. 5, the service data acquiring apparatus 20 includes:
a transceiver module 201, configured to receive a first message from a first terminal, where the first message is used to request a subscription to at least one piece of service data of a first target type;
the processing module 202 is configured to, after determining that the first terminal has the right to acquire service data, acquire a data model corresponding to the first target type; acquiring a blank report through the transceiver module;
the processing module 202 is further configured to add the data model, a preset mail parameter, and a preset custom parameter to the blank report to obtain a first report; setting first subscription information, wherein the first subscription information is bound with the first report; obtaining a subscription task corresponding to the first subscription information through the transceiver module 201, and setting the effective time and the sending period of the subscription task;
and after the subscription task reaches the effective time, sending a second report to the first terminal through the transceiver module 201 in the sending period, wherein service data in the second report is obtained based on the data model in the first report.
In an embodiment, before the processing module 202 sends the second report to the first terminal in the sending period of the transceiver module 201, the processing module is further configured to:
establishing a corresponding relation between the data model and at least one service system;
acquiring at least one piece of service data from the at least one service system according to the corresponding relation;
obtaining target service data according to the at least one piece of service data;
and adding the target service data into the first report to obtain the second report.
In an embodiment, when the obtained service data is at least two, the processing module 202 is specifically configured to:
classifying the at least two service data according to the system identification of the service system;
and merging the classified at least two service data to obtain the target service data.
In an embodiment, after setting the validation time and the sending period of the subscription task, the processing module is further configured to:
receiving a second message from the first terminal through the transceiving module 201, the second message being used for requesting a subscription to data of a second target type;
and adding second subscription information according to the second message, and binding the second subscription information with the first report.
In an embodiment, after setting the validation time and the sending period of the subscription task, the processing module 202 is further configured to:
receiving a third message from the first terminal through the transceiving module 201, the third message being used to request to cancel subscription information for the first target type of data;
and deleting the first subscription information according to the third message, and unbinding the first subscription information and the first report.
In an embodiment, after setting the validation time and the sending period of the subscription task, the processing module 202 is further configured to:
updating the first subscription information and the subscription task to a user subscription list;
receiving a fourth message through the transceiving module 201;
and responding to the fourth message, and acquiring the user subscription list.
In an embodiment, the first subscription information is subscription information subscribed by a first terminal with a priority higher than a preset priority; after the processing module 202 obtains the user subscription list, before obtaining at least one piece of service data from the at least one service system according to the corresponding relationship, the processing module is further configured to:
monitoring a subscription task corresponding to the first subscription information in the user subscription list;
and if the target time interval is less than the preset time length, acquiring corresponding service data from the at least one service system according to the data model, wherein the target time interval is the time interval between the current time and the initial sending time of the next sending period of the subscription task.
The service data acquisition device 20 realizes the purpose of acquiring comprehensive, targeted and uniform service data, and is convenient for maintaining a service system and improving the maintenance efficiency.
The service data acquisition means 20 may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 600 is a server, and the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 6, the computer device 600 includes a processor 602, a memory, which may include a storage medium 603 and an internal memory 604, and a network interface 605 connected by a system bus 601.
The storage medium 603 may store an operating system 6031 and computer programs 6032. The computer program 6032, when executed, may cause the processor 602 to perform a traffic data acquisition method.
The processor 602 is used to provide computing and control capabilities that support the operation of the overall computer device 600.
The internal memory 604 provides an environment for the execution of a computer program 6032 in the storage medium 603, which computer program 6032, when executed by the processor 602, causes the processor 602 to perform a method for business data acquisition.
The network interface 605 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the subject application and does not constitute a limitation of the computing device 600 upon which the subject application may be implemented, and that a particular computing device 600 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 602 is configured to run a computer program 6032 stored in the memory, so as to implement the service data acquiring method disclosed in the embodiment of the present application.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 6 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 5, and are not described herein again.
It should be understood that, in the embodiment of the present Application, the Processor 602 may be a Central Processing Unit (CPU), and the Processor 602 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the present application, a computer-readable storage medium is provided. The computer-readable storage medium may be a nonvolatile computer-readable storage medium or a volatile computer-readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the service data acquisition method disclosed in the embodiments of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method for acquiring service data, the method comprising:
receiving a first message from a first terminal, wherein the first message is used for requesting to subscribe at least one piece of service data of a first target type;
when the first terminal is determined to have the authority of acquiring the service data, acquiring a data model corresponding to the first target type;
acquiring a blank report;
adding the data model, preset mail parameters and preset custom parameters to the blank report to obtain a first report;
setting first subscription information, wherein the first subscription information is bound with the first report;
acquiring a subscription task corresponding to the first subscription information, and setting the effective time and the sending period of the subscription task;
and after the subscription task reaches the effective time, sending a second report to the first terminal in the sending period, wherein the service data in the second report is obtained based on the data model in the first report.
2. The method of claim 1, wherein before the sending the second report to the first terminal within the sending period, the method further comprises:
establishing a corresponding relation between the data model and at least one service system;
acquiring at least one piece of service data from the at least one service system according to the corresponding relation;
obtaining target service data according to the at least one piece of service data;
and adding the target service data into the first report to obtain the second report.
3. The method of claim 2, wherein when the obtained service data is at least two, obtaining the target service data according to the at least one service data comprises:
classifying the at least two service data according to the system identification of the service system;
and merging the classified at least two service data to obtain the target service data.
4. The method according to any one of claims 1-3, wherein after the setting of the validation time and the sending period of the subscription task, the method further comprises:
receiving a second message from the first terminal, the second message being used for requesting a subscription to data of a second target type;
and adding second subscription information according to the second message, and binding the second subscription information with the first report.
5. The method according to any one of claims 1-3, wherein after the setting of the validation time and the sending period of the subscription task, the method further comprises:
receiving a third message from the first terminal, the third message being used to request to cancel subscription information for the first target type of data;
and deleting the first subscription information according to the third message, and unbinding the first subscription information and the first report.
6. The method according to claim 1 or 3, wherein after the setting of the validation time and the sending period of the subscription task, the method further comprises:
updating the first subscription information and the subscription task to a user subscription list;
receiving a fourth message;
and responding to the fourth message, and acquiring the user subscription list.
7. The method according to claim 6, wherein the first subscription information is subscription information subscribed by a first terminal with a priority higher than a preset priority; after the obtaining of the user subscription list, the method further includes:
monitoring a subscription task corresponding to the first subscription information in the user subscription list;
and if the target time interval is less than the preset time length, acquiring corresponding service data from at least one service system according to the data model, wherein the target time interval is the time interval between the current time and the initial sending time of the next sending period of the subscription task.
8. A service data acquisition apparatus, comprising:
a transceiver module, configured to receive a first message from a first terminal, where the first message is used to request a subscription to at least one piece of service data of a first target type;
the processing module is used for acquiring a data model corresponding to the first target type after the first terminal is determined to have the authority of acquiring the service data; acquiring a blank report through the transceiver module;
the processing module is further used for adding the data model, the mail parameters and the user-defined parameters to the blank report to obtain a first report; setting first subscription information, wherein the first subscription information is bound with the first report; acquiring a subscription task corresponding to the first subscription information through the transceiver module, and setting the effective time and the sending period of the subscription task;
and after the subscription task reaches the effective time, sending a second report to the first terminal through the transceiver module in the sending period, wherein data in the second report is obtained based on the data model in the first report.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the business data acquisition method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to execute the traffic data acquisition method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111151648.5A CN113837636A (en) | 2021-09-29 | 2021-09-29 | Service data acquisition method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111151648.5A CN113837636A (en) | 2021-09-29 | 2021-09-29 | Service data acquisition method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113837636A true CN113837636A (en) | 2021-12-24 |
Family
ID=78967283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111151648.5A Pending CN113837636A (en) | 2021-09-29 | 2021-09-29 | Service data acquisition method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113837636A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114598567A (en) * | 2022-03-03 | 2022-06-07 | 深圳市元征科技股份有限公司 | Communication method, apparatus and storage medium |
CN115061717A (en) * | 2022-06-30 | 2022-09-16 | 北京亚控科技发展有限公司 | Application management method, application subscription method and related equipment |
CN115580546A (en) * | 2022-11-15 | 2023-01-06 | 科来网络技术股份有限公司 | Data subscription method and device, electronic equipment and readable storage medium |
CN116708120A (en) * | 2023-04-12 | 2023-09-05 | 友帮信互联网技术(北京)有限公司 | Service method and device for time online sharing service |
CN118260171A (en) * | 2024-05-29 | 2024-06-28 | 蒲惠智造科技股份有限公司 | Service early warning method, system, medium and equipment based on custom pain sense signals |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110173529A1 (en) * | 2010-01-11 | 2011-07-14 | Microsoft Corporation | Template processing engine for business systems |
US8521733B1 (en) * | 2009-10-19 | 2013-08-27 | Microstrategy Incorporated | Database report and subscription technology |
CN108574620A (en) * | 2017-03-09 | 2018-09-25 | 腾讯科技(深圳)有限公司 | A kind of data subscription method, device, server and system |
CN108667721A (en) * | 2018-05-16 | 2018-10-16 | 平安科技(深圳)有限公司 | Subscribe to report form generation method, device, computer equipment and storage medium |
CN111030784A (en) * | 2019-11-13 | 2020-04-17 | 泰康保险集团股份有限公司 | Information synchronization method and device |
-
2021
- 2021-09-29 CN CN202111151648.5A patent/CN113837636A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8521733B1 (en) * | 2009-10-19 | 2013-08-27 | Microstrategy Incorporated | Database report and subscription technology |
US20110173529A1 (en) * | 2010-01-11 | 2011-07-14 | Microsoft Corporation | Template processing engine for business systems |
CN108574620A (en) * | 2017-03-09 | 2018-09-25 | 腾讯科技(深圳)有限公司 | A kind of data subscription method, device, server and system |
CN108667721A (en) * | 2018-05-16 | 2018-10-16 | 平安科技(深圳)有限公司 | Subscribe to report form generation method, device, computer equipment and storage medium |
WO2019218454A1 (en) * | 2018-05-16 | 2019-11-21 | 平安科技(深圳)有限公司 | Subscription report generation method and apparatus, computer device and storage medium |
CN111030784A (en) * | 2019-11-13 | 2020-04-17 | 泰康保险集团股份有限公司 | Information synchronization method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114598567A (en) * | 2022-03-03 | 2022-06-07 | 深圳市元征科技股份有限公司 | Communication method, apparatus and storage medium |
CN115061717A (en) * | 2022-06-30 | 2022-09-16 | 北京亚控科技发展有限公司 | Application management method, application subscription method and related equipment |
CN115061717B (en) * | 2022-06-30 | 2023-09-05 | 北京亚控科技发展有限公司 | Application management method, application subscription method and related equipment |
CN115580546A (en) * | 2022-11-15 | 2023-01-06 | 科来网络技术股份有限公司 | Data subscription method and device, electronic equipment and readable storage medium |
CN116708120A (en) * | 2023-04-12 | 2023-09-05 | 友帮信互联网技术(北京)有限公司 | Service method and device for time online sharing service |
CN116708120B (en) * | 2023-04-12 | 2024-02-23 | 友帮信互联网技术(北京)有限公司 | Service method and device for time online sharing service |
CN118260171A (en) * | 2024-05-29 | 2024-06-28 | 蒲惠智造科技股份有限公司 | Service early warning method, system, medium and equipment based on custom pain sense signals |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113837636A (en) | Service data acquisition method, device, equipment and storage medium | |
CN112311617A (en) | Configured data monitoring and alarming method and system | |
CN108062243B (en) | Execution plan generation method, task execution method and device | |
US11687383B1 (en) | Distributed API accounting | |
CN111694644A (en) | Message processing method and device based on robot operating system and computer equipment | |
KR101416280B1 (en) | Event handling system and method | |
CN110933698A (en) | Monitoring management method, device and equipment for Internet of things card | |
CN109889451B (en) | Network speed limiting system and method and server | |
CN108933789B (en) | Method for preventing personal information leakage and third-party application server | |
CN110958161A (en) | Block link point monitoring method and device | |
CN112486915B (en) | Data storage method and device | |
CN108881651B (en) | Data processing method, device and equipment of call platform and storage medium | |
CN112380229A (en) | Service data synchronization method and device, nonvolatile storage medium and processor | |
CN112631879A (en) | Data acquisition method and device, computer readable medium and electronic equipment | |
CN110661717A (en) | Current limiting method and device and electronic equipment | |
CN111736938B (en) | Information display method and device, storage medium and electronic device | |
CN113806191A (en) | Data processing method, device, equipment and storage medium | |
CN113407555B (en) | Operation data updating method and system of equipment handheld terminal | |
CN110727563A (en) | Cloud service alarm method and device for preset customer | |
CN112598529A (en) | Data processing method and device, computer readable storage medium and electronic equipment | |
CN111639053A (en) | Authorization file expiration alarm prompting method and device and computer equipment | |
CN110619080A (en) | Real-time data display system and method capable of improving data loading rate | |
CN110659190A (en) | Quality report generation method, quality report generation device, quality report generation equipment and computer readable storage medium | |
CN112714187B (en) | Message pushing control method, electronic device, computer equipment and storage medium | |
CN110995890B (en) | Domain name request scheduling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |