CN109002334B - Operation and maintenance platform and data processing method thereof - Google Patents

Operation and maintenance platform and data processing method thereof Download PDF

Info

Publication number
CN109002334B
CN109002334B CN201710413033.2A CN201710413033A CN109002334B CN 109002334 B CN109002334 B CN 109002334B CN 201710413033 A CN201710413033 A CN 201710413033A CN 109002334 B CN109002334 B CN 109002334B
Authority
CN
China
Prior art keywords
data
interface
maintenance platform
maintenance
view
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.)
Active
Application number
CN201710413033.2A
Other languages
Chinese (zh)
Other versions
CN109002334A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710413033.2A priority Critical patent/CN109002334B/en
Publication of CN109002334A publication Critical patent/CN109002334A/en
Application granted granted Critical
Publication of CN109002334B publication Critical patent/CN109002334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance

Abstract

An operation and maintenance platform and a data processing method thereof are provided, wherein the operation and maintenance platform maintains an operation and maintenance environment, creates a first view according to an input instruction, adds a first visual component in the first view and binds the first visual component with a first data interface, and the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform; and when the operation and maintenance platform detects that the first view is opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface. According to the method and the device, the visual component can be added in the view through the instruction to display data, UI design and front-end development are not needed, and the design and development processes are simplified.

Description

Operation and maintenance platform and data processing method thereof
Technical Field
The invention relates to operation and maintenance technology, in particular to an operation and maintenance platform and a data processing method thereof.
Background
The operation and maintenance duty runs through the life cycle of the product, and an automatic and intelligent platform is needed to help an operation and maintenance engineer to complete service delivery and service quality guarantee for users at the lowest cost and the highest speed. The operation and maintenance platform needs to maintain an operation and maintenance environment, and generally comprises functions of data monitoring, report display, operation and maintenance operation and the like.
There are many reporting systems and tools in the market currently, domestic reports with sail soft Finereport and run dry report, and foreign reports with JFreeReport, Excel and other tools. In addition to the reports, there are open source monitoring systems like Grafana + infiluxDB. These systems may access data sources, filter, analyze, and process user data, and then present the user in forms such as tables or graphs.
When the operation and maintenance platform in the related art uses a traditional reporting tool or a monitoring system, the following problems generally exist:
the operation and maintenance operation page needs to be developed in a User Interface (UI) customization mode, products, front-end development and back-end development are required to be communicated in the process, the page needs to be analyzed, designed and developed, and the whole process is long in time and period.
The data displayed by the report is not flexible enough;
the data source is single;
data monitoring, report display and operation and maintenance operations cannot be organically combined, and operation and maintenance personnel cannot immediately perform operation and maintenance operations on a display interface after positioning problems.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a data processing method for an operation and maintenance platform, including:
an operation and maintenance platform maintains an operation and maintenance environment, a first view is created according to an input instruction, a first visual component is added in the first view, and the first visual component is bound with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
and when the operation and maintenance platform detects that the first view is opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface.
In view of this, the embodiment of the present invention further provides an operation and maintenance platform, which includes an operation and maintenance environment management module, a data source management module, and a data display module, where the data display module includes;
the view editing unit is used for creating a first view according to an input instruction, and adding a first visual component in the first view;
the component editing unit is used for binding the first visual component with a first data interface, and the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
and the data display unit is used for calling the first data interface to acquire and analyze data when the first view is detected to be opened, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on the display interface.
In view of this, an embodiment of the present invention further provides an operation and maintenance platform, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
maintaining an operation and maintenance environment, creating a first view according to an input instruction, adding a first visual component in the first view, and binding the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
and when the first view is detected to be opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface.
In view of this, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the following steps:
maintaining an operation and maintenance environment, creating a first view according to an input instruction, adding a first visual component in the first view, and binding the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
and when the first view is detected to be opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface.
By adopting the embodiment, a user can add the visual component in the view through an instruction to display data, UI design and front-end development are not required to be additionally carried out, and the design and development process is simplified.
Drawings
FIG. 1 is a diagram of an exemplary navigation tree in accordance with a first embodiment of the present invention;
FIG. 2 is a diagram of an exemplary display interface according to a first embodiment of the invention;
FIG. 3 is a flowchart of a method for processing operation and maintenance platform data according to an embodiment of the present invention;
fig. 4 is a block diagram of a second operation and maintenance platform according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Example one
The embodiment relates to a data processing method of an operation and maintenance platform.
The operation and maintenance platform of the embodiment adopts a set of universal interface framework, and the interface framework is composed of an operation and maintenance environment (context), a view (view), a visualization component (widget) and a data source (database).
The operation and maintenance environment includes nodes composed of a plurality of operation and maintenance entities, which may be organized as a navigation tree, in an example, as shown in fig. 1, the navigation tree has a Cloud service (Cloud) as a root node, a secondary node of a type Project (Project) is included below the root node, a tertiary node of a type Cluster (Cluster) is included below the secondary node, a quaternary node of a type Machine (Machines) and a quaternary node of a type service (Services) are included below the tertiary node, a quinary node of a type Machine (Machines) is included below the quaternary node of a type Machine (Machines), and the quinary nodes of a type Machine may correspond to production servers in the Cluster. Under the four-level node with the node type being Service set (Services), the five-level node with the node type being Service (Service), the six-level node with the node type being Service Role (Service Role) and the seven-level node with the node type being Machine (Machine) are included step by step. The service can include monitoring service and operation service, and the service role can be to monitor the CPU occupancy rate, memory occupancy rate, disk occupancy rate, online status, etc. of the production server, count the effective working time of the production server, access response time, and service capacity expansion, software upgrade, etc. The machine under the service role can be a server for providing monitoring and operation and maintenance service for the production cluster, and data generated by the server can be used as a data source of the operation and maintenance platform. The navigation tree can be provided with a plurality of secondary nodes from different dimensions, and fig. 1 also shows the secondary nodes with the node types of regions (regions) and Services (Services), and more lower nodes (omitted in the figure) can be divided under the secondary nodes according to needs. Based on the navigation tree, an operation and maintenance entity of a certain level can be positioned, a view corresponding to a node can be opened through double clicking, and if the clicked node is not a leaf node, the leaf node can be expanded. The operation and maintenance platform stores information of nodes in the operation and maintenance environment, such as node types, addresses, topological relations, path information and the like.
The view (view) is a container of a visualization component (widget) and is also a display part of the whole system, and the view contains a series of attributes including a view name, a group to which the view belongs, a view description and the like. View above may also implement a global series of operations such as: editing the view, deleting the view, full-screen the view, and refreshing all widgets under the current view.
A visualization component (widget) is a component that exposes data, and may contain the following attributes: component name, component type, data source association parameters, and the like. Wherein the component type can be a table, a line graph, a bar graph, a pie graph, a network topology, text, and the like.
A data source (database) needs to be registered to the operation and maintenance platform, the data source of this embodiment may be a data source of a database type, or may also be a data source of an Application Programming Interface (API) type, and for a database (such as mysql, rds, sqlite, and the like), it is sufficient to meet an access specification of the database. For API type data sources, the operation and maintenance platform uses the API as a data interface to obtain data. The operation and maintenance platform defines a set of data access specifications, wherein the data access specifications comprise read-write interfaces of the API (wherein data structures of data acquired by calling the API are defined), and each system can be seamlessly accessed into the operation and maintenance platform as a data source as long as the API is realized according to the access specifications.
FIG. 2 is an exemplary interface that may include the contents of the navigation tree, view list, view, etc. of the operation and maintenance environment, and the data source may be called out separately and not displayed on the interface. The views in the figures include tables, line graphs, pie charts, configuration graphs, and the like.
The data processing method of the operation and maintenance platform of the embodiment is shown in fig. 3, and includes: step 110, an operation and maintenance platform maintains an operation and maintenance environment, creates a first view according to an input instruction, adds a first visual component in the first view, and binds the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform; and step 120, when the operation and maintenance platform detects that the first view is opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface.
Reference to "first" in the first view, first visualization component, first data interface, and first data source in this application is only representative of the view, visualization component, data interface, and data source being operated on, and does not mean that the view, visualization component, data interface, and data source are specific per se.
In step 110:
in this embodiment, creating the first view may configure basic properties of the view, such as a view name, a description of the view, and the like.
In this embodiment, adding the visualization component in the view may be completed through a drag operation, that is, when the operation and maintenance platform detects that the icon of the first visualization component is dragged to the first view, the first visualization component is added to the first view. The operation and maintenance personnel can drag icons of the visual components in a toolbar (toolbar) to a view area, add new visual components in the view, and also drag the visual components which are added to the view to move positions or change sizes. One or more visualization components may be added in one view. The mode of adding the visual component does not need UI customization, and the process of designing and page developing is simplified.
In this embodiment, the binding, by the operation and maintenance platform, the first visualization component and the first data interface according to the input instruction includes:
the operation and maintenance platform configures the first data source as a data source of the first visual component according to an input instruction;
the operation and maintenance platform inquires a data interface associated with the first data source and displays the inquired data interface on a display interface, wherein the inquired data interface comprises the first data interface;
the operation and maintenance platform associates the first visual component with the first data interface according to an input instruction, and determines a first data item for generating the first visual component from data items contained in the first data interface.
When editing a first visual component, a user may select a data source for the first visual component from the registered list of data sources, configured as the data source for the first visual component. The data source of the embodiment can be a database type or API type data source, thereby avoiding the problem of single data source. The data sources for different visualization component configurations in the same view may be the same or different. After the data source is selected, the operation and maintenance platform acquires address information registered by the first data source or acquires address information of the home node according to a home node registered by the first data source (the home node is generally a node providing monitoring service or operation and maintenance service in the operation and maintenance environment); and then the operation and maintenance platform calls a query interface according to the acquired address information, and finds the data interfaces associated with the first data source, namely all the data interfaces for acquiring data from the first data source, through the query interface.
Typically, a data interface contains one or more data items, which, if a data interface obtains data from a database, may be fields in a data table (e.g., the names of columns in the table); in the case of an API, the data item may be a field in a data structure defined by the operation and maintenance platform for the API. The first visualization component does not necessarily need to expose data of all data items in the first data interface. Therefore, in this embodiment, the operation and maintenance platform determines the first data item for generating the first visualization component from the data items included in the first data interface. The first data item may be specified by the user, and if not specified, all data items are by default the first data item. For example, the first data interface includes 6 data items of "cluster", "machine", "CPU occupancy", "memory occupancy", and "disk occupancy", and the first visualization component only needs to show the CPU occupancy of the machine in the cluster, so that the determined first data item for generating the first visualization component includes 3 data items of "cluster", "machine", and "CPU occupancy". The selection of the first data item may be user specified. If not specified by the user, it may be default that all data items in the first data interface are first data items. The first data item can be used as a calling parameter of the data interface, so that only the data of the first data item is returned after the data interface is called.
In this embodiment, it is considered that the data acquired by the data interface includes data corresponding to all values of the first data item, and the user may only want to display the data corresponding to the first data item as a partial value in the first visualization component. For example, invoking the first data interface may obtain the CPU occupancy of all machines in all clusters in the operation and maintenance environment. And the user may only want to show the CPU occupancy rate of a certain cluster or a certain machine in the first visualization component, and does not want to write the shown cluster or machine to death, but wants to select a node in the operation and maintenance environment (such as a node representing the cluster a or a node representing the machine a) by clicking, and use a value of the node related to the first data item (such as an ID of the cluster a or the machine a) as a screening condition, and screen the acquired data for the corresponding data when the first data item is the value, for example, screen the CPU occupancy rate of the cluster a from the acquired data according to the ID of the cluster a, or screen the CPU occupancy rate of the machine a from the acquired data according to the ID of the machine a.
The operation and maintenance environment is defined with some parameter items related to nodes in the operation and maintenance environment, and the information of the nodes comprises values of the corresponding parameter items. For example, each node type, such as "cluster", "machine", "service role", etc., may be used as a parameter item, a machine ID of a machine node (a node whose node type is a machine) may be used as a value of the parameter item "machine", and a cluster ID of a cluster node (a node whose node type is a cluster) on a path where the machine node is located may be used as a value of the parameter item "cluster". In this embodiment, after the operation and maintenance platform binds the first visualization component to the first data interface, the operation and maintenance platform further associates some or all of the first data items with corresponding parameter items defined in the operation and maintenance environment, so as to implement correct delivery of values. For example, data items representing "cluster" and "machine" in the data interface are associated with parameter items representing "cluster" and "machine" in the operation and maintenance environment, and it should be noted that the data items representing the same meaning are not necessarily the same as the names of the parameter items. The association relationship may be established by an input instruction of a user, or may be established by a corresponding relationship table between the configured data item and the parameter item.
In other embodiments, the condition for filtering may be configured when the first visualization component is edited, for example, a "cluster" or a "machine" to be displayed is selected when the first visualization component is edited, but this is not flexible enough, and on one hand, many visualization components need to be configured, and on the other hand, if the cluster or machine in the operation and maintenance environment changes, such as addition, deletion, and modification, reconfiguration needs to be performed. Therefore, the embodiment also adopts a dynamic screening mode, and different cluster nodes or machine nodes can be selected in the display, so that the data of different cluster nodes or machine nodes can be displayed in the same visual view, and the reconfiguration is not needed due to the change of the nodes.
After the configuration of the first view and the first visual component is completed, the corresponding configuration information can be saved, such as in an API server in the background, and can be displayed in a view list on the display interface.
In step 120:
in this embodiment, the first data interface is an API, and the operation and maintenance platform specifies a data structure of data obtained by calling the API, where the data structure includes data (such as header data and data area data) used to generate display content, or includes data used to generate display content and data used to trigger an operation (such as operation control data and a corresponding operation and maintenance instruction), that is, the data used to trigger the operation is a selectable item in the data structure; in step 120, the operation and maintenance platform generates the first visualization component according to the parsed data, including: and the operation and maintenance platform generates the display content of the first visual component according to the data for generating the display content obtained by analyzing the data structure, and if the data for triggering operation is obtained by analyzing, generates a corresponding operation control on the first visual component.
In this embodiment, the data for triggering the operation includes an operation and maintenance instruction associated with the operation control; if the first visual assembly is provided with an operation control, the operation and maintenance platform displays the generated first visual assembly in the first view on the display interface, and if the operation control is detected to be selected, the operation and maintenance operation is executed according to the operation and maintenance instruction. The functions of data monitoring, report display, operation and maintenance operation and the like are organically combined, and operation and maintenance personnel can perform operation and maintenance operation on the display interface after positioning problems. The operation and maintenance operation may be for a server, such as taking a certain server off-line, or performing a software upgrade on a certain server, or may be for a data interface, such as deleting a certain data item in the data interface. The operation and maintenance operation can be completed by calling corresponding functions.
By defining the data structure, the visual component and the data source can be freely bound. The method can not only enable different data sources to have the same display mode, but also enable the same data sources to have different display modes. Because the data structure can have operation control and operation and maintenance instructions, the data interface can be not only a read interface, but also a write interface. After the user service realizes the socket, the read-only data can be displayed in the report, and a series of operation control and operation and maintenance instructions can be defined to realize the write operation, so that the read and write can be organically combined in the platform.
As described above, when the operation and maintenance platform generates the first visual component according to the analyzed data, the operation and maintenance platform of this embodiment may filter data according to a selected node, specifically, before the operation and maintenance platform generates the first visual component, the operation and maintenance platform detects the selected node in the operation and maintenance environment, and extracts a value of a parameter item bound to the first data item from information of the selected node; and then screening out data corresponding to the first data item as the extracted value from the analyzed data, and generating the first visual component by using the screened data. For example, the first visualization component is a chart for showing the CPU occupancy of the selected machine or machines, the data acquired by the first data interface includes the CPU occupancy of all machines in all clusters, before the first visualization component is generated, the operation and maintenance platform detects the selected machine node in the operation and maintenance environment, and if no selected machine node exists, the operation and maintenance platform may prompt the user to select a machine node whose data is to be displayed. Assuming that the user selects the node representing the machine A, the operation and maintenance platform extracts the machine ID of the machine A and the cluster ID of the cluster to which the machine A belongs, the two IDs can be used for screening out data of the CPU occupancy rate of the machine A in the cluster A from the data acquired by the first data interface, and then a first visual component is generated according to the screened data. If the user selects another machine node, such as a node representing machine B in cluster B, the operation and maintenance platform may filter out the data of the CPU occupancy rate of machine B in cluster B and display the data on the first visualization component. The operation of selecting the node may be a single-click operation on the node, and if a user single-clicks a certain node, the value of the corresponding parameter item of the node may be transmitted as a parameter to an image engine for generating a visual component to generate a first visual component.
Different visualization components in the same view can be associated through nodes in the operation and maintenance environment. For example, the first view includes 3 first visual components, which are a line graph showing CPU occupancy variation of the machine, a line graph showing memory occupancy variation of the machine, and a line graph showing disk occupancy variation of the machine. And generating and displaying the 3 line graphs according to the selected machine nodes, wherein when the user selects the machine A in the cluster A, the 3 line graphs in the view respectively display the CPU occupancy rate, the memory occupancy rate and the disk occupancy rate of the machine A in the cluster A.
For the first view, the presentation can be realized by reading the saved configuration information of the first view, such as the view size, the position and the like,
an exemplary per-source access specification for the present embodiment is given below. According to defined data sources and interfaces of other services. Each service may become a data source for the operation and maintenance platform. The platform can be automatically accessed according to the standard, so that the operation and maintenance service and the system of the monitoring service can be monitored and configured in a uniform mode.
Table 1 below is an exemplary data structure employed for data source registration.
Name (R) Type (B) Description of the invention
Name Character string Name of data source
Context Character string The data source's attribution sectionPoints, usable to determine the address of a data source
Type Character string The type of data source can be Database or API
Address Character string For defining the address of the database, such as IP or Hostname.
Port Integer number of Service port number.
DBName Character string Database name
DBUser Character string Database user name
DBPasswd Character string Database password
Description Character string Description of data sources
Wherein, the type of the data source can be a Database (Database) type or an API type. From the registration information, the type of data source can be known. Both the database and the API are addressable by a registered Address (Address), and if the Address value is null, the service Address of the home node indicated by the context field is taken as the Address of the data source.
After determining the address of the data source, a query interface for the service address, such as a query interface that displays all database interfaces (ListAllDatabases) or a query interface that displays all APIs (ListAllCommands), may be called to obtain information for all databases or APIs. Other systems need only implement interfaces like ListAllDatabases or ListAllCommands to access the platform. By the method, whether the data source providing the service in the operation and maintenance platform is increased or updated can be easily found, and the operation and maintenance platform can flexibly expand the data source.
For data sources of the API type (i.e., non-database type), it is also necessary to provide APIs as interfaces for obtaining data from the data sources, which are called to obtain data for generating visual components.
In one example, the operation and maintenance platform has agreed on the data structure of the data obtained by the API, as shown in table 2 below:
Figure BDA0001312952120000101
Figure BDA0001312952120000111
as shown in the above table, the fields that need to be returned by the API include schema and data, where the schema is used as a data item of the API, for example, as a field in a report header, and the data is used as data of a report data area, where the schema and the data are used to provide presentation data for visualization components of the operation and maintenance platform to generate content for display. The data structure also comprises an optional field of operations, the service can generate operation controls such as buttons, links and the like on the visual assembly as long as the operations are defined, and the service provider can realize the visual assembly simultaneously comprising the report and the operation controls only by defining the interface.
According to the specifications, after the service developer develops the API according to the specifications, the service developer can register the data source in the operation and maintenance platform, and the registration process can be completed in the background. After the operation and maintenance platform finds a new data source, the new data source can be displayed on a configuration interface of the visualization component.
In the embodiment, the operation and maintenance service provider and the monitoring service provide data interfaces to access the operation and maintenance platform. A user (such as an operation and maintenance person) only needs to define a view on a page, a data source of a visual component in the view and the like, so that a desired dashboard (dashboard) can be customized, and some main overview information of the system is displayed on an interface.
Example two
The embodiment provides an operation and maintenance platform to implement the data processing of the first embodiment.
As shown in fig. 4, the operation and maintenance platform of the present embodiment includes an operation and maintenance environment management module 10, a data source management module 20, and a data presentation module 30, where the data presentation module includes;
a view editing unit 301, configured to create a first view according to an input instruction, and add a first visual component in the first view;
a component editing unit 303, configured to bind the first visualization component with a first data interface, where the first data interface is used to obtain data from a first data source registered to the operation and maintenance platform;
the data display unit 305 is configured to, when it is detected that the first view is opened, invoke the first data interface to obtain data and analyze the data, generate the first visualization component according to the analyzed data, and display the generated first visualization component in the first view on the display interface.
In the present embodiment, it is preferred that,
the view editing unit adds a first visual component in the first view according to an input instruction, and comprises: and when the icon of the first visual component is detected to be dragged into the first view, adding the first visual component into the first view.
In the present embodiment, the first and second electrodes are,
the component editing unit includes:
a configuration subunit, configured to configure the first data source as a data source of the first visualization component according to an input instruction;
the query subunit is configured to query the data interface associated with the first data source, and display the queried data interface on a display interface, where the queried data interface includes the first data interface;
the binding subunit is used for associating the first visualization component with the first data interface according to an input instruction, and determining a first data item used for generating the first visualization component from data items contained in the first data interface.
In the present embodiment, the first and second electrodes are,
after the component editing unit binds the first visual component with the first data interface, the component editing unit is further configured to associate some or all of the first data items with corresponding parameter items defined in the operation and maintenance environment.
The data display unit generates the first visual component according to the data obtained by analysis, and the data display unit comprises: detecting a selected node in the operation and maintenance environment, and extracting the value of a parameter item bound with the first data item from the information of the selected node; and screening out data corresponding to the first data item as the extracted value from the analyzed data, and generating the first visual component by using the screened data.
In the present embodiment, the first and second electrodes are,
the first data interface is an Application Programming Interface (API), the data acquired by the API has a data structure specified by the operation and maintenance platform, and the data structure comprises data for generating display content or comprises data for generating the display content and data for triggering operation;
the data display unit generates the first visual component according to the data obtained by analysis, and the data display unit comprises: and generating the display content of the first visual component according to the data which is analyzed from the data structure and used for generating the display content, and if the data which is analyzed and used for triggering the operation is obtained, generating a corresponding operation control on the first visual component.
In the present embodiment, the first and second electrodes are,
the operation and maintenance platform further comprises: and the operation and maintenance operation module is used for executing operation and maintenance operation according to the operation and maintenance instruction when the operation control is detected to be selected.
In the present embodiment, the first and second electrodes are,
the first data source is a data source of a database type or an Application Programming Interface (API) type;
the querying subunit queries a data interface for obtaining data from the first data source, including: acquiring address information registered by the first data source or acquiring address information of a home node according to the home node registered by the first data source; and calling a query interface according to the acquired address information, and searching all data interfaces associated with the first data source through the query interface.
The modules, units and sub-units of the embodiment execute the example of the processing and other executable processing in the method of the embodiment, and the description is not repeated here.
In an example of this embodiment, the operation and maintenance platform is divided into a front-end system and a back-end system, and the front-end system is used to implement interface display and operation related to the above modules. The back-end system comprises a WEB server and an API server. Referring to fig. 4, in the front-end system, a view and a visualization component may be defined through the view editing unit 301 and the component editing unit 303, the data presentation unit 305 (which may be implemented by using a view rendering engine) is responsible for presenting data in the background into a visualization component such as a report, the operation and maintenance environment management module 10 is responsible for node management, and may pass parameters of a selected node to the data presentation unit 305 to filter out data used for generating all visualization components in the view. The front-end interface of the embodiment adopts a WEB page form, a front-end system can acquire data only by communicating with a rear-end WEB server, and the WEB server encapsulates various data interfaces to provide data for the front end. If the front-end system is realized in a GUI development mode instead of a WEB page mode and accesses the system in a client software mode, a WEB server is not required to be arranged, and the API server is used for providing interfaces for authentication, data source registration and storing information such as operation and maintenance environment, views and visual components. The modules and units of the embodiment can be implemented by running corresponding computer programs by a processor.
The operation and maintenance platform of the embodiment has a universal interface framework, and various reports, monitoring services and operation and maintenance services can be independently accessed into the platform and are organically integrated together.
The embodiment also provides an operation and maintenance platform, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
maintaining an operation and maintenance environment, creating a first view according to an input instruction, adding a first visual component in the first view, and binding the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
and when the first view is detected to be opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface.
The processor of this embodiment, when executing the computer program, may implement any processing in the embodiment method, and a description thereof is not repeated here.
The present embodiment also provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of:
maintaining an operation and maintenance environment, creating a first view according to an input instruction, adding a first visual component in the first view, and binding the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
and when the first view is detected to be opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface.
The computer program of the present embodiment implements any processing in the method of the embodiment when executed by a processor, and a description thereof will not be repeated here.
The above embodiments provide a general platform development framework, and a service developer need not relate to the development of a front end, and only needs to implement a data interface and a query interface according to specifications. The operation and maintenance product does not need to design a page, does not need to worry about how different service data are integrated, and can realize customized views only by carrying out simple dragging configuration on the platform. The user can also find the view concerned by the user on the platform, and the operation and maintenance efficiency is improved. The problems that different services in a traditional operation and maintenance website are difficult to integrate, the development period of an operation and maintenance page is long, and the report and operation and maintenance operations cannot be unified are solved, and the efficiency and flexibility of system development are improved.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (13)

1. A data processing method of an operation and maintenance platform comprises the following steps:
an operation and maintenance platform maintains an operation and maintenance environment, a first view is created according to an input instruction, a first visual component is added in the first view, and the first visual component is bound with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
when the operation and maintenance platform detects that the first view is opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface;
the operation and maintenance platform binds the first visual component with the first data interface according to the input instruction, and the operation and maintenance platform comprises:
the operation and maintenance platform configures the first data source as a data source of the first visual component according to an input instruction;
the operation and maintenance platform inquires a data interface associated with the first data source and displays the inquired data interface on a display interface, wherein the inquired data interface comprises the first data interface;
the operation and maintenance platform associates the first visual component with the first data interface according to an input instruction, and determines a first data item for generating the first visual component from data items contained in the first data interface.
2. The method of claim 1, wherein:
the operation and maintenance platform adds a first visual component in the first view according to the input instruction, and the operation and maintenance platform comprises: and when the operation and maintenance platform detects that the icon of the first visual component is dragged into the first view, adding the first visual component into the first view.
3. The method of claim 1, wherein:
after the operation and maintenance platform binds the first visualization component with the first data interface, the method further includes: the operation and maintenance platform associates part or all of the first data items with corresponding parameter items defined in the operation and maintenance environment;
the operation and maintenance platform generates the first visual component according to the data obtained by analysis, and the operation and maintenance platform comprises:
the operation and maintenance platform detects a selected node in the operation and maintenance environment and extracts a value of a parameter item bound with the first data item from information of the selected node;
and the operation and maintenance platform screens out data corresponding to the first data item as the extracted value from the analyzed data, and generates the first visual component by using the screened data.
4. The method of any of claims 1-3, wherein:
the first data interface is an Application Programming Interface (API), the operation and maintenance platform specifies a data structure of data acquired by calling the API, and the data structure comprises data for generating display content or comprises data for generating the display content and data for triggering operation;
the operation and maintenance platform generates the first visual component according to the data obtained by analysis, and the operation and maintenance platform comprises: and the operation and maintenance platform generates the display content of the first visual component according to the data for generating the display content obtained by analyzing the data structure, and if the data for triggering operation is obtained by analyzing, generates a corresponding operation control on the first visual component.
5. The method of claim 4, wherein:
the data for triggering the operation comprises operation and maintenance instructions associated with the operation control;
after the operation and maintenance platform displays the generated first visual component in the first view on the display interface, the method further includes: and when the operation and maintenance platform detects that the operation control is selected, the operation and maintenance platform executes operation and maintenance operation according to the operation and maintenance instruction.
6. The method of claim 1, wherein:
the first data source is a data source of a database type or an Application Programming Interface (API) type;
the operation and maintenance platform queries a data interface for obtaining data from the first data source, and includes:
the operation and maintenance platform acquires address information registered by the first data source or acquires address information of a home node according to the home node registered by the first data source;
and the operation and maintenance platform calls a query interface according to the acquired address information and finds all data interfaces associated with the first data source through the query interface.
7. An operation and maintenance platform comprises an operation and maintenance environment management module, a data source management module and a data display module, and is characterized in that the data display module comprises;
the view editing unit is used for creating a first view according to an input instruction, and adding a first visual component in the first view;
the component editing unit is used for binding the first visual component with a first data interface, and the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
the data display unit is used for calling the first data interface to acquire and analyze data when the first view is detected to be opened, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on the display interface;
the component editing unit includes:
a configuration subunit, configured to configure the first data source as a data source of the first visualization component according to an input instruction;
the query subunit is configured to query the data interface associated with the first data source, and display the queried data interface on a display interface, where the queried data interface includes the first data interface;
the binding subunit is used for associating the first visualization component with the first data interface according to an input instruction, and determining a first data item used for generating the first visualization component from data items contained in the first data interface.
8. The operation and maintenance platform of claim 7, wherein:
the view editing unit adds a first visual component in the first view according to an input instruction, and comprises: and when the icon of the first visual component is detected to be dragged into the first view, adding the first visual component into the first view.
9. The operation and maintenance platform of claim 7, wherein:
after the component editing unit binds the first visual component with the first data interface, the component editing unit is further configured to associate some or all of the first data items with corresponding parameter items defined in the operation and maintenance environment;
the data display unit generates the first visual component according to the data obtained by analysis, and the data display unit comprises: detecting a selected node in the operation and maintenance environment, and extracting the value of a parameter item bound with the first data item from the information of the selected node; and screening out data corresponding to the first data item as the extracted value from the analyzed data, and generating the first visual component by using the screened data.
10. The operation and maintenance platform according to any of claims 7-9, wherein:
the first data interface is an Application Programming Interface (API), the data acquired by the API has a data structure specified by the operation and maintenance platform, and the data structure comprises data for generating display content or comprises data for generating the display content and data for triggering operation;
the data display unit generates the first visual component according to the data obtained by analysis, and the data display unit comprises: and generating the display content of the first visual component according to the data which is analyzed from the data structure and used for generating the display content, and if the data which is analyzed and used for triggering the operation is obtained, generating a corresponding operation control on the first visual component.
11. The operation and maintenance platform of claim 10, wherein:
the data for triggering the operation comprises operation and maintenance instructions associated with the operation control;
the operation and maintenance platform further comprises: and the operation and maintenance operation module is used for executing operation and maintenance operation according to the operation and maintenance instruction when the operation control is detected to be selected.
12. An operation platform comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
maintaining an operation and maintenance environment, creating a first view according to an input instruction, adding a first visual component in the first view, and binding the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to the operation and maintenance platform;
when the first view is detected to be opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface;
the binding the first visualization component with the first data interface comprises:
configuring the first data source as a data source of the first visualization component according to an input instruction;
querying a data interface associated with the first data source, and displaying the queried data interface on a display interface, wherein the queried data interface comprises the first data interface;
according to an input instruction, the first visualization component is associated with the first data interface, and a first data item used for generating the first visualization component is determined from data items contained in the first data interface.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of:
maintaining an operation and maintenance environment, creating a first view according to an input instruction, adding a first visual component in the first view, and binding the first visual component with a first data interface, wherein the first data interface is used for acquiring data from a first data source registered to an operation and maintenance platform;
when the first view is detected to be opened, calling the first data interface to acquire data and analyze the data, generating the first visual component according to the analyzed data, and displaying the generated first visual component in the first view on a display interface;
the binding the first visualization component with the first data interface comprises:
configuring the first data source as a data source of the first visualization component according to an input instruction;
querying a data interface associated with the first data source, and displaying the queried data interface on a display interface, wherein the queried data interface comprises the first data interface;
according to an input instruction, the first visualization component is associated with the first data interface, and a first data item used for generating the first visualization component is determined from data items contained in the first data interface.
CN201710413033.2A 2017-06-05 2017-06-05 Operation and maintenance platform and data processing method thereof Active CN109002334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710413033.2A CN109002334B (en) 2017-06-05 2017-06-05 Operation and maintenance platform and data processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710413033.2A CN109002334B (en) 2017-06-05 2017-06-05 Operation and maintenance platform and data processing method thereof

Publications (2)

Publication Number Publication Date
CN109002334A CN109002334A (en) 2018-12-14
CN109002334B true CN109002334B (en) 2021-09-17

Family

ID=64572710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710413033.2A Active CN109002334B (en) 2017-06-05 2017-06-05 Operation and maintenance platform and data processing method thereof

Country Status (1)

Country Link
CN (1) CN109002334B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725973B (en) * 2018-12-27 2022-08-12 北京天融信网络安全技术有限公司 Data processing method and data processing device
CN110413161B (en) * 2019-06-14 2021-08-31 深圳爱根斯通科技有限公司 Component configuration method and device and electronic equipment
CN111008132B (en) * 2019-11-29 2021-11-16 浙江大搜车软件技术有限公司 Application debugging method and device for Android system, computer equipment and storage medium
CN110955718A (en) * 2019-12-04 2020-04-03 深圳市网心科技有限公司 Data visualization configuration method, server, system and medium
CN111090457A (en) * 2019-12-17 2020-05-01 广州品唯软件有限公司 Interface analysis method, terminal device and computer-readable storage medium
CN113449020A (en) * 2020-03-26 2021-09-28 深圳灿态信息技术有限公司 Method and system for acquiring graphic report data through database

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6097386A (en) * 1997-03-07 2000-08-01 International Business Machines Corporation Data processing system having context sensitive visual feedback for user interface controls and method therefor
CN104182541A (en) * 2014-09-05 2014-12-03 四川效率源信息安全技术有限责任公司 Method for showing smart phone data information
CN105511873A (en) * 2015-12-02 2016-04-20 网易(杭州)网络有限公司 User interface control display method and device
CN105630506A (en) * 2015-12-30 2016-06-01 北京嘉和美康信息技术有限公司 Bill generation method, bill template generation method and related devices
CN106648630A (en) * 2016-12-01 2017-05-10 北京趣拿软件科技有限公司 Page obtaining method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9182755B2 (en) * 2010-08-26 2015-11-10 Rockwell Automation Technologies, Inc. Automated operator interface generation in a control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6097386A (en) * 1997-03-07 2000-08-01 International Business Machines Corporation Data processing system having context sensitive visual feedback for user interface controls and method therefor
CN104182541A (en) * 2014-09-05 2014-12-03 四川效率源信息安全技术有限责任公司 Method for showing smart phone data information
CN105511873A (en) * 2015-12-02 2016-04-20 网易(杭州)网络有限公司 User interface control display method and device
CN105630506A (en) * 2015-12-30 2016-06-01 北京嘉和美康信息技术有限公司 Bill generation method, bill template generation method and related devices
CN106648630A (en) * 2016-12-01 2017-05-10 北京趣拿软件科技有限公司 Page obtaining method and device

Also Published As

Publication number Publication date
CN109002334A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN109002334B (en) Operation and maintenance platform and data processing method thereof
US11429600B2 (en) Loading queries using search points
US10778712B2 (en) Displaying network security events and investigation activities across investigation timelines
US11768875B2 (en) Monitoring system control interface for asset tree determination
US10853124B2 (en) Managing user data in a multitenant deployment
US11394767B2 (en) Central repository of configuration files and two-way replication of search node configuration files
US11698900B2 (en) Leveraging search query history in a search interface
US9836502B2 (en) Panel templates for visualization of data within an interactive dashboard
US9811233B2 (en) Building applications for configuring processes
CA2782414C (en) Specifying user interface elements
US11003682B2 (en) Metrics analysis workflow
US10853399B2 (en) User interface search tool for locating and summarizing data
US20220045919A1 (en) Lower-tier application deployment for higher-tier system
US20070130113A1 (en) Method and system for navigation and visualization of data in relational and/or multidimensional databases
US10733034B2 (en) Trace messaging for distributed execution of data processing pipelines
CN103020158A (en) Report form creation method, device and system
US11106713B2 (en) Sampling data using inverted indexes in response to grouping selection
US11144336B1 (en) Customization tool for dashboards
US10417234B2 (en) Data flow modeling and execution
CN109033157B (en) Complex data retrieval method and system based on user-defined search condition tree
Yao et al. Building architectures for data‐intensive science using the ADAGE framework
US9053149B2 (en) Method and system to provide composite view of components
US20130218893A1 (en) Executing in-database data mining processes
CN117725114A (en) Multi-condition multi-dimensional information statistical query method based on strategy dynamic configuration
CN117909180A (en) Log information processing method, device, computer equipment and storage medium

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