[go: up one dir, main page]

CN119377160A - A real-time measurement point calculation scheme for dynamic environment monitoring system - Google Patents

A real-time measurement point calculation scheme for dynamic environment monitoring system Download PDF

Info

Publication number
CN119377160A
CN119377160A CN202411925570.1A CN202411925570A CN119377160A CN 119377160 A CN119377160 A CN 119377160A CN 202411925570 A CN202411925570 A CN 202411925570A CN 119377160 A CN119377160 A CN 119377160A
Authority
CN
China
Prior art keywords
expression
measuring point
operator
real
engine
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.)
Pending
Application number
CN202411925570.1A
Other languages
Chinese (zh)
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 Joinnet Technology Co ltd
Original Assignee
Beijing Joinnet Technology 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 Joinnet Technology Co ltd filed Critical Beijing Joinnet Technology Co ltd
Priority to CN202411925570.1A priority Critical patent/CN119377160A/en
Publication of CN119377160A publication Critical patent/CN119377160A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a real-time measuring point operation scheme of a movable ring monitoring system. The embodiment of the application obtains the second expression by replacing the first operator in the first expression by the second operator which accords with the preset specification after obtaining the first expression input by the user, then obtains the measuring point value of the measuring point contained in the second expression according to the second expression, uses the measuring point value to assign the measuring point to obtain the third expression, and finally can directly process the third expression by using the engine corresponding to the preset specification. Therefore, various operators and operation modes can be simply and conveniently added in the development process, and the complex development process is not needed when the combination operation of logic operation and arithmetic operation is faced, so that the rapid calculation of the measuring point value can be realized, the development process of operation is simplified, and the measuring point operation efficiency is greatly improved.

Description

