CN109639465A - Warning information storage method and device based on cloud platform - Google Patents
Warning information storage method and device based on cloud platform Download PDFInfo
- Publication number
- CN109639465A CN109639465A CN201811425655.8A CN201811425655A CN109639465A CN 109639465 A CN109639465 A CN 109639465A CN 201811425655 A CN201811425655 A CN 201811425655A CN 109639465 A CN109639465 A CN 109639465A
- Authority
- CN
- China
- Prior art keywords
- warning information
- information
- warning
- cloud platform
- target alarms
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Abstract
The embodiment of the present invention is suitable for information technology field, provides a kind of warning information storage method and device based on cloud platform, which comprises generates warning information;Determine the multiple attribute fields for including in the warning information and its corresponding property content;The multiple attribute field and its corresponding property content are compiled as by target alarms information using preset data form JSON;The target alarms information is stored into the database of cloud platform.The present embodiment is by way of turning to JSON character string for warning information sequence, warning information is not influenced by database table structure, it can be realized and the warning information of any dimension is stored, without combing the attribute field of warning information in advance, so as to according to business characteristic, storage and management neatly are carried out to warning information, improve the efficiency of warning information storage.
Description
Technical field
The invention belongs to information technology fields, more particularly to a kind of warning information storage method based on cloud platform, one
Warning information storage device, a kind of terminal device and a kind of computer readable storage medium of the kind based on cloud platform.
Background technique
For arbitrary operation system, monitoring alarm function is all extremely important.It is acquired in real time by monitoring system
Then all data of operation system is judged whether to send and be accused by warning system according to warning strategies and collected monitoring data
Alert information, and history alarm information is stored with certain data structure.
Management and storage for history alarm information, the general implementation method of industry are as comprehensive as possible at research and development initial stage
Ground combs every attribute of warning information, designs memory data structure and database table structure in advance.For example, if combing out
The attribute of possible warning information includes ID (data base entries increase ID certainly), region (Region), product (Product), IP (IP
Address), 5 fields of Context (warning content), then can be designed according to above-mentioned 5 fields memory data structure and
Database table structure.During actual O&M, for the warning information of transmission, its corresponding content can also be distinguished
It stores into above-mentioned 5 fields.
But above-mentioned memory data structure and database table structure, once fixation, subsequent modification cost is larger.For example,
After if the cloud platform in somewhere is further divided into available area A and available area B, in order to increase " available area in warning information
The information of A ", must just modify code could increase that " Zone is (available in above-mentioned memory data structure and database table structure
Area) " field, it operates very complicated.On the other hand, in order to support attribute description as much as possible, research staff can also be with
A certain amount of spare fields are reserved in memory data structure and database table structure, it is a certain when needing to increase in warning information
When attribute, reserved field can be occupied directly to store corresponding warning information.But a large amount of reserved field also can simultaneously
So that the structure of database table becomes very too fat to move, the storage and service efficiency of database table are influenced.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of warning information storage method and device based on cloud platform, with
Solve the problems, such as that the storage of warning information and service efficiency are low in the prior art.
The first aspect of the embodiment of the present invention provides a kind of warning information storage method based on cloud platform, comprising:
Generate warning information;
Determine the multiple attribute fields for including in the warning information and its corresponding property content;
The multiple attribute field and its corresponding property content target is compiled as using preset data form JSON to accuse
Alert information;
The target alarms information is stored into the database of cloud platform.
The second aspect of the embodiment of the present invention provides a kind of warning information storage device based on cloud platform, comprising:
Generation module, for generating warning information;
Determining module, for determining the multiple attribute fields for including in the warning information and its corresponding property content;
Collector, for using preset data form JSON by the multiple attribute field and its corresponding property content
It is compiled as target alarms information;
Memory module, for storing the target alarms information into the database of cloud platform.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing the above-mentioned warning information storage method based on cloud platform.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes the above-mentioned warning information based on cloud platform when being executed by processor
The step of storage method.
Compared with prior art, the beneficial effect of the embodiment of the present invention is:
The embodiment of the present invention, after generating warning information, by determining the multiple attribute fields for including in the warning information
And its corresponding property content, it can use preset data form JSON will be in above-mentioned multiple attribute fields and its corresponding attribute
Appearance is compiled as target alarms information, to storing target alarms information into the database of cloud platform.The present embodiment pass through by
Warning information sequence turns to the form of JSON character string, and warning information is not influenced by database table structure, can
Realization stores the warning information of any dimension, without combing the attribute field of warning information in advance, so as to basis
Business characteristic neatly carries out storage and management to warning information, improves the efficiency of warning information storage.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described.It should be evident that the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of step process signal of warning information storage method based on cloud platform of one embodiment of the invention
Figure;
Fig. 2 is that the step process of another warning information storage method based on cloud platform of one embodiment of the invention is shown
It is intended to;
Fig. 3 is a kind of schematic diagram of warning information storage device based on cloud platform of one embodiment of the invention;
Fig. 4 is a kind of schematic diagram of terminal device of one embodiment of the invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.It should be apparent, however, to those skilled in the art that there is no these specific thin
The present invention also may be implemented in the other embodiments of section.In other cases, it omits to well-known system, device, circuit
And the detailed description of method, in case unnecessary details interferes description of the invention.
Illustrate technical solution of the present invention below by specific embodiment.
Referring to Fig.1, a kind of step of warning information storage method based on cloud platform of one embodiment of the invention is shown
Rapid flow diagram, the executing subject of the warning information storage method based on cloud platform can be in cloud platform in the present embodiment
The corresponding server of warning system, the method can specifically include following steps:
S101, warning information is generated;
In embodiments of the present invention, the server in warning system can divide the operation data of each operation system
Analysis or processing, the warning strategies based on setting generate warning information.Warning information is being sent to corresponding equipment by warning system
When, above-mentioned warning information can also be stored, so that performance or working condition of the operation maintenance personnel to operation system are divided
Analysis.
For example, the warning strategies based on setting, certain warning information of generation can be that " East China region IP is
192.168.0.1 virtual machine CPU is greater than 95% ".
S102, the multiple attribute fields for including in the warning information and its corresponding property content are determined;
In general, may include multiple attribute fields in warning information, the corresponding content of each attribute field is in attribute
Hold.
For example, by taking " the virtual machine CPU that East China region IP is 192.168.0.1 is greater than 95% " this warning information as an example,
The attribute field and its corresponding property content for including in the warning information have Region (region, i.e. East China), Product
(95%) warning content, i.e. CPU are greater than by (product, i.e. virtual machine), IP (IP address, i.e. 192.168.0.1), Context.It is above-mentioned
" region ", " product ", " IP address " and " warning content " is the multiple attribute fields for including in warning information, " East China
Area ", " virtual machine ", " 192.168.0.1 " and " CPU is greater than 95% " are then the corresponding property contents of multiple attribute fields.
Certainly, described above is only a kind of example, and those skilled in the art can warning information determine according to actual needs
In attribute field which is specifically included, the present embodiment is not construed as limiting this.
S103, the multiple attribute field and its corresponding property content are compiled as by mesh using preset data form JSON
Mark warning information;
In embodiments of the present invention, JS object numbered musical notation (JavaScript Object Notation, JSON) can be used
The form of character string stores the warning information of generation.
JSON is a kind of data interchange format of lightweight.It is based on ECMAScript, and (European Computer association formulates
JS specification) a subset, data are stored and indicated using the text formatting for being totally independent of programming language, it is succinct and clear
Hierarchical structure make JSON become a kind of ideal data interchange language.The number stored with the format of JSON character string
It according to the reading for being easy to people and writes, while being also easy to machine parsing and generating, and can effectively promote network transmission efficiency.
It should be noted that when storing to warning information label can also be carried out to this warning information, that is,
Determine that entry of this warning information in database table increases ID certainly.
It therefore, can be according to JSON format to above-mentioned more after the multiple property contents for including in determining warning information
A property content and current entry are compiled from ID is increased, and obtain target alarms information to be stored.
For example, by taking " the virtual machine CPU that East China region IP is 192.168.0.1 is greater than 95% " this warning information as an example.
If it is determined that the entry of this warning information is 56, then after being compiled according to JSON format from ID is increased, the target alarms of acquisition are believed
Breath can be expressed as " ID='{ " ID ": " 56 " } ', Context='{ " Context ": " CPU > 95 ", " IP ": "
192.168.0.1","Region":"EC","Product":"ECS"}'”。
S104, the target alarms information is stored into the database of cloud platform.
In embodiments of the present invention, it is compiled after obtaining target alarms information according to the format of JSON character string, it can will be upper
Target alarms information is stated to store into the database of cloud platform.
In embodiments of the present invention, after generating warning information, by determining the multiple attributes for including in the warning information
Field and its corresponding property content can use preset data form JSON by above-mentioned multiple attribute fields and its corresponding category
Property content is compiled as target alarms information, to storing target alarms information into the database of cloud platform.The present embodiment is logical
The form that warning information sequence is turned to JSON character string is crossed, warning information is not influenced by database table structure,
It can be realized and the warning information of any dimension is stored, without combing the attribute field of warning information in advance, so as to
According to business characteristic, storage and management neatly are carried out to warning information, improve the efficiency of warning information storage.
Referring to Fig. 2, another warning information storage method based on cloud platform of one embodiment of the invention is shown
Steps flow chart schematic diagram, the executing subject of the warning information storage method based on cloud platform can be in cloud platform in the present embodiment
The corresponding server of warning system, the method can specifically include following steps:
S201, the monitoring data for receiving monitoring system acquisition;
It should be noted that the monitoring data that the warning system in cloud platform can be acquired by receiving monitoring system, so
It is directed to above-mentioned monitoring data and default warning strategies afterwards, generates warning information, and warning information is being sent to corresponding equipment
Meanwhile warning information is stored.
In embodiments of the present invention, above-mentioned monitoring data can be the monitoring number for operation system each in cloud platform
According to.
Typically for any one business, can be realized in this business by setting up corresponding operation system
Various functions.In order to guarantee the smooth development of business, corresponding monitoring system and warning system can also be configured for operation system.
Monitoring system can the operating condition in real time to various softwares or hardware in operation system be monitored, and
Corresponding monitoring data is acquired during monitoring, above-mentioned monitoring data can be sent to warning system and be analyzed or be handled.
Warning system can for analysis or processing as a result, determining whether that user or equipment send a warning message.
In embodiments of the present invention, monitoring system and warning system can be by way of softwares or software and hardware combining
To be configured.For example, can be by monitoring system and warning system configuration in the server of operation system;Alternatively, monitoring system
System and warning system can also be configured in the form of individual server, and by wired or wireless mode and are monitored
Operation system and other related systems or equipment communication connection.
In embodiments of the present invention, the monitoring data of monitoring system acquisition may include various softwares or hard in operation system
The region of part, IP address, name of product, current state etc., those skilled in the art can be with monitoring according to actual needs
The specific performance of system determines which type is the monitoring data to be acquired include, and the present embodiment is not construed as limiting this.
In warning system, some warning strategies can be preset.After receiving monitoring data, these can be compareed
Warning strategies are analyzed, and determine whether the current operating condition of operation system meets the alarm conditions set in warning strategies.
If it is satisfied, then warning information can be generated for the monitoring data received;If being unsatisfactory for any one warning strategies,
The monitoring data can not be handled.
S202, the monitoring data and default warning strategies are directed to, generate warning information;
In embodiments of the present invention, warning information can be the alarm met in warning system in collected monitoring data
It is generated in the case where strategy, warning strategies can artificially be set according to the actual needs of user.
For example, sending a warning message when a certain warning strategies can be set as CPU greater than 80%;Alternatively, can also set
When being greater than 90% for CPU, send a warning message.
In the concrete realization, warning strategies can be set according to different attributes such as region, products.
For example, the specific region of warning strategies can be set as East China.So, monitoring device transmission is being received
When monitoring data, it can be solely focused on the monitoring data from East China, the monitoring data from other regions is excluded, contracting
The range of small data processing.It is then possible to set different monitoring product categories according to actual needs.Such as virtual machine, user
Equipment etc., so that the monitoring data of the above-mentioned East China received can be divided into multiple and different monitoring by warning system
Product category.For each monitoring product category, can set warning strategies is concern memory, CPU or I/O (input/defeated
Out) etc..In the corresponding monitoring data of each monitoring product category, but can continue according to above-mentioned classification to monitoring data into
Row processing obtains the monitoring data for meeting corresponding warning strategies, and is directed to the monitoring data, generates corresponding warning information.
By taking CPU usage in the collected monitoring data of monitoring system is 85% as an example, if warning strategies are that " CPU is big
When 90%, send a warning message ", then warning system does not need to respond for the monitoring data, do not have to generate corresponding
Warning information;But if warning strategies are " when CPU is greater than 80%, sending a warning message ", then warning system just needs needle
The monitoring data is responded, corresponding warning information is generated.
Certainly, the above-mentioned description to setting warning strategies is only a kind of example, and user can also set otherwise
Fixed specific warning strategies, the present embodiment are not construed as limiting this.
It should be noted that the warning information after generating warning information, can be sent to corresponding use by warning system
Family equipment or server, to notify user or operation maintenance personnel to handle for the warning information.Therefore, it is sending a warning message
Before, warning system can determine the specific equipment to be sent first or which server is.
In being embodied in, a tables of data can be safeguarded in warning system in advance, for different business functions
Or different warning contents, corresponding warning information receiving device or server ID are stored in the tables of data.It is accused when generating
After alert information, it can determine the equipment to be sent by consulting above-mentioned tables of data or which server is, then believe alarm
Breath is sent in above equipment or server.
Certainly, the corresponding receiving device of warning information is recorded by one tables of data of maintenance or server is only this reality
A kind of example of example is applied, those skilled in the art can determine the specific of warning information using other means according to actual needs
Receiving device, the present embodiment are not construed as limiting this.
S203, the multiple attribute fields for including in the warning information and its corresponding property content are determined;
In general, may include multiple attribute fields in warning information.After generating warning information, in order to believe above-mentioned alarm
Breath is stored, and can be identified first to the attribute field for including in warning information.Include in identification warning information
After multiple attribute fields, the corresponding property content of above-mentioned multiple attribute fields can be determined respectively.
In the concrete realization, the particular content in warning information can be analyzed, determines that above content belongs to actually
Which kind of data.
For example, by taking " the virtual machine CPU that East China region IP is 192.168.0.1 is greater than 95% " this warning information as an example.
Through analysis it is found that the attribute field and its corresponding property content that include in the warning information have Region (region, i.e. East China
Area), Product (product, i.e. virtual machine), IP (IP address, i.e. 192.168.0.1), (warning content, i.e. CPU are big by Context
In 95%).
S204, the multiple attribute field and its corresponding property content are compiled as by mesh using preset data form JSON
Mark warning information;
In embodiments of the present invention, warning information is stored in order to facilitate, warning information can be compiled as fitting
The target alarms information preferably stored, above-mentioned target alarms information can be to be compiled using preset data form JSON.
In the concrete realization, current storage entry information can be determined first, which can refer to this
Entry when warning information stores in the database is from increasing ID.It is then possible to will be current using preset data form JSON
Storage entry information, multiple attribute fields and the corresponding property content of multiple attribute fields are compiled as target alarms information.
By taking " the virtual machine CPU that East China region IP is 192.168.0.1 is greater than 95% " this warning information as an example.If it is determined that
The entry of this warning information is 56, then after being compiled according to JSON format from ID is increased, and the target alarms information of acquisition can be with
Be expressed as " ID='{ " ID ": " 56 " } ', Context='{ " Context ": " CPU > 95 ", " IP ": " 192.168.0.1 ", "
Region":"EC","Product":"ECS"}'”。
Due to above-mentioned warning information include ID (data base entries from increase ID), Region (region), Product (product),
5 IP (IP address), Context (warning content) attributes are needed according to traditional warning information storage mode in database table
The data structure of 5 fields of middle design to store the corresponding property content of above-mentioned respective field respectively.And it uses in the present embodiment
Scheme, it is only necessary to design ID (data base entries from increase ID) and Context (the JSON character of warning information in the database
String) two fields, effectively reduce the structural complexity of database table.
S205, the target alarms information is stored into the database of cloud platform;
In embodiments of the present invention, it is compiled after obtaining target alarms information according to the format of JSON character string, it can will be upper
Target alarms information is stated to store into the database of cloud platform.
S206, the modification instruction for being directed to the target alarms information is received, is instructed for the modification, the target is accused
Alert information is modified;
In embodiments of the present invention, it can also modify to the target alarms information of storage.
For example, modification instruction can be sent to the database of storage target alarms information, can be taken in above-mentioned modification instruction
Data base entries with target alarms information to be modified modification content from increasing ID and specifically.Increased certainly by data base entries
ID can find out warning information to be modified, then, can repair according to specific modification content to the warning information
Change, above-mentioned modification may include at least one of increasing, deleting, update.
Since target alarms information is JSON character string, preset compilation tool can be directly used to JSON word
Symbol string is modified.
In the concrete realization, the characteristic for being easy to write based on JSON character string, when needing to modify to warning information,
It can be by directly modifying to the JSON string content in Context field.
If desired increase a certain attribute field in warning information, can determine attribute field to be increased and its right first
Then the property content answered is write above-mentioned attribute field to be increased and its corresponding property content using preset compilation tool
Enter in JSON character string;If desired a certain attribute field is deleted in warning information, can determine attribute field to be deleted, so
Attribute field to be deleted and its corresponding property content are deleted from JSON character string using preset compilation tool afterwards;If
Need to be updated a certain property content in existing warning information, then can determine attribute field to be updated and its
It is using preset compilation tool that attribute field to be updated in JSON character string is corresponding after corresponding property content to be updated
Property content replaces with property content to be updated.
By taking what is carried out to target alarms information is revised as increase as an example.If the cloud platform of some operation system is in East China
When domain is further subdivided into available area A and available area B, above-mentioned warning information has just become that " East China region available area A, IP are
192.168.0.1 virtual machine CPU is greater than 95% ".At this point it is possible to the mesh that will directly be stored in database table by compilation tool
Mark warning information " ID='{ " ID ": " 56 " } ', Context='{ " Context ": " CPU > 95 ", " IP ": "
", 192.168.0.1 " Region ": " EC ", " Product ": " ECS " } ' " be revised as " ID='{ " ID ": " 56 " } ', Context
=' " Context ": " CPU > 95 ", " IP ": " 192.168.0.1 ", " Region ": " EC ", " Product ": " ECS ", "
Zone ": " A " } ' ".
If to store the warning information including " available area " field according to traditional warning information storage mode, then must
It need modify to the structure of database table, increase the field of " Zone " (available area), be just able to satisfy the description of newly-increased attribute.
The present embodiment stores warning information using JSON character string, substantially increases the flexibility of storage and management warning information.
The communication connection of S207, the database for establishing the cloud platform and specific transactions system;
Since JSON character string readability is good, and has good multilingual universality.Therefore, with the storage of JSON format
Warning information can also be used by other particular systems, other particular systems, which can be, uses identical exploitation with current business system
Language or the system of different exploitation voice exploitations, the present embodiment are not construed as limiting this.
In the present embodiment, other particular systems can be other specific transactions systems, which can be with
It include server and terminal device etc..
In embodiments of the present invention, the database of cloud platform and the communication link of above-mentioned specific transactions system can be initially set up
It connects.
In the concrete realization, can by corresponding data-interface by cloud platform database and above-mentioned specific transactions system
System is docked.
S208, it is based on the communication connection, the target alarms information is transmitted to the specific transactions system.
In embodiments of the present invention, above-mentioned operation system can be got by the data-interface of docking and be deposited with JSON format
The target alarms information of storage in the database, and JSON character string is converted into dictionary format.
In the concrete realization, JSON character string can be converted to word in a manner of unserializing by above-mentioned specific transactions system
Allusion quotation format.For example, JSON character string can be deserialized as being suitable for the information of Map structure.
Serializing (Serialization) is the mistake that the status information of object is converted to the form that can store or transmit
Journey.During serializing, its current state is written to interim or persistent storage area by object.It is then possible to by from storage
The state of reading or unserializing object in area, re-creates the object.Unserializing is a kind of place opposite with serializing
Reason process.
In embodiments of the present invention, by obtaining the warning information stored with JSON string format, and with unserializing
Mode be converted to the dictionary format used for other systems, greatly facilitate not between homologous ray, different development language
Docking, improve the availability of warning information.
In embodiments of the present invention, storing warning information in the form of JSON character string, without researching and developing people
Member in advance combs possible alarm attributes, and user can be according to respective business needs, neatly in JSON character string
The middle corresponding warning content of write-in.When needing to increase other property contents in warning information, JSON character can also be based on
The characteristic of string directly increases corresponding content in the character string, modifies without the code to database table structure.Together
When, since the readability of JSON character string is preferable, by corresponding data-interface, the alarm of storage in the form of JSON character string
Information easily can also be obtained and be used by other systems, improve the availability of warning information.
It should be noted that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment,
The execution sequence of each process should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present invention, which is constituted, appoints
What is limited.
Referring to Fig. 3, a kind of showing for warning information storage device based on cloud platform of one embodiment of the invention is shown
It is intended to, can specifically include following module:
Generation module 301, for generating warning information;
Determining module 302, for determining in the multiple attribute fields and its corresponding attribute for including in the warning information
Hold;
Collector 303, for using preset data form JSON by the multiple attribute field and its corresponding attribute
Content is compiled as target alarms information;
Memory module 304, for storing the target alarms information into the database of cloud platform.
In embodiments of the present invention, the generation module 301 can specifically include following submodule:
Monitoring data receiving submodule, for receiving the monitoring data of monitoring system acquisition;
Warning information generates submodule, for being directed to the monitoring data and default warning strategies, generates warning information.
In embodiments of the present invention, the determining module 302 can specifically include following submodule:
Attribute field identifies submodule, the multiple attribute fields for including in the warning information for identification;
Property content determines submodule, for determining the corresponding property content of the multiple attribute field respectively.
In embodiments of the present invention, the collector 303 can specifically include following submodule:
Storage entry determines submodule, for determining current storage entry information;
Warning information compile submodule, for using preset data form JSON by the current storage entry information,
The multiple attribute field and the corresponding property content of the multiple attribute field are compiled as target alarms information.
In embodiments of the present invention, described device can also include following module:
Command reception module is modified, for receiving the modification instruction for being directed to the target alarms information;
Modified module modifies to the target alarms information, the modification includes for instructing for the modification
At least one of increase, delete, update.
In embodiments of the present invention, the target alarms information is JSON character string, and the modified module specifically can wrap
Include following submodule:
Attribute field increases submodule, for determining attribute field to be increased and its corresponding property content, using pre-
The attribute field to be increased and its corresponding property content are written in the JSON character string compilation tool set;With/
Or,
Attribute field deletes submodule, will be described using preset compilation tool for determining attribute field to be deleted
Attribute field to be deleted and its corresponding property content are deleted from the JSON character string;And/or
Attribute field updates submodule, for determining attribute field to be updated and its corresponding property content to be updated,
The corresponding property content of attribute field to be updated in the JSON character string replaced with using preset compilation tool described
Property content to be updated.
In embodiments of the present invention, the target alarms information is JSON character string, and described device can also include as follows
Module:
Module is established, for establishing the database of the cloud platform and the communication connection of specific transactions system;
The target alarms information is transmitted to the specific transactions system for being based on the communication connection by transmission module
System, the specific transactions system can be used for the JSON character string being converted to dictionary format.
For device embodiment, since it is basically similar to the method embodiment, related so describing fairly simple
Place referring to embodiment of the method part explanation.
Referring to Fig. 4, a kind of schematic diagram of terminal device of one embodiment of the invention is shown.As shown in figure 4, this implementation
The terminal device 400 of example includes: processor 410, memory 420 and is stored in the memory 420 and can be at the place
The computer program 421 run on reason device 410.The processor 410 realizes above-mentioned be based on when executing the computer program 421
Step in each embodiment of warning information storage method of cloud platform, such as step S101 to S104 shown in FIG. 1.Alternatively,
The processor 410 realizes the function of each module/unit in above-mentioned each Installation practice when executing the computer program 421,
Such as the function of module 301 to 304 shown in Fig. 3.
Illustratively, the computer program 421 can be divided into one or more module/units, it is one or
Multiple module/the units of person are stored in the memory 420, and are executed by the processor 410, to complete the present invention.Institute
Stating one or more module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment
It can be used for describing implementation procedure of the computer program 421 in the terminal device 400.For example, the computer journey
Sequence 421 can be divided into generation module, determining module, collector and memory module, and each module concrete function is as follows:
Generation module, for generating warning information;
Determining module, for determining the multiple attribute fields for including in the warning information and its corresponding property content;
Collector, for using preset data form JSON by the multiple attribute field and its corresponding property content
It is compiled as target alarms information;
Memory module, for storing the target alarms information into the database of cloud platform.
The terminal device 400 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device 400 may include, but be not limited only to, processor 410, memory 420.Those skilled in the art can manage
Solution, Fig. 4 is only a kind of example of terminal device 400, does not constitute the restriction to terminal device 400, may include than diagram
More or fewer components perhaps combine certain components or different components, such as the terminal device 400 can also wrap
Include input-output equipment, network access equipment, bus etc..
The processor 410 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 420 can be the internal storage unit of the terminal device 400, such as terminal device 400 is hard
Disk or memory.The memory 420 is also possible to the External memory equipment of the terminal device 400, such as the terminal device
The plug-in type hard disk being equipped on 400, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the memory 420 can also both include the end
The internal storage unit of end equipment 400 also includes External memory equipment.The memory 420 is for storing the computer program
421 and the terminal device 400 needed for other programs and data.The memory 420 can be also used for temporarily storing
The data that has exported or will export.
Those skilled in the art can be understood that, for convenience of description and succinctly, only with above-mentioned each function
The division of unit, module is illustrated.In practical application, it can according to need and by above-mentioned function distribution by different function
Energy unit, module are completed, i.e., described device/terminal device internal structure is divided into different functional unit or module, with
Complete all or part of function described above.Each functional unit in embodiment, module can integrate single in a processing
In member, it is also possible to each unit and physically exists alone, can also be integrated in one unit with two or more units, on
It states integrated unit both and can take the form of hardware realization, can also realize in the form of software functional units.In addition, each
Functional unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.On
The specific work process for stating unit in system, module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein
It states.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load, reference can be made to the related descriptions of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes in other way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
On the one hand, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, dress
It sets or the INDIRECT COUPLING or communication connection of unit, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the calculating by computer program
Machine program can be stored in computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can
Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer readable storage medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
It is appropriate that the content that computer readable storage medium includes can be carried out according to the requirement made laws in jurisdiction with patent practice
Increase and decrease, such as do not include electric carrier wave according to legislation and patent practice, computer readable storage medium in certain jurisdictions
Signal and telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations.Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of warning information storage method based on cloud platform characterized by comprising
Generate warning information;
Determine the multiple attribute fields for including in the warning information and its corresponding property content;
The multiple attribute field and its corresponding property content are compiled as by target alarms letter using preset data form JSON
Breath;
The target alarms information is stored into the database of cloud platform.
2. the method according to claim 1, wherein the step of generation warning information, includes:
Receive the monitoring data of monitoring system acquisition;
For the monitoring data and default warning strategies, warning information is generated.
3. the method according to claim 1, wherein the multiple attributes for including in the determination warning information
The step of field and its corresponding property content includes:
Identify the multiple attribute fields for including in the warning information;
The corresponding property content of the multiple attribute field is determined respectively.
4. according to the method described in claim 3, it is characterized in that, described use preset data form JSON by the multiple category
The step of property field and its corresponding property content are compiled as target alarms information include:
Determine current storage entry information;
Using preset data form JSON by the current storage entry information, the multiple attribute field and the multiple category
The property corresponding property content of field is compiled as target alarms information.
5. method according to claim 1 to 4, which is characterized in that further include:
The modification received for the target alarms information instructs;
It instructs for the modification, modifies to the target alarms information, the modification includes in increasing, delete, updating
At least one.
6. according to the method described in claim 5, it is characterized in that, the target alarms information is JSON character string, the needle
The modification is instructed, the step of modifying to the target alarms information includes:
Attribute field to be increased and its corresponding property content are determined, using preset compilation tool by the category to be increased
Property field and its corresponding property content be written in the JSON character string;And/or
Attribute field to be deleted is determined, using preset compilation tool by the attribute field to be deleted and its corresponding category
Property content is deleted from the JSON character string;And/or
Attribute field to be updated and its corresponding property content to be updated are determined, using preset compilation tool by the JSON
The corresponding property content of attribute field to be updated replaces with the property content to be updated in character string.
7. the method according to claim 1, wherein the target alarms information is JSON character string, the side
Method further include:
Establish the database of the cloud platform and the communication connection of specific transactions system;
Based on the communication connection, the target alarms information is transmitted to the specific transactions system, the specific transactions system
System is for being converted to dictionary format for the JSON character string.
8. a kind of warning information storage device based on cloud platform characterized by comprising
Generation module, for generating warning information;
Determining module, for determining the multiple property contents for including in the warning information;
Collector, for the multiple property content to be compiled as target alarms information using preset data form JSON;
Memory module, for storing the target alarms information into the database of cloud platform.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes that claim 1-7 such as appoints when executing the computer program
The step of one warning information storage method based on cloud platform.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization warning information based on cloud platform as described in claim 1-7 is any when the computer program is executed by processor
The step of storage method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811425655.8A CN109639465A (en) | 2018-11-27 | 2018-11-27 | Warning information storage method and device based on cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811425655.8A CN109639465A (en) | 2018-11-27 | 2018-11-27 | Warning information storage method and device based on cloud platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109639465A true CN109639465A (en) | 2019-04-16 |
Family
ID=66069298
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811425655.8A Withdrawn CN109639465A (en) | 2018-11-27 | 2018-11-27 | Warning information storage method and device based on cloud platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639465A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110032368A (en) * | 2019-04-22 | 2019-07-19 | 成都四方伟业软件股份有限公司 | Information configuring methods and device |
CN110490724A (en) * | 2019-07-03 | 2019-11-22 | 平安证券股份有限公司 | The storage method and device of account data |
CN110941946A (en) * | 2019-11-29 | 2020-03-31 | 西安四叶草信息技术有限公司 | Information extraction method, device, equipment and storage medium |
CN110958329A (en) * | 2019-12-18 | 2020-04-03 | 深圳市猫头鹰智慧科技有限公司 | Intelligent Internet of things system with ultra-strong compatible function |
CN112069773A (en) * | 2020-07-23 | 2020-12-11 | 北京三快在线科技有限公司 | Data processing system, method, apparatus, electronic device, and computer-readable medium |
CN112989139A (en) * | 2019-12-13 | 2021-06-18 | 北京国基科技股份有限公司 | Data searching method and device |
CN113282620A (en) * | 2021-04-23 | 2021-08-20 | 上海中通吉网络技术有限公司 | JSON alarm message structure unified standard processing method, system, equipment and storage medium |
CN113821412A (en) * | 2021-09-26 | 2021-12-21 | 中国建设银行股份有限公司 | Equipment operation and maintenance management method and device |
CN114064421A (en) * | 2021-11-16 | 2022-02-18 | 展讯通信(上海)有限公司 | Alarm processing method and device |
CN115442213A (en) * | 2022-08-30 | 2022-12-06 | 苏州浪潮智能科技有限公司 | Visualization technology expansion method, device, medium and equipment based on alarm system |
-
2018
- 2018-11-27 CN CN201811425655.8A patent/CN109639465A/en not_active Withdrawn
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110032368B (en) * | 2019-04-22 | 2022-09-16 | 成都四方伟业软件股份有限公司 | Information configuration method and device |
CN110032368A (en) * | 2019-04-22 | 2019-07-19 | 成都四方伟业软件股份有限公司 | Information configuring methods and device |
CN110490724A (en) * | 2019-07-03 | 2019-11-22 | 平安证券股份有限公司 | The storage method and device of account data |
CN110941946A (en) * | 2019-11-29 | 2020-03-31 | 西安四叶草信息技术有限公司 | Information extraction method, device, equipment and storage medium |
CN112989139A (en) * | 2019-12-13 | 2021-06-18 | 北京国基科技股份有限公司 | Data searching method and device |
CN112989139B (en) * | 2019-12-13 | 2023-10-27 | 北京国基科技股份有限公司 | Data searching method and device |
CN110958329A (en) * | 2019-12-18 | 2020-04-03 | 深圳市猫头鹰智慧科技有限公司 | Intelligent Internet of things system with ultra-strong compatible function |
CN112069773A (en) * | 2020-07-23 | 2020-12-11 | 北京三快在线科技有限公司 | Data processing system, method, apparatus, electronic device, and computer-readable medium |
CN113282620A (en) * | 2021-04-23 | 2021-08-20 | 上海中通吉网络技术有限公司 | JSON alarm message structure unified standard processing method, system, equipment and storage medium |
CN113821412A (en) * | 2021-09-26 | 2021-12-21 | 中国建设银行股份有限公司 | Equipment operation and maintenance management method and device |
CN114064421B (en) * | 2021-11-16 | 2022-04-22 | 展讯通信(上海)有限公司 | Alarm processing method and device |
CN114064421A (en) * | 2021-11-16 | 2022-02-18 | 展讯通信(上海)有限公司 | Alarm processing method and device |
CN115442213A (en) * | 2022-08-30 | 2022-12-06 | 苏州浪潮智能科技有限公司 | Visualization technology expansion method, device, medium and equipment based on alarm system |
CN115442213B (en) * | 2022-08-30 | 2023-08-18 | 苏州浪潮智能科技有限公司 | Visual technology expansion method, device, medium and equipment based on alarm system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109639465A (en) | Warning information storage method and device based on cloud platform | |
CN108833237A (en) | Intelligent domestic gateway and its management-control method | |
CN108228354A (en) | Dispatching method, system, computer equipment and medium | |
CN109636301A (en) | Workflow configuration method, system, terminal and the readable storage medium storing program for executing of financial business | |
CN109086182A (en) | The method and terminal device of database auto-alarming | |
CN109669931A (en) | Historical data exception analysis method, system, equipment and storage medium | |
CN111130891A (en) | Server management device and method, electronic equipment and storage medium | |
CN109783283A (en) | A kind of processing method, device and the terminal device of hardware detection information | |
CN109508287A (en) | Page adjustment method and terminal device | |
CN108536745A (en) | Tables of data extracting method, terminal, equipment and storage medium based on Shell | |
CN108664665A (en) | Data format method for transformation, device, equipment and readable storage medium storing program for executing | |
CN109376126A (en) | A kind of file or folder processing method, mobile terminal and storage medium | |
CN109241357A (en) | Chain structure model and its construction method, system and terminal device | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN110825807A (en) | Data interaction conversion method, device, equipment and medium based on artificial intelligence | |
CN107506494B (en) | Document handling method, mobile terminal and computer readable storage medium | |
CN109597810A (en) | A kind of task cutting method, device, medium and electronic equipment | |
CN106371869A (en) | Realizing method for IEC61850 configuration software of compartment equipment of intelligent substation | |
CN108920618A (en) | A kind of store method, device, medium and the electronic equipment of object reference relationship | |
CN109960212A (en) | Task sending method and device | |
CN110480633A (en) | A kind of method, apparatus and storage medium controlling equipment | |
CN110490724A (en) | The storage method and device of account data | |
CN110135814A (en) | The correlating method of BIM and project data, system and terminal device | |
CN104407808B (en) | The method and apparatus for writing data | |
CN109542432A (en) | Air control rule editing method and terminal device |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190416 |
|
WW01 | Invention patent application withdrawn after publication |