CN110362627A - Based on the business diagnosis method and device of block chain, electronic equipment, storage medium - Google Patents
Based on the business diagnosis method and device of block chain, electronic equipment, storage medium Download PDFInfo
- Publication number
- CN110362627A CN110362627A CN201910527456.6A CN201910527456A CN110362627A CN 110362627 A CN110362627 A CN 110362627A CN 201910527456 A CN201910527456 A CN 201910527456A CN 110362627 A CN110362627 A CN 110362627A
- Authority
- CN
- China
- Prior art keywords
- data
- business datum
- block chain
- historical data
- business
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000003860 storage Methods 0.000 title claims abstract description 31
- 238000003745 diagnosis Methods 0.000 title claims abstract description 30
- 241001269238 Data Species 0.000 claims description 13
- 230000002159 abnormal effect Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 11
- 230000032258 transport Effects 0.000 description 7
- 238000007726 management method Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 241000196324 Embryophyta Species 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 238000012935 Averaging Methods 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013481 data capture Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Present disclose provides a kind of business diagnosis method based on block chain, the task analyzer based on block chain, electronic equipment and computer readable storage mediums, belong to field of computer technology.This method comprises: obtaining business datum to be analyzed;The corresponding historical data of the business datum is obtained from block chain, and traffic criteria data are determined based on the historical data;Judge whether the business datum is normal according to the traffic criteria data;The business datum is written in the block chain.The disclosure can improve the objectivity of business diagnosis, improve precision of analysis.
Description
Technical field
This disclosure relates to block chain technical field more particularly to a kind of business diagnosis method based on block chain, be based on area
Task analyzer, electronic equipment and the computer readable storage medium of block chain.
Background technique
Business diagnosis is a job of the daily progress of enterprises, and the purpose is to the unreasonable place of the business of searching, optimizations
Operation flow, therefore have great importance.Existing business diagnosis method still more dependent on artificial analysis, is being collected
It is whether reasonable according to each business datum of artificial micro-judgment after business datum.Therefore, this method is inevitably by work people
The subjectivity of member influences, and not can guarantee the objectivity of business diagnosis, causes analysis result accuracy lower, influences operational decision making.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Present disclose provides a kind of business diagnosis methods based on block chain, the task analyzer based on block chain, electricity
Sub- equipment and computer readable storage medium, and then overcome existing business diagnosis methods and results accurate at least to a certain extent
The lower problem of property.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure
Practice and acquistion.
According to one aspect of the disclosure, a kind of business diagnosis method based on block chain is provided, comprising: obtain to be analyzed
Business datum;The corresponding historical data of the business datum is obtained from block chain, and industry is determined based on the historical data
Business normal data;Judge whether the business datum is normal according to the traffic criteria data;Institute is written into the business datum
It states in block chain.
In a kind of exemplary embodiment of the disclosure, the business datum includes the business datum of multiple classs of service;
It is described that the corresponding historical data of the business datum is obtained from block chain, and traffic criteria number is determined based on the historical data
According to, comprising: determine target service classification belonging to the business datum;Going through for the target service classification is obtained from block chain
History data, and determine based on the historical data of the target service classification traffic criteria data of the target service classification;Institute
It states according to the traffic criteria data judge whether the business datum is normal, comprising: according to the industry of the target service classification
Business normal data judges whether the business datum is normal.
In a kind of exemplary embodiment of the disclosure, the described business datum is written in the block chain includes:
Based on the judging result to the business datum, the business datum is marked, the label is for indicating the business
Data are normal or abnormal;It is written the business datum after label as new historical data in the block chain.
It is described that the corresponding history of the business datum is obtained from block chain in a kind of exemplary embodiment of the disclosure
Data, and determine that traffic criteria data include: to obtain each business datum from block chain to correspond to based on the historical data
Multiple labels be historical data;It is historical data according to the multiple label, determines the traffic criteria
Data.
In a kind of exemplary embodiment of the disclosure, it is described according to it is the multiple label be historical data, really
The fixed traffic criteria data.Obtaining multiple labels in preset time is historical data, and the multiple label is positive
The weighted average of normal historical data is determined as the traffic criteria data.
It is described to judge the business datum according to the traffic criteria data in a kind of exemplary embodiment of the disclosure
It whether normally include: to determine regime values range according to the traffic criteria data;Judge whether the business datum exceeds institute
State regime values range.
In a kind of exemplary embodiment of the disclosure, described that each business datum is obtained from block chain is corresponding more
A historical data, and it is based on the multiple historical data, determine that traffic criteria data include: that the business is obtained from block chain
The corresponding multiple historical datas of data, using the weighted average of the multiple historical data as the traffic criteria data.
According to one aspect of the disclosure, a kind of task analyzer based on block chain is provided, comprising: data acquisition mould
Block, for obtaining business datum to be analyzed;Standard determining module, it is corresponding for obtaining the business datum from block chain
Historical data, and traffic criteria data are determined based on the historical data;Data judgment module, for according to the traffic criteria
Data judge whether the business datum is normal;Data write. module, for the business datum to be written in the block chain.
In a kind of exemplary embodiment of the disclosure, the business datum includes the business datum of multiple classs of service;
Standard determining module, comprising: classification determination unit, for determining target service classification belonging to the business datum;Data obtain
Unit is taken, for obtaining the historical data of the target service classification from block chain, and based on the target service classification
Historical data determines the traffic criteria data of the target service classification;Data judgment module is used for according to the target service class
Other traffic criteria data judge whether the business datum is normal.
In a kind of exemplary embodiment of the disclosure, Data write. module, comprising: marking unit, for based on to institute
The business datum is marked in the judging result for stating business datum, and the label is for indicating that the business datum is positive
It is often or abnormal;Writing unit is written in the block chain for the business datum after marking as new historical data.
In a kind of exemplary embodiment of the disclosure, standard determining module, comprising: normal data acquiring unit is used for
It is historical data that the corresponding multiple labels of each business datum are obtained from block chain;Data determination unit is used for
It is historical data according to the multiple label, determines the traffic criteria data.
In a kind of exemplary embodiment of the disclosure, data determination unit can be used for obtaining multiple marks in preset time
It is denoted as normal historical data, marks the weighted average for historical data to be determined as the business mark for the multiple
Quasi- data.
In a kind of exemplary embodiment of the disclosure, data judgment module, comprising: range determination unit is used for basis
The traffic criteria data determine regime values range;Range judging unit, for judging whether the business datum exceeds institute
State regime values range.
In a kind of exemplary embodiment of the disclosure, standard determining module, comprising: Data Computation Unit is used for from area
The corresponding multiple historical datas of the business datum are obtained in block chain, using the weighted average of the multiple historical data as institute
State traffic criteria data.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor;And memory, for storing
The executable instruction of the processor;Wherein, the processor is configured to above-mentioned to execute via the executable instruction is executed
Method described in any one.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with,
The computer program realizes method described in above-mentioned any one when being executed by processor.
The exemplary embodiment of the disclosure has the advantages that
Business datum to be analyzed is obtained, by obtaining the corresponding historical data of business datum from block chain, determines industry
Business normal data, and judge whether business datum is normal accordingly, finally business datum is written in block chain.On the one hand, pass through
Whether traffic criteria data analyze business datum normal, and traffic criteria data are determined based on historical data, are not necessarily to industry
Staff be engaged in business datum progress subjective judgement, enhances the objectivity and accuracy of business diagnosis, improves business point
Analyse efficiency;On the other hand, by block chain network storage service data, data are not in situations such as losing or distort, to guarantee
The authenticity of data, to make determining traffic criteria data that more there is reliability.
It should be understood that above general description and following details state be only it is exemplary and explanatory, can not
Limit the disclosure.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of system architecture diagram of running environment in the present exemplary embodiment;
Fig. 2 schematically shows a kind of flow chart of the business diagnosis method based on block chain in the present exemplary embodiment;
Fig. 3 schematically shows a kind of sub-process figure of the business diagnosis method based on block chain in the present exemplary embodiment;
Fig. 4 schematically shows a kind of structural block diagram of the task analyzer based on block chain in the present exemplary embodiment;
Fig. 5 schematically shows a kind of electronic equipment for realizing the above method in the present exemplary embodiment;
Fig. 6 schematically shows a kind of computer-readable storage medium for realizing the above method in the present exemplary embodiment
Matter.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
The exemplary embodiment of the disclosure provides firstly a kind of business diagnosis method based on block chain.
Fig. 1 shows the system architecture diagram of the exemplary embodiment running environment of the disclosure.Refering to what is shown in Fig. 1, the system
100 may include multiple member nodes 101, form block chain network 110.Block chain network 110 can be alliance's chain or privately owned
Chain, for storing and managing the relevant data of business of each member node 101, each member node, which can be, carries out various businesses master
The terminal or server of body, such as in logistics business, each site (can such as be distributed into website, transfer station inside logistics company
Point, sorting website or logistics branch company etc.) tissue be a block chain network, then the terminal of each site or server can be into
Member's node;It can be block chain network by each process flow tissue or in plant produced line, then each flow sheet equipment
Computer is member node etc..In one exemplary embodiment, system 100 can also include management node 102, can be about
The server of service management department (such as the department for planning as a whole each site in logistics company), management node 102 can be to undertake
It increases node 101 in block chain network 110 newly and carries out verification managerial role, or block chain is uploaded to each member node 101
The business datum of network 110 carries out necessity verification.
It should be appreciated that each interstitial content shown in FIG. 1 is merely exemplary, according to actual needs, arbitrary number can be set
Purpose member node 101, management node 102 are also possible to the cluster being made of multiple equipment, and the disclosure does not do special limit to this
It is fixed.
The application scenarios of the present exemplary embodiment include but is not limited to following examples: logistics company site is to current cargo
Transportation data analyzed, to optimize the forwarding of current destination;Or plant produced line is to the creation data of certain process
It is analyzed, whether the production business to confirm current process normal etc..
2 pairs of present exemplary embodiment are described further with reference to the accompanying drawing, as shown in Fig. 2, the business based on block chain
Analysis method may comprise steps of S210~S240:
Step S210 obtains business datum to be analyzed.
In the present exemplary embodiment, business datum be as unit of specific business tine, to original operational data into
Data obtained from row statistics, such as logistics company site are sent in part business, and initial time, the completion of part sends according to cargo
Time, what statistics obtained cargo sends the part time;In a certain node of plant produced line, according to the initial time of parts processed,
Deadline counts the processing time of part;Certainly, in some cases, can also using the original operational data in part as
Business datum, such as in the site of logistics company, the quantity of one day cargo that can be sent with charge free.Business datum is according to business tine
Difference have otherness, such as business datum can be the sorting time that site is respectively transported in loglstics enterprise, storage time or
Cargo treating capacity etc. transports data, can also be process time when each process operation of factory, generated time, performance test time
Etc. operational datas.
The executing subject of the present exemplary embodiment can be any member node in block chain, and each member node can be with
The business datum of itself carries out the business diagnosis about this member node as business datum to be analyzed.
The executing subject of the present exemplary embodiment is also possible to the member node for the execution business diagnosis specified in block chain
It is executed in (calling business diagnosis node in the following text), such as logistics company in the branch company or factory of business diagnosis and executes business diagnosis
Department etc., business diagnosis node can to some or all member nodes carry out business diagnosis, then step S210 can by with
Lower step is realized:
Business datum is obtained from the member node of block chain.
I.e. business diagnosis node can collect business datum from other member nodes, to carry out subsequent business diagnosis.It needs
It is noted that in this step, business datum can be sent to business diagnosis node by point-to-point mode, such as pass through
The forms such as mail, data-pushing are sent, i.e., business datum is sent not by block chain, these business datums also and not stored arrive
In block chain.
The executing subject of the present exemplary embodiment can also be the management node in block chain, and management node, which can play the part of, appoints
The role of meaning member node can also play the part of business diagnosis node using the business datum of itself as business datum to be analyzed
Role, business datum to be analyzed is obtained from other member nodes.
Step S220 obtains the corresponding historical data of business datum from block chain, and determines business based on historical data
Normal data.
In the present example embodiment, it can store business datum relevant to each member node business in block chain,
The stored business datum in block chain can be considered as historical data.Historical data and business datum are distinguished as, step S110
The business datum to be analyzed of middle acquisition is the data not being written currently in block chain, and historical data is to have been written into block chain
Business datum.The corresponding historical data business tine of business datum is identical, refers to and obtains and current business datum to be analyzed
Data with corresponding relationship, for example, correspondence can refer to that type of service is corresponding, such as business datum and historical data it is equal
For the transportation data etc. about forwarding, correspondingly, in step s 110 if what is obtained is transportation data, in step
Available historical data is then the historical data about transport in S120.The corresponding data source that can also refer to is corresponding, example
As there is multiple sites in logistics business, when obtaining the business datum of a certain site, corresponding historical data can be the site
Or with the data of its site with the same function etc., such as the area A sets that there are two sites, then when obtaining one of site
Business datum when, the historical data etc. of some or all of corresponding the two available sites of historical data.Business point
When analysis node obtains historical data from block chain, data signature technology can use to the data of other nodes write-in block chain
Verified, to confirm data accuracy, can specifically be related to hash function, be written the public key of the member node of data with
And private key of business diagnosis node etc..
In the present example embodiment, traffic criteria data can be by historical data is calculated one
Specific value, such as average to the historical data in a certain period, such as the sorting number that a sorting site current week is daily
Amount is 200,300,350,400,350,300,400, is averaged about 386 according to these data, it can makees 386
For the traffic criteria data for sorting business, traffic criteria data can also be determined according to the median of historical data.Traffic criteria
Data can also be the numberical range etc. determined according to historical data.The present exemplary embodiment can determine in several ways
Traffic criteria data, the disclosure are not specially limited this.
It should be noted that each member node of block chain can determine a traffic criteria number according to the business datum of itself
According to, can also be determined according to the business datum obtained from other member nodes, such as the area A set there are two sorting site A1,
Sorting data in the site A2, A1 according to itself can determine a traffic criteria data, can also be from the sorting data of the site A2
Middle one traffic criteria data of determination.
It particularly,, can also be to each history number when calculating traffic criteria data by averaging to multiple historical datas
According to different weights is arranged, in one exemplary embodiment, step S220 may include:
The corresponding multiple historical datas of business datum are obtained from block chain, and the weighted average of multiple historical datas is made
For traffic criteria data.It in the present example embodiment, can be by the way that multiple historical datas be weighted and averaged calculating, to obtain
To traffic criteria data, usual weight can reflect the significance level of each historical data, it is contemplated that as the time develops, data are more
It is new very fast, and most enterprise professional ability is in the development trend risen, therefore apart from current closer business datum with more ginseng
Examine value.Therefore, weight distribution can be carried out according to the write time of historical data, acquisition time, such as setting distance is currently
Time closer historical data weight with higher, time farther away historical data have lower weight etc..
Step S230 judges whether business datum is normal according to traffic criteria data.
In order to improve business datum reference value in practical applications, can by business datum be written block chain before,
Judgement whether carrying out normal to business datum on the basis of traffic criteria data.In the present example embodiment, it can calculate
Difference between business datum and traffic criteria data, by judging whether the difference reaches a preset threshold, if not up to
Preset threshold, it is believed that the business datum is normal, if reaching preset threshold, illustrates the business datum and traffic criteria data
Departure degree is excessive, may be abnormal business datum.
Furthermore, it is contemplated that the difference of data characteristics, when judging whether business datum is normal, method can be different.
In one exemplary embodiment, step S230 may comprise steps of:
Regime values range is determined according to traffic criteria data;
Judge whether business datum exceeds regime values range.
Wherein, regime values range is the error range that can permit under normal conditions, for whether judging business datum
Normally, it can be specifically configured, such as when judging the business datum about transport, be transported according to different data types
Overlong time or it is too short be likely to reflection data exception, but usually haulage time is too long, and a possibility that data exception is larger,
Therefore, if the traffic criteria data of transport are 24 hours, normal data range can be set to 7~36 hours, such as
Fruit business datum in the range, then judges that business datum is normal, exceeds the range, then judges business datum exception.Inhomogeneity
The traffic criteria data of type are different, and the determination of specific value range, the disclosure is not specially limited this.
It should be noted that judge whether business datum normally can be there are many mode according to traffic criteria data, ability
Other judgment methods that field technique personnel are contemplated that should also be as in the protection scope of the disclosure.
Business datum is written in block chain step S240.
In the present example embodiment, business datum is written in block sequentially in time, to be formed about business number
According to block chain.The business datum of write-in may include the information such as business datum attribute, time, so as to it is subsequent in block chain into
Row data search.When block chain is written in business datum, preset data treating capacity or pre-set business data time can be set.Specifically
For, it can be with the business datum amount of a collection of write area block chain, this preset data by the determination of preset data treating capacity
The specific value for the treatment of capacity can be determined according to the quantity for the data for allowing to be written block chain.For example, it is assumed that allowing to be written every time
The quantity of the business datum of block chain is 1000, then preset data treating capacity can be set smaller than 1000, such as 800, with full
Foot requires.Further, it is also possible to determine the business datum needed in same a collection of write area block chain by pre-set business data time.
Based on above description, in the present example embodiment, business datum to be analyzed is obtained, by obtaining from block chain
The corresponding historical data of business datum is taken, determines traffic criteria data, and judges whether business datum is normal accordingly, finally by industry
In data of being engaged in write-in block chain.On the one hand, whether normal by traffic criteria data analysis business datum, and traffic criteria data
It is then to be determined based on historical data, subjective judgement is carried out to business datum without operational staff, enhances business diagnosis
Objectivity and accuracy, improve business diagnosis efficiency;On the other hand, pass through block chain network storage service data, data
It is not in that situations such as losing or distort, ensure that the authenticity of data, so that determining traffic criteria data be made more to have
Reliability.
In one exemplary embodiment, above-mentioned business datum may include the business datum of multiple classs of service;Step
S220 may comprise steps of:
Step S310 determines target service classification belonging to business datum;
Step S320 obtains the historical data of target service classification, and going through based on target service classification from block chain
History data determine the traffic criteria data of target service classification;
Step S230 may include:
Step S330 judges whether business datum is normal according to the traffic criteria data of target service classification.
Wherein, class of service refers to that the type of business datum, such as the business datum of loglstics enterprise may include transport, remove
Transportation, storage such as deposits, takes care of, packing, loading and unloading, circulating at the data of plurality of classes, the business datum to be analyzed obtained in step S210
Classification be target service classification.The historical data with target service classification is obtained in block chain, in other words, as
Need to obtain the historical data that there is the same category with class of service in block chain, such as business datum is transportation data, then
Historical shipment data are obtained, business datum is storage data, then obtains history storage data etc..By business datum write area
Among block chain, when being stored as historical data, data attribute can be written for data, to mark the service class of historical data
Not.Based on the traffic criteria data that the historical data of target service classification determines, i.e. the determination of traffic criteria data depends on mesh
The historical data for marking class of service is in particular in which kind of data is historical data be, is indicated with any mode, traffic criteria
Data are then determined according to any mode of which kind of data.Such as business datum is transportation data, determining target industry
Classification of being engaged in is transport classification, indicates that the historical data of transport can have haulage time or freight volume, then if the history obtained
Data are the time, then traffic criteria data are then the haulage time determined according to historical data, if the historical data obtained is
Quantity, then traffic criteria data are to determine freight volume according to historical data.It specifically can be according to the classification of the historical data of acquisition
It is configured with data characteristics.Target service classification is different, and traffic criteria data are not also identical, in the present exemplary embodiment
In, according to the traffic criteria data under determining target service classification, it can be determined that whether business datum is normal.
In one exemplary embodiment, step S240 may comprise steps of:
Based on the judging result to business datum, business datum is marked, the label is for indicating business datum
It is normal or abnormal;
Using the business datum after label as in new historical data write-in block chain.
Wherein, the whether normal available judging result of business datum is judged according to step S230, result specifically can be with
Indicate that business datum is regular traffic data or abnormal traffic data.It can be with business datum to the mark information of business datum
It is written in block chain network together.The business datum that block chain is written will become new history data store among block chain,
It is considered that the corresponding historical data of the business datum obtained from block chain is dynamic change, constantly in step S220
It updates.Therefore, in the present example embodiment, the write-in Yu acquisition of business datum can be considered as the process of a closed loop, area
Block chain network is that present disclose provides a kind of data-storage systems.
In one exemplary embodiment, step S220 may comprise steps of:
It is historical data that the corresponding multiple labels of each business datum are obtained from block chain;
It is historical data according to multiple labels, determines traffic criteria data.
It, will if there is abnormal historical data in historical data in view of traffic criteria data dependence is in historical data
Traffic criteria data may be impacted.Whether can carrying out normal to the business datum of write-in block chain according to the above description
Label normal historical data can be obtained from block chain, for determining traffic criteria number in the present example embodiment
According to, keep determining traffic criteria data more efficient, have referential.
In one exemplary embodiment, it is above-mentioned according to it is multiple label be historical data, determine traffic criteria data
May include: obtain preset time in it is multiple label be historical data, mark multiple as historical data
Weighted average is determined as traffic criteria data.
If in view of write-in block chain data time gap current time farther out, current business mark may be will affect
The calculating of quasi- data, such as in logistics business, if means of transportation and route change, conevying efficiency is improved, such as
Fruit still uses time farther away historical data, then will affect the validity of current business normal data.Therefore, it can be set and obtain
Taking multiple labels in preset time is historical data, time or label further according to these historical datas write-in block chain
Time assigns weight for it, such as the closer historical data of time gap current time that block chain is written in setting data has
Higher weight, time farther away historical data have lower weight etc., so that the weighting for calculating these historical datas is flat
Mean value, to determine traffic criteria data.
The exemplary embodiment of the disclosure additionally provides a kind of task analyzer based on block chain.Referring to Fig. 4, the dress
Setting 400 may include, data acquisition module 410, for obtaining business datum to be analyzed;Standard determining module 420, for from
The corresponding historical data of business datum is obtained in block chain, and traffic criteria data are determined based on historical data;Data judge mould
Block 330, for judging whether business datum is normal according to traffic criteria data;Data write. module 340 is used for business datum
It is written in block chain.
In one exemplary embodiment, in a kind of exemplary embodiment of the disclosure, business datum may include multiple
The business datum of class of service;Standard determining module may include: classification determination unit, for determining belonging to business datum
Target service classification;Data capture unit for obtaining the historical data of target service classification from block chain, and is based on target
The historical data of class of service determines the traffic criteria data of target service classification;Data judgment module is used for according to target service
The traffic criteria data of classification judge whether business datum is normal.
In one exemplary embodiment, Data write. module may include: marking unit, for based on to business datum
Judging result, business datum is marked, label for indicate business datum be it is normal or abnormal;Writing unit is used for
Using the business datum after label as in new historical data write-in block chain.
In one exemplary embodiment, standard determining module may include: normal data acquiring unit, be used for from block
It is historical data that the corresponding multiple labels of each business datum are obtained in chain;Data determination unit, for according to multiple marks
It is denoted as normal historical data, determines traffic criteria data.
In one exemplary embodiment, data determination unit can be used for obtaining in preset time it is multiple label be
Historical data marks the weighted average for historical data to be determined as traffic criteria data for multiple.
In one exemplary embodiment, data judgment module may include: range determination unit, for according to business mark
Quasi- data determine regime values range;Range judging unit, for judging whether business datum exceeds regime values range.
In one exemplary embodiment, standard determining module may include: Data Computation Unit, for from block chain
The corresponding multiple historical datas of business datum are obtained, using the weighted average of multiple historical datas as traffic criteria data.
The detail of above-mentioned each module/unit has carried out detailed retouch in corresponding method section Example
It states, therefore details are not described herein again.
The exemplary embodiment of the disclosure additionally provides a kind of electronic equipment that can be realized the above method.
Person of ordinary skill in the field it is understood that various aspects of the disclosure can be implemented as system, method or
Program product.Therefore, various aspects of the disclosure can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 500 of this exemplary embodiment according to the disclosure is described referring to Fig. 5.What Fig. 5 was shown
Electronic equipment 500 is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection
The bus 530 of (including storage unit 520 and processing unit 510), display unit 540.
Wherein, storage unit is stored with program code, and program code can be executed with unit 510 processed, so that processing is single
Member 510 executes the step described in above-mentioned " illustrative methods " part of this specification according to the various illustrative embodiments of the disclosure
Suddenly.For example, processing unit 510 can execute step S210~S240 shown in Fig. 2, step shown in Fig. 3 can also be executed
S310~S330 etc..
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 521 and/or cache memory unit 522, it can further include read-only memory unit (ROM) 523.
Storage unit 520 can also include program/utility 524 with one group of (at least one) program module 525,
Such program module 525 includes but is not limited to: operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 500 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be with
By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to the exemplary implementation of the disclosure
The method of example.
The exemplary embodiment of the disclosure additionally provides a kind of computer readable storage medium, and being stored thereon with can be realized
The program product of this specification above method.In some possible embodiments, various aspects of the disclosure can also be realized
For a kind of form of program product comprising program code, when program product is run on the terminal device, program code is used for
Execute terminal device described in above-mentioned " illustrative methods " part of this specification according to the various exemplary embodiment party of the disclosure
The step of formula.
It is produced refering to what is shown in Fig. 6, describing the program according to the exemplary embodiment of the disclosure for realizing the above method
Product 600, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal
It is standby, such as run on PC.However, the program product of the disclosure is without being limited thereto, in this document, readable storage medium storing program for executing can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Program product can be using any combination of one or more readable mediums.Readable medium can be readable signal Jie
Matter or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or partly lead
System, device or the device of body, or any above combination.More specific example (the non exhaustive column of readable storage medium storing program for executing
Table) it include: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only storage
Device (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation program
Code, programming language include object oriented program language-Java, C++ etc., further include conventional process
Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user
It executes in equipment, partly execute on a user device, executing, as an independent software package partially in user calculating equipment
Upper part executes on a remote computing or executes in remote computing device or server completely.It is being related to remotely counting
In the situation for calculating equipment, remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of the processing according to included by the method for disclosure exemplary embodiment
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to an exemplary embodiment of the present disclosure, above-described two or
More multimode or the feature and function of unit can embody in a module or unit.Conversely, above-described one
A module or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.
Claims (10)
1. a kind of business diagnosis method based on block chain characterized by comprising
Obtain business datum to be analyzed;
The corresponding historical data of the business datum is obtained from block chain, and traffic criteria number is determined based on the historical data
According to;
Judge whether the business datum is normal according to the traffic criteria data;
The business datum is written in the block chain.
2. the method according to claim 1, wherein the business datum includes the business number of multiple classs of service
According to;
It is described that the corresponding historical data of the business datum is obtained from block chain, and business mark is determined based on the historical data
Quasi- data, comprising:
Determine target service classification belonging to the business datum;
The historical data of the target service classification, and the historical data based on the target service classification are obtained from block chain
Determine the traffic criteria data of the target service classification;
It is described to judge whether the business datum is normal according to the traffic criteria data, comprising:
Judge whether the business datum is normal according to the traffic criteria data of the target service classification.
3. the method according to claim 1, wherein the described business datum is written in the block chain is wrapped
It includes:
Based on the judging result to the business datum, the business datum is marked, the label is for indicating described
Business datum is normal or abnormal;
It is written the business datum after label as new historical data in the block chain.
4. according to the method described in claim 3, it is characterized in that, described to obtain the business datum from block chain corresponding
Historical data, and determine that traffic criteria data include: based on the historical data
It is historical data that the corresponding multiple labels of each business datum are obtained from block chain;
It is historical data according to the multiple label, determines the traffic criteria data.
5. according to the method described in claim 4, it is characterized in that, described mark according to the multiple as history number
According to determining the traffic criteria data.
Obtaining multiple labels in preset time is historical data, marks adding for historical data for the multiple
Weight average value is determined as the traffic criteria data.
6. the method according to claim 1, wherein described judge the business according to the traffic criteria data
Data whether normally include:
Regime values range is determined according to the traffic criteria data;
Judge whether the business datum exceeds the regime values range.
7. the method according to claim 1, wherein described obtain each business datum correspondence from block chain
Multiple historical datas, and be based on the multiple historical data, determine that traffic criteria data include:
The corresponding multiple historical datas of the business datum are obtained from block chain, by the weighted average of the multiple historical data
Value is used as the traffic criteria data.
8. a kind of task analyzer based on block chain characterized by comprising
Data acquisition module, for obtaining business datum to be analyzed;
Standard determining module for obtaining the corresponding historical data of the business datum from block chain, and is based on the history
Data determine traffic criteria data;
Data judgment module, for judging whether the business datum is normal according to the traffic criteria data;
Data write. module, for the business datum to be written in the block chain.
9. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to require 1-7 described in any item via executing the executable instruction and carry out perform claim
Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Claim 1-7 described in any item methods are realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910527456.6A CN110362627A (en) | 2019-06-18 | 2019-06-18 | Based on the business diagnosis method and device of block chain, electronic equipment, storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910527456.6A CN110362627A (en) | 2019-06-18 | 2019-06-18 | Based on the business diagnosis method and device of block chain, electronic equipment, storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362627A true CN110362627A (en) | 2019-10-22 |
Family
ID=68216325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910527456.6A Pending CN110362627A (en) | 2019-06-18 | 2019-06-18 | Based on the business diagnosis method and device of block chain, electronic equipment, storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362627A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459932A (en) * | 2020-03-05 | 2020-07-28 | 深圳市元征科技股份有限公司 | Block chain-based data evidence storage method and device and storage medium |
CN112614187A (en) * | 2020-12-31 | 2021-04-06 | 深圳市优必选科技股份有限公司 | Loop detection method, device, terminal equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107657509A (en) * | 2017-09-19 | 2018-02-02 | 前海云链科技(深圳)有限公司 | A kind of reference method and device based on block chain |
CN109034657A (en) * | 2018-08-22 | 2018-12-18 | 泰康保险集团股份有限公司 | Process path finding method, device, medium and electronic equipment based on block chain |
US20180375869A1 (en) * | 2017-06-27 | 2018-12-27 | Alibaba Group Holding Limited | Multi-blockchain network data processing |
CN109711837A (en) * | 2018-11-27 | 2019-05-03 | 泰康保险集团股份有限公司 | Processing method of insuring, device and electronic equipment based on block chain technology |
CN109829297A (en) * | 2017-11-23 | 2019-05-31 | 财团法人资讯工业策进会 | Monitoring device, method and its computer storage medium |
-
2019
- 2019-06-18 CN CN201910527456.6A patent/CN110362627A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180375869A1 (en) * | 2017-06-27 | 2018-12-27 | Alibaba Group Holding Limited | Multi-blockchain network data processing |
CN107657509A (en) * | 2017-09-19 | 2018-02-02 | 前海云链科技(深圳)有限公司 | A kind of reference method and device based on block chain |
CN109829297A (en) * | 2017-11-23 | 2019-05-31 | 财团法人资讯工业策进会 | Monitoring device, method and its computer storage medium |
CN109034657A (en) * | 2018-08-22 | 2018-12-18 | 泰康保险集团股份有限公司 | Process path finding method, device, medium and electronic equipment based on block chain |
CN109711837A (en) * | 2018-11-27 | 2019-05-03 | 泰康保险集团股份有限公司 | Processing method of insuring, device and electronic equipment based on block chain technology |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459932A (en) * | 2020-03-05 | 2020-07-28 | 深圳市元征科技股份有限公司 | Block chain-based data evidence storage method and device and storage medium |
CN112614187A (en) * | 2020-12-31 | 2021-04-06 | 深圳市优必选科技股份有限公司 | Loop detection method, device, terminal equipment and readable storage medium |
CN112614187B (en) * | 2020-12-31 | 2024-03-26 | 深圳市优必选科技股份有限公司 | Loop detection method, loop detection device, terminal equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108595157B (en) | Block chain data processing method, device, equipment and storage medium | |
CN104346372B (en) | Method and apparatus for assessment prediction model | |
US9710257B2 (en) | System and method to map defect reduction data to organizational maturity profiles for defect projection modeling | |
US20200034749A1 (en) | Training corpus refinement and incremental updating | |
JP2015528946A (en) | Method and system for controlling a supply chain | |
CN107679734A (en) | It is a kind of to be used for the method and system without label data classification prediction | |
CA3050951A1 (en) | Factory risk estimation using historical inspection data | |
US11100458B2 (en) | Asset and device management | |
CN110688536A (en) | Label prediction method, device, equipment and storage medium | |
CN115330275B (en) | Echelon utilization method and device for retired battery | |
Welte et al. | Operation and maintenance modelling | |
CN110362627A (en) | Based on the business diagnosis method and device of block chain, electronic equipment, storage medium | |
CN109711849B (en) | Ether house address portrait generation method and device, electronic equipment and storage medium | |
CN110287110A (en) | The code detection method and device of application program | |
CN116569118A (en) | Information management method and device | |
CN111915256B (en) | Method for constructing dispatch fence, off-site signing and identifying method and related equipment | |
CN109614257A (en) | Processing method, device, computer storage medium and the electronic equipment of program exception | |
US20160011902A1 (en) | Task association analysis in application maintenance service delivery | |
CN107798540A (en) | Risk control method, system, storage medium and the electronic equipment that order is paid | |
WO2023141584A1 (en) | System and method for automatically obtaining and processing logistics and transportation requests | |
US20190244148A1 (en) | Computer architecture for characterizing and managing risk | |
CN112488195B (en) | Method, device, equipment and storage medium for identifying dispatch of dispatcher | |
WO2021186706A1 (en) | Repair support system and repair support method | |
CN113011664A (en) | Logistics timeliness monitoring method and device, electronic equipment and storage medium | |
CN113034076A (en) | Logistics carrying object recommendation method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd. Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |