Resource display method and device
By automatically acquiring and analyzing monitoring information of resource objects in the business system, a resource display diagram is generated, which solves the problem of low efficiency in determining the usage of resource objects in existing technologies, and realizes a fast and intuitive display of the usage of resource objects, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENGDOUSHI SHANGHAI SCI & TECH DEV CO LTD
- Filing Date
- 2021-12-30
- Publication Date
- 2026-05-08
AI Technical Summary
In existing technologies, determining the usage of resource objects in a business system requires manually searching for resource request forms, which leads to inefficiency and negatively impacts user experience.
By acquiring monitoring information of multiple resource objects to be monitored, the system automatically identifies the business system and its associated resource objects based on the system object's identifier, generates a resource display diagram, and shows the relationship between the system object and the resource object to be monitored.
It enables the automatic generation of resource object usage information in business systems, improving the efficiency of determining resource object usage and enhancing the user experience.
Smart Images

Figure CN114281652B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of resource management technology, and in particular to resource display methods and devices. Background Technology
[0002] To ensure the normal operation of the business system, it is necessary to deploy various resource objects for the business system, such as message middleware, virtual machine instances, and physical machine instances.
[0003] Currently, when determining the usage of resource objects corresponding to a certain business system, relevant personnel need to find the resource application forms related to that business system in order to determine the resource usage of system objects corresponding to that business system, such as determining the resource objects used by a certain functional module.
[0004] However, the need for manual determination of the usage status of resource objects in the business system results in a long time requirement, leading to low efficiency and negatively impacting user experience. Summary of the Invention
[0005] To overcome the problems existing in related technologies, this specification provides a resource display method and apparatus.
[0006] According to a first aspect of the embodiments of this specification, a resource display method is provided, the method comprising:
[0007] Obtain monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, and the system object indicates the object divided based on the composition structure of the business system;
[0008] Based on the identifiers of at least one level of system objects to which the multiple monitored resource objects belong, determine the system objects corresponding to each business system and the monitored resource objects corresponding to each system object;
[0009] A resource display diagram is generated based on the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display diagram is used to display the relationship between the system objects corresponding to the business systems and the resource objects to be monitored.
[0010] Optionally, determining the system object corresponding to each business system and the resource object to be monitored corresponding to each system object based on the identifier of at least one level of system object to which the plurality of monitored resource objects belong includes:
[0011] The system object identifiers of the multiple monitored resource objects are classified to obtain the system object corresponding to the system object identifier of each business system;
[0012] For each system object's identifier, aggregate the various resource objects to be monitored corresponding to the system object's identifier to determine the resource objects to be monitored corresponding to the system object.
[0013] Optionally, generating a resource display diagram based on the system objects corresponding to each of the business systems and the resource objects to be monitored corresponding to each of the system objects includes:
[0014] For each business system, the association relationships between system objects corresponding to the business system are determined based on the level of the identifier of the system object corresponding to the business system; wherein, the association relationship includes one or more of the following: calling relationship, containment relationship, and instantiation relationship between system objects;
[0015] A resource display diagram is generated based on the relationships between system objects corresponding to each of the aforementioned business systems and the resource objects to be monitored corresponding to each of the aforementioned system objects.
[0016] Optionally, generating a resource display diagram based on the system objects corresponding to each of the business systems and the resource objects to be monitored corresponding to each of the system objects includes:
[0017] For each business system, based on the relationships between system objects corresponding to the business system and the resource objects to be monitored corresponding to the system objects, vertices and vertex pairs in the resource display graph corresponding to the business system are determined; wherein, the vertices include the system objects corresponding to the business system and the resource objects to be monitored corresponding to the business system; the vertex pairs include vertices that have relationships.
[0018] By connecting the vertex pairs, a resource display graph corresponding to the business system is obtained.
[0019] Optionally, generating a resource display diagram based on the association relationships between system objects corresponding to each of the business systems and the resource objects to be monitored corresponding to each of the system objects includes:
[0020] Based on physics engine technology, a three-dimensional resource display map is generated according to the relationship between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display map is also used to display the relationship between the business systems.
[0021] Optionally, the monitoring information may also include business data;
[0022] The method further includes:
[0023] For the target system object in the system object, obtain the business data of the resource object to be monitored corresponding to the target system object;
[0024] The business data of the resource objects to be monitored corresponding to the target system object are analyzed and processed to obtain the business analysis results corresponding to the target system object.
[0025] If the business analysis result is abnormal, the target system object in the resource display diagram is displayed according to the first preset display mode.
[0026] Optionally, the business data includes order cancellation data; the target system object includes an order platform;
[0027] The step of analyzing and processing the business data of the monitored resource object corresponding to the target system object to obtain the business analysis result corresponding to the target system object includes:
[0028] Statistical analysis is performed on the order cancellation data corresponding to the monitored resource objects corresponding to the order platform to obtain the order cancellation rate corresponding to the order platform.
[0029] If the order cancellation rate of the order platform is greater than a first preset threshold, the business analysis result corresponding to the order platform is determined to be an abnormal result.
[0030] If the order cancellation rate of the order platform is less than or equal to the first preset threshold, the business analysis result of the order platform is determined to be a normal result.
[0031] Optionally, the levels include one or more of the following: business line level, platform level, module dimension, application level, and instance level.
[0032] Optionally, the method further includes:
[0033] If the type of the resource object to be monitored is a first preset type, the monitoring information reported by the resource object to be monitored is received.
[0034] When the type of the resource object to be monitored is a second preset type, the monitoring information reported by the monitoring service corresponding to the resource object to be monitored is received; wherein, the monitoring service is set based on the sidecar mode.
[0035] According to a second aspect of the embodiments of this specification, a resource display device is provided, comprising:
[0036] The resource information acquisition module is used to acquire monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, and the system object indicates the object divided based on the composition structure of the business system; wherein, the highest level system object indicates the business system;
[0037] The resource information processing module is used to determine the system object corresponding to each business system and the resource object to be monitored corresponding to each system object based on the identifier of the system object at at least one level to which the multiple resource objects to be monitored belong.
[0038] The resource display module is used to generate a resource display diagram based on the system objects corresponding to each of the business systems and the resource objects to be monitored corresponding to each of the system objects; wherein, the resource display diagram is used to display the association relationship between the system objects corresponding to the business systems and the resource objects to be monitored.
[0039] Optionally, the resource information processing module is specifically used for:
[0040] The system object identifiers of the multiple monitored resource objects are classified to obtain the system object corresponding to the system object identifier of each business system;
[0041] For each system object's identifier, aggregate the various resource objects to be monitored corresponding to the system object's identifier to determine the resource objects to be monitored corresponding to the system object.
[0042] Optionally, the resource display module is specifically used for:
[0043] For each business system, the association relationships between system objects corresponding to the business system are determined based on the level of the identifier of the system object corresponding to the business system; wherein, the association relationship includes one or more of the following: calling relationship, containment relationship, and instantiation relationship between system objects;
[0044] A resource display diagram is generated based on the relationships between system objects corresponding to each of the aforementioned business systems and the resource objects to be monitored corresponding to each of the aforementioned system objects.
[0045] Optionally, the resource display module is specifically used for:
[0046] For each business system, based on the relationships between system objects corresponding to the business system and the resource objects to be monitored corresponding to the system objects, vertices and vertex pairs in the resource display graph corresponding to the business system are determined; wherein, the vertices include the system objects corresponding to the business system and the resource objects to be monitored corresponding to the business system; the vertex pairs include vertices that have relationships.
[0047] By connecting the vertex pairs, a resource display graph corresponding to the business system is obtained.
[0048] Optionally, the resource display module is specifically used for:
[0049] Based on physics engine technology, a three-dimensional resource display map is generated according to the relationship between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display map is also used to display the relationship between the business systems.
[0050] Optionally, the monitoring information may also include business data;
[0051] The resource display module is also used for:
[0052] For the target system object in the system object, obtain the business data of the resource object to be monitored corresponding to the target system object;
[0053] The business data of the resource objects to be monitored corresponding to the target system object are analyzed and processed to obtain the business analysis results corresponding to the target system object.
[0054] If the business analysis result is abnormal, the target system object in the resource display diagram is displayed according to the first preset display mode.
[0055] Optionally, the business data includes order cancellation data; the target system object includes an order platform;
[0056] The resource display module is also used for:
[0057] Statistical analysis is performed on the order cancellation data corresponding to the monitored resource objects corresponding to the order platform to obtain the order cancellation rate corresponding to the order platform.
[0058] If the order cancellation rate of the order platform is greater than a first preset threshold, the business analysis result corresponding to the order platform is determined to be an abnormal result.
[0059] If the order cancellation rate of the order platform is less than or equal to the first preset threshold, the business analysis result of the order platform is determined to be a normal result.
[0060] Optionally, the levels include one or more of the following: business line level, platform level, module dimension, application level, and instance level.
[0061] Optionally, the resource information acquisition module is further used for:
[0062] If the type of the resource object to be monitored is a first preset type, the monitoring information reported by the resource object to be monitored is received.
[0063] When the type of the resource object to be monitored is a second preset type, the monitoring information reported by the monitoring service corresponding to the resource object to be monitored is received; wherein, the monitoring service is set based on the sidecar mode.
[0064] According to a third aspect of the embodiments of this specification, a computer device is provided, comprising:
[0065] processor;
[0066] Memory used to store processor-executable instructions;
[0067] The processor is configured as follows:
[0068] Obtain monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, and the system object indicates the object divided based on the composition structure of the business system;
[0069] The system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object are determined based on the identifiers of at least one level of system objects to which the multiple resource objects to be monitored belong.
[0070] A resource display diagram is generated based on the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display diagram is used to display the relationship between the system objects corresponding to the business systems and the resource objects to be monitored.
[0071] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the resource display method described in the first aspect and various possible designs of the first aspect is implemented.
[0072] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program that, when executed by a processor, implements the resource display method described in the first aspect and various possible designs of the first aspect.
[0073] The technical solutions provided in the embodiments of this specification may include the following beneficial effects:
[0074] In this embodiment, monitoring information corresponding to multiple resource objects to be monitored is obtained. The monitoring information for each resource object includes the identifier of the system object at a different level to which the resource object belongs. Using the identifiers of the system objects at different levels to which each resource object belongs, all system objects corresponding to each business system and all resource objects to be monitored corresponding to each system object are determined, i.e., all resource objects to be monitored associated with the system objects. Based on all system objects corresponding to each business system and the resource objects to be monitored associated with each system object, the resource objects to be monitored associated with the system objects corresponding to each business system are determined to generate and display the corresponding resource display diagram. This achieves automatic generation of the usage status of resource objects corresponding to business systems, and allows relevant personnel to intuitively and quickly obtain the resource objects to be monitored associated with the resource objects corresponding to business systems, eliminating the need for manual searching to determine the usage status of resource objects, reducing the time required for determining resource object usage status, thereby effectively improving the efficiency of determining resource object usage status and enhancing user experience.
[0075] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description
[0076] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of this specification.
[0077] Figure 1 This is an application scenario diagram illustrating a resource display method according to an exemplary embodiment of this specification.
[0078] Figure 2 This is a flowchart illustrating a resource display method according to an exemplary embodiment of this specification.
[0079] Figure 3 This is a flowchart illustrating another resource display method according to an exemplary embodiment of this specification.
[0080] Figure 4 This is a schematic diagram of a resource display diagram according to an exemplary embodiment of this specification.
[0081] Figure 5 This is a schematic diagram illustrating another resource display diagram according to an exemplary embodiment of this specification.
[0082] Figure 6 This is a hardware structure diagram of a computer device containing the resource display device in the embodiments of this specification.
[0083] Figure 7This is a block diagram illustrating a resource display device according to an exemplary embodiment of this specification. Detailed Implementation
[0084] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.
[0085] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0086] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0087] The data disclosed herein may be data authorized by the user or fully authorized by all parties.
[0088] The embodiments described in this specification will now be described in detail.
[0089] like Figure 1 As shown, Figure 1 This diagram illustrates a scenario application of a resource display method according to an exemplary embodiment. During the operation of the business system 101, specifically, during the execution of related system objects within the business system 101, at least one resource object is required. To determine the resource object usage of related system objects in each business system, the computer device 102 acquires monitoring information of the resource objects in each business system, using this monitoring information to determine the resource object usage of each business system.
[0090] The computer equipment 102 includes servers, terminal devices (e.g., desktop computers, laptops), etc.
[0091] Each business line (i.e., product line) corresponds to a business system. For example, business lines include a business line whose main product is pizza, and a business line whose main product is fast food products such as hamburgers.
[0092] Understandable. Figure 1 The number of business systems, resource objects, and system objects shown is only one instance, and this application is not limited to this.
[0093] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a resource display method according to an exemplary embodiment, which is applied to... Figure 1 The computer device in the middle, the method includes the following steps:
[0094] Step 201: Obtain monitoring information corresponding to multiple resource objects to be monitored. The monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs. System objects indicate objects categorized based on the composition structure of the business system. The highest-level system object indicates the business system.
[0095] In this embodiment, each resource object to be monitored is monitored to obtain monitoring information corresponding to each of the multiple resource objects to be monitored. The monitoring information corresponding to each resource object to be monitored includes the identifiers of the system objects at different levels to which the resource to be monitored belongs.
[0096] System objects are defined by relevant personnel based on the composition structure of the business system. Accordingly, system object levels include one or more of the following: business line level, platform level, module dimension, application level, and instance level.
[0097] Each business system has system objects at different levels. Higher-level system objects can include or call lower-level system objects. The levels are sorted in descending order of importance, as follows: business line level, platform level, module dimension, application level, and instance level, with the business line level being the highest.
[0098] Among them, the highest level system object, namely the business line level system object, indicates the business system, that is, each business line corresponds to one business system.
[0099] Among them, the platform-level system object represents the platform included in the business system corresponding to a certain business line. The platform can be used independently. For example, the business system corresponding to business line 1 includes the order platform and the payment platform.
[0100] In this context, module-level system objects represent functional modules within a business system that implement different functions and are associated with the platform. For example, a payment platform includes a payment module and a user module. Of course, module-level system objects can also be resource objects; for instance, middleware is both a module-level system object and a resource object.
[0101] Application-level system objects represent the objects required to run in order to implement functional modules, such as the services provided by the functional modules.
[0102] In this context, instance-level system objects represent application instances that are deployed, such as those deployed on physical machines, virtual machines, cloud containers, and other application deployment environments. Correspondingly, instance-level system objects can be resource objects.
[0103] Optionally, monitoring information may also include business data, which is the data generated or acquired by resource objects during the operation of the business system.
[0104] Step 202: Based on the identifiers of the system objects at at least one level to which the multiple resource objects to be monitored belong, determine the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object.
[0105] In this embodiment, the identifiers of different system objects to which all monitored resource objects belong are classified to obtain all system objects corresponding to each business system. That is, for each business system, all system objects in that business system are determined, thereby realizing the automatic determination of the system objects corresponding to the business system.
[0106] In this embodiment, the identifiers of different system objects to which all monitored resource objects belong are statistically analyzed to determine the monitored resource objects corresponding to each system object. That is, for each system object, the monitored resource objects associated with that system object are determined, thereby realizing the automatic determination of the monitored resource objects corresponding to the system object.
[0107] Step 203: Generate a resource display diagram based on the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object. The resource display diagram is used to show the relationship between the system objects corresponding to the business systems and the resource objects to be monitored.
[0108] In this embodiment, after obtaining the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object, the resource objects to be monitored associated with the system objects corresponding to each business system are determined. This allows for the generation of a corresponding resource display diagram using the resource objects to be monitored associated with the system objects corresponding to each business system, and the display diagram includes the association between the system objects corresponding to the business system and the resource objects to be monitored. This enables relevant personnel to intuitively and quickly understand the resource objects to be monitored used by the system objects of the business system, thus achieving rapid determination of the usage of resource objects without the need for manual searching of relevant information.
[0109] As described above, the process involves acquiring monitoring information for multiple resource objects to be monitored. The monitoring information for each resource object includes the identifiers of different levels of system objects to which the monitored object belongs. Using these identifiers, all system objects corresponding to each business system and all resource objects to be monitored associated with each system object are identified. Based on these system objects and their associated resource objects, the resource objects associated with each business system are determined, generating a corresponding resource display diagram. This process automatically generates the usage information of resource objects corresponding to business systems, allowing relevant personnel to quickly and intuitively understand the associated resource objects without manual searching. This reduces the time required to determine resource usage, effectively improving the efficiency of resource usage determination and enhancing user experience.
[0110] like Figure 3 As shown, Figure 3 This is a flowchart illustrating another resource display method according to an exemplary embodiment. Based on the foregoing embodiments, this embodiment describes how to generate a resource display graph, including the following steps:
[0111] Step 301: Obtain monitoring information corresponding to multiple resource objects to be monitored. The monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs. System objects indicate objects categorized based on the composition structure of the business system. The highest-level system object indicates the business system.
[0112] In this embodiment, when the type of the resource object to be monitored is a first preset type, monitoring information reported by the resource object to be monitored is received. When the type of the resource object to be monitored is a second preset type, monitoring information reported by the monitoring service corresponding to the resource object to be monitored is received. The monitoring service is configured based on the sidecar mode.
[0113] In this embodiment, when the type of the resource object to be monitored is a first preset type, it indicates that the resource object to be monitored can automatically report monitoring information, and the monitoring information sent by the resource object to be monitored is received. When the type of the resource object to be monitored is a second preset type, it indicates that the resource object to be monitored has a corresponding monitoring service, which is used to monitor the resource object to be monitored, and the monitoring information reported by the monitoring service corresponding to the resource object to be monitored is received.
[0114] The first preset type can be middleware. Correspondingly, the relevant personnel are system objects of type middleware, that is, they configure relevant programs for the middleware so that the middleware can report the corresponding monitoring information according to the preset format during operation, that is, report the corresponding tag data according to the custom tag specifications.
[0115] The second preset type can be an instance type. Correspondingly, relevant personnel configure corresponding monitoring services for system objects of the instance type. That is, based on the sidecar mode, they configure relevant monitoring services for container-deployed application instances so that the monitoring service can report corresponding monitoring information according to a preset format during application instance operation. Since the monitoring service corresponding to the application instance is configured using the sidecar mode, it has no impact on the operation of the application instance, achieving seamless collection of monitoring information.
[0116] Optionally, relevant information about the resource object to be monitored (e.g., the identifier of the resource object to be monitored, the identifier of the system object at least one level to which the resource object to be monitored belongs) can also be obtained from the CMDB (Configuration Management Database).
[0117] The identifier for the resource object to be monitored can be its name, number, or corresponding address. Similarly, the identifier for a system object can also be its name, number, or corresponding address.
[0118] Optionally, the resource object to be monitored or the monitoring service corresponding to the resource object to be monitored can periodically report monitoring information. Each reported monitoring information may include the identifier of the system object to which the resource object to be monitored belongs. Of course, in order to reduce resource waste, the reported monitoring information may only include the identifier of the system object to which the resource object to be monitored belongs when the system object to which the resource object to be monitored belongs changes.
[0119] Step 302: Based on the identifiers of the system objects at at least one level to which the multiple resource objects to be monitored belong, determine the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object.
[0120] In this embodiment, the identifiers of the system objects to which multiple monitored resource objects belong are classified to obtain the system objects corresponding to the identifiers of the system objects for each business system. For each system object identifier, the monitored resource objects corresponding to the system object identifier are aggregated to determine the monitored resource objects corresponding to the system objects.
[0121] Specifically, the system objects belonging to each monitored resource object are categorized based on the business line-level system objects to which they belong, thus obtaining the system objects corresponding to the business systems of each business line, i.e., the system objects included in the business systems. For example, the monitored resource objects include resource object 1, resource object 2, and resource object 3. The business line-level system object to which resource object 1 belongs is business line 1, the business line-level system object to which resource object 2 belongs is business line 1, and the business line-level system object to which resource object 3 belongs is business line 2. Therefore, the system objects corresponding to the business system corresponding to business line 1 include all levels of system objects to which resource object 1 and resource object 2 belong; the system objects corresponding to the business system corresponding to business line 2 include all system objects to which resource object 3 belongs.
[0122] Specifically, for each system object, all monitored resource objects, including the identifier of the system object, are aggregated to obtain the monitored resource objects corresponding to the system object, that is, the monitored resource objects associated with the system object.
[0123] Step 303: For each business system, determine the association relationships between system objects corresponding to the business system based on the level of the system object identifier. These association relationships include one or more of the following: call relationships, containment relationships, and instantiation relationships between system objects.
[0124] In this embodiment, for each business system, the association relationships between the system objects corresponding to that business system are determined based on the level of all system objects corresponding to that business system, that is, the system object call chain corresponding to that business system is determined. For example, if the system object includes business line 1, then the platforms associated with business line 1 are determined, that is, the platforms included in the business system corresponding to business line 1, all functional modules associated with each platform, all applications associated with each functional module, and all application instances associated with each application, thereby realizing the automatic determination of the system object call chain of the business system corresponding to business line 1.
[0125] In this context, associations include invocation, inclusion, and instantiation. Specifically, when the association message between one system object and another is an invocation relationship, the higher-level system object invokes the lower-level system object; when the association message between one system object and another is an inclusion relationship, the higher-level system object includes, that is, includes, the lower-level system object; when the association message between one system object and another is an instantiation relationship, the lower-level system object is obtained by deploying the higher-level system object in a container, that is, by deploying the application in a container to obtain the corresponding application instance, then the association relationship between the application and the application instance is an instantiation relationship.
[0126] The relationships can be determined based on the level of the system object, included in monitoring information, or determined from relevant storage locations (e.g., databases); there are no restrictions on this. Alternatively, the relationships between system objects can be uniformly represented as call or containment relationships.
[0127] Step 304: Generate a resource display diagram based on the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object.
[0128] In this embodiment, based on the system object call chain corresponding to each business system and the resource objects to be monitored corresponding to each system object, that is, the resource objects to be monitored associated with the system objects, the resource usage of the system objects is automatically determined, thereby generating a corresponding resource display diagram to intuitively and clearly display the resource usage of the system objects in the business system.
[0129] In this context, the system object and the corresponding monitored resource object indicate a relationship between the system object and its corresponding monitored object. Alternatively, this can be uniformly represented as a call or containment relationship.
[0130] The resource display image can be a two-dimensional graphic or a three-dimensional graphic.
[0131] Optionally, when generating a two-dimensional resource display graph, for each business system, based on the relationships between system objects corresponding to the business system and the resource objects to be monitored corresponding to the system objects, the vertices and vertex pairs in the resource display graph corresponding to the business system are determined. Vertices include the system objects and resource objects to be monitored corresponding to the business system. Vertex pairs include vertices with relationships. Connecting the vertex pairs yields the resource display graph corresponding to the business system.
[0132] Specifically, for each system object corresponding to the business system, this system object is treated as a vertex, and each monitored resource object associated with this system object (i.e., each monitored resource object corresponding to this system object) is also treated as a vertex. Relationships between vertices are identified, and these vertex pairs are connected to obtain the corresponding edges, thereby generating a resource display graph for the business system object. This allows relevant personnel to understand the call chain of the system objects corresponding to the business system—that is, the relationships between system objects—and to identify the monitored resource objects used by the system objects, thus intuitively displaying the resource object usage of the business system. For example, as... Figure 4 As shown, business line 1 includes platform 1, platform 1 includes middleware 1 (i.e., resource object) and module 1, and calls module 2. Module 1 includes application 1 and application 2. Application 1 includes application instance 1 (i.e., resource object) and application instance 2 (i.e., resource object), application 2 includes application instance 3 (i.e., resource object), and module 2 calls resource object 1; for example, as... Figure 5 As shown, business line 2 includes platform 2, platform 2 also includes module 2, and includes module 3; module 3 includes application 3, and application 3 includes application instance 4.
[0133] In this embodiment, optionally, when generating the 3D resource display map, a 3D resource display map is generated based on physics engine technology, according to the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object. The resource display map is also used to display the relationships between business systems.
[0134] Specifically, based on physics engine technology, the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object are processed to generate the desired three-dimensional resource display map. This resource display map can reflect the overall situation of all business systems. That is, relevant personnel can not only learn about the call chain of system objects corresponding to each business system and the resource objects to be monitored used by the system objects through this resource display map, but also learn about the relationships between business systems. For example, which business systems jointly call a certain system object, and which business systems jointly call a certain resource object to be monitored.
[0135] Optionally, to enable relevant personnel to quickly identify abnormal business situations, abnormal system objects in the resource display diagram can be highlighted. The display process is as follows: For the target system object, obtain the business data of the corresponding monitored resource object. Analyze and process the business data of the monitored resource object corresponding to the target system object to obtain the business analysis result for the target system object. If the business analysis result is abnormal, display the target system object in the resource display diagram according to the first preset display method.
[0136] Specifically, during the operation of the business system, the business data generated by the system can be monitored. For a target system object, each corresponding resource object to be monitored is identified, and the business data from the monitoring data of each resource object is obtained. All the obtained business data, i.e., the business systems corresponding to all monitored resource objects, are analyzed to obtain the business analysis results for the target system object. If the business analysis result is determined to be abnormal, indicating a business data anomaly, i.e., a business anomaly corresponding to the target system object, it is highlighted in the resource display diagram according to a first preset display method. This allows relevant personnel to be aware of the abnormal target system object, thereby enabling analysis of the relevant business to determine the cause of the business anomaly, and thus improving the business or performing other operations.
[0137] The first preset display mode can be set according to actual needs, such as highlighting, displaying according to a specified color (e.g., red), etc.
[0138] Optionally, business data includes order cancellation data. The target system object includes the order platform.
[0139] The business data of the monitored resource objects corresponding to the target system objects are analyzed and processed to obtain the business analysis results corresponding to the target system objects, including:
[0140] Statistical analysis is performed on the order cancellation data corresponding to the monitored resource objects on the order platform to obtain the order cancellation rate corresponding to the order platform.
[0141] If the order cancellation rate on the order platform exceeds a first preset threshold, the corresponding business analysis result on the order platform is determined to be an abnormal result.
[0142] If the order cancellation rate on the order platform is less than or equal to the first preset threshold, the business analysis result corresponding to the order platform is determined to be a normal result.
[0143] Specifically, when the target system object is an order platform, the various resource objects to be monitored corresponding to the order platform are identified, i.e., the resource objects associated with the order platform are determined. For each identified resource object, the order cancellation data corresponding to that resource object is obtained. Statistical analysis is performed on the order cancellation data corresponding to all resource objects to obtain the corresponding order cancellation rate. If the order cancellation rate is greater than a first preset threshold, it indicates that the order cancellation rate is too high and there is an anomaly in the business, and the business analysis result corresponding to the order platform is determined to be an abnormal result. If the order cancellation rate is less than or equal to the first preset threshold, it indicates that the order cancellation rate is within the normal range, and the business analysis result corresponding to the order platform is determined to be a normal result.
[0144] The order cancellation rate can be the cancellation rate for a specified time period, and the corresponding order cancellation data refers to the order cancellation data generated within that specified time period. When calculating the order rate, the total number of orders sold can also be obtained. Specifically, based on the consumer order data generated within the specified time period, the total number of consumer orders is determined, and based on the order cancellation data, the total number of order cancellations is determined. The ratio of the total number of order cancellations to the total number of consumer orders is then calculated to obtain the order cancellation rate.
[0145] The target system object can be specified by relevant personnel.
[0146] In this embodiment, relevant personnel can view the resource usage of each business system discretely through a two-dimensional resource display diagram, and can also view the resource usage of all business systems and the relationships between business systems through a three-dimensional resource display diagram.
[0147] In this embodiment, monitoring information corresponding to the resources to be monitored is automatically collected. This information is used to determine the relationship between the resource objects to be monitored in each business system and the corresponding system objects in the business system. That is, the resource objects to be monitored used by the system objects. This generates a corresponding graph data structure, namely a resource display graph. Relevant personnel can automatically determine the usage of the resource objects to be monitored in the business system through the resource display graph, without the need for manual data search to determine the usage of resource objects, thus reducing the workload of relevant personnel.
[0148] Corresponding to the embodiments of the foregoing methods, this specification also provides embodiments of the apparatus and the terminal to which it is applied.
[0149] The embodiments of the resource display device described in this specification can be applied to computer devices, such as servers or terminal devices. The device embodiments can be implemented through software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by a processor that handles file processing reading the corresponding computer program instructions from non-volatile memory into memory for execution. From a hardware perspective, such as... Figure 6 The diagram shown is a hardware structure diagram of a computer device containing the resource display device according to an embodiment of this specification. Except for... Figure 6 In addition to the processor 610, memory 630, network interface 620, and non-volatile memory 640 shown, the computer device in which the resource display device 331 is located in the embodiment may also include other hardware depending on the actual function of the computer device, which will not be described in detail here.
[0150] like Figure 7 As shown, Figure 7This is a block diagram illustrating a resource display device according to an exemplary embodiment of this specification, the device comprising:
[0151] The resource information acquisition module 710 is used to acquire monitoring information corresponding to multiple resource objects to be monitored. The monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, with the system object indicating an object based on the composition structure of the business system.
[0152] The resource information processing module 720 is used to determine the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object based on the identifiers of at least one level of system objects to which multiple resource objects to be monitored belong.
[0153] The resource display module 730 is used to generate a resource display diagram based on the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object. The resource display diagram is used to show the relationship between the system objects corresponding to the business systems and the resource objects to be monitored.
[0154] Optionally, the resource information processing module 720 is specifically used for:
[0155] The system object identifiers of multiple monitored resource objects are classified to obtain the system objects corresponding to the system object identifiers of each business system.
[0156] For each system object's identifier, aggregate the various resource objects to be monitored corresponding to the system object's identifier to determine the resource objects to be monitored corresponding to the system object.
[0157] Optionally, the resource display module 730 is specifically used for:
[0158] For each business system, the relationships between system objects corresponding to the business system are determined based on the level of the identifier of the system object corresponding to the business system. These relationships include one or more of the following: call relationships, containment relationships, and instantiation relationships between system objects.
[0159] Based on the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object, a resource display diagram is generated.
[0160] Optionally, the resource display module 730 is specifically used for:
[0161] For each business system, based on the relationships between system objects and the resource objects to be monitored corresponding to those system objects, the vertices and vertex pairs in the resource display graph for that business system are determined. A vertex includes both the system object and the resource object to be monitored for that business system. A vertex pair includes vertices that have relationships with each other.
[0162] Connect the vertex pairs to obtain the resource display graph corresponding to the business system.
[0163] Optionally, the resource display module 730 is specifically used for:
[0164] Based on physics engine technology, a 3D resource visualization map is generated according to the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object. The resource visualization map is also used to display the relationships between business systems.
[0165] Optionally, monitoring information may also include business data.
[0166] The resource display module 730 is also used for:
[0167] For the target system object in the system object, obtain the business data of the resource object to be monitored corresponding to the target system object.
[0168] The business data of the resource objects to be monitored corresponding to the target system objects are analyzed and processed to obtain the business analysis results corresponding to the target system objects.
[0169] If the business analysis result is abnormal, the target system object in the resource display diagram will be displayed according to the first preset display method.
[0170] Optionally, business data includes order cancellation data. The target system object includes the order platform.
[0171] The resource display module 730 is also used for:
[0172] Statistical analysis is performed on the order cancellation data corresponding to the monitored resource objects on the order platform to obtain the order cancellation rate corresponding to the order platform.
[0173] If the order cancellation rate on the order platform exceeds a first preset threshold, the corresponding business analysis result on the order platform is determined to be an abnormal result.
[0174] If the order cancellation rate on the order platform is less than or equal to the first preset threshold, the business analysis result corresponding to the order platform is determined to be a normal result.
[0175] Optionally, the levels include one or more of the following: business line level, platform level, module dimension, application level, and instance level.
[0176] Optionally, the resource information acquisition module 710 is also used for:
[0177] If the type of the resource object to be monitored is the first preset type, receive the monitoring information reported by the resource object to be monitored.
[0178] When the type of the resource object to be monitored is the second preset type, the monitoring information reported by the monitoring service corresponding to the resource object to be monitored is received. The monitoring service is set up based on the sidecar mode.
[0179] Accordingly, this specification also provides an apparatus comprising a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
[0180] Obtain monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, and the system object indicates the object divided based on the composition structure of the business system;
[0181] The system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object are determined based on the identifiers of at least one level of system objects to which the multiple resource objects to be monitored belong.
[0182] A resource display diagram is generated based on the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display diagram is used to display the relationship between the system objects corresponding to the business systems and the resource objects to be monitored.
[0183] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0184] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0185] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0186] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.
[0187] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.
[0188] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
Claims
1. A resource display method, characterized in that, include: Obtain monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, the system object indicates the object divided based on the composition structure of the business system, one product line corresponds to one business system, and the level includes one or more of the following: business line level, platform level, module dimension, application level and instance level; Based on the identifiers of at least one level of system objects to which the multiple monitored resource objects belong, determine the system objects corresponding to each business system and the monitored resource objects corresponding to each system object; For each business system, the association relationships between system objects corresponding to the business system are determined based on the level of the identifier of the system object corresponding to the business system; wherein, the association relationship includes one or more of the following: calling relationship, containment relationship, and instantiation relationship between system objects; A resource display diagram is generated based on the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display diagram is used to display the relationships between system objects corresponding to each business system and resource objects to be monitored.
2. The method according to claim 1, characterized in that, The step of determining the system object corresponding to each business system and the resource object to be monitored corresponding to each system object based on the identifier of at least one level of system object to which the plurality of monitored resource objects belong includes: The system object identifiers of the multiple monitored resource objects are classified to obtain the system object corresponding to the system object identifier of each business system; For each system object's identifier, aggregate the various resource objects to be monitored corresponding to the system object's identifier to determine the resource objects to be monitored corresponding to the system object.
3. The method according to claim 1, characterized in that, The step of generating a resource display diagram based on the relationships between system objects corresponding to each of the business systems and the resource objects to be monitored corresponding to each of the system objects includes: For each business system, based on the relationships between system objects corresponding to the business system and the resource objects to be monitored corresponding to the system objects, vertices and vertex pairs in the resource display graph corresponding to the business system are determined; wherein, the vertices include the system objects corresponding to the business system and the resource objects to be monitored corresponding to the business system; the vertex pairs include vertices that have relationships. By connecting the vertex pairs, a resource display graph corresponding to the business system is obtained.
4. The method according to claim 1, characterized in that, The step of generating a resource display diagram based on the relationships between system objects corresponding to each of the business systems and the resource objects to be monitored corresponding to each of the system objects includes: Based on physics engine technology, a three-dimensional resource display map is generated according to the relationship between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display map is also used to display the relationship between the business systems.
5. The method according to claim 3 or 4, characterized in that, The monitoring information also includes business data; The method further includes: For the target system object in the system object, obtain the business data of the resource object to be monitored corresponding to the target system object; The business data of the resource objects to be monitored corresponding to the target system object are analyzed and processed to obtain the business analysis results corresponding to the target system object. If the business analysis result is abnormal, the target system object in the resource display diagram is displayed according to the first preset display mode.
6. The method according to claim 5, characterized in that, The business data includes order cancellation data; the target system object includes the order platform. The step of analyzing and processing the business data of the monitored resource object corresponding to the target system object to obtain the business analysis result corresponding to the target system object includes: Statistical analysis is performed on the order cancellation data corresponding to the monitored resource objects corresponding to the order platform to obtain the order cancellation rate corresponding to the order platform. If the order cancellation rate of the order platform is greater than a first preset threshold, the business analysis result corresponding to the order platform is determined to be an abnormal result. If the order cancellation rate of the order platform is less than or equal to the first preset threshold, the business analysis result of the order platform is determined to be a normal result.
7. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If the type of the resource object to be monitored is a first preset type, the monitoring information reported by the resource object to be monitored is received. When the type of the resource object to be monitored is a second preset type, the monitoring information reported by the monitoring service corresponding to the resource object to be monitored is received; wherein, the monitoring service is set based on the sidecar mode.
8. A resource display device, characterized in that, include: The resource information acquisition module is used to acquire monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, the system object indicates the object divided based on the composition structure of the business system, one product line corresponds to one business system, and the level includes one or more of the following: business line level, platform level, module dimension, application level and instance level. The resource information processing module is used to determine the system object corresponding to each business system and the resource object to be monitored corresponding to each system object based on the identifier of the system object at at least one level to which the multiple resource objects to be monitored belong. The resource display module is used to determine the association relationships between system objects corresponding to each business system based on the level of the identifier of the system object corresponding to the business system; and to generate a resource display diagram based on the association relationships between the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the association relationships include one or more of the following: calling relationship, inclusion relationship, and instantiation relationship between system objects; the resource display diagram is used to display the association relationships between the system objects corresponding to the business system and the resource objects to be monitored.
9. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the following method: Obtain monitoring information corresponding to multiple resource objects to be monitored; wherein, the monitoring information includes the identifier of at least one level of system object to which the resource object to be monitored belongs, the system object indicates the object divided based on the composition structure of the business system, one product line corresponds to one business system, and the level includes one or more of the following: business line level, platform level, module dimension, application level and instance level; Based on the identifiers of at least one level of system objects to which the multiple monitored resource objects belong, determine the system objects corresponding to each business system and the monitored resource objects corresponding to each system object; For each business system, the association relationships between system objects corresponding to the business system are determined based on the level of the identifier of the system object corresponding to the business system; wherein, the association relationship includes one or more of the following: calling relationship, containment relationship, and instantiation relationship between system objects; A resource display diagram is generated based on the relationships between system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object; wherein, the resource display diagram is used to display the relationships between system objects corresponding to each business system and resource objects to be monitored.
10. A computer-readable storage medium, characterized in that, It includes a computer program, which, when executed by a processor, implements the resource display method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for monitoring service system based on module finding
CN104468193A
Business leveled network service monitoring system
CN106789366A
A data processing method and system
CN109460432A
Monitoring method, monitoring system and computer readable storage medium
CN109697153A