CN110263309B - Method and device for generating performance report, storage medium and electronic device - Google Patents

Method and device for generating performance report, storage medium and electronic device Download PDF

Info

Publication number
CN110263309B
CN110263309B CN201910398651.3A CN201910398651A CN110263309B CN 110263309 B CN110263309 B CN 110263309B CN 201910398651 A CN201910398651 A CN 201910398651A CN 110263309 B CN110263309 B CN 110263309B
Authority
CN
China
Prior art keywords
data
performance
real
result data
performance result
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.)
Active
Application number
CN201910398651.3A
Other languages
Chinese (zh)
Other versions
CN110263309A (en
Inventor
赵国旗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201910398651.3A priority Critical patent/CN110263309B/en
Publication of CN110263309A publication Critical patent/CN110263309A/en
Application granted granted Critical
Publication of CN110263309B publication Critical patent/CN110263309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Artificial Intelligence (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for generating a performance report, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring performance result data of a target service from a data server in real time; judging whether the performance result data reaches a preset target value or not; and generating a performance report by adopting the performance result data when the performance result data reaches the preset target value. The invention solves the technical problem of overlarge time delay in generating the performance report in the related technology, improves the effectiveness, reduces the time delay, and greatly improves the efficiency of producing the performance report by automatically producing the performance report.

Description

Method and device for generating performance report, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for generating a performance report, a storage medium, and an electronic apparatus.
Background
In the related art, with the rapid development of online services, big data plays a vital role in driving internal services and external services, and complex service scenes require that data gradually have the capability of real-time data, in particular the capability of real-time data pushing. During various online major activities, the business needs to timely master the progress of the business marketing activities, and when the performance requirements are met, key performance index (KPI, key Performance Indicator) data can be timely acquired, and performance war reports are produced and sent to the activity participants, so that the morale of the activity participants is improved. The smaller the time delay of sending the achievement war report, the higher the accuracy, the larger the improvement of the morale, and the timely and convenient promotion of the business party to change the marketing strategy can be achieved, thereby bringing better performance.
In the related art, if a user wants to view a performance report, a scheme is adopted in which performance data are collected at fixed time and the total performance result is settled, when the calculated performance result reaches a certain KPI index at a certain time, the data when reaching standards are recorded, and then, a plurality of drawing making tools such as PS (PS) and the like are used for manually making an activity war report picture. It is clear that this approach has several problems: the data is checked regularly, the data and time are inaccurate when reaching standards, and delay generally occurs; manual PS activity war newspaper pictures are time-consuming and labor-consuming and have low efficiency.
In view of the above problems in the related art, no effective solution has been found yet.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a performance report, a storage medium and an electronic device.
According to one embodiment of the present invention, there is provided a method of generating a performance report, including: acquiring performance result data of a target service from a data server in real time; judging whether the performance result data reaches a preset target value or not; and generating a performance report by adopting the performance result data when the performance result data reaches the preset target value.
Optionally, the obtaining, in real time, performance result data of the target service from the data server includes: a plurality of Batch scripts are adopted to collect real-time data of the target service in parallel from the data server in a streaming mode; and counting the historical data and the real-time data of the target business to obtain the performance result data of the target business.
Optionally, the streaming the real-time data of the target service from the data server in parallel by using a plurality of Batch scripts Batch includes: a plurality of Batch scripts are adopted to read incremental data of the target service from the data server in parallel; wherein each Batch corresponds to one data source in the data server; synchronizing the incremental data from the data server to a data channel; and converting the incremental data into a data stream with a specified format in the data channel to obtain the real-time data of the target service.
Optionally, the target service includes a service type and a service period, and acquiring, in real time, performance result data of the target service from the data server includes: acquiring target service data belonging to the service type from the data server; and counting the performance result data of the target business data in the business period.
Optionally, generating the performance report using the performance result data includes: performing format conversion on the performance result data to generate first performance result data in a preset format; adding appointed characters into the first performance result data to obtain second performance result data; and generating a text performance report by using the second performance result data, or generating a picture performance report by using the second performance result data.
Optionally, generating the text performance report using the second performance result data includes: and inserting the second performance result data into the performance content of a preset character template, and adding a performance title to obtain the character performance report, wherein the preset character template comprises the performance content and the performance title.
Optionally, generating the photo performance report using the second performance result data includes: selecting a preset picture template and a background picture from a preset database; and adding the second performance result data to the preset picture template, converting the second performance result data into a picture format, and synthesizing the background picture to obtain the picture performance report.
Optionally, after determining whether the performance result data reaches a preset target value, the method further includes: and deleting the performance result data or generating prompt information for indicating that the performance result data does not reach the preset target value when the performance result data does not reach the preset target value.
Optionally, after generating the performance report using the performance result data, the method further comprises: and sending the performance report to a target object or a target group, or uploading the performance report to a transfer server, wherein the transfer server is in communication connection with the target object or the target group.
Optionally, after determining whether the performance result data reaches a preset target value, the method further includes: and when the performance result data does not reach the preset target value, the preset target value is downwards adjusted according to a preset step length.
According to another embodiment of the present invention, there is provided an apparatus for generating a performance report, including: the acquisition module is used for acquiring performance result data of the target business from the data server in real time; the judging module is used for judging whether the performance result data reaches a preset target value or not; and the generation module is used for generating a performance report by adopting the performance result data when the performance result data reach the preset target value.
Optionally, the acquiring module includes: the acquisition unit is used for adopting a plurality of Batch scripts Batch to acquire real-time data of the target service in parallel from the data server in a streaming mode; and the statistics unit is used for counting the historical data and the real-time data of the target business to obtain the performance result data of the target business.
Optionally, the target service includes a service type and a service period, and the acquiring module includes: an obtaining unit, configured to obtain target service data belonging to the service type from the data server; and the statistics unit is used for counting the performance result data of the target business data in the business period.
Optionally, the generating module includes: a conversion unit, configured to perform format conversion on the performance result data, and generate first performance result data in a predetermined format; the processing unit is used for adding appointed characters into the first performance result data to obtain second performance result data; and the generation unit is used for generating a text performance report by using the second performance result data or generating a picture performance report by using the second performance result data.
Optionally, the apparatus further includes: and the communication module is used for sending the performance report to a target object or a target group after the generation module generates the performance report by adopting the performance result data, or uploading the performance report to a transfer server, wherein the transfer server is in communication connection with the target object or the target group.
Optionally, the apparatus further includes: and the adjusting module is used for adjusting the preset target value downwards according to a preset step length when the performance result data does not reach the preset target value after the judging module judges whether the performance result data reach the preset target value.
Optionally, the acquisition unit includes: the reading subunit is used for reading the incremental data of the target service from the data server in parallel by adopting a plurality of Batch scripts Batch; wherein each Batch corresponds to one data source in the data server; a synchronization subunit, configured to synchronize the incremental data from the data server to a data channel; and the conversion subunit is used for converting the incremental data into a data stream with a specified format in the data channel to obtain the real-time data of the target service.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, the performance result data of the target business is obtained in real time from the data server, when the performance result data is judged to reach the preset target value, the performance report is generated by adopting the performance result data, the real-time performance and the accuracy of the performance result data are ensured by adopting the streaming data, whether the performance result reaches the target value is judged in real time, the performance report is generated after the set performance target is reached, the technical problem that the time delay of generating the performance report is overlarge in the related technology is solved, the effectiveness is improved, the time delay is reduced, and the efficiency of manufacturing the performance report is greatly improved by automatically outputting the performance report.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of a server architecture for generating performance reports in accordance with an embodiment of the invention;
FIG. 2 is a flow chart of a method of generating a performance report in accordance with an embodiment of the invention;
FIG. 3 is a schematic diagram of a film performance report according to an embodiment of the present invention;
FIG. 4 is a flow diagram of a system for generating a performance report in accordance with an embodiment of the invention;
fig. 5 is a block diagram of an apparatus for generating a performance report according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method embodiment provided in the first embodiment of the present application may be performed in a mobile terminal, a computer terminal, a server, or a similar computing device. Taking the operation on a server as an example, fig. 1 is a block diagram of a server for generating a performance report according to an embodiment of the present invention. As shown in fig. 1, the server 10 may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative, and is not intended to limit the structure of the server described above. For example, the server 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of an application software and a module, such as a computer program corresponding to a method for generating a performance report in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located with respect to the processor 102, which may be connected to the server 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the server 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for generating a performance report is provided, and fig. 2 is a flowchart of a method for generating a performance report according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, obtaining performance result data of a target service from a data server in real time;
the target service in this embodiment is a task executed in real time, and is used to collect service data from a data server, and to count performance result data of the service data, such as an access amount of the current time, a transaction amount of the current time, and the like, and the data server is a server that generates or stores the service data, such as an order server, a payment server, and the like;
step S204, judging whether the performance result data reaches a preset target value;
the preset target value in this embodiment is a preset threshold value, and the completion of the index task is indicated by reaching the threshold value;
and S206, generating a performance report by using the performance result data when the performance result data reaches a preset target value.
Through the steps, the performance result data of the target business are obtained in real time from the data server, when the performance result data are judged to reach the preset target value, the performance result data are adopted to generate the performance report, the stream data are adopted to ensure the real-time performance and accuracy of the performance result data, whether the performance result reaches the target value is judged in real time, the performance report is generated after the set performance target is reached, the technical problem that the time delay of generating the performance report is overlarge in the related technology is solved, the effectiveness is improved, the time delay is reduced, and the efficiency of manufacturing the performance report is greatly improved through automatically outputting the performance report.
In an alternative implementation of the present embodiment, obtaining, in real time, performance result data of the target business from the data server includes:
s11, adopting a plurality of Batch scripts to collect real-time data of the target service in parallel from the data server;
optionally, the streaming the real-time data of the target service from the data server in parallel by using a plurality of Batch scripts Batch includes: a plurality of Batch scripts are adopted to read incremental data of the target service from the data server in parallel; wherein each Batch corresponds to one data source in the data server; synchronizing the incremental data from the data server to a data channel; and converting the incremental data into a data stream with a specified format in the data channel to obtain the real-time data of the target service. The data sources of this embodiment include service messages, service logs, and the like.
And S12, counting historical data and the real-time data of the target business to obtain performance result data of the target business.
In one example, the target business is the amount of deals in Beijing area, the accumulated historical data is 300 ten thousand, the real-time data is 2 ten thousand, and the performance result data of the target business is 302 ten thousand.
Optionally, the target service includes a service type and a service period, and acquiring performance result data of the target service from the data server in real time includes: acquiring target service data belonging to the service type from a data server; and counting the performance result data of the target business data in the business period.
The target service in this embodiment includes a plurality of preset parameters, and includes, in addition to input parameters such as a service type and a service period, the following parameters: and outputting information such as the preset target value, the output parameters, the title, the content, the template and the like of the performance report. In the implementation scenario of an online shopping platform, the service type is the consumption amount of Beijing electronic class, the service period is 11 months 11 days 00:00:00 to 01:00:00, then the target service is collected and counted from a data server (such as a bill database of the shopping platform) in real time, and the consumption total amount of the Beijing electronic class consumption bill in 11 months 11 days 00:00:00 to 01:00:00 is output as the performance result data of the target service.
In one implementation of the present embodiment, generating the performance report using the performance result data includes:
s21, performing format conversion on the performance result data to generate first performance result data in a preset format;
in this embodiment, format conversion is performed on the performance result data, that is, the complex server data is converted into a format that is convenient for presentation, such as converting a measurement unit, performing zero removal processing, etc., in one example, the data obtained from the data server is a11, 100523:12, and is matched through a mapping table, the code a11 refers to Shanghai, and the unit conversion and zero removal is performed on 100523:12, and is 10 ten thousand, where the first performance result data is Shanghai, 10 ten thousand.
S22, adding appointed characters into the first performance result data to obtain second performance result data; the specified text in this embodiment is a text selected according to the first performance result data, such as: exceeding the last year, the growth quota is xx, ring ratio downslide xx and the like.
S23, generating a text performance report by using the second performance result data, or generating a picture performance report by using the second performance result data.
In an alternative embodiment, generating the text performance report using the second performance result data includes: and inserting the second performance result data into the performance content of a preset text template, and adding a performance title to obtain a text performance report, wherein the preset text template comprises the performance content and the performance title, and the generated text performance report is 'Congo A platform achieves one trillion yuan in double 11 accumulated achievement amount, and is increased by 69% in the last year'. In an alternative embodiment, generating the photo performance report using the second performance result data includes: selecting a preset picture template and a background picture from a preset database; and adding the second performance result data to a preset picture template, converting the second performance result data into a picture format, and synthesizing a background picture to obtain a picture performance report, wherein fig. 3 is a schematic diagram of the picture performance report according to the embodiment of the invention.
In one implementation of the present embodiment, after generating the performance report using the performance result data, the method further includes: and sending the performance report to the target object or the target group, or uploading the performance report to a transfer server, wherein the transfer server is in communication connection with the target object or the target group. The target object may be a terminal, a mailbox address, a display screen, etc., and the target group includes a plurality of target objects, when the content of the performance report is more and the occupied memory is larger, especially for the picture performance report, in order to save the resource of the report receiving end, the performance report may be uploaded to the transfer server (the abbreviated version performance report with smaller data volume may be simultaneously sent), but only the link address or the acquisition path of the performance report on the transfer server is sent, and when the report receiving end wants to view the complete performance report, the complete performance report may be downloaded through the link address.
In one implementation of the present embodiment, after determining whether the performance result data reaches the preset target value, the method further includes: and deleting the performance result data or generating prompt information for indicating that the performance result data does not reach the preset target value when the performance result data does not reach the preset target value. The preset target value is a preset value, and when the performance result data does not reach the preset target value, the obtained performance result data can be selected to be deleted directly, and prompt information can be sent out. In an alternative embodiment, the difference between the performance result data and the preset target value can be calculated, when the difference is smaller than a threshold value, prompt information is generated and sent, for example, the preset target value is 10 ten thousand, the threshold value is 1 ten thousand, prompt is started when the performance result data reaches more than 9 ten thousand, and the user can estimate and prepare in advance.
In one implementation of the present embodiment, after determining whether the performance result data reaches the preset target value, the method further includes: and when the performance result data does not reach the preset target value, the preset target value is downwards adjusted according to a preset step length. In one example, the preset target value is 10 ten thousand, the performance result data acquired at the ratio of 10:00:00 is only 9 ten thousand 8, the expected 10 ten thousand is not reached, and the performance report must be generated, in this case, the performance report can be generated according to the preset target value adjusted to 9 ten thousand 8, and the system completes the task of report output.
Fig. 4 is a flowchart of a system for generating a performance report according to an embodiment of the present invention, in a specific example of the present embodiment, a method for producing a real-time data report (performance report) based on streaming data driving is provided, where rule calculation and threshold calculation are performed in a rule engine during real-time data streaming calculation by establishing a real-time data rule engine, so as to determine whether to trigger a report pushing task, and when the real-time performance data reaches a set performance threshold (preset target value), the performance data is added to a previously-made text report or picture report template, and then the report is sent to a corresponding recipient through an instant messaging tool, so as to achieve the purpose of real-time output of the performance report. The flow of the real-time data war report based on the streaming data driving in the embodiment comprises the following steps:
step 1: firstly, a real-time data computing service flow is established, wherein the real-time data computing service flow comprises real-time data acquisition, real-time data stream synchronization, real-time data stream conversion, real-time data computing tasks and the like.
Step 2: and then establishing a real-time data rule engine, wherein the real-time data rule engine comprises rule setting and threshold setting, and the threshold setting can be dynamically configured according to an external system, so that the real-time dynamic rule engine is formed.
Step 3: next, a war report task configuration is established, comprising: input parameters, output parameters, a war report title of a character war report, war report contents, or a war report template of a picture war report, a background picture address, a synthesized war report address, a war report receiver, a war report receiving group and the like.
Step 4: then, establishing a picture splicing service, including a war report template library, and designing templates of various war reports in advance; the war report template library includes, but is not limited to: various forms of battle report such as performance PK report, performance ranking list, performance real-time report, performance threshold report, etc.
Step 5: after the configuration of each content is prepared in the steps 1, 2, 3 and 4, after the real-time data service is started, the real-time data service takes the input parameters as the parameters of the real-time data calculation task after the real-time data acquisition, the real-time data stream transmission and the real-time data stream conversion, and the performance data result is continuously executed.
Step 6: and sending the performance data result obtained by the real-time data calculation task to a real-time dynamic rule engine, and continuously executing when the set rule and threshold are met, or else, exiting the timing task.
Step 6, when the result of the performance data meets the set performance target, the output parameter module processes the result of the performance data, including formatting the data, adding specific characters and the like;
step 7, two modes of touch can be set for the performance war report, wherein one mode is a character war report, the character war report mainly comprises a war report title and war report content, and performance result data obtained after the output parameters are processed are inserted into the war report content; the other is a picture war report, the picture war report needs to select a war report template from a war report template library in advance, the performance result data, the war report template and the background picture obtained after the output parameters are processed pass through a war report picture synthesis module to synthesize a war report picture, then the picture is converted into a format meeting the picture sending requirement, and then the war report picture is uploaded to a picture server, so that the picture address of the synthesized war report in the picture server is obtained.
And 8, taking the character war report or the picture war report obtained in the step 7 as a message type of the instant messaging tool, selecting a war report receiver or a war report receiving group, and then sending the war report receiver or the war report receiving group to a corresponding target user through the instant messaging tool.
The embodiment adopts streaming data driving, thereby ensuring the real-time performance and accuracy of the performance data, and compared with a timing polling mode, the method has better effectiveness and smaller time delay. On the other hand, the real-time performance data is spliced to the character war report or the picture war report, so that the war report is automatically produced, and the efficiency of manufacturing the war report is greatly improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 2
The embodiment also provides a device for generating a performance report, which is used for implementing the foregoing embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
An embodiment provides an apparatus for generating a performance report, and fig. 5 is a block diagram of an apparatus for generating a performance report according to an embodiment of the present invention, where the apparatus includes: an acquisition module 50, a judgment module 52, a generation module 54, wherein,
an obtaining module 50, configured to obtain performance result data of the target service from the data server in real time;
a judging module 52, configured to judge whether the performance result data reaches a preset target value;
and a generating module 54, configured to generate a performance report using the performance result data when the performance result data reaches the preset target value.
Optionally, the acquiring module includes: the acquisition unit is used for adopting a plurality of Batch scripts Batch to acquire real-time data of the target service in parallel from the data server in a streaming mode; and the statistics unit is used for counting the historical data and the real-time data of the target business to obtain the performance result data of the target business.
Optionally, the target service includes a service type and a service period, and the acquiring module includes: an obtaining unit, configured to obtain target service data belonging to the service type from the data server; and the statistics unit is used for counting the performance result data of the target business data in the business period.
Optionally, the generating module includes: a conversion unit, configured to perform format conversion on the performance result data, and generate first performance result data in a predetermined format; the processing unit is used for adding appointed characters into the first performance result data to obtain second performance result data; and the generation unit is used for generating a text performance report by using the second performance result data or generating a picture performance report by using the second performance result data.
Optionally, the apparatus further includes: and the communication module is used for sending the performance report to a target object or a target group after the generation module generates the performance report by adopting the performance result data, or uploading the performance report to a transfer server, wherein the transfer server is in communication connection with the target object or the target group.
Optionally, the apparatus further includes: and the adjusting module is used for adjusting the preset target value downwards according to a preset step length when the performance result data does not reach the preset target value after the judging module judges whether the performance result data reach the preset target value.
Optionally, the acquisition unit includes: the reading subunit is used for reading the incremental data of the target service from the data server in parallel by adopting a plurality of Batch scripts Batch; wherein each Batch corresponds to one data source in the data server; a synchronization subunit, configured to synchronize the incremental data from the data server to a data channel; and the conversion subunit is used for converting the incremental data into a data stream with a specified format in the data channel to obtain the real-time data of the target service.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Example 3
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in an aspect of the present embodiment, the storage medium described above may be configured to store a computer program for performing the steps of:
s1, obtaining performance result data of a target service from a data server in real time;
s2, judging whether the performance result data reaches a preset target value or not;
and S3, generating a performance report by adopting the performance result data when the performance result data reach the preset target value.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in an aspect of the present embodiment, the above processor may be configured to perform the following steps by a computer program:
s1, obtaining performance result data of a target service from a data server in real time;
s2, judging whether the performance result data reaches a preset target value or not;
and S3, generating a performance report by adopting the performance result data when the performance result data reach the preset target value.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (17)

1. A method of generating a performance report, comprising:
pre-establishing a real-time data computing service flow and a real-time dynamic rule engine; the real-time data computing service flow comprises real-time data acquisition, real-time data stream transmission, real-time data stream conversion and real-time data computing tasks; the real-time dynamic rule engine comprises rule setting and threshold setting;
after the real-time data calculation service is subjected to real-time data acquisition, real-time data stream transmission and real-time data stream conversion, taking the input parameters as parameters of a real-time data calculation task, and acquiring performance result data of a target service from a data server in real time;
the performance result data obtained through the real-time data calculation task is sent to a real-time dynamic rule engine, and whether the performance result data reaches a preset target value is judged;
when the performance result data reach the preset target value, generating a performance report by adopting the performance result data;
generating prompt information for indicating that the performance result data does not reach the preset target value when the performance result data does not reach the preset target value;
wherein, the real-time acquisition of the performance result data of the target business from the data server comprises the following steps:
a plurality of Batch scripts are adopted to collect real-time data of the target service in parallel from the data server in a streaming mode;
and counting the historical data and the real-time data of the target business to obtain the performance result data of the target business.
2. The method of claim 1, wherein streaming real-time data of the target service from the data server in parallel using a plurality of Batch scripts Batch comprises:
a plurality of Batch scripts are adopted to read incremental data of the target service from the data server in parallel; wherein each Batch corresponds to one data source in the data server;
synchronizing the incremental data from the data server to a data channel;
and converting the incremental data into a data stream with a specified format in the data channel to obtain the real-time data of the target service.
3. The method of claim 1, wherein the target business comprises a business type and a business period, and wherein obtaining performance result data of the target business from the data server in real time comprises:
acquiring target service data belonging to the service type from the data server;
and counting the performance result data of the target business data in the business period.
4. The method of claim 1, wherein generating a performance report using the performance result data comprises:
performing format conversion on the performance result data to generate first performance result data in a preset format;
adding appointed characters into the first performance result data to obtain second performance result data;
and generating a text performance report by using the second performance result data, or generating a picture performance report by using the second performance result data.
5. The method of claim 4, wherein generating a text performance report using the second performance result data comprises:
and inserting the second performance result data into the performance content of a preset character template, and adding a performance title to obtain the character performance report, wherein the preset character template comprises the performance content and the performance title.
6. The method of claim 4, wherein generating a photo performance report using the second performance result data comprises:
selecting a preset picture template and a background picture from a preset database;
and adding the second performance result data to the preset picture template, converting the second performance result data into a picture format, and synthesizing the background picture to obtain the picture performance report.
7. The method of claim 1, wherein after determining whether the performance result data reaches a preset target value, the method further comprises:
and deleting the performance result data when the performance result data does not reach the preset target value.
8. The method of claim 1, wherein after generating a performance report using the performance result data, the method further comprises:
and sending the performance report to a target object or a target group, or uploading the performance report to a transfer server, wherein the transfer server is in communication connection with the target object or the target group.
9. The method of claim 1, wherein after determining whether the performance result data reaches a preset target value, the method further comprises:
and when the performance result data does not reach the preset target value, the preset target value is downwards adjusted according to a preset step length.
10. An apparatus for generating a performance report, comprising:
the building module is used for pre-building a real-time data computing service flow and a real-time dynamic rule engine; the real-time data computing service flow comprises real-time data acquisition, real-time data stream transmission, real-time data stream conversion and real-time data computing tasks; the real-time dynamic rule engine comprises rule setting and threshold setting;
the acquisition module is used for acquiring the performance result data of the target service in real time from the data server by taking the input parameters as the parameters of the real-time data calculation task after the real-time data calculation service is subjected to real-time data acquisition, real-time data stream transmission and real-time data stream conversion;
the judging module is used for sending the performance result data obtained through the real-time data calculation task to the real-time dynamic rule engine and judging whether the performance result data reaches a preset target value or not;
the generation module is used for generating a performance report by adopting the performance result data when the performance result data reach the preset target value; generating prompt information for indicating that the performance result data does not reach the preset target value when the performance result data does not reach the preset target value;
wherein, the acquisition module includes:
the acquisition unit is used for adopting a plurality of Batch scripts Batch to acquire real-time data of the target service in parallel from the data server in a streaming mode;
and the statistics unit is used for counting the historical data and the real-time data of the target business to obtain the performance result data of the target business.
11. The apparatus of claim 10, wherein the target traffic comprises a traffic type and a traffic period, and wherein the acquisition module comprises:
an obtaining unit, configured to obtain target service data belonging to the service type from the data server;
and the statistics unit is used for counting the performance result data of the target business data in the business period.
12. The apparatus of claim 10, wherein the generating module comprises:
a conversion unit, configured to perform format conversion on the performance result data, and generate first performance result data in a predetermined format;
the processing unit is used for adding appointed characters into the first performance result data to obtain second performance result data;
and the generation unit is used for generating a text performance report by using the second performance result data or generating a picture performance report by using the second performance result data.
13. The apparatus of claim 10, wherein the apparatus further comprises:
and the communication module is used for sending the performance report to a target object or a target group after the generation module generates the performance report by adopting the performance result data, or uploading the performance report to a transfer server, wherein the transfer server is in communication connection with the target object or the target group.
14. The apparatus of claim 10, wherein the apparatus further comprises:
and the adjusting module is used for adjusting the preset target value downwards according to a preset step length when the performance result data does not reach the preset target value after the judging module judges whether the performance result data reach the preset target value.
15. The apparatus of claim 10, wherein the acquisition unit comprises:
the reading subunit is used for reading the incremental data of the target service from the data server in parallel by adopting a plurality of Batch scripts Batch; wherein each Batch corresponds to one data source in the data server;
a synchronization subunit, configured to synchronize the incremental data from the data server to a data channel;
and the conversion subunit is used for converting the incremental data into a data stream with a specified format in the data channel to obtain the real-time data of the target service.
16. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 9 when run.
17. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of claims 1 to 9.
CN201910398651.3A 2019-05-14 2019-05-14 Method and device for generating performance report, storage medium and electronic device Active CN110263309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910398651.3A CN110263309B (en) 2019-05-14 2019-05-14 Method and device for generating performance report, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910398651.3A CN110263309B (en) 2019-05-14 2019-05-14 Method and device for generating performance report, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110263309A CN110263309A (en) 2019-09-20
CN110263309B true CN110263309B (en) 2023-05-16

Family

ID=67914671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910398651.3A Active CN110263309B (en) 2019-05-14 2019-05-14 Method and device for generating performance report, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110263309B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446948A (en) * 2015-11-13 2016-03-30 武汉鸿图节能技术有限公司 Report automatic generation method and system
CN107784510A (en) * 2016-08-24 2018-03-09 上海零氏信息技术有限公司 Sales achievement statistical analysis system and method based on shops's retail terminal
CN107944677A (en) * 2017-11-15 2018-04-20 平安科技(深圳)有限公司 Achievement method for tracing, application server and computer-readable recording medium
CN109254892A (en) * 2018-08-14 2019-01-22 北京信安世纪科技股份有限公司 A kind of method and device generating report

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446948A (en) * 2015-11-13 2016-03-30 武汉鸿图节能技术有限公司 Report automatic generation method and system
CN107784510A (en) * 2016-08-24 2018-03-09 上海零氏信息技术有限公司 Sales achievement statistical analysis system and method based on shops's retail terminal
CN107944677A (en) * 2017-11-15 2018-04-20 平安科技(深圳)有限公司 Achievement method for tracing, application server and computer-readable recording medium
CN109254892A (en) * 2018-08-14 2019-01-22 北京信安世纪科技股份有限公司 A kind of method and device generating report

Also Published As

Publication number Publication date
CN110263309A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
US10360257B2 (en) System and method for image annotation
CN103166930B (en) The method and system of pushing network information
EP2506522A1 (en) Method and device for pushing data
US20160277460A1 (en) Method and apparatus for initiating network conference
CN104539678B (en) A kind of push of information, method of reseptance and device
CN111639138A (en) Data processing method, device, equipment and storage medium
TWI530900B (en) Method and system for updating security information
CN108132868A (en) A kind of data monitoring method, device, computing device and storage medium
CN111371672A (en) Message pushing method and device
CN106412106B (en) Message sending method and device
CN105227425A (en) The method of syndication message, equipment and network social intercourse system
CN109062807B (en) Method and device for testing application program, storage medium and electronic device
CN1265600C (en) Modular method and device for the tracing of a multimedia message through a telecommunications network
CN110263309B (en) Method and device for generating performance report, storage medium and electronic device
CN107038567A (en) The acquisition methods and device of the information of destination object, the information of paying party
CN103036762A (en) Method and device for information processing in instant messaging
CN110147539B (en) Method and device for generating performance report, storage medium and electronic device
CN107577822A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN103634319A (en) Method and system for realizing wechat wall multi-subject-activity-project management
JP6186165B2 (en) Information system, second terminal device, information processing method, and program
CN115270743A (en) Form data processing method and device
CN111192166A (en) Method and device for processing ordering information, storage medium and electronic device
CN103166831B (en) Data processing method, terminal and system
KR100692640B1 (en) Method for calculating a usage index using a usage record of the user terminal and Apparatus thereof
CN113434612B (en) Data statistics method and device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant