CN112182363A - Intelligent inspection method, device, equipment and storage medium based on micro-service framework - Google Patents

Intelligent inspection method, device, equipment and storage medium based on micro-service framework Download PDF

Info

Publication number
CN112182363A
CN112182363A CN202010924603.6A CN202010924603A CN112182363A CN 112182363 A CN112182363 A CN 112182363A CN 202010924603 A CN202010924603 A CN 202010924603A CN 112182363 A CN112182363 A CN 112182363A
Authority
CN
China
Prior art keywords
data
power service
service
request
inspection
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.)
Granted
Application number
CN202010924603.6A
Other languages
Chinese (zh)
Other versions
CN112182363B (en
Inventor
胡如乐
张亮
张倩
司福利
肖睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southern Power Grid Digital Grid Research Institute Co Ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202010924603.6A priority Critical patent/CN112182363B/en
Publication of CN112182363A publication Critical patent/CN112182363A/en
Application granted granted Critical
Publication of CN112182363B publication Critical patent/CN112182363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The invention relates to an intelligent inspection method, device, equipment and storage medium based on a micro-service framework, which comprises the following steps: acquiring a power service type, and splitting a power service according to the power service type to obtain a power service component; acquiring inspection condition data corresponding to each electric power service assembly, and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result; if a data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier; and if the node expansion request is acquired from the power service component, acquiring component function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the component function information. The method and the device have the effect of improving the performance of the power inspection service.

Description

Intelligent inspection method, device, equipment and storage medium based on micro-service framework
Technical Field
The invention relates to the technical field of inspection service, in particular to an intelligent inspection method, device, equipment and storage medium based on a micro-service framework.
Background
At present, electric power marketing inspection is a main component of an internal control constraint mechanism of an electric power marketing link, and is an important content and an effective way for electric power marketing risk management. By effectively carrying out the electric power inspection work, the aims of standardizing marketing behaviors, blocking loopholes, exploiting potential and improving efficiency, improving marketing policy execution power and reducing marketing accidents can be achieved.
In the existing scene of electric power marketing inspection, along with the development of electric power business, the increase of user quantity and the increase of system quantity, the calling dependency relationship becomes complex, and the architecture of the system is also migrated from a single machine structure to a service-oriented architecture.
With respect to the related art in the above, the inventors consider that there is a drawback of low system performance as the traffic grows.
Disclosure of Invention
The application aims to provide an intelligent inspection method, device, equipment and storage medium based on a micro-service framework, which can improve the performance of power inspection service.
The above object of the present invention is achieved by the following technical solutions:
an intelligent inspection method based on a micro-service framework comprises the following steps:
acquiring a power service type, and splitting a power service according to the power service type to obtain a power service component;
acquiring inspection condition data corresponding to each electric power service assembly, and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result;
if a data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier;
and if the node expansion request is acquired from the power service assembly, acquiring assembly function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the assembly function information.
By adopting the technical scheme, the power service assembly is obtained by splitting the power service according to each power service type, so that the specified inspection service can be periodically executed and managed by timing task scheduling based on different inspection condition data of different power service types during power grid inspection, multi-dimensional full-coverage service inspection is performed, and the inspection of different conditions can be continuously performed on the service data of different areas; when a data processing request is obtained, all services need to be checked, all service data are basically covered, the data are in a massive data level, the power service component is obtained by splitting according to the power service type, data distributed sending can be achieved, massive data can be processed, and the data processing efficiency is improved; simultaneously, when the service performance that leads to current electric power service assembly when the business volume constantly increases reaches the bottleneck, when needing to expand it, expand through the subassembly functional information to each electric power service assembly, can also easily expand when promoting the service new energy, promote the efficiency of expansion performance.
The present application may be further configured in a preferred example to: the obtaining of the power service type and the splitting of the power service according to the power service type to obtain the power service component specifically include:
acquiring power service data, and segmenting the power service data according to the power service type to obtain service data;
and after the electric power service data are packaged, the corresponding electric power service assembly is obtained.
By adopting the technical scheme, the electric power service components corresponding to each electric power service type can be obtained by splitting the electric power service data, the processing efficiency of mass data is improved, independent expansion is easily carried out on each electric power service component, the service performance is improved, and the automation and the flexibility of inspection are improved.
The present application may be further configured in a preferred example to: if the data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier, specifically including:
acquiring the data to be processed from a preset inspection database according to the data processing request;
and acquiring a routing address to be sent according to the request identifier, and sending the data to be processed to a corresponding user side according to the routing address.
By adopting the technical scheme, the data to be processed is sent to the user side corresponding to the request identifier in a routing distribution mode, so that massive inspection data can be sent to the corresponding user side in a distributed mode, and the processing efficiency is improved.
The present application may be further configured in a preferred example to: if the node expansion request is acquired from the power service component, acquiring component function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the component function information, specifically including:
acquiring the number of original nodes from the power service assembly;
and triggering a load distribution message according to the number of the original nodes and the node expansion response message.
By adopting the technical scheme, the utilization rate of each node can be reduced after the nodes are expanded by triggering the load distribution message, and the data processing efficiency of each node is improved.
The present application may be further configured in a preferred example to: the triggering a load distribution message according to the number of the original nodes and the node expansion response message specifically includes:
acquiring the number of newly added nodes from the node expansion response message;
and obtaining the number of the existing nodes according to the number of the original nodes and the number of the newly added nodes, and triggering the load distribution message according to the number of the existing nodes.
By adopting the technical scheme, the load distribution message is triggered by acquiring the number of the existing nodes, so that the data volume obtained by redistributing each node is more uniform, and the efficiency of data processing is improved.
The second objective of the present invention is achieved by the following technical solutions:
an intelligent auditing device based on a micro-service framework, the intelligent auditing device based on the micro-service framework comprising:
the component splitting module is used for acquiring the electric power service type and splitting the electric power service according to the electric power service type to obtain an electric power service component;
the inspection module is used for acquiring inspection condition data corresponding to each electric power service assembly and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result;
the routing distribution module is used for acquiring a request identifier from the data processing request if the data processing request corresponding to the inspection result is acquired, acquiring corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier;
and the node expansion module is used for acquiring component function information according to the node expansion request and triggering a node expansion response message corresponding to the node expansion request according to the component function information when the node expansion request is acquired from the power service component.
By adopting the technical scheme, the power service assembly is obtained by splitting the power service according to each power service type, so that the specified inspection service can be periodically executed and managed by timing task scheduling based on different inspection condition data of different power service types during power grid inspection, multi-dimensional full-coverage service inspection is performed, and the inspection of different conditions can be continuously performed on the service data of different areas; when a data processing request is obtained, all services need to be checked, all service data are basically covered, the data are in a massive data level, the power service component is obtained by splitting according to the power service type, data distributed sending can be achieved, massive data can be processed, and the data processing efficiency is improved; simultaneously, when the service performance that leads to current electric power service assembly when the business volume constantly increases reaches the bottleneck, when needing to expand it, expand through the subassembly functional information to each electric power service assembly, can also easily expand when promoting the service new energy, promote the efficiency of expansion performance.
The third purpose of the present application is achieved by the following technical solutions:
a computer device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the steps of the intelligent checking method based on the micro-service framework when executing the computer program.
The fourth purpose of the present application is achieved by the following technical solutions:
a computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned intelligent auditing method based on a microservice framework.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the electric power service assembly is obtained by splitting the electric power service according to each electric power service type, so that when the power grid is inspected, the designated inspection service can be periodically executed and managed through timing task scheduling based on different inspection condition data of different electric power service types, multi-dimensional full-coverage service inspection is performed, and the inspection of different conditions can be continuously performed on the service data of different areas; when a data processing request is obtained, all services need to be checked, all service data are basically covered, the data are in a massive data level, the power service component is obtained by splitting according to the power service type, data distributed sending can be achieved, massive data can be processed, and the data processing efficiency is improved;
2. when the service performance of the existing power service assembly reaches a bottleneck due to continuous increase of the traffic, and the service performance needs to be expanded, the assembly function information of each power service assembly is expanded, so that the expansion is easy when the new service energy is improved, and the efficiency of the expansion performance is improved;
3. by splitting the electric power service data, the electric power service components corresponding to each electric power service type can be obtained, the processing efficiency of mass data is improved, independent expansion of each electric power service component is easy to realize, the service performance is improved, and the automation and flexibility of inspection are improved.
Drawings
FIG. 1 is a flowchart of an intelligent inspection method based on a micro-service framework according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of step S10 in the intelligent checking method based on the micro service framework according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of step S30 in the intelligent checking method based on the micro service framework according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an implementation of step S40 in the intelligent checking method based on the micro service framework according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation of step S42 in the intelligent checking method based on the micro service framework according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of an intelligent inspection device based on a micro-service framework according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an apparatus in an embodiment of the invention.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
In an embodiment, as shown in fig. 1, the present application discloses an intelligent inspection method based on a micro-service framework, which specifically includes the following steps:
s10: and acquiring the power service type, and splitting the power service according to the power service type to obtain the power service component.
In this embodiment, the power service type refers to a type of each business service in a business scenario of power audit. The power service component refers to a component corresponding to each business service in the power inspection.
Specifically, in a regional scenario to be inspected, a type of each business service of the power service in the power scenario is acquired as the power service type.
Further, after the electric power service type is obtained, the platform or the system is split in the electric power inspection platform or system, and an electric power service component corresponding to each electric power service type is obtained.
S20: and acquiring inspection condition data corresponding to each electric power service assembly, and respectively performing electric power inspection on the corresponding electric power service assemblies according to the inspection condition data to obtain corresponding inspection results.
In this embodiment, the audit condition data refers to the condition of each power business service during audit.
Specifically, when the inspection is required, the inspection result can be obtained by inspecting each power service component according to the inspection condition data corresponding to each power service component.
Wherein, when checking, the following checking functions are included:
1. result service
The result service is a data result for inquiring and displaying the corresponding inspection of each electric power service component or the matching of a plurality of electric power service components, and comprises a file class, a service overtime class, an operation quality class, an electric charge class and an abnormal combination class. The parameters of rule category, regional code, organization code, abnormal category code, screening data start time, screening data end time, screening time, abnormal user serial number and the like can be used for inquiring, list displaying and data exporting, and the data can be processed.
During inspection, a user can inquire and display a corresponding inspection result through the designated parameters, and perform data inspection on the service system, if the abnormal condition is confirmed, the data inspection is performed, otherwise, the invalid state marking is performed.
2. Run state service
The running state service is a service for viewing the current rule calculation running state provided by the inspection application, and is convenient for a user to view the running information of the rule engine. The function is to assist the user to maintain the rules and to judge the effectiveness of the result data according to the operation information, so as to carry out accurate processing. Under the normal state of the rule engine, the active inspection task scheduling can be supported to be initiated, and real-time re-inspection or personalized inspection scheduling is carried out. And providing a remote operation and maintenance basis for operation and maintenance personnel, and if the rule engine is abnormal, performing corresponding processing.
If the user checks the rule engine to find out the abnormality, the checking result may be inaccurate, and the operation and maintenance can be informed to process. After the normal state is recovered, the rules are subjected to important inspection or personalized inspection to obtain accurate results.
3. Parameter maintenance
And a personalized maintenance function of the regular granularity parameters is provided, and the parameters are flexibly configured to adapt to different service scenes. Each rule may have one to more computational parameters, and the functional computation is designed as a parameterization that provides a parameter maintenance portal that accepts parameter variations and computational responses in near real-time.
The users of different regions and different units can individually configure the parameters of the corresponding quantity of the inspection rules of the current version according to specific conditions so as to adapt to the service requirements of the users.
4. Unified configuration
Providing uniformly configured service functions. The function is mainly to provide uniform support for some basic configurations of inspection global, including rule execution configuration, default parameter configuration, white list configuration, report service configuration and the like, and other rule inspection calculation.
The rule execution configuration can upgrade the version of the rule and configure the enabling and disabling of different versions.
The default parameter configuration is configured by basic parameters, and if each region is not personalized, uniform default parameter configuration is used.
The white list configuration is the range of the object during configuration inspection, and the granularity can support areas, units, users, equipment and the like.
The report service configuration is to configure the display attributes of the report, including the display mode and the like.
S30: and if the data processing request corresponding to the inspection result is acquired, acquiring a request identifier from the data processing request, acquiring corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier.
In this embodiment, the data processing request refers to a request for processing the checked data. The request identifier refers to an identifier of a terminal that particularly penalizes the data processing request. The data to be processed refers to the checked data corresponding to the data processing request.
Specifically, in the embodiment of the application, the data of the power grid inspection is divided according to the provincial level, and the data of the power grid inspection of all local cities (counties) of the province is stored in the database of the provincial power grid. After the local city (county) triggering the data processing request is acquired, the request identification of the local city (county) specifically triggering the request and the to-be-processed data needing to be processed are acquired from the data processing request.
Further, the to-be-processed data acquired from the data in the database, which stores the power grid inspection data of all local cities (counties) of the province, is sent to the user side corresponding to the request identifier.
S40: and if the node expansion request is acquired from the power service component, acquiring component function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the component function information.
In this embodiment, the node expansion request refers to a request for expanding a node for data processing in the power service component. The component function information refers to information of a function of each power service component for processing the inspection data. The node expansion response message is a message which responds to the node expansion request and expands the data processing node of the corresponding power service component.
Specifically, when the traffic of the power service component is continuously increased, so that the service performance of the existing data processing node of the power service component reaches a bottleneck and needs to be expanded, the node expansion request is triggered for the power service component. When the node expansion request is triggered, a user may trigger the node expansion request according to the operating condition of the existing power service component, or a corresponding threshold may be set for the data volume and/or the data processing efficiency of each power service component, and when the data volume and/or the data processing efficiency of the power service component reaches the threshold, the node expansion request is triggered for the power service component reaching the threshold.
Further, when responding to the node expansion request, the node expansion request can be expanded by adding a processing node, a main memory, a storage device or a network interface to the power service component to meet more requests for vertical or upward expansion, and by acquiring component function information of the power service component, a new node with the same function as the existing node of the power service component is added, and loads are redistributed among all nodes to realize horizontal or outward expansion.
In the embodiment, the power service assembly is obtained by splitting the power service according to each power service type, so that when the power grid is inspected, the designated inspection service is periodically executed and managed through timing task scheduling based on different inspection condition data of different power service types, a multi-dimensional full-coverage service inspection is performed, and the inspection of different conditions can be continuously performed on the service data of different regions; when a data processing request is obtained, all services need to be checked, all service data are basically covered, the data are in a massive data level, the power service component is obtained by splitting according to the power service type, data distributed sending can be achieved, massive data can be processed, and the data processing efficiency is improved; simultaneously, when the service performance that leads to current electric power service assembly when the business volume constantly increases reaches the bottleneck, when needing to expand it, expand through the subassembly functional information to each electric power service assembly, can also easily expand when promoting the service new energy, promote the efficiency of expansion performance.
In an embodiment, as shown in fig. 2, in step S10, acquiring the power service type, splitting the power service according to the power service type, and obtaining the power service component specifically includes:
s11: and acquiring power service data, and segmenting the power service data according to the power service type to obtain business service data.
In the present embodiment, the power service data refers to data in the business of the power grid at each provincial level. The service data refers to data corresponding to each service in the power grid.
Specifically, according to the power service type, data for checking the power grids in all local cities (counties) of the province are stored, and each result of the segmentation is used as the business service data.
S12: and after the electric power service data are packaged, obtaining a corresponding electric power service assembly.
Specifically, after the electric power service data are encapsulated one by one, electric power service components of each electric power service type are obtained, each electric power service component is cooperated through communication protocols such as HTTP and the like, each electric power service component can be independently developed and deployed, and therefore redeployment of the whole system caused by modification of one service can be effectively avoided. When the type of the power service is increased or changed, only a specific power service component can be offline and updated, the use of other power service components is not affected, and the service availability is ensured to the maximum extent.
In an embodiment, as shown in fig. 3, in step S30, if the data processing request corresponding to the audit result is obtained, obtaining the request identifier from the data processing request, obtaining the corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to the user end corresponding to the request identifier specifically includes:
s31: and acquiring data to be processed from a preset inspection database according to the data processing request.
In this embodiment, the audit database refers to a database storing data for grid audit of all local cities (counties) of the province in the above embodiment.
Specifically, according to the data specifically required to be processed in the data processing request, corresponding data is called from the inspection database as the data to be processed.
S32: and acquiring a routing address to be sent according to the request identifier, and sending data to be processed to a corresponding user side according to the routing address.
Specifically, in the practical application scenario of the present application, data of power grids of each local city (county) in the province are collected in a unified manner and stored in the audit database, and when corresponding data for power grid audit in the local city (county) is required to be called for processing, the data are extracted from the audit database, and then the data to be processed are sent to corresponding clients according to the local city (county) request identifier.
And when sending, according to the request identifier, obtaining a routing address (namely an IP address) corresponding to the request identifier, and sending the data to be processed to the user side by obtaining the routing address.
In an embodiment, as shown in fig. 4, in step S40, that is, when the node expansion request is obtained from the electrical service component, obtaining component function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the component function information specifically includes:
s41: the number of pristine nodes is obtained from the power service component.
In this embodiment, the original node number refers to the number of nodes that process data in the power service component that needs to extend the node.
Specifically, when a node expansion request is obtained, the number of nodes which process data currently in the power service component which specifically needs to expand the node is obtained, and the number is used as the number of original nodes.
S42: and triggering the load distribution message according to the number of the original nodes and the node expansion response message.
In this embodiment, the load distribution message refers to a message that reallocates a task of data processing to a node in the power service component after the node is expanded.
And expanding the nodes for data processing in the power service assembly by a certain number of nodes for data processing.
Further, the load distribution message is triggered for the total amount of existing nodes and the total amount of data that needs to be processed.
In an embodiment, as shown in fig. 5, in step S42, that is, according to the number of original nodes and the node expansion response message, the triggering the load distribution message specifically includes:
s421: and acquiring the number of the newly added nodes from the node expansion response message.
Specifically, after the number of the newly added nodes is determined, the corresponding message of node expansion is triggered, and meanwhile, when the response message of node expansion is obtained, the number of the newly added nodes is obtained from the response message of node expansion. The number of the newly added nodes can be determined according to the data volume of the data processed by the power service assembly, and the larger the data volume to be processed is, the larger the number of the corresponding newly added nodes can be.
S422: and obtaining the number of the existing nodes according to the number of the original nodes and the number of the newly added nodes, and triggering the load distribution message according to the number of the existing nodes.
Specifically, the existing data amount is evenly distributed to each node according to the number of the existing nodes, and the data amount redistributed by each node is taken as the load distribution message. Meanwhile, when determining the number of the newly added nodes and triggering the node expansion response message, the node expansion request may be triggered if the usage amount of the memory of the node reaches the threshold value according to the total processed data amount of the power service component or by setting a corresponding threshold value for the usage amount of the memory of each node of the power service component, so that when determining the number of the newly added nodes, the number of the existing nodes can satisfy the condition that the usage rate of the memory is lower than the threshold value when the nodes in the power service component process data.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In an embodiment, an intelligent inspection device based on a micro-service framework is provided, and the intelligent inspection device based on the micro-service framework corresponds to the intelligent inspection method based on the micro-service framework in the embodiment one to one. As shown in FIG. 6, the intelligent auditing device based on the micro-service framework includes a component splitting module 10, an auditing module 20, a route distribution module 30 and a node expansion module 40. The functional modules are explained in detail as follows:
the component splitting module 10 is configured to obtain an electric power service type, split an electric power service according to the electric power service type, and obtain an electric power service component;
the inspection module 20 is used for acquiring inspection condition data corresponding to each electric power service component, and respectively performing electric power inspection on the corresponding electric power service components according to the inspection condition data to obtain corresponding inspection results;
the route distribution module 30 is configured to, if a data processing request corresponding to the inspection result is obtained, obtain a request identifier from the data processing request, obtain corresponding to-be-processed data according to the data processing request, and send the to-be-processed data to a user side corresponding to the request identifier;
and the node expansion module 40 is configured to, if a node expansion request is obtained from the power service component, obtain component function information according to the node expansion request, and trigger a node expansion response message corresponding to the node expansion request according to the component function information.
Optionally, the component splitting module 10 includes:
the data segmentation submodule is used for acquiring power service data and segmenting the power service data according to the power service type to obtain business service data;
and the data packaging submodule is used for packaging the electric power service data to obtain a corresponding electric power service assembly.
Optionally, the route distribution module 30 includes:
the data acquisition submodule is used for acquiring data to be processed from a preset inspection database according to the data processing request;
and the data sending submodule is used for acquiring a routing address to be sent according to the request identifier and sending the data to be processed to the corresponding user side according to the routing address.
Optionally, the node expansion module 40 includes:
the original node obtaining submodule is used for obtaining the number of original nodes from the power service assembly;
and the load distribution submodule is used for triggering the load distribution message according to the number of the original nodes and the node expansion response message.
Optionally, the load distribution submodule includes:
a newly added node obtaining unit, configured to obtain the number of newly added nodes from the node expansion response message;
and the load distribution unit is used for obtaining the number of the existing nodes according to the number of the original nodes and the number of the newly added nodes and triggering a load distribution message according to the number of the existing nodes.
For specific limitations of the intelligent inspection device based on the micro-service framework, reference may be made to the above limitations of the intelligent inspection method based on the micro-service framework, and details thereof are not repeated here. All or part of each module in the intelligent checking device based on the micro-service framework can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing the power grid inspection data of each provincial level. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize an intelligent checking method based on a micro-service framework.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a power service type, and splitting a power service according to the power service type to obtain a power service component;
acquiring inspection condition data corresponding to each electric power service assembly, and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result;
if a data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier;
and if the node expansion request is acquired from the power service component, acquiring component function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the component function information.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a power service type, and splitting a power service according to the power service type to obtain a power service component;
acquiring inspection condition data corresponding to each electric power service assembly, and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result;
if a data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier;
and if the node expansion request is acquired from the power service component, acquiring component function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the component function information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An intelligent inspection method based on a micro-service framework is characterized in that the intelligent inspection method based on the micro-service framework comprises the following steps:
acquiring a power service type, and splitting a power service according to the power service type to obtain a power service component;
acquiring inspection condition data corresponding to each electric power service assembly, and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result;
if a data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier;
and if the node expansion request is acquired from the power service assembly, acquiring assembly function information according to the node expansion request, and triggering a node expansion response message corresponding to the node expansion request according to the assembly function information.
2. The intelligent inspection method based on micro-service framework as claimed in claim 1, wherein the obtaining of the power service type and the splitting of the power service according to the power service type to obtain the power service component specifically comprise:
acquiring power service data, and segmenting the power service data according to the power service type to obtain service data;
and after the electric power service data are packaged, the corresponding electric power service assembly is obtained.
3. The intelligent inspection method based on micro-service framework of claim 1, wherein if a data processing request corresponding to the inspection result is obtained, obtaining a request identifier from the data processing request, obtaining corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier specifically comprises:
acquiring the data to be processed from a preset inspection database according to the data processing request;
and acquiring a routing address to be sent according to the request identifier, and sending the data to be processed to a corresponding user side according to the routing address.
4. The intelligent inspection method based on micro-service framework as claimed in claim 1, wherein if a node expansion request is obtained from the power service component, component function information is obtained according to the node expansion request, and a node expansion response message corresponding to the node expansion request is triggered according to the component function information, specifically comprising:
acquiring the number of original nodes from the power service assembly;
and triggering a load distribution message according to the number of the original nodes and the node expansion response message.
5. The intelligent inspection method based on micro-service framework as claimed in claim 4, wherein the triggering of the load distribution message according to the number of the original nodes and the node expansion response message specifically comprises:
acquiring the number of newly added nodes from the node expansion response message;
and obtaining the number of the existing nodes according to the number of the original nodes and the number of the newly added nodes, and triggering the load distribution message according to the number of the existing nodes.
6. An intelligent inspection device based on micro-service framework is characterized in that the intelligent inspection device based on micro-service framework comprises:
the component splitting module is used for acquiring the electric power service type and splitting the electric power service according to the electric power service type to obtain an electric power service component;
the inspection module is used for acquiring inspection condition data corresponding to each electric power service assembly and respectively inspecting the electric power of the corresponding electric power service assembly according to the inspection condition data to obtain a corresponding inspection result;
the routing distribution module is used for acquiring a request identifier from the data processing request if the data processing request corresponding to the inspection result is acquired, acquiring corresponding to-be-processed data according to the data processing request, and sending the to-be-processed data to a user side corresponding to the request identifier;
and the node expansion module is used for acquiring component function information according to the node expansion request and triggering a node expansion response message corresponding to the node expansion request according to the component function information when the node expansion request is acquired from the power service component.
7. The intelligent auditing device based on micro-service framework of claim 6 where the component splitting module includes:
the data segmentation submodule is used for acquiring power service data and segmenting the power service data according to the power service type to obtain business service data;
and the data packaging submodule is used for packaging the electric power service data to obtain the corresponding electric power service assembly.
8. The intelligent auditing device based on micro-service framework of claim 6 where the route distribution module includes:
the data acquisition submodule is used for acquiring the data to be processed from a preset inspection database according to the data processing request;
and the data sending submodule is used for acquiring a routing address to be sent according to the request identifier and sending the data to be processed to a corresponding user side according to the routing address.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the intelligent checking method based on micro service framework according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the intelligent micro-service framework-based inspection method according to any one of claims 1 to 5.
CN202010924603.6A 2020-09-05 2020-09-05 Intelligent auditing method, device, equipment and storage medium based on micro-service framework Active CN112182363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010924603.6A CN112182363B (en) 2020-09-05 2020-09-05 Intelligent auditing method, device, equipment and storage medium based on micro-service framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010924603.6A CN112182363B (en) 2020-09-05 2020-09-05 Intelligent auditing method, device, equipment and storage medium based on micro-service framework

Publications (2)

Publication Number Publication Date
CN112182363A true CN112182363A (en) 2021-01-05
CN112182363B CN112182363B (en) 2024-02-02

Family

ID=73925209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010924603.6A Active CN112182363B (en) 2020-09-05 2020-09-05 Intelligent auditing method, device, equipment and storage medium based on micro-service framework

Country Status (1)

Country Link
CN (1) CN112182363B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050187809A1 (en) * 2004-01-15 2005-08-25 Falkenhainer Brian C. Adaptive process systems and methods for managing business processes
US20100185693A1 (en) * 2009-01-20 2010-07-22 Murty Venkataesh V Methods and apparatus for creating an audit trail
JP2011138189A (en) * 2009-12-25 2011-07-14 Lac Co Ltd Communication device and program
CN103514514A (en) * 2013-09-23 2014-01-15 广州供电局有限公司 On-line monitoring method for electricity marketing business data
CN104182842A (en) * 2014-08-26 2014-12-03 国家电网公司 Electric marketing checking mobile application system and working method thereof
CN104376081A (en) * 2014-11-18 2015-02-25 国家电网公司 Data application processing system, handhold terminal and on-site checking data processing system
CN105119750A (en) * 2015-09-08 2015-12-02 南京联成科技发展有限公司 Distributed information security operation and maintenance management platform based on massive data
CN105373870A (en) * 2014-08-26 2016-03-02 国家电网公司 Power check mobile application system for power marketing and working method thereof
CN105469248A (en) * 2015-11-17 2016-04-06 国网浙江省电力公司 Method for lean control of full life circle of subjects in power marketing inspection
CN108021607A (en) * 2017-10-31 2018-05-11 安徽四创电子股份有限公司 A kind of wireless city Audit data off-line analysis method based on big data platform
CN108121825A (en) * 2018-01-15 2018-06-05 霍亮 Topographic data manages system
CN109788031A (en) * 2018-12-17 2019-05-21 平安普惠企业管理有限公司 Business datum acquisition methods, device, computer equipment and storage medium
CN110825539A (en) * 2019-11-07 2020-02-21 中国联合网络通信集团有限公司 Service processing method and device
CN110851278A (en) * 2019-11-08 2020-02-28 南京国电南自电网自动化有限公司 Distribution network automation master station mobile application service management method and system based on micro-service architecture
CN110929036A (en) * 2019-11-29 2020-03-27 南方电网数字电网研究院有限公司 Electric power marketing inspection management method and device, computer equipment and storage medium
CN111092933A (en) * 2019-11-20 2020-05-01 泰康保险集团股份有限公司 Business process management method, system, medium and electronic device for micro-service architecture

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050187809A1 (en) * 2004-01-15 2005-08-25 Falkenhainer Brian C. Adaptive process systems and methods for managing business processes
US20100185693A1 (en) * 2009-01-20 2010-07-22 Murty Venkataesh V Methods and apparatus for creating an audit trail
JP2011138189A (en) * 2009-12-25 2011-07-14 Lac Co Ltd Communication device and program
CN103514514A (en) * 2013-09-23 2014-01-15 广州供电局有限公司 On-line monitoring method for electricity marketing business data
CN104182842A (en) * 2014-08-26 2014-12-03 国家电网公司 Electric marketing checking mobile application system and working method thereof
CN105373870A (en) * 2014-08-26 2016-03-02 国家电网公司 Power check mobile application system for power marketing and working method thereof
CN104376081A (en) * 2014-11-18 2015-02-25 国家电网公司 Data application processing system, handhold terminal and on-site checking data processing system
CN105119750A (en) * 2015-09-08 2015-12-02 南京联成科技发展有限公司 Distributed information security operation and maintenance management platform based on massive data
CN105469248A (en) * 2015-11-17 2016-04-06 国网浙江省电力公司 Method for lean control of full life circle of subjects in power marketing inspection
CN108021607A (en) * 2017-10-31 2018-05-11 安徽四创电子股份有限公司 A kind of wireless city Audit data off-line analysis method based on big data platform
CN108121825A (en) * 2018-01-15 2018-06-05 霍亮 Topographic data manages system
CN109788031A (en) * 2018-12-17 2019-05-21 平安普惠企业管理有限公司 Business datum acquisition methods, device, computer equipment and storage medium
CN110825539A (en) * 2019-11-07 2020-02-21 中国联合网络通信集团有限公司 Service processing method and device
CN110851278A (en) * 2019-11-08 2020-02-28 南京国电南自电网自动化有限公司 Distribution network automation master station mobile application service management method and system based on micro-service architecture
CN111092933A (en) * 2019-11-20 2020-05-01 泰康保险集团股份有限公司 Business process management method, system, medium and electronic device for micro-service architecture
CN110929036A (en) * 2019-11-29 2020-03-27 南方电网数字电网研究院有限公司 Electric power marketing inspection management method and device, computer equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
KUMAR, P.S等: "Secured data storage and auditing of data integrity over dynamic data in cloud", 《INTERNATIONAL JOURNAL OF INTERNET TECHNOLOGY AND SECURED TRANSACTIONS》, vol. 8, no. 4, pages 528 - 542 *
储鹏飞等: "电能计量业务监督系统设计与应用", 《自动化与仪表》, vol. 34, no. 1, pages 6 - 11 *
王义;: "微服务架构特点、技术趋势及在行业应用中关键问题研究", 《软件》, vol. 41, no. 6, pages 132 - 134 *
胡如乐等: "基于微服务基础组件的前端开发技术应用研究", 《电子测试》, vol. 20, pages 84 - 86 *
言宇: "营销业务稽查风险管理系统的开发与应用", 《黑龙江电力》, vol. 41, no. 4, pages 361 - 366 *

Also Published As

Publication number Publication date
CN112182363B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
US11411814B2 (en) Network resource management devices methods and systems
US10171973B2 (en) Method and system for MTC event management
CN111338814A (en) Message processing method and device, storage medium and electronic device
CN111818159A (en) Data processing node management method, device, equipment and storage medium
CN113778623B (en) Resource processing method and device, electronic equipment and storage medium
CN112989330B (en) Container intrusion detection method, device, electronic equipment and storage medium
US11228508B2 (en) Virtual network function bus-based auto-registration
KR102650892B1 (en) Apparatus for container orchestration in geographically distributed multi cloud environment and method using the same
CN112698952A (en) Unified management method and device for computing resources, computer equipment and storage medium
CN109697078B (en) Repairing method of non-high-availability component, big data cluster and container service platform
EP4030690A1 (en) Device management method, apparatus, and system
CN108810042B (en) Task processing method, related equipment and system
CN113918341A (en) Equipment scheduling method, device, equipment and storage medium
CN113608838A (en) Deployment method and device of application image file, computer equipment and storage medium
CN112182363A (en) Intelligent inspection method, device, equipment and storage medium based on micro-service framework
CN109547253B (en) File downloading method and device, computer equipment and storage medium
CN111651235A (en) Virtual machine set task management method and device
CN112214303A (en) Kubernetes cluster automatic scaling system
CN115048186A (en) Method and device for processing expansion and contraction of service container, storage medium and electronic equipment
CN112561326A (en) Task execution method and device, storage medium and electronic device
CN109753320B (en) Application parameter processing method and device
CN113065801A (en) Organization architecture management method, device, equipment and storage medium
CN110955579A (en) Ambari-based large data platform monitoring method
CN112532450B (en) Dynamic updating method and system for data stream distribution process configuration
CN110896358A (en) Dynamic updating method and device for resource data in NFV

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant