CN114745296A - Data reporting method and device - Google Patents

Data reporting method and device Download PDF

Info

Publication number
CN114745296A
CN114745296A CN202011540249.3A CN202011540249A CN114745296A CN 114745296 A CN114745296 A CN 114745296A CN 202011540249 A CN202011540249 A CN 202011540249A CN 114745296 A CN114745296 A CN 114745296A
Authority
CN
China
Prior art keywords
attribute value
index
initial
server
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011540249.3A
Other languages
Chinese (zh)
Other versions
CN114745296B (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.)
Beijing Capitek Co ltd
Original Assignee
Beijing Capitek Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Capitek Co ltd filed Critical Beijing Capitek Co ltd
Priority to CN202011540249.3A priority Critical patent/CN114745296B/en
Publication of CN114745296A publication Critical patent/CN114745296A/en
Application granted granted Critical
Publication of CN114745296B publication Critical patent/CN114745296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a data reporting method and a device, and the method comprises the following steps: the method comprises the steps that a server receives a plurality of initial indexes of subtasks sent by a reporting device; the server converts a first attribute value of a first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes. According to the technical scheme, the attribute values of the initial indexes are converted through the template information defined by the user, and the problem of complex management when a plurality of indexes which are reported by the reporting device and are not defined in advance are received is solved.

Description

Data reporting method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data reporting method and apparatus.
Background
In a traditional enterprise-level service bus, as business indexes on the enterprise bus are increased or modified due to business growth, definition, development and joint debugging of protocols such as Simple Object Access Protocol (SOAP) and the like may be involved, so that technicians who are skilled in corresponding technologies need to be configured at a client and a server to change the protocols at any time, and maintenance cost of an enterprise is increased.
In addition, as the service increases, the number of reporting devices for reporting the indexes also increases, and the related reporting indexes also become different. For example, for the memory index, the unit of the memory index reported by the a reporting device is KB, the unit of the memory index reported by the B reporting device is MB, and the unit of the memory index reported by the C reporting device is GB, so that the corresponding index units of the same index are not uniform. Moreover, the hierarchical structure of some reported indexes is different, some indexes are in the first level, some indexes are in the second level, and the like. Therefore, reporting information in a well-defined manner cannot meet the requirement of an enterprise for uniformly collecting, storing and managing indexes reported by a plurality of reporting devices.
Disclosure of Invention
In view of this, embodiments of the present application provide a data reporting method and apparatus, which can solve the problem of complex management when receiving multiple predefined indicators reported by a reporting apparatus.
In a first aspect, an embodiment of the present application provides a data reporting method, where the method includes: the method comprises the steps that a server receives a plurality of initial indexes of subtasks sent by a reporting device; the server converts a first attribute value of a first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes.
In some embodiments of the present application, the first attribute value includes a hierarchical identifier, and the step of converting, by the server, the first attribute value of a first initial index of the plurality of initial indexes into a second attribute value based on template information defined by the user through the user equipment to obtain a corresponding subtask index includes: and upgrading and degrading the first attribute value of the first initial index into a second attribute value based on the second attribute value included in the template information so as to obtain a corresponding subtask index.
In some embodiments of the present application, the first attribute value includes an index alias, and the server converts the first attribute value of the first initial index of the plurality of initial indexes into the second attribute value based on the template information defined by the user through the user device to obtain the corresponding subtask index includes: and performing name exchange on the first attribute value of the first initial index into a second attribute value based on the template information to obtain a corresponding subtask index.
In some embodiments of the present application, the template information further includes a third attribute value corresponding to a plurality of initial indicators, and the receiving, by the server, the plurality of initial indicators of the subtasks sent by the reporting device includes: and the server receives a plurality of initial indexes which are sent by the reporting device and determined based on a third attribute value, wherein the third attribute value comprises index information and a format.
In some embodiments of the present application, before the server receives a plurality of initial indicators of the subtasks sent by the reporting device, the method further includes: a server receives an application request sent by user equipment; the server sends application information and a template table containing template information to the user equipment, wherein the application information comprises subsystem identification information corresponding to the subtasks; and the server receives and stores the subsystem identification information and the template table corresponding to the subsystem identification information sent by the user equipment.
In some embodiments of the application, the server, the user equipment and the reporting device form a service architecture which is built based on an HTTP/2 protocol, a RESTful style and a json format.
In a second aspect, an embodiment of the present application provides a data reporting method, where the method includes: the user equipment sends an application request to the server through a user interface; the method comprises the steps that user equipment receives application information and a template table sent by a server, wherein the template table comprises template information; the user device sends the user-defined template table and the filled-in application information to the server.
In a third aspect, an embodiment of the present application provides a data reporting apparatus, where the apparatus includes: the receiving module is used for receiving a plurality of initial indexes of the subtasks sent by the reporting device; and the conversion module is used for converting the first attribute value of the first initial index in the plurality of initial indexes into the second attribute value based on template information defined by a user through user equipment so as to obtain the corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes.
In a fourth aspect, an embodiment of the present application provides a data reporting apparatus, where the apparatus includes: the first sending module is used for sending an application request to the server through the user interface; the receiving module is used for receiving the application information and the template table sent by the server, wherein the template table comprises template information; and the second sending module is used for sending the template table defined by the user and the filled application information to the server.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor; a memory configured to store processor-executable instructions, wherein the processor is configured to perform the data reporting method according to the first aspect or the second aspect.
The embodiment of the application provides a data reporting method and device, and a plurality of initial indexes of a plurality of subtasks are respectively converted through template information defined by a user, so that the problems of complex management, inconsistent levels and index names, consistent index names but different index meanings and the like when the indexes reported by a reporting device are not defined in advance are solved.
Drawings
Fig. 1 is a flowchart illustrating a data reporting method according to an exemplary embodiment of the present application.
Fig. 2 is a schematic diagram of an exchange scheduling algorithm of a data reporting method according to an exemplary embodiment of the present application.
Fig. 3 is a flowchart illustrating a data reporting method according to another exemplary embodiment of the present application.
Fig. 4 is a flowchart illustrating a data reporting method according to another exemplary embodiment of the present application.
Fig. 5 is a flowchart illustrating a data reporting method according to yet another exemplary embodiment of the present application.
Fig. 6 is a schematic structural diagram of a data reporting apparatus according to an exemplary embodiment of the present application.
Fig. 7 is a schematic structural diagram of a data reporting apparatus according to another exemplary embodiment of the present application.
FIG. 8 is a block diagram of an electronic device for data organization as provided in an exemplary embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An Enterprise Service Bus (ESB) refers to a technology that implements status monitoring and service management of each service and each subsystem of an enterprise through middleware technology, extensible markup language (XML), global wide area network (Web) service, and the like.
However, in the prior art, the traditional enterprise-level service bus has the problems of high maintenance cost, large difference of service data indexes of subsystems and subtasks, low transmission efficiency, network bandwidth occupation and the like.
Fig. 1 is a flowchart illustrating a data reporting method according to an exemplary embodiment of the present application. The method of fig. 1 is performed by a computing device, e.g., a server. As shown in fig. 1, the data reporting method includes the following steps.
110: and the server receives a plurality of initial indexes of the subtasks sent by the reporting device.
In particular, the server may be a service registry. The user device may be an electronic device that displays a service registry interface. The reporting device may be a device that reports the index periodically in the device that needs to report the index. For example, for monitoring service of the bulbs on the whole floor, the chip for controlling reporting in each floor bulb is equivalent to a reporting device. Of course, the reporting device may also refer to the device itself.
It should be noted that one service corresponds to one subsystem, and one subsystem corresponds to a plurality of subtasks. For example, a monitoring service of the bulbs on the whole floor corresponds to a subsystem with a monitoring function, index information reported by each bulb on each floor corresponds to a subtask, and a plurality of initial indexes are equivalent to a plurality of index information reported by the bulbs on each floor for the first time.
It should also be noted that each subsystem corresponds to a plurality of different subtasks according to the characteristics of the service itself. For convenience of description, the embodiments of the present application take a sub-task report as an example to describe the scheme of the embodiments of the present application in detail.
The server may receive, through an interface (e.g., a heartbeat interface) of the service registry, a plurality of initial indicators of a sub-task sent by the reporting device.
120: the server converts a first attribute value of a first initial index of the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes, and the subtask index has the second attribute value.
In particular, the user may be a subsystem user. A subsystem user may define template information via an electronic device displayed with a service registry interface. Wherein, the template information can be presented by means of a template table.
It should be noted that the template table may be a subsystem corresponding to one template table, or may be a subtask corresponding to one template table, and the partition of the template table is not specifically limited in this embodiment of the present application. Illustratively, the template table may be a subsystem heartbeat information template table, such as table 1 in the embodiments described below.
In an embodiment, the template information further includes a third attribute value corresponding to a plurality of initial indicators, and the receiving, by the server, the plurality of initial indicators of the subtasks sent by the reporting device includes: and the server receives a plurality of initial indexes which are sent by the reporting device and determined based on a third attribute value, wherein the third attribute value comprises index information and a format. Illustratively, the metric information may be a name of the metric, and the format may be a determination of whether the metric is a parent metric.
The user can define through the user interface and send the index information and the format to the report device through the appointed interface. The reporting device reports the initial index to the service registration center through an interface (such as a heartbeat interface) of the service registration center based on the defined index information and format.
The first initial index may be any one of a plurality of initial indexes, and this is not particularly limited in this embodiment of the present application.
The template information further includes second attribute values corresponding to the plurality of initial metrics. The second attribute value corresponds to the first attribute value reported by the reporting device. And the server converts the first attribute value according to a second attribute value corresponding to the first attribute value and included in the template information so as to obtain a corresponding subtask index. At this time, the obtained subtask index has been converted into the second attribute value defined in the template information, i.e., the first attribute value of the first initial index is converted into the second attribute value defined in the template.
In an embodiment, based on the second attribute value included in the template information, the first attribute value of the first initial index is upgraded, downgraded, and name exchanged to be converted into the second attribute value, so as to obtain the corresponding subtask index. For a detailed description, reference is made to the following description of the embodiments, which is not repeated herein to avoid redundancy.
Further, the method according to the above embodiment further includes: and the server correspondingly processes and manages the subtask indexes obtained by calculation. Specifically, the service registry may process and manage the parsed subtask index, for example, display the running condition of the program to the user through the user interface.
It should be noted that, in the embodiment of the present application, in an application scenario of an enterprise-level service bus, an execution main body in the embodiment of the present application may include a server (that is, a service registry), multiple reporting devices (or one reporting device), and a user equipment.
In an example, the information is reported regularly in a heartbeat manner, and the information reporting manner is not specifically limited in the embodiment of the present application. For example, the server may receive a plurality of heartbeat initial indicators of a plurality of different subtasks corresponding to one subsystem, which are sent by one or more reporting devices at regular time.
Therefore, the embodiment of the application provides a data reporting method and device, and a plurality of initial indexes of a plurality of subtasks are respectively converted through template information defined by a user, so that the problems that management is complex, levels and index names are inconsistent, index names are consistent but index meanings are different and the like when the indexes reported by a reporting device are not defined in advance are solved.
In an embodiment of the application, the first attribute value includes an index alias, and the converting, by the server, the first attribute value of a first initial index of the plurality of initial indexes into a second attribute value based on template information defined by the user through the user equipment to obtain a corresponding subtask index includes: and performing name exchange on the first attribute value of the first initial index and converting the first attribute value into a second attribute value based on the second attribute value included in the template information so as to obtain a corresponding subtask index.
Specifically, referring to fig. 2, the server receives a plurality of initial indexes of the subtasks, for example, the a index, the b index, and the c index included in the a subtask initial index 203. The first initial index in the plurality of initial indexes may be any index such as an a index, a b index, or a c index.
With continued reference to fig. 2, the second attribute value may be a corresponding index alias previously defined by the user via the user interface, such as e, f, and g in the template information 202. The conversion method may be to convert the index name in the first attribute value based on the index alias (i.e., the second attribute value) defined in advance by the user, in which the index name is not consistent.
For example, see template record 206 for the A subtask initial index: the a index of the second level below the c index is converted into g.
For another example, see template record 207 for the B subtask initial index: the f index of the first level is replaced by b, and the g index is replaced by h.
For another example, see template record 208 for the C subtask initial index: the o-index of the first level is replaced by b.
Therefore, the problem that index names are inconsistent when the indexes which are reported by the reporting device and are not defined in advance is solved by the second attribute value (namely, the alias of the index) defined by the user.
On the basis of the previous embodiment, in an embodiment of the present application, the step of converting, by the server, the first attribute value of the first initial index in the plurality of initial indexes into the second attribute value based on the template information defined by the user through the user equipment to obtain the corresponding subtask index includes: and upgrading and degrading the first attribute value of the first initial index into a second attribute value based on the second attribute value included in the template information so as to obtain a corresponding subtask index.
Specifically, as shown in fig. 2, the first attribute value may include a hierarchy identifier, that is, a hierarchy identifier of a first initial indicator that is reported, for example, the first hierarchy order is an indicator of a, b, c, h, and i; the second hierarchical order is the a, e and f indices. At this time, the second attribute value may include a user-defined hierarchy identifier corresponding to the first attribute value (i.e., hierarchy identifier), such as indexes of a, b, c, h, and i in the first hierarchy order; the second hierarchical order is the g, f and e indices.
The server may perform promotion and demotion operations on the first attribute value of the first initial indicator based on the content of the second attribute value. For example, see template record 206 for the A subtask initial index: and converting the a index of the second level below the c index into g, and sequentially changing the g index to e and f to obtain the A subtask index 209.
For another example, see template record 207 for the B subtask initial index: and replacing the f index of the first level with B, replacing the g index with h, and exchanging positions with the i index to obtain a B subtask index 210.
For another example, see template record 208 for the C subtask initial index: replacing the o index of the first level with b, and removing the g index of the first level; and arranging the indexes of the second levels g, f and e according to a specified sequence, and upgrading the indexes of the second levels h and i to the first level to obtain the index 211 of the C subtask.
Therefore, in the embodiment of the application, the reported initial indexes have consistent level identifications through the second attribute value (namely, the level identification) defined by the user, and the condition that the levels of the reported indexes are inconsistent is avoided.
Fig. 3 is a flowchart illustrating a data reporting method according to another exemplary embodiment of the present application. FIG. 3 is an example of the embodiment shown in FIG. 1, and the same parts are not repeated herein, and the differences are mainly described herein. The data reporting method comprises the following steps.
310: the server receives the registration request sent by the reporting device.
Specifically, the reporting device may be a device that reports the index periodically in the device that needs to report the index. The number of reporting devices may be one or multiple, and this is not specifically limited in this embodiment of the present application. The reporting device can receive application information applied by the user based on the user equipment through a specified interface, and applies for registration to the server based on the application information.
It should be noted that, in order to implement the timed reporting of the indexes by the multiple different subtasks, there may be multiple corresponding reporting devices, and the multiple reporting devices may initiate the registration operation to the service registry through the enterprise-level bus respectively.
320: the server sends the information of successful registration to the reporting device.
Specifically, after the registration is successful, the service registration center may send information of successful registration to the reporting device through the enterprise-level bus, so that the reporting device can report the index to the service registration center at regular time.
It should be noted that, when the number of the reporting devices is multiple, the service registration center may also send the information of successful registration to the multiple reporting devices through the enterprise-level bus.
330: and the server receives a plurality of initial indexes of the subtasks sent by the reporting device.
340: the server converts a first attribute value of a first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes.
Therefore, the embodiment of the application adopts a mode of registration of the reporting device, so that the reporting device is convenient to add or delete, and the method is different from the prior art that professional personnel need to be equipped to modify the protocol content.
Fig. 4 is a flowchart illustrating a data reporting method according to another exemplary embodiment of the present application. FIG. 4 is a diagram illustrating an example of the embodiment shown in FIG. 3, and the same parts are not repeated herein, and the differences are emphasized. The data reporting method comprises the following steps.
In an example, the application request may be a registration application request or an attribute modification application request, which is not specifically limited in this embodiment of the present application.
The following describes the method of the embodiment in detail by taking a registration application request as an example.
410: and the user sends a subsystem registration application request to the server through a user interface.
Specifically, a user (e.g., a subsystem user) may send a registration request to the service registry via a user device that displays a service registry interface. The application request can be triggered by clicking a control of 'application registration subsystem and subtask' on a service registration center interface, and the mode of applying the request to a subsystem user is not particularly limited in the embodiment of the application.
420: the server sends the registration application information and the template table to the user equipment.
Specifically, the application information may include subsystem identification information, a subsystem (FT), and a Subtask (ST) corresponding to the subsystem, which is not specifically limited in this embodiment of the application.
The template table corresponds to the subsystem identification information in the application information. The template table may include template information, such as second attribute values, i.e., an index alias and a hierarchy identifier, for each reported index. For example, the third attribute values of the reported indexes, that is, the index information and the format.
The template table may include detailed index information, for example, with reference to table 1. The subsystem user can define the template table corresponding to the subsystem through the user interface.
TABLE 1
Figure BDA0002854355360000101
It should be noted that each row index in the template table may be a first initial index.
430: the user sends the template table and the application information defined by the user interface to the server.
Specifically, after the user completes the definition, the user may click a control for "completing the template setting" in the user interface, and send the template table to the server, which is not specifically limited to the specific reporting mode in this embodiment of the present application.
440: the server stores the subsystem identification information in the application information and the template table corresponding to the subsystem identification information.
Specifically, the service registry receives application information and a template table sent by a user based on a user device, and stores subsystem service identification information (e.g., subsystem service ID, identity document) in the application information and the template table corresponding to the subsystem service identification information, where one subsystem service ID may correspond to one template table or may correspond to multiple template tables, which is not specifically limited in this embodiment of the present application.
450: and the server sends the information of successful template customization to the user equipment for prompting the user subsystem and the completion of the creation of the template information corresponding to the subsystem.
After step 450, the definition work at the ue end is completed, and the operation is changed to register the reporting device.
460: the reporting device sends a registration application to the server.
470: the server sends the information of successful registration to the reporting device.
480: and the reporting device sends a plurality of initial indexes of the subtasks to the server.
490: and converting the first attribute value of the first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index.
495: and correspondingly managing or processing the obtained subtask indexes.
497: and the server sends information of successful report of the initial index to the report device.
It should be understood that the number of reporting devices increases with the number of subtasks.
Therefore, the embodiment of the application sends the registration application request or modifies the index attribute through the user (namely, the subsystem user), so that the definition, development and joint debugging of protocols such as SOAP (simple object access protocol), Socket and the like are avoided, and the maintenance cost of an enterprise is reduced.
In an embodiment of the application, a server, user equipment and a reporting device form a service architecture built based on an HTTP/2 protocol, a RESTful style and a json format.
In particular, the json technology is utilized to realize the rapid transmission of information. The subsystem user can define related template information to the service registration center in a simpler and more convenient mode by combining with a user interface, thereby reducing the technical barriers when business heartbeat indexes on an enterprise bus are added, deleted, added and changed and reducing the maintenance cost.
The HTTP/2 protocol is adopted to solve the problem of information cross-system transmission safety, and meanwhile, the RESTful definition interface and the exchange arrangement algorithm are integrated, so that the service registration center can collect and process the collected service index data, and the service state perception and the accurate management of each subsystem service are completed.
Therefore, the service architecture built by the HTTP/2 protocol and the json format of the RESTful style improves the safety of information cross-system transmission and simplifies the operation of the user.
Fig. 5 is a flowchart illustrating a data reporting method according to yet another exemplary embodiment of the present application. This fig. 5 corresponds to the method of fig. 1, the method of fig. 5 being performed by a user equipment. As shown in fig. 5, the data reporting method includes the following steps.
510: and the user equipment sends an application request to the server through the user interface.
Specifically, the application request may be a registration application request or an attribute modification application request, which is not specifically limited in this embodiment of the present application.
520: and the user equipment receives the application information and the template table sent by the server.
Specifically, the application information may include subsystem identification information, a subsystem, and a subtask corresponding to the subsystem, which is not specifically limited in this embodiment of the present application.
The template table may be one template table corresponding to one subsystem identification information, or may be a plurality of template tables corresponding to one subsystem identification information, which is not specifically limited in this embodiment of the present application.
530: the user equipment sends the application information and the template table which are defined by the user completion to the server.
Specifically, after completing the application information and the template table in step 520, the user may click a control similar to "complete definition" on the user interface, and then send the defined template table and the filled-in application information to the server.
It should be noted that fig. 5 corresponds to the method of fig. 1, where fig. 1 illustrates the scheme from the server side, and fig. 5 illustrates the scheme from the user equipment side.
Therefore, the embodiment of the application provides a data reporting method, and multiple initial indexes of multiple subtasks are respectively converted through template information defined by a user, so that the problems that management is complex, levels and index names are inconsistent, index names are consistent but index meanings are different and the like when the indexes reported by a reporting device are not defined in advance are solved.
Fig. 6 is a schematic structural diagram of a data reporting apparatus according to an exemplary embodiment of the present application. As shown in fig. 6, the data reporting apparatus 600 includes: a first receiving module 610 and a converting module 620.
The first receiving module 610 is configured to receive a plurality of initial indicators of the subtasks sent by the reporting device; the conversion module 620 is configured to convert a first attribute value of a first initial index of the multiple initial indexes into a second attribute value based on template information defined by a user through a user device to obtain a corresponding subtask index, where the template information includes the second attribute value corresponding to the multiple initial indexes.
The embodiment of the application provides a data reporting device, which converts a plurality of initial indexes of a plurality of subtasks respectively through template information defined by a user, and solves the problems that the management is complex, the levels and the index names are inconsistent, the index names are consistent but the index meanings are different and the like when the indexes reported by the reporting device are not defined in advance.
According to an embodiment of the present application, the first attribute value includes a hierarchical identifier, and the conversion module 620 is configured to upgrade and downgrade the first attribute value of the first initial indicator to a second attribute value based on a second attribute value included in the template information, so as to obtain a corresponding subtask indicator.
According to an embodiment of the present application, the first attribute value includes an index alias, and the conversion module 620 is configured to perform name exchange on the first attribute value of the first initial index to convert the first attribute value into a second attribute value based on the second attribute value included in the template information, so as to obtain a corresponding subtask index.
According to an embodiment of the present application, the template information further includes a third attribute value corresponding to the plurality of initial indicators, and the first receiving module 610 is configured to receive the plurality of initial indicators sent by the reporting device and determined based on the third attribute value, where the third attribute value includes indicator information and a format.
According to an embodiment of the present application, the method further includes: the second receiving device 630 is configured to receive an application request sent by the user equipment; the sending module 640 is configured to send application information and a template table including template information to the user equipment, where the application information includes subsystem identification information corresponding to the subtask; the third receiving means 650 is used for receiving and storing the subsystem identification information sent by the user equipment and the template table corresponding to the subsystem identification information.
According to an embodiment of the application, a server, user equipment and a reporting device form a service framework built based on an HTTP/2 protocol, a RESTful style and a json format.
It should be understood that, for specific working processes and functions of the first receiving module 610 and the scheduling module 620 in the foregoing embodiments, reference may be made to the description of the data reporting method provided in the foregoing embodiments of fig. 1 to fig. 4, and details are not described herein again to avoid repetition.
Fig. 7 is a schematic structural diagram of a data reporting apparatus according to another exemplary embodiment of the present application. As shown in fig. 7, the data reporting apparatus 700 includes: a first transmitting module 710, a receiving module 720, and a second transmitting module 730.
The first sending module 710 is configured to send an application request to a server through a user interface; the receiving module 720 is configured to receive the application information and the template table sent by the server, where the template table includes template information; the second sending module 730 is configured to send the template table defined by the user and the filled application information to the server.
The embodiment of the application provides a data reporting device, which converts a plurality of initial indexes of a plurality of subtasks respectively through template information defined by a user, and solves the problems that the management is complex, the levels and the index names are inconsistent, the index names are consistent but the index meanings are different and the like when the indexes reported by the reporting device are not defined in advance.
It should be understood that, for specific working processes and functions of the first sending module 710, the receiving module 720 and the second sending module 730 in the foregoing embodiment, reference may be made to the description in the data reporting method provided in the foregoing embodiment of fig. 5, and in order to avoid repetition, details are not described here again.
FIG. 8 is a block diagram of an electronic device for data orchestration provided by an exemplary embodiment of the present application.
Referring to fig. 8, electronic device 800 includes a processing component 810 that further includes one or more processors, and memory resources, represented by memory 820, for storing instructions, such as applications, that are executable by processing component 810. The application programs stored in memory 820 may include one or more modules that each correspond to a set of instructions. Further, the processing component 810 is configured to execute the instructions to perform the data reporting method described above.
The electronic device 800 may also include a power supply component configured to perform power management of the electronic device 800, a wired or wireless network interface configured to connect the electronic device 800 to a network, and an input-output (I/O) interface. The electronic device 800 may be operated based on an operating system stored in the memory 820, such as Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMOr the like.
A non-transitory computer readable storage medium, wherein instructions stored in the storage medium, when executed by a processor of the electronic device 800, enable the electronic device 800 to perform a data reporting method, the method comprising: : the method comprises the steps that a server receives a plurality of initial indexes of subtasks sent by a reporting device; the server converts a first attribute value of a first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes. Or the user equipment sends an application request to the server through the user interface; the method comprises the steps that user equipment receives application information and a template table sent by a server, wherein the template table comprises template information; the user device sends the user-defined template table and the filled-in application information to the server.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described in detail herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program check codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modifications, equivalents and the like that are within the spirit and principle of the present application should be included in the scope of the present application.

Claims (10)

1. A method for reporting data, comprising:
the method comprises the steps that a server receives a plurality of initial indexes of subtasks sent by a reporting device;
the server converts a first attribute value of a first initial index of the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index, wherein the template information comprises the second attribute value corresponding to the plurality of initial indexes.
2. The method of claim 1, wherein the first attribute value comprises a hierarchical identifier,
the server converts a first attribute value of a first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index comprises:
and upgrading and degrading the first attribute value of the first initial index into the second attribute value based on the second attribute value included in the template information so as to obtain a corresponding subtask index.
3. The data reporting method of claim 1, wherein the first attribute value comprises an index alias name,
the server converts a first attribute value of a first initial index in the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment to obtain a corresponding subtask index comprises:
and performing name exchange on the first attribute value of the first initial index to convert the first attribute value into a second attribute value based on the second attribute value included in the template information so as to obtain a corresponding subtask index.
4. The method of claim 1, wherein the template information further includes a third attribute value corresponding to the plurality of initial indicators,
the server receiving a plurality of initial indexes of the subtasks sent by the reporting device comprises:
the server receives the plurality of initial indexes determined based on the third attribute values and sent by the reporting device,
wherein the third attribute value includes index information and a format.
5. The method of claim 1, wherein before the server receives the plurality of initial indicators of the sub-tasks sent by the reporting device, the method further comprises:
the server receives an application request sent by a user based on the user equipment;
the server sends application information and a template table containing the template information to the user equipment, wherein the application information comprises subsystem identification information corresponding to the subtasks;
and the server receives and stores the subsystem identification information and the template table corresponding to the subsystem identification information sent by the user equipment.
6. The data reporting method of any one of claims 1 to 5, wherein the server, the user equipment, and the reporting apparatus form a service architecture based on HTTP/2 protocol, RESTful style, and json format.
7. A data reporting method is characterized by comprising the following steps:
the user equipment sends an application request to the server through a user interface;
the user equipment receives application information and a template table sent by the server, wherein the template table comprises template information;
and the user equipment sends the template table defined by the user and the filled application information to the server.
8. A data reporting apparatus, comprising:
the receiving module is used for receiving a plurality of initial indexes of the subtasks sent by the reporting device;
a conversion module, configured to convert a first attribute value of a first initial index in the multiple initial indexes into a second attribute value based on template information defined by a user through a user device to obtain a corresponding subtask index, where the template information includes the second attribute value corresponding to the multiple initial indexes.
9. A data reporting apparatus, comprising:
the first sending module is used for sending an application request to the server through the user interface;
the receiving module is used for receiving the application information and the template table sent by the server, wherein the template table comprises template information;
and the second sending module is used for sending the template table defined by the user and the filled application information to the server.
10. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions,
the processor is configured to execute the data reporting method according to any one of claims 1 to 6 or the data reporting method according to claim 7.
CN202011540249.3A 2020-12-23 2020-12-23 Data reporting method and device Active CN114745296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011540249.3A CN114745296B (en) 2020-12-23 2020-12-23 Data reporting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011540249.3A CN114745296B (en) 2020-12-23 2020-12-23 Data reporting method and device

Publications (2)

Publication Number Publication Date
CN114745296A true CN114745296A (en) 2022-07-12
CN114745296B CN114745296B (en) 2023-08-15

Family

ID=82274226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011540249.3A Active CN114745296B (en) 2020-12-23 2020-12-23 Data reporting method and device

Country Status (1)

Country Link
CN (1) CN114745296B (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103019A1 (en) * 2002-11-27 2004-05-27 Reid Gregory S. Content feedback in a multiple-owner content management system
US20060048096A1 (en) * 2004-08-24 2006-03-02 Oracle International Corporation RTF template and XSL/FO conversion: a new way to create computer reports
US20080244582A1 (en) * 2007-03-31 2008-10-02 Brown William E WEB-Based Task Management System and Method
US20110054940A1 (en) * 2009-09-03 2011-03-03 Searete Llc, A Limited Liability Corporation Of The State Of Delaware Template modification based on deviation from compliant execution of the template
US20110161798A1 (en) * 2009-12-31 2011-06-30 International Business Machines Corporation Matching various combinations of xpath uris to the same xml node
US20120131683A1 (en) * 2010-11-24 2012-05-24 Nassar Richard S Unified online content manager apparatuses, methods, and systems
CN103605020A (en) * 2013-11-14 2014-02-26 广东电网公司电力科学研究院 Processing method and apparatus for electric energy quality data
CN103761642A (en) * 2013-12-29 2014-04-30 远光软件股份有限公司 Method and device for report data conversion according to measurement units
CN104392310A (en) * 2014-11-13 2015-03-04 深圳市玖昔物联科技发展有限公司 Networked work coordinated management system
WO2015152916A1 (en) * 2014-04-02 2015-10-08 Longsand Limited Interactive document editing using data interchange format
CN105868295A (en) * 2016-03-24 2016-08-17 苏州科技学院 Customizable template based data reporting system for legal person database
CN106682213A (en) * 2016-12-30 2017-05-17 Tcl集团股份有限公司 Internet-of-things task customizing method and system based on Hadoop platform
CN107872773A (en) * 2017-11-16 2018-04-03 北京首信科技股份有限公司 Cut-in method and server
CN107870814A (en) * 2016-09-23 2018-04-03 伊姆西Ip控股有限责任公司 Method and apparatus for Content Management batch processing
CN108764683A (en) * 2018-05-21 2018-11-06 贵州电网有限责任公司 Operation of power networks data analysis assessment and reporting system
US20180357274A1 (en) * 2017-06-07 2018-12-13 Sap Se Dynamic, variable-data attribute data service
CN109495524A (en) * 2017-09-11 2019-03-19 华为技术有限公司 A kind of method, apparatus and system of Internet of Things resource subscription
CN110086666A (en) * 2019-04-25 2019-08-02 深圳前海微众银行股份有限公司 A kind of alarm method, apparatus and system
CN110262796A (en) * 2019-06-27 2019-09-20 广州力挚网络科技有限公司 Data processing method, device and electronic equipment based on java
CN110875095A (en) * 2019-09-27 2020-03-10 长沙瀚云信息科技有限公司 Standardized clinical big data center system
CN111506310A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Method, device and equipment for generating multi-platform style and storage medium
CN111949692A (en) * 2020-07-30 2020-11-17 合肥森亿智能科技有限公司 DTO-based user-defined index configuration method, system, equipment and medium
CN112016287A (en) * 2020-07-24 2020-12-01 浙江鸿程计算机系统有限公司 Data management method, platform, storage medium and electronic device
CN112069204A (en) * 2020-09-30 2020-12-11 北京百度网讯科技有限公司 Processing method and device for operator service, intelligent workstation and electronic equipment

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103019A1 (en) * 2002-11-27 2004-05-27 Reid Gregory S. Content feedback in a multiple-owner content management system
US20060048096A1 (en) * 2004-08-24 2006-03-02 Oracle International Corporation RTF template and XSL/FO conversion: a new way to create computer reports
US20080244582A1 (en) * 2007-03-31 2008-10-02 Brown William E WEB-Based Task Management System and Method
US20110054940A1 (en) * 2009-09-03 2011-03-03 Searete Llc, A Limited Liability Corporation Of The State Of Delaware Template modification based on deviation from compliant execution of the template
US20110161798A1 (en) * 2009-12-31 2011-06-30 International Business Machines Corporation Matching various combinations of xpath uris to the same xml node
US20120131683A1 (en) * 2010-11-24 2012-05-24 Nassar Richard S Unified online content manager apparatuses, methods, and systems
CN103605020A (en) * 2013-11-14 2014-02-26 广东电网公司电力科学研究院 Processing method and apparatus for electric energy quality data
CN103761642A (en) * 2013-12-29 2014-04-30 远光软件股份有限公司 Method and device for report data conversion according to measurement units
WO2015152916A1 (en) * 2014-04-02 2015-10-08 Longsand Limited Interactive document editing using data interchange format
CN104392310A (en) * 2014-11-13 2015-03-04 深圳市玖昔物联科技发展有限公司 Networked work coordinated management system
CN105868295A (en) * 2016-03-24 2016-08-17 苏州科技学院 Customizable template based data reporting system for legal person database
CN107870814A (en) * 2016-09-23 2018-04-03 伊姆西Ip控股有限责任公司 Method and apparatus for Content Management batch processing
CN106682213A (en) * 2016-12-30 2017-05-17 Tcl集团股份有限公司 Internet-of-things task customizing method and system based on Hadoop platform
US20180357274A1 (en) * 2017-06-07 2018-12-13 Sap Se Dynamic, variable-data attribute data service
CN109495524A (en) * 2017-09-11 2019-03-19 华为技术有限公司 A kind of method, apparatus and system of Internet of Things resource subscription
CN107872773A (en) * 2017-11-16 2018-04-03 北京首信科技股份有限公司 Cut-in method and server
CN108764683A (en) * 2018-05-21 2018-11-06 贵州电网有限责任公司 Operation of power networks data analysis assessment and reporting system
CN110086666A (en) * 2019-04-25 2019-08-02 深圳前海微众银行股份有限公司 A kind of alarm method, apparatus and system
CN110262796A (en) * 2019-06-27 2019-09-20 广州力挚网络科技有限公司 Data processing method, device and electronic equipment based on java
CN110875095A (en) * 2019-09-27 2020-03-10 长沙瀚云信息科技有限公司 Standardized clinical big data center system
CN111506310A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Method, device and equipment for generating multi-platform style and storage medium
CN112016287A (en) * 2020-07-24 2020-12-01 浙江鸿程计算机系统有限公司 Data management method, platform, storage medium and electronic device
CN111949692A (en) * 2020-07-30 2020-11-17 合肥森亿智能科技有限公司 DTO-based user-defined index configuration method, system, equipment and medium
CN112069204A (en) * 2020-09-30 2020-12-11 北京百度网讯科技有限公司 Processing method and device for operator service, intelligent workstation and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余建成;: "基于生产系统使用的Web自定义报表设计", 计算机与数字工程, no. 06 *

Also Published As

Publication number Publication date
CN114745296B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN109192248B (en) Biological information analysis system and method based on cloud platform and cloud computing platform system
US8713163B2 (en) Monitoring cloud-runtime operations
JP3896111B2 (en) Resource allocation system, method and program
CA2363151C (en) Metrics and status presentation system and method using persistent template-driven web objects
JP3916652B2 (en) Resource allocation system, method and program
WO2017019736A1 (en) Hybrid cloud information management system
JP2005174201A6 (en) Resource allocation system, method and program
CN103188101A (en) Distributed type collection scheduling method and device
KR20170059468A (en) Runtime environment configuration method, device and system
CN113742031A (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN111078404B (en) Computing resource determining method and device, electronic equipment and medium
CN104468274A (en) Cluster monitor and management method and system
CN110874272A (en) Resource allocation method and device, computer readable storage medium and electronic device
CN111770162A (en) Network bandwidth limiting method, device, main node and storage medium
CN112804362B (en) Dispersed data micro-service automation operation and maintenance system
CN111314371A (en) Edge device access system and method based on intelligent gateway technology
CN109726546A (en) A kind of right management method and device
CN115756822A (en) Method and system for optimizing performance of high-performance computing application
PH12015500675B1 (en) Method and system for transmission management of full configuration synchronization between eml-nml.
CN114745296A (en) Data reporting method and device
US9384466B2 (en) Systems and methods for extending any service to existing systems by using an adaptive common interface
CN202385116U (en) Distributed operation and maintenance data acquisition device
CN108696550A (en) Rapid build and the system and method for replicating cloud
US11392424B2 (en) Method and device for aiding decision-making for the allocation of computing means on a high performance computing infrastructure
WO2013121572A1 (en) Method of providing different-type system data in distributed system

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