Search

CN-114281652-B - Resource display method and device

CN114281652BCN 114281652 BCN114281652 BCN 114281652BCN-114281652-B

Abstract

The specification provides a resource display method and device, wherein the method comprises the steps of obtaining monitoring information corresponding to a plurality of resource objects to be monitored, wherein the monitoring information comprises identification of at least one level of system objects to which the resource objects to be monitored belong, determining the system objects corresponding to each business system and the resource objects to be monitored corresponding to each system object according to the identification of the at least one level of system objects to which the plurality of resource objects to be monitored belong, and generating a resource display diagram according to 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 for displaying the association relation between the system objects corresponding to the business system and the resource objects to be monitored, so that the efficiency of determining the use condition of the resource objects is improved.

Inventors

  • MENG LIANG
  • WU KE

Assignees

  • 胜斗士(上海)科技技术发展有限公司

Dates

Publication Date
20260508
Application Date
20211230

Claims (10)

  1. 1. A resource display method, comprising: Acquiring monitoring information corresponding to a plurality of resource objects to be monitored, wherein the monitoring information comprises identification of a system object of at least one level to which the resource objects to be monitored belong, the system object indicates an object divided based on a composition structure of a service system, one product line corresponds to one service system, and the level comprises one or more of a service line level, a platform level, a module dimension, an application level and an instance level; Determining system objects corresponding to the business systems and resource objects to be monitored corresponding to the system objects according to the identifiers of the system objects of at least one level to which the plurality of resource objects to be monitored belong; For each service system, determining an association relation between system objects corresponding to the service system according to the level of the identification of the system objects corresponding to the service system, wherein the association relation comprises one or more of calling relation, inclusion relation and instantiation relation between the system objects; Generating a resource display diagram according to the association relation between the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects, wherein the resource display diagram is used for displaying the association relation between the system objects corresponding to the service systems and the resource objects to be monitored.
  2. 2. The method according to claim 1, wherein the determining the system object corresponding to each service system and the resource object to be monitored corresponding to each system object according to the identification of the system object of at least one level to which the plurality of resource objects to be monitored belong includes: classifying the identifiers of the system objects to which the plurality of resource objects to be monitored belong to, and obtaining the system object corresponding to the identifier of the system object corresponding to each service system; and for the identification of each system object, aggregating each resource object to be monitored corresponding to the identification of the system object, and determining the resource object to be monitored corresponding to the system object.
  3. 3. The method according to claim 1, wherein the generating a resource display diagram according to the association relationship between the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects includes: For each service system, determining a vertex and a vertex pair in a resource display diagram corresponding to the service system according to the association relation between system objects corresponding to the service system and resource objects to be monitored corresponding to the system objects, wherein the vertex comprises the system objects corresponding to the service system and the resource objects to be monitored corresponding to the service system; and connecting the vertex pairs to obtain a resource display diagram corresponding to the service system.
  4. 4. The method according to claim 1, wherein the generating a resource display diagram according to the association relationship between the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects includes: based on a physical engine technology, generating a three-dimensional resource display diagram according to the association relation between system objects corresponding to each service system and the resource objects to be monitored corresponding to each system object, wherein the resource display diagram is also used for displaying the association relation between the service systems.
  5. 5. The method according to claim 3 or 4, wherein the monitoring information further comprises traffic data; The method further comprises the steps of: for a target system object in the system objects, acquiring service data of a resource object to be monitored corresponding to the target system object; Analyzing and processing the business data of the resource object to be monitored corresponding to the target system object to obtain a business analysis result corresponding to the target system object; And responding to the business analysis result as an abnormal result, and displaying the target system object in the resource display diagram according to a first preset display mode.
  6. 6. The method of claim 5, wherein the business data comprises order return data, and wherein the target system object comprises an order platform; The analyzing and processing the business data of the resource object to be monitored corresponding to the target system object to obtain a business analysis result corresponding to the target system object comprises the following steps: Carrying out statistical analysis on the data of return corresponding to the resource object to be monitored corresponding to the order platform to obtain the data of return corresponding to the order platform; Determining that a business analysis result corresponding to the order platform is an abnormal result under the condition that the order returning rate of the order platform is larger than a first preset threshold value; And under the condition that the order returning rate of the order platform is smaller than or equal to the first preset threshold value, determining that the service analysis result corresponding to the order platform is a normal result.
  7. 7. The method according to any one of claims 1 to 4, further comprising: Receiving monitoring information reported by the resource object to be monitored under the condition that the type of the resource object to be monitored is a first preset type; And receiving monitoring service corresponding to the resource object to be monitored to report monitoring information under the condition that the type of the resource object to be monitored is a second preset type, wherein the monitoring service is set based on a side car mode.
  8. 8. A resource display device, comprising: The resource information acquisition module is used for acquiring monitoring information corresponding to a plurality of resource objects to be monitored, wherein the monitoring information comprises identification of a system object of at least one level to which the resource objects to be monitored belong, the system object indicates an object divided based on a composition structure of a service system, one product line corresponds to one service system, and the level comprises one or more of a service line level, a platform level, a module dimension, an application level and an instance level; The resource information processing module is used for determining the system object corresponding to each service system and the resource object to be monitored corresponding to each system object according to the identification of the system object of at least one level to which the plurality of resource objects to be monitored belong; The resource display module is used for determining the association relation between the system objects corresponding to the service systems according to the identification levels of the system objects corresponding to the service systems for each service system, and generating a resource display diagram according to the association relation between the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects, wherein the association relation comprises one or more of calling relation, containing relation and instantiation relation among the system objects, and the resource display diagram is used for displaying the association relation between the system objects corresponding to the service systems and the resource objects to be monitored.
  9. 9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor performs the following method when executing the program: Acquiring monitoring information corresponding to a plurality of resource objects to be monitored, wherein the monitoring information comprises identification of a system object of at least one level to which the resource objects to be monitored belong, the system object indicates an object divided based on a composition structure of a service system, one product line corresponds to one service system, and the level comprises one or more of a service line level, a platform level, a module dimension, an application level and an instance level; Determining system objects corresponding to the business systems and resource objects to be monitored corresponding to the system objects according to the identifiers of the system objects of at least one level to which the plurality of resource objects to be monitored belong; For each service system, determining an association relation between system objects corresponding to the service system according to the level of the identification of the system objects corresponding to the service system, wherein the association relation comprises one or more of calling relation, inclusion relation and instantiation relation between the system objects; Generating a resource display diagram according to the association relation between the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects, wherein the resource display diagram is used for displaying the association relation between the system objects corresponding to the service systems and the resource objects to be monitored.
  10. 10. A computer readable storage medium comprising a computer program which, when executed by a processor, implements the resource display method of any of claims 1 to 7.

