CN111652486B - Method and device for calculating service index - Google Patents

Method and device for calculating service index Download PDF

Info

Publication number
CN111652486B
CN111652486B CN202010452330.XA CN202010452330A CN111652486B CN 111652486 B CN111652486 B CN 111652486B CN 202010452330 A CN202010452330 A CN 202010452330A CN 111652486 B CN111652486 B CN 111652486B
Authority
CN
China
Prior art keywords
index
calculated
calculation
service
event
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
CN202010452330.XA
Other languages
Chinese (zh)
Other versions
CN111652486A (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.)
Nanjing Leading Technology Co Ltd
Original Assignee
Nanjing Leading 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 Nanjing Leading Technology Co Ltd filed Critical Nanjing Leading Technology Co Ltd
Priority to CN202010452330.XA priority Critical patent/CN111652486B/en
Publication of CN111652486A publication Critical patent/CN111652486A/en
Application granted granted Critical
Publication of CN111652486B publication Critical patent/CN111652486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The application discloses a method and a device for calculating a service index. The method comprises the steps that after business data of a target business system are obtained according to a received business index calculation request sent by the target business system, the business index calculation request comprises a target business index to be calculated and a time period to be calculated, and the business data comprises a business object identifier of a business object and corresponding business behavior information; analyzing the business behavior information according to a preset analysis rule of the target business index to obtain event information to be calculated corresponding to the target business index; according to a preset calculation rule of the target business index, calculating a set of event information to be calculated in a time period to be calculated to obtain a calculation result of the target business index corresponding to the business object identifier; and sending a service index calculation response to the target service system, wherein the index calculation response comprises a calculation result of the target service index corresponding to the service object identifier. The method realizes the calculation of the service index with high reusability.

Description

Method and device for calculating service index
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for calculating a service index.
Background
For an internet platform, the platform needs to calculate large-scale data generated by various users and transactions in operation, which generates a great demand for calculating real-time service indexes, and requires high timeliness. The real-time service indexes provide support for management decisions of the Internet platform.
Because the difference of the algorithm among the service indexes is large, and the demand of the service indexes is rapidly increased along with the development of services, a large data volume and a complex internet platform are needed to provide a calculation scene of different service indexes.
However, currently, each internet platform customizes a corresponding service index calculation scenario according to each service index, which results in poor reusability of the technology for calculating the service index, and different internet platforms can not be shared, i.e., the technology for calculating the service index is not highly reusable.
Disclosure of Invention
The embodiment of the application provides a method and a device for calculating a service index, which solve the problems in the prior art and realize the calculation of the service index with high reusability.
In a first aspect, a method for calculating a service index is provided, where the method may include:
acquiring service data of a target service system according to a received service index calculation request sent by the target service system, wherein the service index calculation request comprises a target service index to be calculated and a time period to be calculated, and the service data comprises a service object identifier of a service object and corresponding service behavior information;
analyzing the service behavior information according to a preset analysis rule of a target service index to obtain event information to be calculated corresponding to the target service index;
according to a preset calculation rule of a target service index, calculating the set of the event information to be calculated in the time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier;
and sending a service index calculation response to the target service system, wherein the index calculation response comprises a calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, the event information to be calculated includes an event occurrence time to be calculated and an event state to be calculated;
according to a preset calculation rule of a target service index, calculating the set of the event information to be calculated in the time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier, including:
according to a preset calculation rule of a target service index, determining an index calculation state corresponding to an event state to be calculated in the event information to be calculated and an effective calculation time period corresponding to the index calculation state;
and calculating the set of the event information to be calculated in the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain the calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, before the calculating, according to a preset calculation rule of a target service index, the set of event information to be calculated in the time period to be calculated, the method further includes:
and acquiring an ordered set of event information to be calculated corresponding to the target service index in a preset time period according to the time sequence of the event occurrence time.
In an optional implementation, obtaining a calculation result of the target service index corresponding to the service object identifier includes:
integrating the ordered set of the event information to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain an ordered set of the index event to be calculated corresponding to the service object identifier;
and calculating the index event ordered set to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier.
In an alternative implementation, the index calculation state includes a state in which index calculation is performed and a state in which index calculation is not performed.
In an optional implementation, the target service index includes at least one service index of a timing service index, a counting service index and a sum service index.
In a second aspect, an apparatus for calculating a business index is provided, and the apparatus may include: the device comprises an acquisition unit, an analysis unit, a calculation unit and a sending unit;
the acquiring unit is used for acquiring service data of a target service system according to a received service index calculation request sent by the target service system, wherein the service index calculation request comprises a target service index to be calculated and a time period to be calculated, and the service data comprises a service object identifier of a service object and corresponding service behavior information;
the analysis unit is used for analyzing the business behavior information according to a preset analysis rule of a target business index to obtain event information to be calculated corresponding to the target business index;
the calculation unit is configured to calculate, according to a preset calculation rule of a target service index, a set of the event information to be calculated within the time period to be calculated, so as to obtain a calculation result of the target service index corresponding to the service object identifier;
the sending unit is configured to send a service index calculation response to the target service system, where the index calculation response includes a calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, the event information to be calculated includes an event occurrence time to be calculated and an event state to be calculated;
the computing unit is specifically configured to determine, according to a preset computing rule of a target service index, an index computing state corresponding to an event state to be computed in the event information to be computed and an effective computing time period corresponding to the index computing state;
and calculating the set of the event information to be calculated in the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain the calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, the obtaining unit further obtains an ordered set of event information to be calculated corresponding to the target service indicator within a preset time period according to a time sequence of the event occurrence time.
In an optional implementation, the computing unit is further specifically configured to integrate the ordered set of the event information to be computed according to an index computation state corresponding to the event state to be computed, an effective computation time period corresponding to the index computation state, and the occurrence time of the event to be computed, so as to obtain an index event ordered set to be computed corresponding to the service object identifier;
and calculating the index event ordered set to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier.
In an alternative implementation, the index calculation state includes a state in which index calculation is performed and a state in which index calculation is not performed.
In an optional implementation, the target service index includes at least one service index of a timing service index, a counting service index and a sum service index.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, having stored therein a computer program which, when executed by a processor, performs the method steps of any of the above first aspects.
The method for calculating the service index provided by the invention is implemented, after the service data of the target service system is obtained according to the received service index calculation request sent by the target service system, the service index calculation request comprises the target service index to be calculated and the time period to be calculated, and the service data comprises the service object identification of the service object and the corresponding service behavior information; analyzing the business behavior information according to a preset analysis rule of the target business index to obtain event information to be calculated corresponding to the target business index; according to a preset calculation rule of the target service index, calculating a set of event information to be calculated in a time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier; and sending a service index calculation response to the target service system, wherein the index calculation response comprises a calculation result of the target service index corresponding to the service object identifier. The method can realize the calculation of different service indexes by different service systems and realize the calculation of the service indexes with high reusability.
Drawings
Fig. 1 is a schematic flow chart of a method for calculating a service index according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service indicator calculation apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
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 only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the present application.
The method for calculating the service index provided by the embodiment of the invention can be applied to a service index calculating component, and the service index calculating component can be positioned on a server or a terminal.
The server may be an application server or a cloud server.
The Terminal may be a User Equipment (UE) such as a Mobile phone, a smart phone, a laptop, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a Mobile Station (MS), a Mobile Terminal (Mobile Terminal), etc. The terminal has the capability to communicate with one or more core networks via a Radio Access Network (RAN).
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 1 is a schematic flow chart of a method for calculating a service index according to an embodiment of the present invention. As shown in fig. 1, the method may include:
and step 110, acquiring service data of the target service system according to the received service index calculation request sent by the target service system.
The target service system may send a service index calculation request to the service index calculation component, where the service index calculation request may include a target service index to be calculated, and the service index calculation component may obtain service data of the target service system according to the service index calculation request.
The service data may include a service object identifier of the service object and corresponding service behavior information; the business object is any business entity such as a driver, a vehicle, an order and the like, and is uniquely identified by using the business object identifier. The business behavior information may include the behavior class of the business object, the time of occurrence, and some other key information describing the current business behavior, such as state information.
The target service index may include, but is not limited to, at least one of a timing-based service index, a counting-based service index, and a monetary sum-based service index.
In the field of network taxi appointment, the timing service indexes can comprise the online time, the peak time, the charging time and the like of a driver; the counting type service index can comprise the amount of orders; the sum of money class service index may include flow information within a preset time period.
And step 120, analyzing the service behavior information according to a preset analysis rule of the service index to obtain event information to be calculated corresponding to the target service index.
And the service index calculation component searches for event information to be calculated corresponding to the service object identifier in the service behavior information based on the target service index, wherein the event information to be calculated can comprise the occurrence time of the event to be calculated and the state of the event to be calculated.
For example, in the field of network appointment, taking the service object identifier as a driver identifier and the target service index as the online time length as an example, the state of the event to be calculated is the online state, and the occurrence time of the event to be calculated is 2020042009: 05: 00360 (ms).
Optionally, according to the time sequence of the event occurrence time, the service index calculation component may obtain an ordered set of to-be-calculated event information corresponding to the target service index within a preset time period.
For example, in the field of network booking, taking the service object identifier as the driver a and the target service index as the online duration as an example, the ordered set of the to-be-computed event information corresponding to the online duration of the driver a in the preset time period may include:
on line state, 2020042009: 05: 00360;
down status, 2020042010: 05: 00360;
upper line state, 2020042010: 30: 00360;
down line status, 2020042013: 30: 00360.
Step 130, according to a preset calculation rule of the target service index, calculating a set of event information to be calculated in a time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier.
The service index calculation component can determine an index calculation state corresponding to the event state to be calculated in the event information to be calculated and an effective calculation time period corresponding to the index calculation state according to a preset calculation rule of the target service index.
The preset calculation rule of the target service index may include a corresponding relationship between different event states and index calculation states, and a corresponding relationship between a corresponding index calculation state and an effective calculation time period. The index calculation state may include a state in which index calculation is performed and a state in which index calculation is not performed.
Examples of rules for calculating the driver's online time period are:
the state of executing index calculation corresponding to the online state, and a first effective time period corresponding to the state of executing index calculation, namely, the index calculation is executed in the first effective time period;
and the offline state corresponds to a state where index calculation is not executed, and the state where index calculation is executed corresponds to a second effective time period, namely index calculation is not executed in the second effective time period. It can be understood that the second valid time period may be all time periods except the first valid time period, or may be other custom time periods, which may be set according to actual situations, and the embodiment of the present invention is not limited herein.
Wherein the first valid period may include at least one valid period. If the first valid period includes two valid periods, it can be expressed as: [ [ start time 1, end time 1], [ start time 2, end time 2] ].
Then, the service index calculation component may calculate a set of the event information to be calculated within the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state, and the occurrence time of the event to be calculated, so as to obtain a calculation result of the target service index corresponding to the service object identifier.
Optionally, the service index calculation component may integrate a set of to-be-calculated event information in the to-be-calculated time period according to the index calculation state corresponding to the to-be-calculated event state, the effective calculation time period corresponding to the index calculation state, and the occurrence time of the to-be-calculated event, to obtain an index event ordered set to be calculated, and then calculate the index event ordered set to be calculated, to obtain a calculation result of the target service index corresponding to the service object identifier.
In one example, the time period to be calculated is 2020042000: 00: 00000 and 2020042100: 00: 00000, i.e. 24 hours.
The ordered set of the event information to be calculated corresponding to the driver A is as follows:
on line state, 2020042009: 05: 00360; down status, 2020042010: 05: 00360;
upper line state, 2020042010: 30: 00360; down line status, 2020042013: 30: 00360.
Moreover, the online state in the event information to be calculated is a state for executing index calculation, and the first effective time period corresponding to the state for executing index calculation is [ [ "09: 00", "11: 00" ], [ "18: 00", "21: 00" ] ];
and the off-line state corresponds to a state in which index calculation is not executed, and the second effective time period corresponding to the state in which index calculation is executed is all the time periods except the first effective time period.
In summary, it can be obtained that the index event ordered set to be calculated corresponding to the driver a is:
[ driver A, performance index calculation, 2020042009: 05: 00360 ];
[ driver A, no performance index calculation, 2020042010: 05: 00360 ];
[ driver A, performance index calculation, 2020042010: 30: 00360 ];
[ driver A, no index calculation was performed, 2020042013: 30: 00360 ].
The driver online time length calculation result ═ Σ (timestamp during which the index calculation is not performed in the first valid period — timestamp during which the index calculation is performed in the first valid period).
And step 140, sending a service index calculation response to the target service system.
The index calculation response may include a calculation result of the target business index corresponding to the business object identifier.
The method for calculating the service index provided by the invention is implemented, after the service data of the target service system is obtained according to the received service index calculation request sent by the target service system, the service index calculation request comprises the target service index to be calculated and the time period to be calculated, and the service data comprises the service object identification of the service object and the corresponding service behavior information; analyzing the business behavior information according to a preset analysis rule of the target business index to obtain event information to be calculated corresponding to the target business index; according to a preset calculation rule of the target service index, calculating a set of event information to be calculated in a time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier; and sending a service index calculation response to the target service system, wherein the index calculation response comprises a calculation result of the target service index corresponding to the service object identifier. The method can realize the calculation of different service indexes by different service systems and realize the calculation of the service indexes with high reusability.
Corresponding to the foregoing method, an embodiment of the present invention further provides a device for calculating a service index, where as shown in fig. 2, the device for calculating a service index includes: an acquisition unit 210, an analysis unit 220, a calculation unit 230, and a transmission unit 240;
an obtaining unit 210, configured to obtain service data of a target service system according to a received service index calculation request sent by the target service system, where the service index calculation request includes a target service index to be calculated and a time period to be calculated, and the service data includes a service object identifier of a service object and corresponding service behavior information;
the analysis unit 220 is configured to analyze the service behavior information according to a preset analysis rule of a target service index, so as to obtain to-be-calculated event information corresponding to the target service index;
a calculating unit 230, configured to calculate, according to a preset calculation rule of a target service index, a set of the event information to be calculated in the time period to be calculated, to obtain a calculation result of the target service index corresponding to the service object identifier;
a sending unit 240, configured to send a service index calculation response to the target service system, where the index calculation response includes a calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, the event information to be computed includes an occurrence time of the event to be computed and a state of the event to be computed;
the calculating unit 230 is specifically configured to determine, according to a preset calculation rule of a target service index, an index calculation state corresponding to an event state to be calculated in the event information to be calculated and an effective calculation time period corresponding to the index calculation state;
and calculating the set of the event information to be calculated in the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain the calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, the obtaining unit 210 further obtains an ordered set of event information to be calculated corresponding to the target service indicator within a preset time period according to a time sequence of the event occurrence time.
In an optional implementation, the calculating unit 230 is further specifically configured to integrate the ordered set of the event information to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state, and the occurrence time of the event to be calculated, so as to obtain an ordered set of the index event to be calculated corresponding to the service object identifier;
and calculating the index event ordered set to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier.
In an alternative implementation, the index calculation state includes a state in which index calculation is performed and a state in which index calculation is not performed.
In an optional implementation, the target service index includes at least one service index of a timing service index, a counting service index and a sum service index.
The functions of each functional unit of the device for calculating a service index provided in the above embodiment of the present invention may be implemented by using the above method steps, and therefore, detailed working processes and beneficial effects of each unit in the device for calculating a service index provided in the embodiment of the present invention are not described herein again.
An embodiment of the present invention further provides an electronic device, as shown in fig. 3, including a processor 310, a communication interface 320, a memory 330, and a communication bus 340, where the processor 310, the communication interface 320, and the memory 330 complete mutual communication through the communication bus 340.
A memory 330 for storing a computer program;
the processor 310, when executing the program stored in the memory 330, implements the following steps:
acquiring service data of a target service system according to a received service index calculation request sent by the target service system, wherein the service index calculation request comprises a target service index to be calculated and a time period to be calculated, and the service data comprises a service object identifier of a service object and corresponding service behavior information;
analyzing the service behavior information according to a preset analysis rule of a target service index to obtain event information to be calculated corresponding to the target service index;
according to a preset calculation rule of a target service index, calculating the set of the event information to be calculated in the time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier;
and sending a service index calculation response to the target service system, wherein the index calculation response comprises a calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, the event information to be calculated includes an event occurrence time to be calculated and an event state to be calculated;
according to a preset calculation rule of a target service index, calculating the set of the event information to be calculated in the time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier, including:
according to a preset calculation rule of a target service index, determining an index calculation state corresponding to an event state to be calculated in the event information to be calculated and an effective calculation time period corresponding to the index calculation state;
and calculating the set of the event information to be calculated in the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain the calculation result of the target service index corresponding to the service object identifier.
In an optional implementation, before the calculating, according to a preset calculation rule of a target service index, the set of event information to be calculated in the time period to be calculated, the method further includes:
and acquiring an ordered set of the event information to be calculated corresponding to the target service index in a preset time period according to the time sequence of the event occurrence time.
In an optional implementation, obtaining a calculation result of the target service index corresponding to the service object identifier includes:
integrating the ordered set of the event information to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain an ordered set of the index event to be calculated corresponding to the service object identifier;
and calculating the index event ordered set to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier.
In an alternative implementation, the index calculation state includes a state in which index calculation is performed and a state in which index calculation is not performed.
In an optional implementation, the target service index includes at least one service index of a timing service index, a counting service index and a sum service index.
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also 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.
Since the implementation manner and the beneficial effects of the problem solving of each device of the electronic device in the foregoing embodiment can be implemented by referring to each step in the embodiment shown in fig. 1, detailed working processes and beneficial effects of the electronic device provided by the embodiment of the present invention are not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the method for calculating a service index in any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, make the computer execute the method for calculating the business index in any one of the above embodiments.
As will be appreciated by one of skill in the art, the embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present embodiments have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include such modifications and variations.