Real-time measuring point operation scheme of movable ring monitoring system
Technical Field
The application relates to the technical field of dynamic ring monitoring, in particular to a real-time measuring point operation scheme of a dynamic ring monitoring system.
Background
Along with the development of technology, the importance of the data center is continuously improved along with the rapid expansion application of the Internet and big data. In a data center, a dynamic ring monitoring system is generally used to process collected data of multiple measuring points to generate new measuring point values or judge alarm states. For example, power may be calculated from collected voltage and current data, or custom rules that trigger alarms when current exceeds a certain threshold. This function based on real-time data analysis is critical for efficient operation and anomaly monitoring of the data center.
Therefore, an operational scheme capable of efficiently and easily processing the site data is required.
Disclosure of Invention
The embodiment of the application provides a real-time measuring point operation scheme of a movable ring monitoring system, which aims to solve the defects of complex operation and difficult traceability in the prior art.
In order to achieve the above objective, an embodiment of the present application provides a real-time measurement point calculation scheme of a dynamic ring monitoring system, including:
acquiring a first expression input by a user, wherein the expression comprises at least one measuring point selected by the user and at least one first operator;
Replacing the first operator in the first expression with a second operator conforming to the first specification to obtain a second expression;
acquiring a measuring point value of a measuring point contained in the second expression;
assigning the obtained measuring point value to the measuring point contained in the second expression to obtain a third expression;
loading a first engine corresponding to the first specification, wherein the first engine is an engine of a program development language facing a server side for processing the third expression;
the third expression is executed using the loaded first engine to obtain a first calculation result.
According to the real-time measuring point operation scheme of the movable ring monitoring system, after the first expression input by a user is acquired, the second expression is obtained by replacing the first operator in the first expression by the second operator which accords with the preset specification, then the measuring point numerical value of the measuring point contained in the second expression is acquired according to the second expression, the measuring point numerical value is used for assigning the measuring point to obtain a third expression, and finally an engine corresponding to the preset specification can be used for directly processing the third expression. Therefore, various operators and operation modes can be simply and conveniently added in the development process, and the complex development process is not needed when the combination operation of logic operation and arithmetic operation is faced, so that the rapid calculation of the measuring point value can be realized, the development process of operation is simplified, and the measuring point operation efficiency is greatly improved.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a flowchart illustrating an embodiment of a method for calculating real-time measurement points of a dynamic ring monitoring system according to the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In a data center, a dynamic ring monitoring system is generally used to process collected data of multiple measuring points to generate new measuring point values or judge alarm states. For example, power may be calculated from collected voltage and current data, or custom rules that trigger alarms when current exceeds a certain threshold. This function based on real-time data analysis is critical for efficient operation and anomaly monitoring of the data center.
In the prior art, a custom calculator panel is typically designed for such needs. The user can select the required measuring points and operators on the panel and combine the options into an expression character string to be submitted to the service end. After the server receives the character string, the server analyzes the measuring point in the character string and replaces the measuring point with the current real-time data value. Then, the calculation is performed according to the operator type specified in the expression, and finally a calculation result or an alarm state is generated. However, such a processing method requires predefining the processing of operators in the character string in advance, and further requires predefining the logical relationship and calculation order between operators, which results in large development difficulty, complex code and low calculation execution efficiency.
For example, in the prior art, when performing string expression analysis and operation, a certain operation rule is generally required to be followed. First, the operator with higher priority is calculated, and the operand and the operator participating in the operation in the original expression are replaced by the calculation result. For example, in calculating the expression "1+2×3+4", it is necessary to find the multiplication number "x" first, multiply the operands on both sides thereof to obtain "6", and then replace "2×3" with "6" to obtain a new expression "1+6+4". And so on, operators with higher priorities such as brackets and the like are gradually eliminated until all the calculations are completed in sequence, and a final result is obtained.
Specifically, when the above calculation process is implemented in the prior art, the following steps are generally divided:
1. defining an operator and corresponding operation logic thereof;
2. setting priorities for operators and sequencing;
3. step by step according to the priority of operators;
4. combining the operator with the lowest priority with the calculation result of the previous step to finish the final operation.
However, the above solution in the prior art can implement the analysis and calculation of the expression, but from the standpoint of the complete operation flow, the following problems still exist:
1. high coupling and poor expansibility
When the expression is processed, the relation among the steps is tight, the coupling degree is high, and the expansibility is poor. If a new operator is required, each step must be modified step by step starting with the first step definition to adapt to the new operator. This approach is not only time consuming, but also introduces new problems.
2. Complex logic and great development difficulty
The parsing and calculating logic for the expression in the prior art is complex, so that the developer needs to fully consider the characteristics of each operator and the priority processing between the operators of the same level when developing the processing logic. In addition, the developer needs to deal with the distinction between left and right brackets, multi-stage nested brackets, and coexistence of logical operators and arithmetic operators. These factors add significant development difficulty and also tend to result in lengthy and erroneous code.
3. Difficult debugging and non-intuitive problem positioning
When errors occur, the reference information is less, and the problem is difficult to intuitively judge. Whether the expression analysis is correct or not can generally be judged only by the final operation result, but it is not clear at which step a specific error occurs. The developer often needs to debug gradually, trace and observe layer by layer, and the debugging efficiency is low.
4. Lengthy code and inefficient execution
The complex logic and huge code amount inevitably lead to the reduction of the operation execution efficiency. This bulky code structure not only affects performance, but also increases maintenance costs.
Therefore, the above solution in the prior art can meet the basic requirements, but has significant drawbacks in terms of expansibility, maintainability and execution efficiency, and there is a need for an optimized design to improve the overall performance and development efficiency.
In this regard, the application provides a real-time measuring point operation method of a dynamic ring monitoring system. For example, as shown in fig. 1, a real-time measurement point operation method of a dynamic ring monitoring system according to an embodiment of the present application may include:
s101, acquiring a first expression input by a user.
In step S101, a first expression input by a user may be acquired. In the embodiment of the application, the expression input by the user can be acquired through various approaches. For example, an expression transmitted from the user through the network may be acquired, or a calculator panel may be displayed on a display panel of a terminal used by the user for providing the user with an operation function of a measurement point selection, a numerical value input, an arithmetic operator, and a logical operator. Therefore, the user can select a measure point on the panel by using the calculator panel and arithmetic operators and logical operators between data of the measure point to mark the own desired expression, and after the completion of editing the expression, the user can send the edited expression to the server side by the confirm button. Thus, in step S101, the server side may obtain the first expression so inputted by the user, and the first expression may include at least one measurement point and at least one first operator selected by the user through, for example, the above-mentioned calculator panel, and in an embodiment of the present application, such an operator may include at least one of an arithmetic operator and a logic operator.
In addition, in the embodiment of the application, the button corresponding to the operator in the calculator panel can be packaged as a piece of code, for example, the code conforming to the JavaScript specification, so that when a user operates the displayed calculator panel, the code conforming to the predetermined specification is directly contained in the edited expression by clicking the button corresponding to the operator, and therefore, when a new operator needs to be added, the button packaged as the code can be directly added in the calculator panel, thereby greatly simplifying the development process.
S102, replacing the first operator in the first expression by using the second operator conforming to the first specification to obtain a second expression.
In step S102, the operator in the first expression acquired in step S101 may be replaced with a second operator conforming to a predetermined specification. For example, in the embodiment of the present application, the operator in the first expression acquired in step S101 may be replaced with an operator conforming to the JavaScript specification, so that it may be ensured that the acquired second expression may be correctly recognized by the JavaScript language. After the second expression is obtained, it may be sent to the server side, or the step S102 may be performed by the server side after receiving the first expression sent by the user.
S103, obtaining the measuring point value of the measuring point contained in the second expression.
In step S103, the server may acquire real-time measurement point values for the measurement points included in the second expression after receiving the second expression. In the embodiment of the application, the server side can directly request the corresponding measuring point value to the measuring point through a communication line in a wired or wireless mode, or the server side can also send an acquisition request to the control module, wherein the acquisition request can contain the measuring point information of the measuring point contained in the second expression, so that the control module can acquire the real-time value from the corresponding measuring point according to the measuring point information and send the real-time value to the server side.
And S104, assigning the obtained measuring point value to the measuring point contained in the second expression to obtain a third expression.
In step S104, the server side may assign a value to the measurement point in the second expression acquired in step S102 according to the real-time value of the measurement point acquired in step S103. For example, the measurement points in the second expression may be replaced with corresponding real-time values, thereby obtaining the third expression.
S105, loading a first engine corresponding to the first specification.
In step S105, the server side may load the corresponding engine according to the specification according to which the first operator is replaced in step S102. For example, in the embodiment of the present application, the first engine described in step S105 may be an engine of a program development language oriented to a server side for processing the third expression. When the first specification is a JavaScript specification, a JavaScript engine may be loaded as the first engine in step S105.
S106, executing the third expression by using the loaded first engine to obtain a first calculation result.
In step S106, the third expression acquired in step S104 may be executed using the first engine loaded in step S105, thereby performing arithmetic operations and logical operations on the real-time numerical values of the respective measurement points specified by the user in step S101 to obtain the first calculation result. In the embodiment of the present application, the first engine described in step S105 may be used to parse the third expression acquired in step S104 to obtain a parsed expression, and then the parsed expression may be executed to obtain the first calculation result for the real-time measurement point value.
Therefore, according to the real-time measuring point operation method of the movable ring monitoring system of the embodiment of the application, after the first expression input by the user is acquired, the second expression is obtained by replacing the first operator in the first expression by the second operator which accords with the preset specification, then the measuring point numerical value of the measuring point contained in the second expression is acquired according to the second expression, the measuring point numerical value is used for assigning the measuring point to obtain the third expression, and finally the engine corresponding to the preset specification can be used for directly processing the third expression. Therefore, various operators and operation modes can be simply and conveniently added in the development process, and the complex development process is not needed when the combination operation of logic operation and arithmetic operation is faced, so that the rapid calculation of the measuring point value can be realized, the development process of operation is simplified, and the measuring point operation efficiency is greatly improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of implementing the various method embodiments described above may be implemented by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs the steps comprising the method embodiments described above, and the storage medium described above includes various media capable of storing program code, such as ROM, RAM, magnetic or optical disk.
It should be noted that the above embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solution described in the above embodiments may be modified or some or all of the technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present invention.

