Method, device and equipment for monitoring availability of industrial internet platform website and medium
By configuring multiple sub-monitoring profiles to access the web page to be monitored in parallel, the problems of low efficiency and high cost of website availability monitoring in the prior art are solved, and an efficient and automated monitoring process is achieved.
Patent Information
- Application Number
- CN202411642853.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-03-07
AI Technical Summary
When monitoring website availability, manual monitoring efficiency is low and costly. Robot Process Automation (RPA) methods can only be monitored one by one and cannot be performed in parallel, resulting in limited monitoring efficiency.
By configuring multiple sub-monitoring profiles, these profiles are used to access multiple web pages to be monitored in parallel, obtain access results, and determine the availability of the website based on the results.
It realizes automated parallel monitoring, shortens the website availability monitoring time, improves monitoring efficiency, reduces costs, and improves the stability and accuracy of monitoring results.
Smart Images

Figure CN119583396A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of web page monitoring, and in particular to a method, device, equipment and medium for monitoring the availability of an industrial Internet platform website. Background Art
[0002] Digital transformation is the inevitable path for enterprises. Digital platforms are used to provide enterprises with a safe and reliable digital operating environment. Therefore, the performance of digital platforms is one of the key issues that enterprises are concerned about.
[0003] The digital platform includes a variety of visited websites, and the availability of each visited website is closely related to the performance of the digital platform. At present, the availability of websites is generally monitored manually or based on Robotic Process Automation (RPA). However, the manual monitoring method requires the monitoring personnel to click the function buttons to be tested on the website and determine the availability of the website based on the response pages of all the function buttons to be tested. Limited by the monitoring experience of the monitoring personnel, the monitoring efficiency of the website availability is low and the cost is high. Although the RPA monitoring method does not require the participation of monitoring personnel, it can only monitor the operation of each web page in the website one by one, and cannot perform monitoring tasks in parallel. The monitoring efficiency of the website availability is limited. Summary of the invention
[0004] The present invention provides a method, device, equipment and medium for monitoring the availability of industrial Internet platform websites, which aims to automatically and in parallel monitor the access conditions of multiple web pages in a website, shorten the monitoring time of website availability, improve the monitoring efficiency of website availability, and reduce the cost of monitoring work.
[0005] According to one aspect of the present invention, a method for monitoring the availability of an industrial Internet platform website is provided, the method comprising:
[0006] Determine a monitoring configuration file of the website based on the availability monitoring requirement of the website, wherein the availability monitoring requirement includes at least one web page to be monitored of the website and the monitoring requirement of at least one web page to be monitored, and the monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds to the web page to be monitored one by one;
[0007] Accessing at least one web page to be monitored through at least one sub-monitoring configuration file to obtain at least one access result, wherein the access result corresponds to the web page to be monitored one by one;
[0008] Based on the at least one access result, availability of the website is determined.
[0009] According to another aspect of the present invention, a monitoring device for the availability of an industrial Internet platform website is provided. The monitoring device for the availability of an industrial Internet platform website is used to implement the monitoring method for the availability of an industrial Internet platform website in any embodiment of the present invention. The device includes:
[0010] A file determination module, configured to determine a monitoring configuration file of the website based on the availability monitoring requirements of the website, wherein the availability monitoring requirements include at least one web page to be monitored of the website and at least one monitoring requirement of the web page to be monitored, and the monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds to the web page to be monitored one by one;
[0011] A result determination module, used to access at least one web page to be monitored through at least one sub-monitoring configuration file to obtain at least one access result, wherein the access result corresponds to the web page to be monitored one by one;
[0012] The availability determination module is used to determine the availability of the website based on at least one access result.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and a memory communicatively coupled to the at least one processor;
[0015] Among them, the memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that at least one processor can execute the method for monitoring the availability of the industrial Internet platform website in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the method for monitoring the availability of an industrial Internet platform website in any embodiment of the present invention when executed.
[0017] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, it implements the method for monitoring the availability of an industrial Internet platform website of any embodiment of the present invention.
[0018] The monitoring method of the availability of the website of the industrial Internet platform of the present invention includes: determining the monitoring configuration file of the website based on the availability monitoring demand of the website, wherein the availability monitoring demand includes at least one web page to be monitored and the monitoring demand of at least one web page to be monitored of the website, and the monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds to the web page to be monitored one by one; through at least one sub-monitoring configuration file, accessing at least one web page to be monitored, obtaining at least one access result, wherein the access result corresponds to the web page to be monitored one by one; based on at least one access result, determining the availability of the website. The technical solution of the present invention configures a plurality of sub-monitoring configuration files that can be executed in parallel according to the availability monitoring demand of the website, and uses a plurality of sub-monitoring configuration files to respectively access a plurality of web pages to be monitored, and determines the availability of the website according to the access results of the plurality of web pages to be monitored. Since a plurality of sub-monitoring configuration files can be executed in parallel, the monitoring time of the website availability is shortened, and the monitoring efficiency of the website availability is improved. Secondly, the monitoring method of the present invention is automatically executed, and does not require human participation, thereby improving the stability and accuracy of the monitoring results and reducing the monitoring cost. It solves the problems that manual monitoring methods are limited by the monitoring experience of monitoring personnel, the monitoring efficiency of website availability is low and the cost is high, the RPA monitoring method can only monitor the operation of each web page in the website one by one, and cannot perform monitoring tasks in parallel, and the monitoring efficiency of website availability is limited.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0021] Figure 1 It is a flow chart of a method for monitoring the availability of an industrial Internet platform website provided by the present invention;
[0022] Figure 2 It is a schematic diagram of a front-end interface of a website provided by the present invention;
[0023] Figure 3 It is a schematic diagram of an interface of a web page provided by the present invention;
[0024] Figure 4 It is a flowchart of a method for determining a sub-monitoring configuration file provided by the present invention;
[0025] Figure 5 It is a flowchart of a method for determining the execution result of a candidate sub-task provided by the present invention;
[0026] Figure 6 It is a structural schematic diagram of a monitoring device for the availability of an industrial Internet platform website provided by the present invention;
[0027] Figure 7 It is a structural schematic diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Figure 1 This is a flow chart of a method for monitoring the availability of an industrial Internet platform website provided by the present invention. This embodiment can be applied to batch and automatically monitor the operation of multiple web pages in a website to determine the availability of the website. The method can be executed by the monitoring device for the availability of an industrial Internet platform website provided by the present invention. The device can be implemented in the form of hardware and / or software. In a specific embodiment, the device can be integrated in an electronic device. The following embodiments will be described by taking the device integrated in an electronic device as an example. Figure 1 , the method specifically comprises the following steps:
[0031] S101. Determine a monitoring configuration file of the website based on the availability monitoring requirements of the website.
[0032] The website of the present application can be understood as a collection of one or more related web pages organized in a structural form that need to be monitored in a digital platform. When the website is stable and has high availability, it is determined that the security and reliability of the digital platform are high, and a better digital operating environment can be provided for the enterprise. The availability monitoring requirements can indicate the necessary factors for the website to operate stably. When the necessary factors for the website to operate stably are qualified or meet the access conditions, the website is considered to be stable and has high availability. The availability monitoring requirements include at least one web page to be monitored and at least one monitoring requirement of the web page to be monitored. The web page to be monitored can be understood as an access page of an access function of the website. The monitoring requirements of the web page to be monitored are used to indicate the basis on which the access function can be successfully accessed. The monitoring configuration file can be understood as a file that instructs the automatic access tool to access the various functions of the website, which is used to simulate the user's access operation, including but not limited to assembly language, C language, JAVA language, Python script and golang open source programming language. The monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds to the web page to be monitored one by one. The sub-monitoring configuration file can be understood as an access script for the web page to be monitored. The advantage of this setting is that you can customize the monitoring profile according to the website's availability monitoring needs. The monitoring profile is highly matched with the website's availability monitoring work, so as to improve the monitoring efficiency and accuracy of the website's availability.
[0033] Specifically, the website availability monitoring requirement can be triggered regularly or according to the monitoring instruction input by the user. For example, the necessary functions on the website are monitored regularly to see if there are any abnormal accesses. When the user's monitoring instruction is received, the function to be accessed (the necessary function of the website or the function included in the monitoring instruction) is determined according to the monitoring instruction, and whether there are any abnormal accesses. This embodiment does not limit this. The advantage of such a setting is that the website access situation can be monitored regularly or irregularly, so as to deal with the problems existing on the website in a timely manner and improve the stability and reliability of the website.
[0034] The monitoring method of the present invention is implemented based on open source programming languages and open source frameworks, supports coroutines, can execute multiple tasks in parallel, saves monitoring time, and improves monitoring frequency and efficiency; it also supports headless mode, and the front-end user is unaware of it, which does not affect the user's work and use, thereby improving the user experience; secondly, the monitoring configuration file of the present invention is simple and highly portable, and also supports multiple browsers, does not require additional plug-ins and drivers, has high universality, and has low migration cost and usage cost.
[0035] Optionally, for any web page to be monitored, based on the monitoring requirements of the web page to be monitored, a sub-monitoring configuration file of the web page to be monitored is determined, including: decomposing the monitoring requirements of the web page to be monitored to obtain tasks to be executed, wherein the tasks to be executed include at least one sub-execution task, the priority of at least one sub-execution task and a reference execution result; using a preset configuration file to write rules, processing at least one sub-execution task, the priority of at least one sub-execution task and a reference execution result, to obtain the sub-monitoring configuration file of the web page to be monitored.
[0036] The monitoring requirement of the web page to be monitored can be understood as an evaluation condition or evaluation requirement, for example, whether the login page is normal, whether there is an A element in the media center, whether the solution covers common exceptions, etc., which can only be achieved by connecting multiple access actions. The task to be executed can be understood as the implementation plan of the monitoring requirement of the web page to be monitored, and the sub-task can be understood as the decomposition step in the implementation plan. The decomposition step corresponds one-to-one with the above-mentioned access action. The priority of the sub-task is used to indicate the order of the sub-task. The reference execution result of the sub-task can be understood as the identification of the successful execution of the sub-task. There is an association relationship between each sub-task. Only when the current sub-task is successfully executed can the next sub-task be performed. The preset configuration file writing rules can be understood as the script writing rules of the sub-task, including but not limited to the script language type and the script writing logic. The sub-monitoring configuration file can be understood as the script of the task to be executed. The sub-monitoring configuration file includes multiple step scripts, and the step scripts correspond one-to-one with the sub-task, so that the processor executes each sub-task in sequence and automatically monitors the availability of the website.
[0037] In one embodiment, assuming that the web page to be monitored is a login web page, and the monitoring requirement of the web page to be monitored is to determine whether the login function of the login page is normal, the tasks to be performed obtained by disassembling the monitoring requirement of the web page to be monitored include: 1) opening the XXX official website; 2) determining whether the XXX official website is opened normally; 3) whether the login button in the upper right corner of the official website is loaded normally; 4) whether it jumps to the login page correctly after clicking the login button; 5) whether the account password can be entered in the page; 6) whether clicking the login button is successful; 7) whether it jumps to the page after login. Specifically, whether to jump to the page after login is determined by whether there is a preset login element on the page after the jump. If there is a preset login element on the page after the jump, it proves that the login function of the login page is normal, otherwise, it proves that the login function of the login page is abnormal. It is worth noting that if any of the steps 1)-7) above is accessed abnormally, it is considered that the login function of the login page is abnormal, and the next step will not be executed. The advantage of such a setting is that it can save processing computing resources.
[0038] The sub-monitoring configuration file can be understood as a step script that can be recognized by the corresponding processor of steps 1)-7). It is worth noting that before writing the sub-monitoring configuration file, it is necessary to determine the style and file name of the sub-monitoring configuration file in order to distinguish and use each sub-monitoring configuration file. The file name of the sub-monitoring configuration file can be cosmoplatTask.yaml, and the style can be: Task; num: 1; num: 2; num: 3... Among them, Task is an array containing each step, and num: x represents the xth step.
[0039] Based on the above implementation, the step script corresponding to step 1) is num:1; handle: open; value1: "www.XXX.com". Among them, the handle value is open, which means open, and the variable value1 is the URL of the XXX official website. The step script corresponding to step 2) is num:2; handle: wait; value1: "element 2". To check whether the official website is open, you need to check whether a specific element appears on the official website. This embodiment uses wait, and element 2 can be understood as a specific element. Exemplary, Figure 2 is a schematic diagram of a front-end interface of a website provided by the present invention, Figure 3 This is a schematic diagram of a web page interface provided by the present invention. Suppose you want to check Figure 2 Whether the page of function 1 of the website shown can be opened successfully, the specific element is element 2, then click the case of function 1 and check the web page after clicking ( Figure 3 ) whether there is element 2, if there is element 2, it proves that the page is opened successfully. Specifically, the specific element can also be a loading mark X, if the loading mark X appears, it proves that the page is opened successfully. Furthermore, in this embodiment, the div of the element can also be viewed and copied, and then compared with the preset div, and the two are the same to prove that the page is opened successfully. Similarly, the step script file corresponding to step 3) is num: 3; handle: wait; value1: "element 3". The step script file corresponding to step 4) is num: 4; handle: click; value1: "element 4". The step script file corresponding to step 5) is num: 5; handle: input; value1: "element 5"; value2: "xxxxxxxxx". Element 3 is the specific element successfully accessed in step 3), element 4 is the specific element successfully accessed in step 4), element 5 is the specific element successfully accessed in step 5), and xxxxxxxxx represents the password. The configuration logic of step 6) and step 7) is the same as step 2)-step 5), both of which are elements for monitoring responses, and this embodiment will not be elaborated here.
[0040] The access file of a website is a task. The present invention can compile multiple tasks to monitor the access information of multiple websites on the digital platform or the access information of multiple functions of the same website in parallel.
[0041] S102: Access at least one web page to be monitored through at least one sub-monitoring configuration file to obtain at least one access result.
[0042] Among them, the access result can be understood as the access information of the web page to be monitored, for example, successful access to the web page to be monitored, abnormal access to the web page to be monitored, and the reason for the abnormality. The access result corresponds to the web page to be monitored one by one. Specifically, one access result represents the access situation of a web page to be monitored, and the access situation of all web pages to be monitored can represent the stability and availability of the website. The advantage of this setting is that it can unify and quantify the evaluation criteria for website availability, and intuitively and accurately evaluate the availability of the website.
[0043] Figure 4 It is a flow chart of a method for determining a sub-monitoring configuration file provided by the present invention. As can be seen from the figure, for any sub-monitoring configuration file, the web page to be monitored is accessed through the sub-monitoring configuration file to obtain an access result, including: determining that the sub-task with the highest priority among the sub-tasks that have not been run in the task to be executed is a candidate sub-task; running the script of the candidate sub-task to obtain the task execution result of the candidate sub-task; based on the task execution result and the reference execution result of the candidate sub-task, determining whether the candidate sub-task has been accessed successfully; if the candidate sub-task fails to access, determining that the access result is an abnormal access; if the candidate sub-task accesses successfully, determining whether the candidate sub-task is the sub-task with the lowest priority among the tasks to be executed; when the candidate sub-task is the sub-task with the lowest priority among the tasks to be executed, determining that the access result is a normal access, and when the candidate sub-task is not the sub-task with the lowest priority among the tasks to be executed, returning to the step of determining that the sub-task with the highest priority among the sub-tasks that have not been run in the task to be executed is the candidate sub-task.
[0044] Among them, the candidate sub-execution task can be understood as the step file that needs to be run currently, the step file needs to be executed in sequence, the priority can be understood as the order of each step file, the sub-execution task with the highest priority among the sub-execution tasks that have not been run in the task to be executed is the candidate sub-execution task, which can be understood as the step file with the highest ranking among the step files that have not been executed. The reference execution result can be understood as the expected response result contained in the step file after the execution of the step file, and the task execution result can be understood as the actual response result after the execution of the step file.
[0045] Specifically, Figure 5It is a flow chart of a method for judging the execution result of a candidate sub-execution task provided by the present invention. As can be seen from the figure, based on the task execution result of the candidate sub-execution task and the reference execution result, it is determined whether the candidate sub-execution task is accessed successfully, including: determining whether the result matching degree between the task execution result of the candidate sub-execution task and the reference execution result is greater than a preset matching threshold; if the result matching degree is not greater than the preset matching threshold, determining that the candidate sub-execution task access has failed; if the result matching degree is greater than the preset matching threshold, determining whether the time difference between the generation time of the task execution result of the candidate sub-execution task and the running time of the candidate sub-execution task meets the preset access time condition; when the time difference meets the preset access time condition, determining that the candidate sub-execution task access is successful, and when the time difference does not meet the preset access time condition, determining that the candidate sub-execution task access has failed.
[0046] Among them, the result matching degree can be understood as the similarity or correlation between the task execution result and the reference execution result, and the preset matching threshold can be understood as the numerical condition for evaluating whether the task execution result and the reference execution result are the same, including but not limited to 80% and 90%. When the result similarity is not greater than the preset matching threshold, it is considered that the task execution result and the reference execution result are not the same, and the candidate sub-execution task access fails. On the contrary, it is considered that the task execution result and the reference execution result are the same, and it is necessary to further determine whether the task execution result is obtained within the expected time, that is, whether the response time of the task execution result has timed out. The timed task execution result also represents the candidate sub-execution task access failure. The advantage of this setting is that abnormal access results can be distinguished according to the cause of abnormal access failure, so that managers can handle abnormalities.
[0047] In one embodiment, the present invention includes a timeout configuration file for monitoring the access time of each step script. When the step script does not receive a specific element within the expected time, the step script response is considered to have timed out. Specifically, the timeout configuration file can be: ctx, cancel = context.WithTimeout (ctx, 120*time.Second); defercancel(). Among them, 120*time represents the maximum response time. If the specific element is not received within this time, the step script response is considered to have timed out.
[0048] S103: Determine the availability of the website based on at least one access result.
[0049] Determining the availability of a website based on at least one access result can be understood as sorting and summarizing the access results to obtain digital statistical data on the website's availability. Specifically, the availability can be the proportion of abnormal access results in all access results, or the product of the proportion of abnormal access results in all access results and a preset weight coefficient. The preset weight coefficient can be 0.1, 0.2, 0.5, etc. The preset weight coefficient can be set and increased according to the availability evaluation rules, which is not limited in this embodiment.
[0050] In one embodiment, S103 may specifically include: when there is no high-level access anomaly in at least one access result and the number of abnormal access results is less than a preset abnormal threshold, determining the availability of the website as the first availability; when there is no high-level access anomaly in at least one access result and the number of abnormal access results is not less than the preset abnormal threshold or there is a high-level access anomaly and the number of abnormal access results is less than the preset abnormal threshold, determining the availability of the website as the second availability, wherein the second availability is lower than the first availability; when there is a high-level access anomaly in at least one access result and the number of abnormal access results is not less than the preset abnormal threshold, determining the availability of the website as the third availability, wherein the third availability is lower than the second availability.
[0051] Among them, high-level access anomalies can be understood as anomalies with a higher level of anomalies, for example, the website homepage cannot be opened, the website homepage reports an error, etc. When there are high-level access anomalies, it is considered that the reliability and stability of the website are not high, and the website availability is not high. The preset anomaly threshold can be understood as a maximum anomaly value set according to the availability judgment rule. When the number of access anomalies is greater than or equal to the maximum anomaly value, it is considered that there are more access anomalies on the website and the availability is not high. The first availability, second availability and third availability can be understood as pre-set availability standards, which are used to express the availability monitoring conclusion of the website.
[0052] The advantage of this setting is that the number and level of access anomalies of all access results can be combined to grade the availability of the website, so that managers can understand the availability level information of the website.
[0053] Optionally, the present invention also includes an abnormal warning, which means that after accessing at least one web page to be monitored through at least one sub-monitoring configuration file and obtaining at least one access result, determining whether there is an abnormal access result in at least one access result; if there is an abnormal access result in at least one access result, determining the abnormal type, abnormal cause, abnormal adjustment plan and abnormal receiving device of the abnormal access result, and sending the abnormal type, abnormal cause and abnormal adjustment plan to the abnormal receiving device, so that the abnormal receiving device displays the abnormal type, abnormal cause and abnormal adjustment plan.
[0054] Among them, the exception type can be understood as the personalized information of the exception, including the name, logo, and corresponding web page to be monitored of the exception, etc., which is used to indicate the location where the exception occurs to the manager. The exception receiving device can be understood as the contact device of the manager who handles the exception, including the mailbox, mobile phone, computer, etc. of the manager who handles the exception. The advantage of this setting is that it is convenient for the exception manager to understand the detailed information of the exception and handle the exception in a timely and efficient manner.
[0055] Furthermore, in order to improve the quality and efficiency of exception handling, the fault handling types of operation and maintenance personnel can be divided according to the work focus of the operation and maintenance personnel. The present invention includes an exception warning configuration file, which is configured with the contact information of the exception management personnel. When an exception occurs, the configuration file will be started and the exception will be sent to the exception management personnel. Exemplarily, the exception information sending method may specifically include: based on the exception type, searching in the association relationship between the exception information and the processing personnel to obtain the target exception processing personnel; determining the information receiving device of the target exception processing personnel as the exception receiving device; sending the exception type, exception cause and exception adjustment plan to the exception receiving device. The advantage of such a setting is that the type and scope of the exceptions handled by the operation and maintenance personnel can be determined according to the work focus and highlights of the operation and maintenance personnel, thereby improving the efficiency and quality of exception processing.
[0056] The technical solution of this embodiment configures multiple sub-monitoring configuration files that can be executed in parallel according to the availability monitoring requirements of the website, uses multiple sub-monitoring configuration files to access multiple web pages to be monitored respectively, and determines the availability of the website based on the access results of the multiple web pages to be monitored. Since multiple sub-monitoring configuration files can be executed in parallel, the monitoring time of the website availability is shortened and the monitoring efficiency of the website availability is improved. Secondly, the monitoring method of the present invention is automatically executed and does not require human participation, which improves the stability and accuracy of the monitoring results and reduces the monitoring cost. It solves the problems that the manual monitoring method is limited by the monitoring experience of the monitoring personnel, the monitoring efficiency of the website availability is low and the cost is high, the RPA monitoring method can only monitor the operation of each web page in the website one by one, cannot execute monitoring tasks in parallel, and the monitoring efficiency of the website availability is limited.
[0057] Figure 6 Schematic diagram of a monitoring device for the availability of an industrial Internet platform website provided by the present invention. Figure 6 As shown, the device includes: a file determination module 201, a result determination module 202 and an availability determination module 203.
[0058] The file determination module 201 is used to determine a monitoring configuration file of a website based on the availability monitoring requirements of the website, wherein the availability monitoring requirements include at least one web page to be monitored of the website and the monitoring requirements of at least one web page to be monitored, and the monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds one-to-one to the web page to be monitored.
[0059] The result determination module 202 is used to access at least one web page to be monitored through at least one sub-monitoring configuration file to obtain at least one access result, wherein the access result corresponds to the web page to be monitored one by one.
[0060] The availability determination module 203 is used to determine the availability of the website based on at least one access result.
[0061] Optionally, for any web page to be monitored, the file determination module 201 is specifically used to decompose the monitoring requirements of the web page to be monitored to obtain tasks to be executed, wherein the tasks to be executed include at least one sub-task, the priority of at least one sub-task and a reference execution result; use a preset configuration file to write rules, process at least one sub-task, the priority of at least one sub-task and a reference execution result, and obtain a sub-monitoring configuration file of the web page to be monitored.
[0062] Optionally, for any sub-monitoring configuration file, the result determination module 202 is specifically used to determine that the sub-task with the highest priority among the sub-tasks to be executed that have not been run is a candidate sub-task; run the script of the candidate sub-task to obtain the task execution result of the candidate sub-task; determine whether the candidate sub-task has been accessed successfully based on the task execution result of the candidate sub-task and the reference execution result; if the candidate sub-task has failed to access, determine that the access result is an abnormal access; if the candidate sub-task has been accessed successfully, determine whether the candidate sub-task is the sub-task with the lowest priority among the tasks to be executed; when the candidate sub-task is the sub-task with the lowest priority among the tasks to be executed, determine that the access result is a normal access, and when the candidate sub-task is not the sub-task with the lowest priority among the tasks to be executed, return to the step of determining that the sub-task with the highest priority among the sub-tasks to be executed that have not been run is the candidate sub-task.
[0063] Furthermore, the result determination module 202 is specifically used to determine whether the result matching degree between the task execution result of the candidate sub-execution task and the reference execution result is greater than a preset matching threshold; if the result matching degree is not greater than the preset matching threshold, it is determined that the access of the candidate sub-execution task has failed; if the result matching degree is greater than the preset matching threshold, it is determined whether the time difference between the generation time of the task execution result of the candidate sub-execution task and the running time of the candidate sub-execution task meets the preset access time condition; when the time difference meets the preset access time condition, it is determined that the access of the candidate sub-execution task is successful; when the time difference does not meet the preset access time condition, it is determined that the access of the candidate sub-execution task has failed.
[0064] Optionally, the availability determination module 203 is specifically used to determine the availability of the website as the first availability when there is no high-level access anomaly in at least one access result and the number of abnormal access results is less than a preset abnormal threshold; to determine the availability of the website as the second availability, wherein the second availability is lower than the first availability, when there is no high-level access anomaly in at least one access result and the number of abnormal access results is not less than the preset abnormal threshold or there is a high-level access anomaly and the number of abnormal access results is less than the preset abnormal threshold; to determine the availability of the website as the third availability, wherein the third availability is lower than the second availability, when there is a high-level access anomaly in at least one access result and the number of abnormal access results is not less than the preset abnormal threshold.
[0065] Optionally, the monitoring device for the availability of the industrial Internet platform website also includes a warning module, which is used to determine whether there is an abnormal access result in at least one access result after accessing at least one web page to be monitored through at least one sub-monitoring configuration file and obtaining at least one access result; if at least one access result has an abnormal access result, determine the abnormal type, abnormal cause, abnormal adjustment plan and abnormal receiving device of the abnormal access result, and send the abnormal type, abnormal cause and abnormal adjustment plan to the abnormal receiving device, so that the abnormal receiving device displays the abnormal type, abnormal cause and abnormal adjustment plan.
[0066] Furthermore, the warning module is specifically used to search in the association relationship between the exception information and the processing personnel based on the exception type to obtain the target exception processing personnel; determine the information receiving device of the target exception processing personnel as the exception receiving device; and send the exception type, exception cause and exception adjustment plan to the exception receiving device.
[0067] The monitoring device for the availability of an industrial Internet platform website provided in this embodiment can execute the monitoring method for the availability of an industrial Internet platform website provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0068] Figure 7: is a schematic diagram of the structure of an electronic device provided by the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0069] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (also called random access memory, RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0070] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0071] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a method for monitoring the availability of an industrial Internet platform website.
[0072] In some embodiments, the method for monitoring the availability of an industrial Internet platform website may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for monitoring the availability of the industrial Internet platform website described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for monitoring the availability of the industrial Internet platform website in any other appropriate manner (e.g., by means of firmware).
[0073] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0074] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0075] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0076] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0077] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server) or a computing system that includes middleware components (e.g., an application server) or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein) or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0078] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0079] In one embodiment, the present invention also includes a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the method for monitoring the availability of the industrial Internet platform website of any embodiment of the present invention.
[0080] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0081] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0082] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for monitoring the availability of an industrial Internet platform website, characterized in that: include: Determine a monitoring configuration file of the website based on the availability monitoring requirement of the website, wherein the availability monitoring requirement includes at least one webpage to be monitored of the website and the monitoring requirement of the at least one webpage to be monitored, and the monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds to the webpage to be monitored one by one; Accessing the at least one web page to be monitored through the at least one sub-monitoring configuration file to obtain at least one access result, wherein the access result corresponds to the web page to be monitored one by one; Based on the at least one access result, availability of the website is determined.
2. The method according to claim 1, characterized in that For any web page to be monitored, based on the monitoring requirements of the web page to be monitored, determining a sub-monitoring configuration file of the web page to be monitored includes: Decomposing the monitoring requirements of the webpage to be monitored to obtain a task to be executed, wherein the task to be executed includes at least one sub-task, a priority of the at least one sub-task and a reference execution result; The preset configuration file is used to write rules, and the at least one sub-execution task, the priority of the at least one sub-execution task and the reference execution result are processed to obtain the sub-monitoring configuration file of the web page to be monitored.
3. The method according to claim 2, characterized in that For any sub-monitoring configuration file, the web page to be monitored is accessed through the sub-monitoring configuration file to obtain access results, including: Determine the sub-task with the highest priority among the sub-tasks that have not been executed in the task to be executed as a candidate sub-task; Running the script of the candidate sub-task to obtain the task execution result of the candidate sub-task; Determining whether the candidate sub-task is successfully accessed based on the task execution result of the candidate sub-task and the reference execution result; If the candidate sub-task fails to access, determining that the access result is an abnormal access; If the candidate sub-task is successfully accessed, determining whether the candidate sub-task is the sub-task with the lowest priority among the tasks to be executed; When the candidate sub-execution task is the sub-execution task with the lowest priority among the tasks to be executed, the access result is determined to be a normal access; when the candidate sub-execution task is not the sub-execution task with the lowest priority among the tasks to be executed, the step of returning to determine that the sub-execution task with the highest priority among the sub-execution tasks that have not been run in the tasks to be executed is the candidate sub-execution task.
4. The method according to claim 3, characterized in that The determining whether the candidate sub-task is successfully accessed based on the task execution result of the candidate sub-task and the reference execution result includes: Determine whether a result matching degree between the task execution result of the candidate sub-task and the reference execution result is greater than a preset matching threshold; If the result matching degree is not greater than the preset matching threshold, it is determined that the candidate sub-task access fails; If the result matching degree is greater than the preset matching threshold, determining whether the time difference between the generation time of the task execution result of the candidate sub-task and the running time of the candidate sub-task meets the preset access time condition; When the time difference satisfies the preset access time condition, it is determined that the candidate sub-task access is successful; when the time difference does not satisfy the preset access time condition, it is determined that the candidate sub-task access is failed.
5. The method according to claim 1, characterized in that The determining the availability of the website based on the at least one access result includes: When there is no high-level access anomaly in the at least one access result and the number of abnormal access results is less than a preset abnormality threshold, determining the availability of the website to be a first availability; When there is no high-level access anomaly in the at least one access result and the number of abnormal access results is not less than a preset abnormal threshold or there is a high-level access anomaly and the number of abnormal access results is less than the preset abnormal threshold, determining the availability of the website to be a second availability, wherein the second availability is lower than the first availability; When there is a high-level access anomaly in the at least one access result and the number of the abnormal access results is not less than a preset anomaly threshold, the availability of the website is determined to be a third availability, wherein the third availability is lower than the second availability.
6. The method according to claim 1, characterized in that After accessing the at least one webpage to be monitored through the at least one sub-monitoring configuration file and obtaining at least one access result, the method further includes: determining whether there is an abnormal access result in the at least one access result; If the at least one access result includes the abnormal access result, the abnormal type, abnormal cause, abnormal adjustment plan and abnormal receiving device of the abnormal access result are determined, and the abnormal type, the abnormal cause and the abnormal adjustment plan are sent to the abnormal receiving device so that the abnormal receiving device displays the abnormal type, the abnormal cause and the abnormal adjustment plan.
7. The method according to claim 6, characterized in that The sending the abnormality type, the abnormality cause and the abnormality adjustment plan to the abnormality receiving device includes: Based on the exception type, searching in the association relationship between the exception information and the handler, obtaining the target exception handler; Determine the information receiving device of the target exception handling personnel as the exception receiving device; The abnormality type, the abnormality cause and the abnormality adjustment plan are sent to the abnormality receiving device.
8. A monitoring device for the availability of an industrial Internet platform website, characterized in that: A method for monitoring the availability of an industrial Internet platform website as described in any one of claims 1 to 7, wherein the monitoring device for the availability of the industrial Internet platform website comprises: A file determination module, configured to determine a monitoring configuration file of the website based on the availability monitoring requirement of the website, wherein the availability monitoring requirement includes at least one web page to be monitored of the website and the monitoring requirement of the at least one web page to be monitored, and the monitoring configuration file includes at least one sub-monitoring configuration file, and the sub-monitoring configuration file corresponds to the web page to be monitored one by one; A result determination module, configured to access the at least one web page to be monitored through the at least one sub-monitoring configuration file to obtain at least one access result, wherein the access result corresponds to the web page to be monitored in a one-to-one manner; The availability determination module is used to determine the availability of the website based on the at least one access result.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; In which, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for monitoring the availability of the industrial Internet platform website as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for monitoring the availability of an industrial Internet platform website as described in any one of claims 1 to 7 when executed.