Claims (10)

1. A method for calculating a service index, the method comprising:
acquiring service data of a target service system according to a received service index calculation request sent by the target service system, wherein the service index calculation request comprises a target service index to be calculated and a time period to be calculated, and the service data comprises a service object identifier of a service object and corresponding service behavior information;
analyzing the service behavior information according to a preset analysis rule of a target service index to obtain event information to be calculated corresponding to the target service index;
according to a preset calculation rule of a target service index, calculating the set of the event information to be calculated in the time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier;
and sending a service index calculation response to the target service system, wherein the index calculation response comprises a calculation result of the target service index corresponding to the service object identifier.
2. The method of claim 1, wherein the event information to be computed includes an event occurrence time to be computed and an event state to be computed;
according to a preset calculation rule of a target service index, calculating the set of the event information to be calculated in the time period to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier, wherein the calculation result comprises the following steps:
according to a preset calculation rule of a target service index, determining an index calculation state corresponding to an event state to be calculated in the event information to be calculated and an effective calculation time period corresponding to the index calculation state;
and calculating the set of the event information to be calculated in the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain the calculation result of the target service index corresponding to the service object identifier.
3. The method of claim 2, wherein before the calculating the set of event information to be calculated in the time period to be calculated according to the calculation rule of the preset target business index, the method further comprises:
and acquiring an ordered set of event information to be calculated corresponding to the target service index in a preset time period according to the time sequence of the event occurrence time.
4. The method of claim 3, wherein obtaining the calculation result of the target business indicator corresponding to the business object identifier comprises:
integrating the ordered set of the event information to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated to obtain an ordered set of the index event to be calculated corresponding to the service object identifier;
and calculating the index event ordered set to be calculated to obtain a calculation result of the target service index corresponding to the service object identifier.
5. The method of claim 2, wherein the index calculation state includes a state in which index calculation is performed and a state in which index calculation is not performed.
6. The method of claim 1, wherein the target business indicator comprises at least one of a timing-like business indicator, a count-like business indicator, and a sum-of-money-like business indicator.
7. An apparatus for calculating a business indicator, the apparatus comprising: the device comprises an acquisition unit, an analysis unit, a calculation unit and a sending unit;
the acquiring unit is used for acquiring service data of a target service system according to a received service index calculation request sent by the target service system, wherein the service index calculation request comprises a target service index to be calculated and a time period to be calculated, and the service data comprises a service object identifier of a service object and corresponding service behavior information;
the analysis unit is used for analyzing the business behavior information according to a preset analysis rule of a target business index to obtain event information to be calculated corresponding to the target business index;
the calculation unit is configured to calculate, according to a preset calculation rule of a target service index, a set of the event information to be calculated within the time period to be calculated, so as to obtain a calculation result of the target service index corresponding to the service object identifier;
the sending unit is configured to send a service index calculation response to the target service system, where the index calculation response includes a calculation result of the target service index corresponding to the service object identifier.
8. The apparatus of claim 7, wherein the event information to be computed comprises an event occurrence time to be computed and an event status to be computed;
the computing unit is specifically configured to determine an index computation state corresponding to an event state to be computed in the event information to be computed and an effective computation time period corresponding to the index computation state according to a preset computation rule of a target service index;
and calculating a set of the event information to be calculated in the time period to be calculated according to the index calculation state corresponding to the event state to be calculated, the effective calculation time period corresponding to the index calculation state and the occurrence time of the event to be calculated, so as to obtain a calculation result of the target service index corresponding to the service object identifier.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202010452330.XA 2020-05-26 2020-05-26 Method and device for calculating service index Active CN111652486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010452330.XA CN111652486B (en) 2020-05-26 2020-05-26 Method and device for calculating service index

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010452330.XA CN111652486B (en) 2020-05-26 2020-05-26 Method and device for calculating service index

Publications (2)

Publication Number Publication Date
CN111652486A CN111652486A (en) 2020-09-11
CN111652486B true CN111652486B (en) 2022-05-20

Family

ID=72343041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010452330.XA Active CN111652486B (en) 2020-05-26 2020-05-26 Method and device for calculating service index

Country Status (1)

Country Link
CN (1) CN111652486B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379208B (en) * 2021-05-28 2023-05-23 同盾科技有限公司 Index calculation method, apparatus and readable storage medium
CN113360757A (en) * 2021-06-04 2021-09-07 中国科学院计算机网络信息中心 Method and device for measuring influence of event on target service

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9141942B2 (en) * 2012-09-05 2015-09-22 International Business Machines Corporation Event scheduler based on real-time analytics and business rules
CN106899666B (en) * 2017-02-21 2019-12-24 阿里巴巴集团控股有限公司 Data processing method and device for service identification
CN110990415A (en) * 2019-11-14 2020-04-10 锐捷网络股份有限公司 Data processing method and device, electronic equipment and storage medium
CN111026797A (en) * 2019-12-02 2020-04-17 卫盈联信息技术(深圳)有限公司 Service data processing method, server and storage medium

Also Published As

Publication number Publication date
CN111652486A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111652486B (en) Method and device for calculating service index
CN106682906B (en) Risk identification and service processing method and equipment
CN111641702A (en) Heartbeat message management method and device
CN105183543A (en) Crowd-sourcing calculation online task allocation method based on mobile social network
CN112650790A (en) Target point cloud plane determining method and device, electronic equipment and storage medium
CN109559149A (en) A kind of flow identifying processing method and device
CN109740066B (en) Information recommendation method, information recommendation device, storage medium and electronic equipment
CN113037510A (en) Charging method, charging device and computer readable storage medium
CN104599161A (en) Method and device for pricing orders based on GPS (global positioning system) coordinate points of client
CN110297948B (en) Relational network construction method and device
CN117336723A (en) User identification card issuing control method and device, electronic equipment and storage medium
CN110969887A (en) Vehicle data acquisition method and device, electronic equipment and medium
CN108632054B (en) Information transmission quantity prediction method and device
CN115795097A (en) Data processing method and device based on XML (extensive Makeup language) logic rule
CN111181875A (en) Bandwidth adjusting method and device
CN115567448A (en) Flow control method, flow control device, flow control apparatus, flow control medium, and program product
CN112488825A (en) Object transaction method and device based on block chain
CN112565376B (en) Object placing method and device, terminal equipment and storage medium
CN111651637B (en) Service data management method and device
CN111291019B (en) Similarity discrimination method and device for data model
CN109615921B (en) Virtual parking lot dividing method and related products
CN111222048A (en) User number query calculation method and device, electronic equipment and storage medium
CN111367634A (en) Information processing method, information processing device and terminal equipment
CN108243399B (en) Method and device for realizing flow-free charging
CN106875218B (en) Price prediction method and device for data flow product

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