Claims (5)

1.一种动环监控系统的实时测点运算方案,其特征在于,包括:1. A real-time measurement point calculation scheme for a dynamic environment monitoring system, characterized by comprising: 获取用户输入的第一表达式,其中,所述表达式包括用户选择的至少一个测点以及至少一个第一运算符;Obtaining a first expression input by a user, wherein the expression includes at least one measurement point selected by the user and at least one first operator; 使用符合第一规范的第二运算符替换所述第一表达式中的第一运算符,以获得第二表达式;Substituting the first operator in the first expression with the second operator that meets the first specification to obtain a second expression; 获取所述第二表达式中包含的测点的测点数值;Obtaining the measured point values of the measured points included in the second expression; 将所获得的测点数值对所述第二表达式中包含的测点进行赋值,以获得第三表达式;Assigning the obtained measurement point values to the measurement points included in the second expression to obtain a third expression; 加载与所述第一规范对应的第一引擎,其中所述第一引擎是面向用于处理所述第三表达式的服务器端的程序开发语言的引擎;Loading a first engine corresponding to the first specification, wherein the first engine is an engine for a server-side programming language for processing the third expression; 使用所加载到的第一引擎执行所述第三表达式,以获得第一计算结果。The third expression is executed using the loaded first engine to obtain a first calculation result. 2.根据权利要求1所述的动环监控系统的实时测点运算方案,其特征在于,所述第一规范是JavaScript规范,并且所述第一引擎是JavaScript引擎。2. The real-time measurement point calculation solution of the dynamic environment monitoring system according to claim 1 is characterized in that the first specification is a JavaScript specification, and the first engine is a JavaScript engine. 3.根据权利要求2所述的动环监控系统的实时测点运算方案,其特征在于,在所述获取用户输入的第一表达式之前,所述方案还包括:3. The real-time measurement point calculation scheme of the dynamic environment monitoring system according to claim 2, characterized in that before obtaining the first expression input by the user, the scheme further includes: 显示计算器面板,用于为用户提供测点选择、数值输入、算术运算符以及逻辑运算符的操作功能。Displays the calculator panel, which provides users with measurement point selection, value input, arithmetic operators, and logical operators. 4.根据权利要求3所述的动环监控系统的实时测点运算方案,其特征在于,所述使用所加载到的第一引擎执行所述第三表达式,以获得第一计算结果包括:4. The real-time measurement point calculation scheme of the dynamic environment monitoring system according to claim 3, characterized in that the using the loaded first engine to execute the third expression to obtain the first calculation result comprises: 使用所述第一引擎对所述第三表达式进行解析,以获得解析式;Parsing the third expression using the first engine to obtain an analytical expression; 执行所述解析式以获得所述第一计算结果。The analytical expression is executed to obtain the first calculation result. 5.根据权利要求3所述的动环监控系统的实时测点运算方案,其特征在于,所述计算器面板包含至少一个运算符按钮,所述运算符按钮被封装为与所述第一规范对应的代码段。5. The real-time measurement point calculation scheme of the dynamic environment monitoring system according to claim 3 is characterized in that the calculator panel includes at least one operator button, and the operator button is encapsulated as a code segment corresponding to the first specification.
CN202411925570.1A 2024-12-25 2024-12-25 A real-time measurement point calculation scheme for dynamic environment monitoring system Pending CN119377160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411925570.1A CN119377160A (en) 2024-12-25 2024-12-25 A real-time measurement point calculation scheme for dynamic environment monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411925570.1A CN119377160A (en) 2024-12-25 2024-12-25 A real-time measurement point calculation scheme for dynamic environment monitoring system

