CN114745296B - Data reporting method and device - Google Patents

Data reporting method and device Download PDF

Info

Publication number
CN114745296B
CN114745296B CN202011540249.3A CN202011540249A CN114745296B CN 114745296 B CN114745296 B CN 114745296B CN 202011540249 A CN202011540249 A CN 202011540249A CN 114745296 B CN114745296 B CN 114745296B
Authority
CN
China
Prior art keywords
attribute value
information
index
template
initial
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
CN202011540249.3A
Other languages
Chinese (zh)
Other versions
CN114745296A (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

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 

Abstract

The application provides a data reporting method and a device, wherein the method comprises the following steps: the server receives a plurality of initial indexes of the subtasks sent by the 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 so as 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 plurality of initial indexes are converted through the template information defined by the user, so that the problem of complex management when the plurality of indexes which are not defined in advance and reported by the reporting device are received is avoided.

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 the conventional enterprise service bus, with the increase or modification of service indexes on the enterprise bus caused by service growth, definition, development and joint debugging of protocols such as a simple object access protocol (simple object access protocol, SOAP) may be involved, so that technicians who are skilled in corresponding technologies are required to be configured on both a client side and a server side to change the protocols at any time, thereby increasing maintenance cost of the enterprise.
In addition, with the increase of services, reporting apparatuses for reporting indexes are increasing, and related reporting indexes become quite different. For example, for the memory index, the memory index unit reported by the a reporting device is KB, the memory index unit reported by the B reporting device is MB, and the memory index unit reported by the C reporting device is GB, which results in non-uniformity of the corresponding index units of the same index. In addition, some reported indexes have different hierarchical structures, some indexes are in a first hierarchy, some indexes are in a second hierarchy, and the like. Therefore, reporting information in a defined manner cannot meet the requirements of the enterprise for unified collection, storage and management of indexes reported by a plurality of reporting devices.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method and an apparatus for reporting data, which can solve the problem of complex management faced when receiving a plurality of indexes that are reported by a reporting apparatus and are not defined in advance.
In a first aspect, an embodiment of the present application provides a data reporting method, where the method includes: the server receives a plurality of initial indexes of the subtasks sent by the 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 so as 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 hierarchy identifier, and the server converting the first attribute value of a first initial indicator of the plurality of initial indicators into the second attribute value based on template information defined by the user device, to obtain the corresponding subtask indicator includes: and based on the second attribute value included in the template information, upgrading and downgrading the first attribute value of the first initial index into a second attribute value so as to obtain a corresponding subtask index.
In some embodiments of the present application, the first attribute value comprises an index alias, and the server converting the first attribute value of a first initial index of the plurality of initial indexes to a second attribute value based on template information defined by the user through the user device, to obtain a corresponding subtask index comprises: and carrying out name exchange on the first attribute value of the first initial index into a second attribute value based on the template information so as 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 indexes, and the server receiving the plurality of initial indexes of the subtask sent by the reporting device includes: the server receives a plurality of initial indexes which are sent by the reporting device and are determined based on third attribute values, wherein the third attribute values comprise index information and formats.
In some embodiments of the present application, before the server receives the plurality of initial indicators of the subtasks sent by the reporting device, the method further includes: the 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 subtask; the server receives and stores the subsystem identification information sent by the user equipment and a template table corresponding to the subsystem identification information.
In some embodiments of the present application, the server, user equipment and reporting device constitute a server architecture built based on HTTP/2 protocol, RESTful style and 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 user equipment receives application information and a template table sent by a server, wherein the template table comprises template information; the user equipment sends the template table defined by the user and the filled application information to the server.
In a third aspect, an embodiment of the present application provides a data reporting apparatus, including: the receiving module is used for receiving a plurality of initial indexes of the subtasks sent by the reporting device; the conversion module is used for converting 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 user equipment so as to obtain a corresponding subtask index, and 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, including: 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 for storing processor-executable instructions, wherein the processor is configured to perform the data reporting method of the first aspect or the second aspect.
The embodiment of the application provides a data reporting method and device, which respectively convert a plurality of initial indexes of a plurality of subtasks through template information defined by a user, and solve the problems of complex management, inconsistent level and index names, consistent index names but different index meanings and the like when the indexes which are reported by a reporting device and are not defined in advance.
Drawings
Fig. 1 is a flowchart of a data reporting method according to an exemplary embodiment of the present application.
Fig. 2 is a schematic diagram of a switching arrangement algorithm of a data reporting method according to an exemplary embodiment of the present application.
Fig. 3 is a flowchart of a data reporting method according to another exemplary embodiment of the present application.
Fig. 4 is a flowchart of a data reporting method according to another exemplary embodiment of the present application.
Fig. 5 is a flowchart of a data reporting method according to still another exemplary embodiment of the present application.
Fig. 6 is a schematic structural diagram of a data reporting device according to an exemplary embodiment of the present application.
Fig. 7 is a schematic structural diagram of a data reporting device according to another exemplary embodiment of the present application.
Fig. 8 is a block diagram of an electronic device for data orchestration according to an example embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
An enterprise service bus (enterprise service bus, ESB) is used for implementing state monitoring and service management of each service and each subsystem of an enterprise through middleware technology, extensible markup language (extensible markup language, XML), global wide area network (Web) service and other technologies.
However, in the prior art, the conventional enterprise-level service bus has the problems of high maintenance cost, large service data index difference of subsystems and subtasks, low transmission efficiency, network bandwidth occupation and the like.
Fig. 1 is a flowchart of 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.
110: 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 with a service registry interface displayed. The reporting device may be a device that needs to report the index at regular time inside the device. For example, the monitoring service of the whole floor lamp bulbs, and the chip for controlling reporting in each floor lamp 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 sub-tasks. For example, the monitoring service of the bulbs on the whole floor corresponds to a subsystem with a monitoring function, the 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 bulbs on each floor for the first time.
It should also be noted that each subsystem corresponds to a plurality of different sub-tasks according to the characteristics of the service itself. For convenience of description, the embodiment of the application will be described in detail by taking a subtask report as an example.
The server may receive, via an interface (e.g., a heartbeat interface) of the service registry, a plurality of initial metrics for a subtask 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 so as 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. The subsystem user may define template information through the electronic device on which the service registry interface is displayed. Wherein the template information can be presented by means of a template table.
It should be noted that, the template table may be that one subsystem corresponds to one template table, or may be that one subtask corresponds to one template table, and the division of the template table in the embodiment of the present application is not specifically limited. 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 indexes, and the server receives the plurality of initial indexes of the subtask sent by the reporting device, where the plurality of initial indexes includes: the server receives a plurality of initial indexes which are sent by the reporting device and are determined based on third attribute values, wherein the third attribute values comprise index information and formats. Illustratively, the index information may be the name of the index, and the format may be a determination of whether or not the index is a parent index.
The user can define through the user interface and send index information and format to the reporting device through the designated interface. The reporting device reports the initial index to the service registry through an interface (such as a heartbeat interface) of the service registry based on the defined index information and format.
The first initial indicator may be any one of a plurality of initial indicators, which is not particularly limited in the embodiment of the present application.
The template information also includes second attribute values corresponding to the plurality of initial indicators. 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 included in the template information so as to obtain a corresponding subtask index. At this time, the obtained subtask index has been converted into a second attribute value defined in the template information, i.e., the first attribute value of the first initial index is converted into a second attribute value defined in the template.
In an embodiment, the first attribute value of the first initial indicator is upgraded, downgraded and name exchanged to a second attribute value based on the second attribute value included in the template information, so as to obtain a corresponding subtask indicator. For specific description, please refer to the following examples, and no further description is given here for avoiding repetition.
Further, the method of the above embodiment further includes: and the server correspondingly processes and manages the calculated subtask indexes. Specifically, the service registry may process and manage the parsed subtask indexes, for example, display the running condition of the program to the user through the user interface, and so on.
It should be noted that, in the application scenario of the enterprise service bus, the execution body of the embodiment of the present application may include a server (i.e. a service registry), a plurality of reporting devices (or a reporting device) and a user equipment, and the embodiment of the present application does not specifically limit the execution body specifically related, and may add or delete according to actual situations.
In an example, the embodiment of the present application adopts a heartbeat manner to report information at regular time, and the embodiment of the present application does not specifically limit the manner of reporting information. For example, the server may accept a plurality of heartbeat initial indicators for a plurality of different sub-tasks corresponding to one subsystem that is sent by one or more reporting devices at regular times.
It can be seen that the embodiment of the application provides a data reporting method and device, which respectively convert a plurality of initial indexes of a plurality of subtasks through template information defined by a user, so as to solve the problems of complex management, inconsistent level and index names, consistent index names but different index meanings and the like when the indexes which are reported by a reporting device and are not defined in advance are solved.
In an embodiment of the present application, the first attribute value includes an index alias, and the server converting the first attribute value of a first initial index of the plurality of initial indexes into the second attribute value based on template information defined by a user device, so as to obtain a corresponding subtask index includes: and performing name exchange conversion on the first attribute value of the first initial index based on the second attribute value included in the template information to obtain a corresponding subtask index.
Specifically, referring to fig. 2, the server receives a plurality of initial indexes of the subtask, for example, an a index, a b index, a c index, and the like included in the a subtask initial index 203. The first initial index of 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 values may be corresponding index aliases, e.g., e, f, and g, in template information 202, previously defined by the user via the user interface. The conversion method may be to convert the index names in the first attribute values to be inconsistent based on index aliases (i.e. the second attribute values) defined in advance by the user.
See, for example, template record 206 for an A subtask initial indicator: the a index of the second level below the c index is converted to g.
For another example, see template record 207 for the B subtask initial indicator: 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 of the C subtask initial indicator: the o index of the first level is replaced with b.
Therefore, the embodiment of the application solves the problem of inconsistent index names when the index is reported by the reporting device and is not defined in advance through the second attribute value (i.e. the index alias) defined by the user.
Based on the above embodiment, in an embodiment of the present application, the first attribute value includes a hierarchy identifier, and the server converting, based on template information defined by the user through the user device, the first attribute value of a first initial indicator in the plurality of initial indicators into the second attribute value, so as to obtain a corresponding subtask indicator includes: and based on the second attribute value included in the template information, upgrading and downgrading the first attribute value of the first initial index into a second attribute value 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 the first initial indicator reported, for example, the first hierarchy order is a, b, c, h and i indicators; 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), for example, the first hierarchy order is a, b, c, h and i index; the second hierarchical order is the g, f, and e indices.
The server may promote and demote the first attribute value of the first initial indicator based on the content of the second attribute value. See, for example, template record 206 for an A subtask initial indicator: the a index of the second level below the c index is converted into g, and the g index and the e index are sequentially replaced by f, so that an a subtask index 209 is obtained.
For another example, see template record 207 for the B subtask initial indicator: the f index of the first level is replaced with B, the g index is replaced with h, and the positions are exchanged with the i index, so that the B subtask index 210 is obtained.
For another example, see template record 208 of the C subtask initial indicator: replacing an o index of the first level with b, and removing a g index of the first level; the indexes of the second levels g, f and e are arranged according to the appointed sequence, and indexes of the second levels h and i are upgraded to the first level, so that the C subtask index 211 is obtained.
Therefore, according to the embodiment of the application, the reported multiple initial indexes have the consistent level identification through the second attribute value (namely the level identification) defined by the user, so that the condition that the levels of the indexes which are received and reported are inconsistent is avoided.
Fig. 3 is a flowchart of a data reporting method according to another exemplary embodiment of the present application. Fig. 3 is an example of the embodiment of fig. 1, and the same points are not repeated, and the differences are emphasized here. The data reporting method comprises the following contents.
310: the server receives the registration request sent by the reporting device.
Specifically, the reporting device may be a device that needs to report the index at regular time inside the device. The number of the reporting devices may be one or more, and the embodiment of the present application is not limited in particular. The reporting device can receive application information applied by the user based on the user equipment through a designated interface, and the reporting device applies for registration to the server based on the application information.
It should be noted that, in order to implement the timing reporting of the indexes by the plurality of different subtasks, the number of corresponding reporting devices may be plural, and the plurality of 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 can send the information of the successful registration to the reporting device through the enterprise-level bus, so that the reporting device can report indexes to the service registration center at fixed time.
When the number of the reporting devices is plural, the service registry may send information of successful registration to the plurality of reporting devices through the enterprise bus.
330: 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 of the plurality of initial indexes into a second attribute value based on template information defined by a user through user equipment so as 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 the registration mode of the reporting device, is convenient for the addition or deletion of the reporting device, and is different from the prior art that professional personnel are required to be equipped to modify the protocol content, and the embodiment of the application reduces the maintenance cost of adding, deleting, adding and changing the reporting index on an enterprise-level bus.
Fig. 4 is a flowchart of a data reporting method according to another exemplary embodiment of the present application. Fig. 4 is an example of the embodiment of fig. 3, and the same points are not repeated, focusing on the differences. The data reporting method comprises the following contents.
In an example, the application request may be a registration application request or a modification attribute application request, which is not limited in detail in the embodiment of the present application.
The method according to the embodiment of the present application will be described in detail below by taking a registration request as an example.
410: the user sends a subsystem registration application request to the server through the user interface.
Specifically, a user (e.g., subsystem user) may send a registration request to a service registry through a user device displaying a service registry interface. The application request may be triggered by clicking a control of "apply for booklet system and subtask" on the service registry interface, and the mode of applying for the request by the subsystem user in the embodiment of the present application is not particularly limited.
420: the server sends registration application information and a 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 the embodiment of the present application.
The template table corresponds to subsystem identification information in the application information. The template table may include template information, such as a second attribute value for each reported indicator, i.e., indicator alias and level identification. And for example, reporting a third attribute value of the index, i.e., index information and format, for each item.
The template table may include detailed index information, for example, with reference to table 1. The subsystem user may define a template table corresponding to the subsystem through a user interface.
TABLE 1
It should be noted that, each row of the index in the template table may be a first initial index.
430: and the user sends the template table and application information defined by the user interface to the server.
Specifically, after the user finishes defining, the user may click on a control of "finishing template setting" in the user interface, and send the template table to the server, which is not limited in particular to the embodiment of the present application for a particular reporting mode.
440: the server stores subsystem identification information in the application information and a 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 user equipment, and stores subsystem service identification information (for example, subsystem service ID, identity document) in the application information and a template table corresponding to the subsystem service identification information, where one subsystem service ID may correspond to one template table or may correspond to a plurality of template tables.
450: the server sends information of successful customization of the template to the user equipment and is used for prompting the user subsystem and the template information creation corresponding to the subsystem to be completed.
After the execution of step 450, the definition operation at the ue is completed, and the operation is further transferred to registration of 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: the reporting device sends a plurality of initial indicators 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 so as to obtain a corresponding subtask index.
495: and correspondingly managing or processing the obtained subtask indexes.
497: the server sends the information of successful reporting of the initial index to the reporting device.
It should be appreciated that the reporting means may increase as the subtasks increase.
Therefore, according to the embodiment of the application, the user (namely, subsystem user) sends the registration application request or modifies the index attribute, so that definition, development and joint debugging of protocols such as SOAP, socket and the like are avoided, and the maintenance cost of enterprises is reduced.
In an embodiment of the present application, the server, the user equipment and the reporting device form a server architecture built based on HTTP/2 protocol, RESTful style and json format.
Specifically, the json technology is utilized to realize rapid transmission of information. The subsystem users can define relevant template information to the service registry in a simpler and more convenient way by combining with the user interface, so that the technical barriers for adding, deleting, adding and changing the business heartbeat indexes on the enterprise bus are reduced, and the maintenance cost is reduced.
The HTTP/2 protocol is adopted to solve the problem of information transmission safety across systems, and simultaneously, the service registration center can collect and process the collected service index data by integrating RESTful definition interfaces and exchange arrangement algorithms, so that the service state sensing and accurate management of the subsystem services are completed.
Therefore, the embodiment of the application improves the security of information cross-system transmission and simplifies the operation of users through the server architecture built by HTTP/2 protocol and the json format of RESTful style.
Fig. 5 is a flowchart of a data reporting method according to still 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 the user equipment. As shown in fig. 5, the data reporting method includes the following.
510: 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 a modification attribute application request, which is not limited in particular in the 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 the subsystem identification information, the subsystem and the subtasks corresponding to the subsystem, which is not limited in particular in the 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 particularly limited in the embodiment of the present application.
530: and the user equipment sends application information and a template table for completing definition of the user to the server.
Specifically, after the user completes the application information and the template table in step 520, the user may send the defined template table and the filled application information to the server by clicking a control similar to "complete definition" of the user interface.
It should be noted that, fig. 5 corresponds to the method of fig. 1, fig. 1 is a schematic description of a view standing on a server side, and fig. 5 is a schematic description of a view standing on a user equipment.
It can be seen that the embodiment of the application provides a data reporting method, which converts a plurality of initial indexes of a plurality of subtasks respectively through template information defined by a user, so that the problems of complex management, inconsistent level and index names, consistent index names but different index meanings and the like when undefined indexes are reported by a reporting device are solved.
Fig. 6 is a schematic structural diagram of a data reporting device according to an exemplary embodiment of the present application. As shown in fig. 6, the data reporting device 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 a subtask sent by the reporting device; the conversion module 620 is configured to convert a first attribute value of a first initial indicator of the plurality of initial indicators into a second attribute value based on template information defined by a user through the user device, so as to obtain a corresponding subtask indicator, where the template information includes the second attribute value corresponding to the plurality of initial indicators.
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 of complex management, inconsistent level and index names, consistent index names but different index meanings and the like when the indexes which are reported by the reporting device and are not defined in advance.
According to an embodiment of the present application, the first attribute value includes a hierarchy identifier, and the conversion module 620 is configured to upgrade and downgrade the first attribute value of the first initial indicator into a second attribute value based on the 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 conversion on 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.
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, further comprising: 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 containing template information to a user device, where the application information includes subsystem identification information corresponding to a subtask; the third receiving device 650 is configured to receive and store the subsystem identification information sent by the user equipment and a template table corresponding to the subsystem identification information.
According to an embodiment of the application, the server, the user equipment and the reporting device form a server architecture built based on HTTP/2 protocol, RESTful style and json format.
It should be understood that, for the specific working process and function of the first receiving module 610 and the arranging module 620 in the above embodiment, reference may be made to the description in the data reporting method provided in the above embodiment of fig. 1 to 4, and in order to avoid repetition, a description is omitted here.
Fig. 7 is a schematic structural diagram of a data reporting device according to another exemplary embodiment of the present application. As shown in fig. 7, the data reporting device 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 the server through the user interface; the receiving module 720 is configured to receive application information and a template table sent by a 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-in 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 of complex management, inconsistent level and index names, consistent index names but different index meanings and the like when the indexes which are reported by the reporting device and are not defined in advance.
It should be understood that, for the specific working processes and functions of the first sending module 710, the receiving module 720, and the second sending module 730 in the foregoing embodiments may refer to the description in the data reporting method provided in the foregoing embodiment of fig. 5, and in order to avoid repetition, a description is omitted herein.
Fig. 8 is a block diagram of an electronic device for data orchestration according to an example embodiment of the present application.
Referring to fig. 8, an 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, executable by the processing component 810. The application program stored in memory 820 may include one or more modules each corresponding to a set of instructions. Further, the processing component 810 is configured to execute instructions to perform the data reporting method described above.
The electronic device 800 may also include a power supply assembly configured to perform power management of the electronic device 800, one havingThe wired or wireless network interface is configured to connect the electronic device 800 to a network, and an input output (I/O) interface. Electronic device 800 may operate based on an operating system stored in memory 820, such as Windows Server TM ,Mac OS X TM ,Unix TM ,Linux TM ,FreeBSD TM Or the like.
A non-transitory computer readable storage medium, which when executed by a processor of the electronic device 800, causes the electronic device 800 to perform a data reporting method comprising: : the server receives a plurality of initial indexes of the subtasks sent by the 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 so as 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 user equipment receives application information and a template table sent by a server, wherein the template table comprises template information; the user equipment sends the template table defined by the user and the filled application information to the server.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described 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 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 will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program verification codes.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "examples," and the like, means 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, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. 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 foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is to be construed as including any modifications, equivalents, and alternatives falling within the spirit and principles of the application.

Claims (9)

1. The data reporting method is characterized by comprising the following steps:
the server receives an application request sent by a user based on 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 a subtask;
the server receives and stores the subsystem identification information sent by the user equipment and the template table corresponding to the subsystem identification information;
the server receives a plurality of initial indexes of the subtasks sent by the 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 so as 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 hierarchy identification,
the server converting, based on template information defined by a user through user equipment, a first attribute value of a first initial index of the plurality of initial indexes into a second attribute value, so as to obtain a corresponding subtask index includes:
and based on the second attribute value included in the template information, upgrading and downgrading the first attribute value of the first initial index into the second attribute value so as to obtain a corresponding subtask index.
3. The method of claim 1, wherein the first attribute value comprises an indicator alias,
the server converting, based on template information defined by a user through user equipment, a first attribute value of a first initial index of the plurality of initial indexes into a second attribute value, so as to obtain a corresponding subtask index includes:
and performing name exchange conversion on the first attribute value of the first initial index to obtain 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 comprises 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 indicators determined based on the third attribute value sent by the reporting device,
wherein the third attribute value includes index information and a format.
5. The method according to any one of claims 1 to 4, wherein the server, the user equipment and the reporting device form a server architecture built based on HTTP/2 protocol, RESTful style and json format.
6. The 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 application information comprises subsystem identification information corresponding to a subtask;
and the user equipment sends the template table defined by the user and the filled application information to the server, wherein the template information in the template table defined by the user comprises second attribute values corresponding to a plurality of initial indexes.
7. A server, comprising:
the receiving module is used for receiving an application request sent by a user based on user equipment; sending application information and a template table containing template information to the user equipment, wherein the application information comprises subsystem identification information corresponding to a subtask; receiving and storing the subsystem identification information sent by the user equipment and the template table corresponding to the subsystem identification information; receiving a plurality of initial indexes of the subtasks sent by the reporting device;
the conversion module is used for converting 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 user equipment, so as to obtain a corresponding subtask index, and the template information comprises the second attribute value corresponding to the plurality of initial indexes.
8. 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 application information and a template table sent by the server, wherein the template table comprises template information, and the application information comprises subsystem identification information corresponding to a subtask;
and the second sending module is used for sending the template table defined by the user and the filled application information to the server, wherein the template information in the template table defined by the user comprises second attribute values corresponding to a plurality of initial indexes.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions,
wherein the processor is configured to perform the data reporting method of any one of claims 1 to 5 or the data reporting method of claim 6.
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 CN114745296A (en) 2022-07-12
CN114745296B true 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 (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7418403B2 (en) * 2002-11-27 2008-08-26 Bt Group Plc Content feedback in a multiple-owner content management system
US7721195B2 (en) * 2004-08-24 2010-05-18 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
US8265945B2 (en) * 2009-09-03 2012-09-11 The Invention Science Fund I, Llc Template modification based on deviation from compliant execution of the template
US8549396B2 (en) * 2009-12-31 2013-10-01 International Business Machines Corporation Matching various combinations of XPATH URIs to the same XML node
WO2012071574A2 (en) * 2010-11-24 2012-05-31 Visa International Service Association Unified online content manager apparatuses, methods, and systems
US10558653B2 (en) * 2017-06-07 2020-02-11 Sap Se Dynamic, variable-data attribute data service

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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自定义报表设计;余建成;;计算机与数字工程(06);全文 *

Also Published As

Publication number Publication date
CN114745296A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US7937716B2 (en) Managing collections of appliances
KR101863398B1 (en) Method and system for synchronization mechanism on multi-server reservation system
US9172621B1 (en) Unified account metadata management
US11019128B2 (en) Identity service management in limited connectivity environments
DE60315558T2 (en) Distributed computing system for device resources based on identity
JP3896111B2 (en) Resource allocation system, method and program
CA2363151C (en) Metrics and status presentation system and method using persistent template-driven web objects
US20070011291A1 (en) Grid automation bus to integrate management frameworks for dynamic grid management
US20090063650A1 (en) Managing Collections of Appliances
US8683545B2 (en) Federating policies from multiple policy providers
US20120221728A1 (en) Administering Medical Digital Images With Intelligent Analytic Execution Of Workflows
US20130046547A1 (en) Processing System Using Metadata For Administering A Business Transaction
JP2005174201A6 (en) Resource allocation system, method and program
CN103607435A (en) Medical image storage system based on cloud computing and method thereof
CN109547509A (en) A kind of method and system of cross-platform deployment
CN113742031A (en) Node state information acquisition method and device, electronic equipment and readable storage medium
US20130018694A1 (en) Dynamically Allocating Business Workflows
CN1981541A (en) Integrated management of a wireless network
CN114745296B (en) Data reporting method and device
KR101376226B1 (en) Method for total managing open-source systems and total management server thereof
US20210006639A1 (en) Data acquisition method, service provider, service consumer and network functional entity
WO2022245291A2 (en) Method and apparatus for managing resources, computer device and storage medium
PH12015500675B1 (en) Method and system for transmission management of full configuration synchronization between eml-nml.
US11392424B2 (en) Method and device for aiding decision-making for the allocation of computing means on a high performance computing infrastructure
US10348596B1 (en) Data integrity monitoring for a usage analysis 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