Summary of the invention
In view of this, this specification one or more embodiment provides a kind of method for obtaining business scenario time series data
And device, computer equipment and computer readable storage medium.
To achieve the above object, this specification one or more embodiment, which provides, a kind of obtains business scenario timing
Method, applied to the operation system of executable multiple business process, each operation flow includes at least one business scenario;It is described
Method is executed by the terminal device of the operation system, comprising:
The data for multiple business scenarios that target service process includes are obtained, the data of the business scenario include business field
The mark of scape, the time series data of business scenario and business action parameter data;
The business action parameter data that data based on the multiple business scenario include, it is special according to preset business factor
Value indicative computation rule is calculated to obtain the corresponding business factor characteristic value of the multiple business scenario;
Time series data based on the multiple business scenario obtains the multiple business scenarios mark chronologically arranged and multiple
Business factor characteristic value.
In the another embodiment shown, the method, further includes:
Based on the multiple business factor characteristic value, judge in the target service process according to the described more of timing generation
It is special whether a business factor characteristic value matches the existing multiple business factors occurred according to timing of business scenario time series database
Value indicative;
If not, the multiple business scenarios chronologically arranged are identified business corresponding with the multiple business scenario
Element characteristic value is included into the business scenario time series database.
In the another embodiment shown, the method, further includes:
Scene map is generated based on the multiple business scenarios mark chronologically arranged.
In the another embodiment shown, the data for obtaining multiple business scenarios that target service process includes,
Include:
Line service process is recorded in obtain the data of online business scenario, the data of the online business scenario further include
The identification code of operation flow where business scenario;
Based on the identification code of target service process, multiple business scenario data that target service process includes are obtained.
In the another embodiment shown, the line service process that is recorded in obtain the data of online business scenario,
It include: that line service process is recorded in obtain the data of online business scenario by awatch tool.
In the another embodiment shown, the operation system is e-commerce system;The target service process is
Electronic commerce affair process.
Correspondingly, this specification additionally provides a kind of device for obtaining business scenario time series data, is applied to executable more
The operation system of kind operation flow, every kind of operation flow includes at least one business scenario;Described device is applied to the business
The terminal of system, comprising:
Acquiring unit, for obtaining the data for multiple business scenarios that target service process includes, the business scenario
Data include the mark of business scenario, the time series data of business scenario and business action parameter data;
Computing unit, for the business action parameter data that the data based on the multiple business scenario include, according to pre-
If business factor characteristic value computation rule calculate to obtain the corresponding business factor characteristic value of the multiple business scenario;
The acquiring unit is further used for what the time series data acquisition based on the multiple business scenario chronologically arranged
Multiple business scenario marks and multiple business factor characteristic values.
In the another embodiment shown, the device, further includes:
Judging unit, for be based on the multiple business factor characteristic value, judge in the target service process according to when
Sequence occur the multiple business factor characteristic value whether match business scenario time series database it is existing according to timing occur
Multiple business factor characteristic values;
Unit is included, for the multiple business scenarios mark chronologically arranged is corresponding with the multiple business scenario
Business factor characteristic value include into the business scenario time series database.
In the another embodiment shown, the device, further includes:
Generation unit, for generating scene map based on the multiple business scenarios mark chronologically arranged.
In the another embodiment shown, the acquiring unit is further used for:
Line service process is recorded in obtain the data of online business scenario, the data of the online business scenario further include
The identification code of operation flow where business scenario;
Based on the identification code of target service process, multiple business scenario data that target service process includes are obtained.
In the another embodiment shown, the line service process that is recorded in obtain the data of online business scenario,
It include: that line service process is recorded in obtain the data of online business scenario by awatch tool.
In the another embodiment shown, the operation system is e-commerce system;The target service process is
Electronic commerce affair process.
Correspondingly, this specification additionally provides a kind of computer equipment, comprising: memory and processor;The memory
On be stored with the computer program that can be run by the processor;When the processor runs the computer program, in execution
State the method that business scenario time series data is obtained performed by the terminal device of operation system.
Correspondingly, this specification additionally provides a kind of computer readable storage medium, is stored thereon with computer program, institute
When stating computer program and being run by processor, acquisition business scenario timing performed by the terminal device of above-mentioned operation system is executed
The method of data.
Based on technical solution listed above, it can be seen that the side for the acquisition business scenario time series data that this specification proposes
Method, by preset calculating or matching rule, the business scenario to include in operation flow has matched corresponding business and wants
Plain characteristic value, and it is different to define and distinguish based on the multiple business factor characteristic values with timing for including in operation flow
Operation flow is compared to establish and expand the business scenario time series data for including in business scenario time series database
The existing method for obtaining the corresponding business scenario time series data of operation flow by manual identified, improves business scenario timing
The acquisition accuracy and acquisition efficiency of data.
Specific embodiment
Here illustrative embodiments will be illustrated in detail, the example is illustrated in the accompanying drawings.Following description relates to
And when attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary is implemented
Embodiment described in mode does not represent all embodiment party consistent with this specification one or more embodiment
Formula.On the contrary, they are only some with the one or more embodiments of as detailed in the attached claim, this specification
The example of the consistent device and method of aspect.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments is held
The step of row correlation method.In some other implementations, step included by method can be than described by this specification
It is more or less.In addition, single step described in this specification, may be broken down into multiple in other embodiments
Step is described;And multiple steps described in this specification, it may also be merged into other embodiments single
Step is described.
Fig. 1 is a kind of flow chart of the method for acquisition business scenario timing that an illustrative embodiments provide.It is applied to
The operation system of executable multiple business process, each operation flow are corresponding at least one business scenario.
The embodiment that this specification provides does not limit the concrete application field of above-mentioned operation system, the technology of this field
Personnel can from specific business demand, by the method for the acquisition business scenario timing that this specification provides be applied to it is various can
The business scope of energy, such as e-commerce, finance financing, social entertainment.
The operation flow that operation system executes includes the purchase at least one business scenario, such as electronic commerce affair platform
Object operation flow may include creation and pay invoice, seller's delivery, buyer receive, four business scenarios of reimbursement after sale;For
The shopping service process of not returnable commodity may be only comprising creation and pay invoice, the business that seller delivers, buyer receives
Scene;And for the shopping service process of certain special commodity in addition to aforementioned four business scenario, it can also be including other more
More business scenarios, such as commodity are supported value application.
With the update iteration of operation system, operation flow more may be refined or be complicated: an original business
Scene can be extended to multiple new business scenarios more refined;Operation system can execute new operation flow, and newly
Operation flow may include the new business scenario that original operation flow does not include, or the new timing comprising original business scenario.
Therefore getting the corresponding business scenario timing of operation flow has important meaning for the exploitation of operation system or test.
As shown in Figure 1, obtaining the method for business scenario timing provided by present embodiment by the end of above-mentioned operation system
End equipment executes.The terminal device of above-mentioned operation system may include the service terminal (service server) or business of operation system
Exploitation test terminal (testing service device) of system etc. can get the terminal device of the business datum of operation system.This method tool
Body includes:
Step 102, the data for multiple business scenarios that target service process includes, the data packet of the business scenario are obtained
Include the mark of business scenario, the time series data of business scenario and business action parameter data.
The mark of business scenario described in above embodiment may include to identification service scene title, coding or its
He can play the data of mark action;The time series data of business scenario described in above embodiment may include target service process
The execution order number for the multiple business scenarios for being included or execution timestamp etc. can demarcate the data of timing;Above-mentioned implementation
Business action parameter data described in mode include needed for executing multiple business scenarios that above-mentioned target service process is included
The data such as business action invocation interface parameters, business input and output parameter, can pass through the execution day of above-mentioned target service process
Will and obtain.
In the another embodiment shown, the data for multiple business scenarios that above-mentioned acquisition target service process includes,
It include: to record the on-line traffic journey of the operation system to obtain the data of online business scenario, the number of the business scenario
According to the identification code for further including operation flow where the business scenario;Based on the identification code of target service process, target industry is obtained
The data for multiple business scenarios that business process includes.
The operation flow that the content calls tool such as awatch recoding service system of operation system can be selected to execute online,
To obtain the data for multiple business scenarios that the above-mentioned operation flow executed online includes;Due to the above-mentioned business executed online
Process can be an operation flow, or (operation system can usually be performed simultaneously multiple Business Streams to multiple operation flows
Journey, as e-commerce website can be performed simultaneously the shopping process of multiple users), therefore the identification code based on target service process,
Multiple business scenario data of available target service process.
The identification code of above-mentioned target service process refers to that the data of each business scenario of target service process include
, coding to demarcate above-mentioned target service process, for example, the user in electronic commerce affair system buys cargo process institute
Including such as user place an order purchase, seller's delivery, buyer receives in business scenario, may include order number or business number etc.
Identification code connects all business scenarios for belonging to same operation flow.
Step 104, the business action parameter data that the data based on the multiple business scenario include, according to preset industry
The calculating of element characteristic value computation rule be engaged in obtain the corresponding business factor characteristic value of the multiple business scenario.
Business factor characteristic value described in above embodiment is the business action parameter based on business scenario and calculates and obtains
The characteristic value obtained;Those skilled in the art can be designed that various businesses element characteristic value computation rule, in the present specification
It is not construed as limiting.In the various embodiments provided by this specification, business factor characteristic value is to identification service scene
Characteristic value (rather than mark of business scenario), business factor characteristic value is different, then business scenario is different.Therefore operation system into
When row updates or upgrades iteration, for equally identifying the business scenario of (title that the mark is considered as business scenario), due to
Its business motion interface called when specifically executing enters to join the corresponding change of ginseng generation out, then its corresponding business factor is special
Value indicative may change, and the business scenario should be considered as new business scenario in this way.
Step 106, the time series data based on the multiple business scenario obtains the multiple business scenario marks chronologically arranged
Know and multiple business factor characteristic values.
By the time series data of above-mentioned multiple business scenarios, such as timestamp can obtain holding for above-mentioned multiple business scenarios
Row sequence, to obtain the multiple business scenarios mark chronologically arranged.It is worth noting that, this specification does not limit step
104 with the execution sequencing of step 106.
In the method for the acquisition business scenario timing that above embodiment provides, pass through preset business factor characteristic value
Computation rule is calculated to obtain the corresponding business factor characteristic value of multiple business scenarios that target service process includes, and is wanted with business
Plain characteristic value is as the mark for differentiating business scenario;Moreover, the business factor characteristic value is and specifically executes in business scenario
Business action parameter is associated, can determine the business factor characteristic value based on the specific executive mode of business movement;To
Based on preset computation rule, the execution profile of business scenario has been directly obtained, has been eliminated through manual identified business scenario simultaneously
The step of obtaining different business scene timing improves the acquisition accuracy rate of business scenario time series data and obtains efficiency.
In the another embodiment shown, ordinal number when having business scenario corresponding with operation flow is established in operation system
According to library, above-mentioned database, which is used to store, has the business scenario timing that operation flow is included in the operation system.This field
Technical staff is, it should be understood that concluding the corresponding business scenario time series data of operation flow into above-mentioned business scenario time series database becomes
Operation system develops tester and is developing or testing the important process in operation system.
Therefore, as shown in Figure 1, present embodiment further include:
Step 108, it is based on the multiple business factor characteristic value, judges to occur in the target service process according to timing
The multiple business factor characteristic value whether match business scenario time series database it is existing according to timing occur multiple industry
Business element characteristic value;
Step 110, if not, by the multiple business scenarios mark chronologically arranged and the multiple business scenario pair
The business factor characteristic value answered is included into the business scenario time series database.
In the present embodiment, special by the way that the multiple business scenarios chronologically arranged are identified business factor corresponding with its
Value indicative is included into business scenario time series database, can expand the scene of operation system with the update or upgrading of operation system
Time series database.
In the another embodiment shown, as shown in Figure 1, the method for above-mentioned acquisition business scenario timing may also include step
Rapid 112, scene map is generated based on the multiple business scenarios mark chronologically arranged.
Scene map is the graph-based for the multiple business scenarios that will chronologically occur, for example, can for it is above-mentioned chronologically
The mark reference number of the multiple business scenarios occurred, with more convenient above-mentioned multiple business fields chronologically occurred of display
Scape.
In order to make it easy to understand, below to obtain the business field in commodity reimbursement operation flow in electronic commerce affair system
For scape time series data, the technical solution of this specification is described in detail.Fig. 2 is one that an illustrative embodiments provide
Kind obtains the schematic diagram of the business scenario time series data in commodity reimbursement operation flow in electronic commerce affair system.Such as Fig. 2
It is shown, it is assumed that user A has purchased the end article of user B on e-commerce platform, and initiates reimbursement to the end article and move back
Goods.Wherein, " user " in this specification can show as logged in user account, and the user account can actually belong to
In individual or entity, this specification is limited not to this.
As shown in Fig. 2, the commodity reimbursement occurred between acquisition user A and user B performed by electronic commerce affair system
The method of business scenario timing included by operation flow, comprising:
Step 201, the on-line traffic journey of above-mentioned e-commerce platform is recorded by awatch tool to obtain online industry
The data for scene of being engaged in.The on-line traffic journey of electronic commerce affair system may include the multiple business process of multiple users, therefore,
Time series data and business action parameter of the data of above-mentioned online business scenario in addition to mark, business scenario including business scenario
Except, it further include the identification code of operation flow where the business scenario.
Step 202, based on the commodity reimbursement operation flow (i.e. target service process) occurred between user A and user B
Identification code obtains the multiple business scenario data for including in the target service process.
For example, obtaining above-mentioned target service process includes based on user A in the O/No. of seller user B purchase commodity
Multiple business scenario data, such as: scene 1 --- the lower single scene of user A payment, scene 2 --- user B delivers scene, scene
3 --- user A initiates return of goods scene, scene 4 --- and user B executes reimbursement scene.The data of above-mentioned multiple business scenarios can wrap
It includes, mark (such as scene 1, scene 2, scene 3, scene 4), time series data (such as above-mentioned 4 business of business scenario of business scenario
The execution timestamp of scene) and business action parameter.
Above-mentioned business action parameter data include electronic commerce affair system required calling when executing above-mentioned each scene
Business motion interface parameter, the input data such as parameter or output parameter.Awatch tool can be based on operation flow on the line of recording
Data, the business motion interface of operation system calls topological relation when obtaining specific execution business scenario, to be based on the calling
Topological relation gets above-mentioned business motion interface parameter, the input data such as parameter or output parameter.
Step 203, the business action parameter data that the data based on the multiple business scenario include, according to preset industry
The calculating of element characteristic value computation rule be engaged in obtain the corresponding business factor characteristic value of the multiple business scenario.
In the present embodiment, it is computed, the business factor characteristic value of scene 1 to scene 4 is respectively 10,20,30,40.Value
It obtains it is noted that unified business factor characteristic value computation rule can be used in same operation system, so that the business factor
The absolute value of characteristic value has comparable referring to meaning;In addition, in some concrete practices for obtaining business factor characteristic value, it can
The calculating for directly removing the business factor characteristic value of business scenario to some no business action invocations from, without by these business fields
Scape executes the object of timing as arrangement business, that is, saves the timing acquisition to these business scenarios or arrangement.
Step 204, it is special to obtain the multiple business factors chronologically arranged for the time series data based on the multiple business scenario
The mark of value indicative mark and multiple business scenarios.
In the present embodiment, according to the business time of origin of scene 1 to scene 4 stab, get chronologically arrange it is multiple
The mark of business scenario and the corresponding business factor characteristic value of multiple business scenario: 10 (scene 1) > 20 (scene 20) > 30 (fields
Scape 3) > 40 (scenes 4).
Step 205, judge in the target service process according to timing occur the multiple business factor characteristic value be
The no existing multiple business factor characteristic values occurred according to timing of matching business scenario time series database.
Whether judge in business scenario time series database comprising according to 10 > 20 > 30 > 40 tactic business factor features
Value.
Step 206, if not, by the multiple business scenarios mark chronologically arranged and the multiple business scenario pair
The business factor characteristic value answered is included into the business scenario time series database.
If not, by the data corresponding relationship of 10 (scene 1) > 20 (scene 20) > 30 (scene 3) > 40 (scene 4) include to
Above-mentioned business scenario time series database, to supplement the business timing content of above-mentioned business scenario time series database.
Step 207, scene map is generated based on the multiple business scenarios mark chronologically arranged.
In the present embodiment, scene map independent as shown in Fig. 3 (a) is produced;It may be based on existing scene figure
Spectrum, raw scene map compound as shown in Fig. 3 (b), is not construed as limiting in the present specification.
With the realization of above-mentioned process corresponding, the embodiment of this specification, which additionally provides, a kind of obtains business scenario time series data
Device 40.Device 40 can also be realized by software realization by way of hardware or software and hardware combining.With software reality
It is CPU (Central Process Unit, the central processing by place equipment as the device on logical meaning for existing
Device) by corresponding computer program instructions be read into memory operation formed.For hardware view, in addition to shown in fig. 5
Except CPU, memory and memory, the equipment where above-mentioned apparatus also typically includes the chip for carrying out wireless signal transmitting-receiving
Deng other hardware, and/or for realizing other hardware such as board of network communicating function.
As shown in figure 4, this specification additionally provides a kind of device 40 for obtaining business scenario time series data, applied to can hold
The operation system of row multiple business process, every kind of operation flow include at least one business scenario;Described device is applied to described
The terminal of operation system, comprising:
Acquiring unit 402, for obtaining the data for multiple business scenarios that target service process includes, the business scenario
Data include the mark of business scenario, the time series data of business scenario and business action parameter data;
Computing unit 404, for the business action parameter data that the data based on the multiple business scenario include, according to
Preset business factor characteristic value computation rule is calculated to obtain the corresponding business factor characteristic value of the multiple business scenario;
The acquiring unit 402 is further used for the time series data acquisition based on the multiple business scenario and chronologically arranges
Multiple business scenarios mark of column and multiple business factor characteristic values.
In the another embodiment shown, the device 40 further include:
Judging unit 406, for be based on the multiple business factor characteristic value, judge in the target service process according to
Whether the multiple business factor characteristic value that timing occurs matches that business scenario time series database is existing to be occurred according to timing
Multiple business factor characteristic values;
Unit 408 is included, for identifying the multiple business scenarios chronologically arranged and the multiple business scenario
Corresponding business factor characteristic value is included into the business scenario time series database.
In the another embodiment shown, the device 40 further include:
Generation unit 410, for generating scene map based on the multiple business scenarios mark chronologically arranged.
In the another embodiment shown, the acquiring unit 402 is further used for:
Line service process is recorded in obtain the data of online business scenario, the data of the online business scenario further include
The identification code of operation flow where business scenario;
Based on the identification code of target service process, multiple business scenario data that target service process includes are obtained.
In the another embodiment shown, the line service process that is recorded in obtain the data of online business scenario,
It include: that line service process is recorded in obtain the data of online business scenario by awatch tool.
In the another embodiment shown, the operation system is e-commerce system;The target service process is
Electronic commerce affair process.
The function of each unit and the realization process of effect are specifically detailed in the terminal of above-mentioned operation system in above-mentioned apparatus 40
The realization process that step is corresponded in the method for business scenario time series data is obtained performed by equipment, related place is referring to method reality
The part explanation of example is applied, details are not described herein.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics mould
Block, it can it is in one place, or may be distributed on multiple network modules.It can be selected according to the actual needs
In some or all of unit or module realize the purpose of this specification scheme.Those of ordinary skill in the art are not paying
In the case where creative work, it can understand and implement.
Device that above-described embodiment illustrates, unit, module can specifically be realized, Huo Zheyou by computer chip or entity
Product with certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be a
People's computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation
It is any several in equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of kind equipment.
Corresponding with above method embodiment, the embodiment of this specification additionally provides a kind of computer equipment, such as Fig. 5 institute
Show, which includes memory and processor.Wherein, the computer that can be run by processor is stored on memory
Program;In the computer program of operation storage, the terminal for executing above-mentioned operation system in this specification embodiment is set processor
Each step of the method for standby performed acquisition business scenario time series data.Performed by terminal device to above-mentioned operation system
Acquisition business scenario time series data method each step detailed description refer to before content, be not repeated.
Corresponding with above method embodiment, the embodiment of this specification additionally provides a kind of computer-readable storage medium
Matter is stored with computer program on the storage medium, and it is real to execute this specification when being run by processor for these computer programs
Apply each step for obtaining the method for business scenario time series data in example performed by the terminal device of above-mentioned operation system.To upper
The detailed description for stating each step of method that business scenario time series data is obtained performed by the terminal device of operation system is asked
Referring to content before, it is not repeated.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification
Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection
Within enclosing.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or
Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to
Herein defines, and computer-readable medium does not include temporary computer readable media (transitory media), such as modulation
Data-signal and carrier wave.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program
Product.Therefore, the embodiment of this specification can be used complete hardware embodiment, complete software embodiment or combine software and hardware side
The form of the embodiment in face.Moreover, it wherein includes that computer is available that the embodiment of this specification, which can be used in one or more,
It is real in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form for the computer program product applied.