Publications (1)

Publication Number Publication Date
CN119377160A true CN119377160A (en) 2025-01-28

Family

ID=94339932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411925570.1A Pending CN119377160A (en) 2024-12-25 2024-12-25 A real-time measurement point calculation scheme for dynamic environment monitoring system

Country Status (1)

Country Link
CN (1) CN119377160A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2703092A1 (en) * 2007-11-09 2009-05-14 Vantrix Corporation Method and apparatus for editing data containers and network containing thereof
CN110765324A (en) * 2019-11-06 2020-02-07 天地(常州)自动化股份有限公司 Method for establishing programmable logic operation model of coal mine monitoring system
CN111752566A (en) * 2019-03-28 2020-10-09 上海视九信息科技有限公司 Method and device for analyzing function expression in compiled language environment, storage medium and terminal
CN114500251A (en) * 2022-01-13 2022-05-13 深圳力维智联技术有限公司 System alarm monitoring method, device, equipment and readable storage medium
CN117611343A (en) * 2023-10-31 2024-02-27 中银金融科技有限公司 Risk business determining method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2703092A1 (en) * 2007-11-09 2009-05-14 Vantrix Corporation Method and apparatus for editing data containers and network containing thereof
CN111752566A (en) * 2019-03-28 2020-10-09 上海视九信息科技有限公司 Method and device for analyzing function expression in compiled language environment, storage medium and terminal
CN110765324A (en) * 2019-11-06 2020-02-07 天地(常州)自动化股份有限公司 Method for establishing programmable logic operation model of coal mine monitoring system
CN114500251A (en) * 2022-01-13 2022-05-13 深圳力维智联技术有限公司 System alarm monitoring method, device, equipment and readable storage medium
CN117611343A (en) * 2023-10-31 2024-02-27 中银金融科技有限公司 Risk business determining method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN112650766B (en) Database data operation method, system and server
CN107515826B (en) Method, device, system, equipment and storage medium for accurately recommending test cases
CN110990019B (en) Java class analysis method and device, storage medium and electronic equipment
JP5138090B2 (en) Program analysis support device
US7178135B2 (en) Scope-based breakpoint selection and operation
CN110580189A (en) method and device for generating front-end page, computer equipment and storage medium
CN108763094B (en) Test case generation method, device, equipment and storage medium
CN111143228B (en) Test code generation method and device based on decision table method
CN110955438A (en) Method, device and equipment for monitoring performance of small program and storage medium
CN115543290A (en) Visual programming method and system
CN115983191A (en) Test point verification method and related device
CN119377160A (en) A real-time measurement point calculation scheme for dynamic environment monitoring system
CN114201397A (en) An interface test modeling method, device, electronic device and storage medium
CN116974826A (en) Information processing method, device, equipment and medium for configuration items
CN112130841B (en) SQL development method and device and terminal equipment
CN115292641A (en) Page generation method, device, server and storage medium
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
CN113626390A (en) BB file generation method and device, electronic equipment and storage medium
CN118656082B (en) A parallel computing program optimization method, device, equipment and storage medium
CN111767412B (en) Data mapping method and system for knowledge graph construction and electronic equipment
JPH07271572A (en) Method for generating dynamic step number calculating formula
WO2024060916A1 (en) Operator operation mode configuration method and apparatus, and related system
CN109190165B (en) Method for automatically obtaining number of electric milling short grooves
CN115858374A (en) Pointer analysis method for large-scale static defect detection
CN118796866A (en) A method and device for processing artificial intelligence based on database

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