Description

Resource display method and device Technical Field The present disclosure relates to the field of resource management technologies, and in particular, to a method and an apparatus for displaying resources. Background To ensure the normal operation of the service system, a plurality of resource objects, such as message middleware, virtual machine instance, physical machine instance, etc., need to be deployed for the service system. Currently, when determining the use condition of a resource object corresponding to a certain service system, a related person needs to search a resource application form related to the service system, so as to determine the use condition of the resource of the system object corresponding to the service system by using the resource application form, for example, determine the resource object used by a certain functional module. However, because the service conditions of the resource objects corresponding to the service system need to be determined manually, the time required for determining the service conditions of the resource objects is long, so that the efficiency of determining the service conditions of the resource objects is low, and the user experience is affected. Disclosure of Invention In order to overcome the problems in the related art, the present specification provides a resource display method and apparatus. According to a first aspect of embodiments of the present specification, there is provided a resource display method, the method including: Acquiring monitoring information corresponding to a plurality of resource objects to be monitored, wherein the monitoring information comprises identification of system objects of at least one level to which the resource objects to be monitored belong, and the system objects indicate objects divided based on a composition structure of a service system; Determining system objects corresponding to the business systems and resource objects to be monitored corresponding to the system objects according to the identifiers of the system objects of at least one level to which the plurality of resource objects to be monitored belong; generating a resource display diagram according to the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects, wherein the resource display diagram is used for displaying the association relationship between the system objects corresponding to the service systems and the resource objects to be monitored. Optionally, the determining, according to the identifiers of the system objects of at least one level to which the plurality of resource objects to be monitored belong, the system object corresponding to each service system and the resource object to be monitored corresponding to each system object includes: classifying the identifiers of the system objects to which the plurality of resource objects to be monitored belong to, and obtaining the system object corresponding to the identifier of the system object corresponding to each service system; and for the identification of each system object, aggregating each resource object to be monitored corresponding to the identification of the system object, and determining the resource object to be monitored corresponding to the system object. Optionally, the generating a resource display diagram according to the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects includes: For each service system, determining an association relation between system objects corresponding to the service system according to the level of the identification of the system objects corresponding to the service system, wherein the association relation comprises one or more of calling relation, inclusion relation and instantiation relation between the system objects; And generating a resource display diagram according to the association relation between the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects. Optionally, the generating a resource display diagram according to the system objects corresponding to the service systems and the resource objects to be monitored corresponding to the system objects includes: For each service system, determining a vertex and a vertex pair in a resource display diagram corresponding to the service system according to the association relation between system objects corresponding to the service system and resource objects to be monitored corresponding to the system objects, wherein the vertex comprises the system objects corresponding to the service system and the resource objects to be monitored corresponding to the service system; and connecting the vertex pairs to obtain a resource display diagram corresponding to the service system. Optionally, the generating a resource display diagram according to the association relation