CN111193903A - Method, device, electronic equipment and medium for monitoring resource update - Google Patents

Method, device, electronic equipment and medium for monitoring resource update Download PDF

Info

Publication number
CN111193903A
CN111193903A CN201911285282.3A CN201911285282A CN111193903A CN 111193903 A CN111193903 A CN 111193903A CN 201911285282 A CN201911285282 A CN 201911285282A CN 111193903 A CN111193903 A CN 111193903A
Authority
CN
China
Prior art keywords
monitoring
monitoring resource
updated
resource
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911285282.3A
Other languages
Chinese (zh)
Other versions
CN111193903B (en
Inventor
解君
王艳辉
李阔
白羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911285282.3A priority Critical patent/CN111193903B/en
Publication of CN111193903A publication Critical patent/CN111193903A/en
Application granted granted Critical
Publication of CN111193903B publication Critical patent/CN111193903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for monitoring resource updating, electronic equipment and a computer storage medium, wherein the method is applied to a monitoring unified management platform of a video network and comprises the following steps: acquiring a monitoring resource to be updated; comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform; if the monitoring resource to be updated is different from the pre-stored monitoring resource, judging the state of the pre-stored monitoring resource; and if the state of the pre-stored monitoring resource is an idle state, updating the pre-stored monitoring resource by using the monitoring resource to be updated. The problem that when the existing monitoring unified management platform is used for management, ongoing services of the monitoring unified management platform need to be interrupted, so that inconvenience is brought to users is solved.

Description

Method, device, electronic equipment and medium for monitoring resource update
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for monitoring resource update, an electronic device, and a computer-readable storage medium.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other.
With the wide use of the video network products, the monitoring unified management platform of the video network can run continuously for 24 hours and provide corresponding services, so that the requirements on the continuity and the non-continuity of the monitoring unified management platform are provided.
In the prior art, when the monitoring unified management platform manages the monitoring resources, for example, reacquiring the monitoring resources or deleting and modifying the monitoring resources, the monitoring unified management platform is required to interrupt the running service, so that reacquiring the monitoring resources or deleting and modifying the monitoring resources can be realized, which brings inconvenience to users.
Disclosure of Invention
The invention provides a method and a device for updating monitoring resources, electronic equipment and a computer storage medium, which are used for at least solving the problem that when the current monitoring unified management platform is used for managing, the ongoing service of the monitoring unified management platform needs to be interrupted, so that the use is inconvenient for users.
In order to solve the above problem, an embodiment of the present invention discloses a method for monitoring resource update, which is applied to a monitoring unified management platform of a video network, and includes:
acquiring a monitoring resource to be updated;
comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform;
if the monitoring resource to be updated is different from the pre-stored monitoring resource, judging the state of the pre-stored monitoring resource;
and if the state of the pre-stored monitoring resource is an idle state, updating the pre-stored monitoring resource by using the monitoring resource to be updated.
Optionally, the monitoring resource to be updated includes: the method comprises the steps of updating a primary key value of a monitoring resource to be updated and a data item of the monitoring resource to be updated;
the step of comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform comprises the following steps:
judging whether the primary key value of the monitoring resource to be updated exists in the prestored monitoring resource;
when the primary key value of the monitoring resource to be updated exists, acquiring a target monitoring resource matched with the primary key value of the monitoring resource to be updated;
and comparing the data item of the monitoring resource to be updated with the data item of the target monitoring resource, and if the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, determining that the monitoring resource to be updated is different from the pre-stored monitoring resource.
Optionally, the method further includes: if the primary key value of the monitoring resource to be updated does not exist, storing the monitoring resource to be updated, determining the number of the monitoring resources to be updated and the number of the pre-stored monitoring resources, and if the number of the monitoring resources to be updated is smaller than the number of the pre-stored monitoring resources, deleting the pre-stored monitoring resources which are different from the primary key value of the monitoring resource to be updated from the pre-stored monitoring resources.
Optionally, the method further includes:
if the state of the pre-stored monitoring resource is a service state, putting the monitoring resource to be updated into a delay queue;
and reading the monitoring resource to be updated in the delay queue according to a set time interval, and comparing the monitoring resource to be updated with the monitoring resource prestored in the monitoring unified management platform.
In order to solve the above problem, an embodiment of the present invention further discloses a device for monitoring resource update, where the device is applied to a monitoring unified management platform of a video network, and the device includes:
the acquisition module is used for acquiring the monitoring resource to be updated;
the comparison module is used for comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform;
the state module is used for judging the state of the pre-stored monitoring resource if the monitoring resource to be updated is different from the pre-stored monitoring resource;
and the updating module is used for updating the pre-stored monitoring resource by using the monitoring resource to be updated if the state of the pre-stored monitoring resource is an idle state.
Optionally, the monitoring resource to be updated includes: the method comprises the steps of updating a primary key value of a monitoring resource to be updated and a data item of the monitoring resource to be updated;
the comparison module comprises:
the judging module is used for judging whether the primary key value of the monitoring resource to be updated exists in the prestored monitoring resource;
the primary key value module is used for acquiring a target monitoring resource matched with the primary key value of the monitoring resource to be updated when the primary key value of the monitoring resource to be updated exists in the judging module;
and the data item module is used for comparing the data item of the monitoring resource to be updated with the data item of the target monitoring resource, and if the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, determining that the monitoring resource to be updated is different from the pre-stored monitoring resource.
Optionally, the apparatus further comprises:
a deleting module, configured to store the monitoring resource to be updated when the primary key value of the monitoring resource to be updated does not exist in the determining module, determine the number of the monitoring resource to be updated and the number of the pre-stored monitoring resources, and delete a pre-stored monitoring resource different from the primary key value of the monitoring resource to be updated from the pre-stored monitoring resources when the number of the monitoring resource to be updated is smaller than the number of the pre-stored monitoring resources.
Optionally, the apparatus further comprises:
the delay queue is used for putting the monitoring resource to be updated into the delay queue if the prestored monitoring resource is in a service state;
and the reading module is used for reading the monitoring resources to be updated in the delay queue according to a set time interval and comparing the monitoring resources to be updated with the monitoring resources prestored in the monitoring unified management platform.
In order to solve the above problem, an embodiment of the present invention discloses an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the monitoring resource update method.
In order to solve the above problem, an embodiment of the present invention discloses a computer-readable storage medium storing a computer program for causing a processor to execute the monitoring resource updating method.
The embodiment of the invention has the following advantages:
after acquiring the monitoring resource to be updated, the embodiment of the invention compares the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform, if the monitoring resource to be updated is different from the monitoring resource pre-stored, the state of the monitoring resource pre-stored is judged, if the monitoring resource pre-stored is in an idle state, the monitoring resource to be updated is used for updating the monitoring resource pre-stored, the embodiment of the invention updates the monitoring resource pre-stored when the monitoring resource pre-stored is in the idle state, thereby avoiding the interruption of the ongoing service, namely, the embodiment of the invention completes the updating of the monitoring resource pre-stored while keeping the uninterrupted service of the monitoring unified management platform, and improves the stability and the robustness of the monitoring unified management platform and the usability of the monitoring unified management platform, thereby improving the use experience of the user.
Drawings
FIG. 1 is a block diagram of a framework for monitoring resource updates according to the present invention;
FIG. 2 is a flow chart of a method of monitoring resource updates of the present invention;
FIG. 3 is a flow chart of a method of monitoring resource updates of the present invention;
FIG. 4 is an example of an application of the present invention for monitoring resource updates;
fig. 5 is a schematic structural diagram of a monitoring resource updating apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a schematic diagram of a framework structure for monitoring resource update according to an embodiment of the present invention is shown, which specifically includes:
the system comprises monitoring equipment 1-n, a video networking coordination server 2 and a video networking monitoring unified management platform 3, wherein a database 4 and a delay queue 5 are arranged in the video networking monitoring unified management platform.
The monitoring equipment 1 is connected with the video networking monitoring unified management platform through the video networking coordination server 2.
The video network monitoring unified management platform, also called as MServer, is responsible for the unified management of all accessed monitoring devices in the whole video network and the docking service of other third-party monitoring systems.
The video network coordination server can be understood as a monitoring access gateway which is responsible for accessing external monitoring equipment (on the internet) into the video network, can browse and control the monitoring equipment on the internet in the video network, and one monitoring access gateway can be accessed into a plurality of monitoring equipment.
The monitoring device may be a network video recorder NVR, a digital video recorder DVR, a camera, or a terminal with a camera function, and the like, which is not limited in particular.
The embodiment of the invention is based on a video network monitoring unified management platform, relevant monitoring resources are managed by the monitoring unified management platform, if the monitoring resources pre-stored by the monitoring unified management platform are in service, the monitoring unified management platform caches the pre-stored monitoring resources, compares the monitoring resources to be updated with the monitoring resources pre-stored in the monitoring unified management platform again, and performs seamless connection of the service, if the monitoring resources in the service are deleted, the deletion operation is delayed to be executed, and when the monitoring unified management platform detects that the monitoring resources are idle, the operations of deletion, modification and the like of the monitoring resources are performed, so that the non-intermittence of the service of the monitoring resources of the monitoring unified management platform is ensured.
Based on the foregoing architecture, referring to fig. 2, a flowchart of a method for monitoring resource update according to an embodiment of the present invention is shown, where the method is applied to a video network monitoring unified management platform, and specifically may include the following steps:
step 201: and acquiring the monitoring resource to be updated.
The video networking monitoring unified management platform accesses monitoring equipment of the whole network through a video networking monitoring access gateway, and acquires monitoring resources to be updated from the monitoring equipment.
When the monitoring equipment of the video network monitoring unified management platform changes, the video network monitoring unified management platform can perform the operation of reacquiring the monitoring resources.
Step 202: and comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform.
And after the monitoring resource to be updated is obtained, comparing the monitoring resource to be updated with the monitoring resource prestored in the database of the monitoring unified management platform to determine whether the monitoring resource changes.
Step 203: and if the monitoring resource to be updated is different from the pre-stored monitoring resource, judging the state of the pre-stored monitoring resource.
Step 204: and if the state of the pre-stored monitoring resource is an idle state, updating the pre-stored monitoring resource by using the monitoring resource to be updated.
When the acquired monitoring resource to be updated is different from the pre-stored monitoring resource, it is indicated that the monitoring resource is changed, at this time, the pre-stored monitoring resource needs to be updated, but before updating, the state of the pre-stored monitoring resource needs to be judged, and if the state of the pre-stored monitoring resource is a service state, the updating is not performed. And if the pre-stored monitoring resource is in an idle state, updating the pre-stored monitoring resource by using the monitoring resource to be updated.
And when the acquired monitoring resource to be updated is the same as the pre-stored monitoring resource, indicating that the monitoring resource is not changed and does not need to be updated.
After acquiring the monitoring resource to be updated, the embodiment of the invention compares the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring management platform, if the monitoring resource to be updated is different from the monitoring resource pre-stored, the state of the monitoring resource pre-stored is judged, if the monitoring resource pre-stored is in an idle state, the monitoring resource to be updated is used for updating the monitoring resource pre-stored, the embodiment of the invention updates the monitoring resource pre-stored when the monitoring resource pre-stored is in the idle state, thus being capable of avoiding the interruption of the ongoing service, namely, the embodiment of the invention completes the updating of the monitoring resource pre-stored while keeping the uninterrupted service of the monitoring unified management platform, and improves the stability and the robustness of the monitoring unified management platform and the usability of the monitoring unified management platform, thereby improving the use experience of the user.
Referring to fig. 3, a flowchart of a method for monitoring resource update according to an embodiment of the present invention is shown, where the method is applied to a video networking monitoring unified management platform, and specifically includes the following steps:
step 301: and acquiring the monitoring resource to be updated.
Wherein the monitoring resource to be updated includes: the primary key value of the monitoring resource to be updated and the data item of the monitoring resource to be updated.
Each monitoring device has a unique primary key value, and different monitoring devices can be distinguished by the primary key value.
The data items of the monitoring resources to be updated include, but are not limited to, the following information: the name of the monitoring equipment, the industry of the monitoring equipment, the point location information of the monitoring equipment, the state information of the monitoring equipment, the fault information of the monitoring equipment and the like.
Step 302: and judging whether the primary key value of the monitoring resource to be updated exists in the prestored monitoring resource, if not, executing the step 303, and if so, executing the step 304.
Step 303: and storing the monitoring resource to be updated, and ending the process.
If the primary key value of the monitoring resource to be updated does not exist, storing the monitoring resource to be updated, determining the number of the monitoring resources to be updated and the number of the pre-stored monitoring resources, and if the number of the monitoring resources to be updated is smaller than the number of the pre-stored monitoring resources, deleting the pre-stored monitoring resources which are different from the primary key value of the monitoring resource to be updated from the pre-stored monitoring resources.
Further, when the number of the monitoring resources to be updated is smaller than the number of the pre-stored monitoring resources, if the primary key value of the monitoring resources to be updated is different from the primary key value of the pre-stored monitoring resources, deleting the pre-stored monitoring resources.
In practical application, monitoring resources which are found in the pre-stored monitoring resources according to the primary key values of the monitoring resources to be updated and are the same as the primary key values of the monitoring resources to be updated can be marked and marked to exist, and monitoring resources which are not marked in the pre-stored monitoring resources are deleted.
For example: the number of the monitoring resources to be updated is 15, the number of the monitoring resources stored in advance is 20, only 15 monitoring resources can be found in the monitoring resources stored in advance by using the primary key values of the monitoring resources to be updated, the remaining 5 monitoring resources are not found, and at the moment, the remaining 5 monitoring resources stored in advance are deleted.
Step 304: and acquiring the target monitoring resource matched with the primary key value of the monitoring resource to be updated.
Step 305: and comparing the data item of the monitoring resource to be updated with the data item of the target monitoring resource, and if the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, determining that the monitoring resource to be updated is different from the prestored monitoring resource.
In a specific application, if one of the name of the monitoring device, the industry to which the monitoring device belongs, point location information of the monitoring device, state information of the monitoring device, and fault information of the monitoring device in the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, it is determined that the monitoring resource to be updated is different from the prestored monitoring resource. That is to say, in a specific application, when the name of the monitoring device in the data item of the monitoring resource to be updated is different from the name of the monitoring device in the data of the target monitoring resource, it can be directly confirmed that the monitoring resource to be updated is different from the prestored monitoring resource, and is not used for comparing other items, so that the updating efficiency is improved.
Step 306: and judging the state of the pre-stored monitoring resource.
Step 307: and if the state of the pre-stored monitoring resource is an idle state, updating the pre-stored monitoring resource.
And if the state of the pre-stored monitoring resource is a service state, putting the monitoring resource to be updated into a delay queue.
And reading the monitoring resources to be updated in the delay queue according to a set time interval, and then repeatedly executing the steps 302 to 307.
In practical application, the unified management platform for monitoring and controlling the video network may read the monitoring resource to be updated in the delay queue every 1 minute, or may read the monitoring resource for 2 minutes, or may read the monitoring resource for other time intervals, which is not limited in this invention.
The setting of the time interval may be set by a person skilled in the art in any appropriate manner, for example, a threshold may be set by manual experience, or a threshold may be set according to a difference value of the historical data, which is not limited in this application.
In the embodiment of the invention, when the state of the pre-stored monitoring resource is a service state, the monitoring resource to be updated is put into the delay queue, and the updating of the monitoring resource is not carried out, thereby avoiding the interruption of the service.
In order to better understand the technical solution defined in the embodiment of the present invention, fig. 4 is used to illustrate a process of monitoring resource update in the embodiment of the present invention, which specifically includes:
the IPC camera, NVR, and DVR401 are connected to a video network monitoring unified management platform 403 through a monitoring access gateway 402, in which a database 404 and a delayed operation queue 405 are provided.
The video network monitoring unified management platform accesses the whole network monitoring resource IPC camera, the NVR and the DVR equipment through the video network monitoring access gateway to obtain monitoring resources.
And the video network monitoring unified management platform carries out real-time service, monitoring and calling.
When the IPC camera, the NVR and the DVR equipment of the video network monitoring unified management platform change, the video network monitoring unified management platform acquires the monitoring resources to be updated again.
Comparing the monitoring resource to be updated with the pre-stored monitoring resource, if the monitoring resource to be updated is different from the pre-stored monitoring resource, judging the state of the pre-stored monitoring resource, if the state of the pre-stored monitoring resource is an idle state, updating the monitoring resource, if the state of the pre-stored monitoring resource is a service state, adding the pre-stored monitoring resource into the delay queue, reading the monitoring resource to be updated in the delay queue according to the set interval time, comparing the acquired monitoring resource to be updated with the pre-stored monitoring resource, and determining whether to update.
Based on the description of the method embodiment, the present application further provides a corresponding apparatus embodiment to implement the content described in the method embodiment.
Referring to fig. 5, a device for monitoring resource update according to the present invention is shown, and the device is applied to a video network monitoring unified management platform, and specifically includes:
an obtaining module 501, configured to obtain a monitoring resource to be updated.
A comparing module 502, configured to compare the monitoring resource to be updated with a monitoring resource pre-stored in the monitoring management platform.
A status module 503, configured to determine a status of the pre-stored monitoring resource if the monitoring resource to be updated is different from the pre-stored monitoring resource.
An updating module 504, configured to update the pre-stored monitoring resource with the to-be-updated monitoring resource if the pre-stored monitoring resource is in an idle state.
Optionally, the monitoring resource to be updated includes: the method comprises the steps of updating a primary key value of a monitoring resource to be updated and a data item of the monitoring resource to be updated;
the comparison module comprises:
the judging module is used for judging whether the primary key value of the monitoring resource to be updated exists in the prestored monitoring resource;
the primary key value module is used for acquiring a target monitoring resource matched with the primary key value to be updated when the primary key value of the monitoring resource to be updated exists in the judging module;
and the data item module is used for comparing the data item of the monitoring resource to be updated with the data item of the target monitoring resource, and if the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, determining that the monitoring resource to be updated is different from the pre-stored monitoring resource.
Optionally, the apparatus further comprises:
a deleting module, configured to store the monitoring resource to be updated when the primary key value of the monitoring resource to be updated does not exist in the determining module, determine the number of the monitoring resource to be updated and the number of the pre-stored monitoring resources, and delete a pre-stored monitoring resource different from the primary key value of the monitoring resource to be updated from the pre-stored monitoring resources when the number of the monitoring resource to be updated is smaller than the number of the pre-stored monitoring resources.
Optionally, the apparatus further comprises:
and the delay queue is used for putting the monitoring resource to be updated into the delay queue if the prestored monitoring resource is in a service state.
And the reading module is used for reading the monitoring resources to be updated in the delay queue according to a set time interval and comparing the monitoring resources to be updated with the monitoring resources prestored in the monitoring unified management platform.
In the embodiment of the invention, after the monitoring resource to be updated is obtained, the monitoring resource to be updated is compared with the monitoring resource prestored in the monitoring management platform, if the monitoring resource to be updated is different from the monitoring resource prestored, the state of the prestored monitoring resource is judged, and if the prestored monitoring resource is in an idle state, the monitoring resource to be updated is used for updating the prestored monitoring resource, and the embodiment of the invention updates the prestored monitoring resource when the prestored monitoring resource is in the idle state, so that the interruption of the ongoing service can be avoided, namely, the embodiment of the invention completes the updating of the prestored monitoring resource while maintaining the continuity of the service of the monitoring unified management platform, improves the stability and the robustness of the monitoring unified management platform and the usability of the monitoring unified management platform, thereby improving the use experience of the user.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the monitoring resource update method.
The embodiment of the invention also provides a computer readable storage medium, and a stored computer program enables a processor to execute the monitoring resource updating method.
Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, which may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the electronic device, and the computer-readable storage medium for monitoring resource update provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for monitoring resource update is applied to a monitoring unified management platform of a video network, and comprises the following steps:
acquiring a monitoring resource to be updated;
comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform;
if the monitoring resource to be updated is different from the pre-stored monitoring resource, judging the state of the pre-stored monitoring resource;
and if the state of the pre-stored monitoring resource is an idle state, updating the pre-stored monitoring resource by using the monitoring resource to be updated.
2. The method of claim 1, wherein the monitoring resource to be updated comprises: the method comprises the steps of updating a primary key value of a monitoring resource to be updated and a data item of the monitoring resource to be updated;
the step of comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform comprises the following steps:
judging whether the primary key value of the monitoring resource to be updated exists in the prestored monitoring resource;
when the primary key value of the monitoring resource to be updated exists, acquiring a target monitoring resource matched with the primary key value of the monitoring resource to be updated;
and comparing the data item of the monitoring resource to be updated with the data item of the target monitoring resource, and if the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, determining that the monitoring resource to be updated is different from the pre-stored monitoring resource.
3. The method of claim 2, further comprising:
if the primary key value of the monitoring resource to be updated does not exist, storing the monitoring resource to be updated, determining the number of the monitoring resources to be updated and the number of the pre-stored monitoring resources, and if the number of the monitoring resources to be updated is smaller than the number of the pre-stored monitoring resources, deleting the pre-stored monitoring resources which are different from the primary key value of the monitoring resource to be updated from the pre-stored monitoring resources.
4. The method of claim 1, further comprising:
if the state of the pre-stored monitoring resource is a service state, putting the monitoring resource to be updated into a delay queue;
and reading the monitoring resource to be updated in the delay queue according to a set time interval, and comparing the monitoring resource to be updated with the monitoring resource prestored in the monitoring unified management platform.
5. An apparatus for monitoring resource update, which is applied to a monitoring unified management platform of a video network, comprising:
the acquisition module is used for acquiring the monitoring resource to be updated;
the comparison module is used for comparing the monitoring resource to be updated with the monitoring resource pre-stored in the monitoring unified management platform;
the state module is used for judging the state of the pre-stored monitoring resource if the monitoring resource to be updated is different from the pre-stored monitoring resource;
and the updating module is used for updating the pre-stored monitoring resource by using the monitoring resource to be updated if the state of the pre-stored monitoring resource is an idle state.
6. The apparatus of claim 5, wherein the monitoring resource to be updated comprises: the method comprises the steps of updating a primary key value of a monitoring resource to be updated and a data item of the monitoring resource to be updated;
the comparison module comprises:
the judging module is used for judging whether the primary key value of the monitoring resource to be updated exists in the prestored monitoring resource;
the primary key value module is used for acquiring a target monitoring resource matched with the primary key value of the monitoring resource to be updated when the primary key value of the monitoring resource to be updated exists in the judging module;
and the data item module is used for comparing the data item of the monitoring resource to be updated with the data item of the target monitoring resource, and if the data item of the monitoring resource to be updated is different from the data item of the target monitoring resource, determining that the monitoring resource to be updated is different from the pre-stored monitoring resource.
7. The apparatus of claim 6, further comprising:
a deleting module, configured to store the monitoring resource to be updated when the primary key value of the monitoring resource to be updated does not exist in the determining module, determine the number of the monitoring resource to be updated and the number of the pre-stored monitoring resources, and delete a pre-stored monitoring resource different from the primary key value of the monitoring resource to be updated from the pre-stored monitoring resources when the number of the monitoring resource to be updated is smaller than the number of the pre-stored monitoring resources.
8. The apparatus of claim 5, further comprising:
the delay queue is used for putting the monitoring resource to be updated into the delay queue if the prestored monitoring resource is in a service state;
and the reading module is used for reading the monitoring resources to be updated in the delay queue according to a set time interval and comparing the monitoring resources to be updated with the monitoring resources prestored in the monitoring unified management platform.
9. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the monitoring resource update method of any of claims 1-4.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the monitoring resource update method according to any one of claims 1 to 4.
CN201911285282.3A 2019-12-13 2019-12-13 Method, device, electronic equipment and medium for monitoring resource update Active CN111193903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911285282.3A CN111193903B (en) 2019-12-13 2019-12-13 Method, device, electronic equipment and medium for monitoring resource update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911285282.3A CN111193903B (en) 2019-12-13 2019-12-13 Method, device, electronic equipment and medium for monitoring resource update

Publications (2)

Publication Number Publication Date
CN111193903A true CN111193903A (en) 2020-05-22
CN111193903B CN111193903B (en) 2022-10-18

Family

ID=70709229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911285282.3A Active CN111193903B (en) 2019-12-13 2019-12-13 Method, device, electronic equipment and medium for monitoring resource update

Country Status (1)

Country Link
CN (1) CN111193903B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596747A (en) * 2020-12-25 2021-04-02 航天信息股份有限公司 Application program installation method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071118A1 (en) * 2015-10-28 2017-05-04 西安中兴新软件有限责任公司 Monitoring resource management method and apparatus, cse and storage medium
CN110557611A (en) * 2019-08-28 2019-12-10 视联动力信息技术股份有限公司 Information synchronization method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071118A1 (en) * 2015-10-28 2017-05-04 西安中兴新软件有限责任公司 Monitoring resource management method and apparatus, cse and storage medium
CN110557611A (en) * 2019-08-28 2019-12-10 视联动力信息技术股份有限公司 Information synchronization method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596747A (en) * 2020-12-25 2021-04-02 航天信息股份有限公司 Application program installation method, device, equipment and medium

Also Published As

Publication number Publication date
CN111193903B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
US8019737B2 (en) Synchronization of metadata
US9934303B2 (en) Storage constrained synchronization engine
US20100083098A1 (en) Streaming Information that Describes a Webpage
CN104219316A (en) Method and device for processing call request in distributed system
US9514176B2 (en) Database update notification method
US20140237024A1 (en) Network communication devices and file tracking methods thereof
CN110543512B (en) Information synchronization method, device and system
CN111800462A (en) Micro-service instance processing method and device, computer equipment and storage medium
CN109511145B (en) Network hotspot switching method, intelligent terminal and computer-readable storage medium
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN111193903B (en) Method, device, electronic equipment and medium for monitoring resource update
CN110071952B (en) Service call quantity control method and device
CN111291021B (en) Database management method and device, electronic equipment and storage medium
CN115002507A (en) Video data updating method, device, equipment and readable storage medium
CN113360348B (en) Abnormal request processing method and device, electronic equipment and storage medium
CN109286532A (en) The management method and device of warning information in cloud computing system
CN110704157B (en) Application starting method, related device and medium
CN115170700A (en) Method for realizing CSS animation based on Flutter framework, computer equipment and storage medium
US20140344352A1 (en) Activity internet-accessible data storage view that shows recent and relevant content to the user
CN107209882B (en) Multi-stage de-registration for managed devices
CN111179097B (en) Method, device, electronic equipment and storage medium for modifying warranty
CN111580755B (en) Distributed data processing system and distributed data processing method
CN115018398B (en) Animation project postponing prediction method, device and system
CN108052648B (en) Website picture deleting method and device and electronic equipment
CN107741810B (en) List management method, device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant