Storage monitoring method and device
By obtaining and judging the configuration and registration information of the application, receiving and sorting out the reported information, the lack of storage monitoring in modular development is solved, and the storage monitoring method is realized, which improves the operation speed and user experience of the application.
Patent Information
- Application Number
- CN201810994205.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-08-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2038-08-29
AI Technical Summary
In modular development applications, the existing technology lacks a unified storage monitoring method, resulting in unreasonable storage methods and excessive data volume, which affects the operation speed and user experience of the application.
By obtaining the application configuration information and registration information, receiving reported information, determining whether the storage threshold is reached, and sending alarm information, ensuring the accuracy and efficiency of storage monitoring.
It has achieved the speed of the application operation, enhanced user experience, reported information by selecting target objects, reducing traffic waste, and convenient viewing through graphic reports, and timely discovering and modifying unreasonable storage situations.
Smart Images

Figure CN110874299B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a storage monitoring method and device. Background Art
[0002] In recent years, with the continuous development of artificial intelligence, users' functional requirements for applications (APPs) have continued to increase. Therefore, the engineering projects for developing applications are getting larger and larger, and more and more people are involved, causing management problems. In order to solve this problem, a modular development method for applications is adopted, that is, the engineering projects for developing applications are divided into modules, such as positioning modules, network modules, session modules, etc. The development of each module is independent, so that each module can be developed and maintained by a small number of staff.
[0003] In the modular development method of application, in order to avoid storage conflicts, a unified storage interface is used for independent storage of each module, and the storage location or path of each module is independent. However, for the independent storage of each module, the prior art does not have a unified storage monitoring method, which easily leads to problems such as unreasonable storage methods and excessive storage data volume, which reduces the running speed of the application and affects the user experience. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a storage monitoring method and device, which can speed up the running speed of application programs and enhance user experience.
[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a storage monitoring method is provided.
[0006] A storage monitoring method according to an embodiment of the present invention includes: obtaining configuration information and registration information of the application according to the task of the storage monitoring application; receiving reporting information related to the application according to the reporting information strategy and reporting timing in the configuration information; judging whether the reporting information reaches a storage threshold according to the registration information, and if so, sending an alarm message.
[0007] Optionally, before obtaining the configuration information of the application and the registration information of the application, the method further includes: confirming that the application is the latest version.
[0008] Optionally, according to the reporting information strategy and reporting timing in the configuration information, reporting information related to the application is received, including: determining the device on which the application is installed according to the reporting information strategy in the configuration information; and receiving reporting information related to the application reported by the device according to the reporting timing in the configuration information.
[0009] Optionally, the reported information includes: the unique identifier of the device, the system storage capacity of the device, the remaining system storage of the device, the memory usage percentage of the device, the storage used by the application, the unique identifier of each module in the application, and the storage capacity of each module in the application.
[0010] Optionally, the registration information includes: the storage threshold of each module in the application and the contact person of each module in the application; and based on the registration information, judging whether the reported information exceeds the storage threshold, and if so, sending an alarm message, including: judging whether the storage amount of each module in the application exceeds the storage threshold of the module, and if so, sending an alarm message to the contact person of the module.
[0011] Optionally, after receiving the reporting information related to the application, the method further includes: organizing the reporting information based on the device on which the application is installed or the module in the application, and generating a graphical report of the reporting information.
[0012] To achieve the above objective, according to another aspect of an embodiment of the present invention, a storage monitoring device is provided.
[0013] A storage monitoring device according to an embodiment of the present invention includes: an acquisition module, which is used to acquire the configuration information of the application and the registration information of the application according to the task of the storage monitoring application; a receiving module, which is used to receive the reporting information related to the application according to the reporting information strategy and reporting timing in the configuration information; and a judgment module, which is used to judge whether the reporting information reaches the storage threshold based on the registration information, and if so, send an alarm message.
[0014] Optionally, the acquisition module is further used to: before acquiring the configuration information of the application and the registration information of the application, confirm that the application is the latest version.
[0015] Optionally, the receiving module is further used to: determine the device on which the application is installed according to the reporting information strategy in the configuration information; and receive reporting information related to the application reported by the device according to the reporting timing in the configuration information.
[0016] Optionally, the reported information includes: the unique identifier of the device, the system storage capacity of the device, the remaining system storage of the device, the memory usage percentage of the device, the storage used by the application, the unique identifier of each module in the application, and the storage capacity of each module in the application.
[0017] Optionally, the registration information includes: a storage threshold of each module in the application and a contact of each module in the application; and the judgment module is further used to: for the storage amount of each module in the application, judge whether the storage amount exceeds the storage threshold of the module, and if so, send an alarm message to the contact of the module
[0018] Optionally, the receiving module is further used to: after receiving the reporting information related to the application, organize the reporting information based on the device on which the application is installed or the module in the application, and generate a graphical report of the reporting information.
[0019] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0020] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the storage monitoring method according to the embodiment of the present invention.
[0021] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0022] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the storage monitoring method according to the embodiment of the present invention is implemented.
[0023] An embodiment of the above invention has the following advantages or beneficial effects: the application can be monitored by using the configuration information of the application, and then the reporting information can be obtained, and then the reporting information can be judged with the help of the registration information, and finally the alarm information can be sent according to the judgment result, so as to provide a storage monitoring method, speed up the running speed of the application, and enhance the user experience; in the embodiment of the present invention, before obtaining the configuration information and the registration information, it is necessary to confirm that the application is the latest version, so as to improve the accuracy of storage monitoring; in the embodiment of the present invention, the reporting information strategy is used to determine the device on which the application is installed, and then according to the reporting timing, the reporting information sent by the device is received, so that some target objects can be selected for information reporting, reduce traffic waste, and speed up the storage monitoring speed; in the embodiment of the present invention, after receiving the reporting information, the reporting information is sorted by different dimensions to obtain a graphical report, so that it can be convenient to view; in the embodiment of the present invention, it is judged in turn whether the modules in the application reach the corresponding storage threshold, and if so, an alarm message is sent to the contact of the module, so that the contact can find the unreasonable storage situation in time and modify the module to achieve the effect of storage monitoring.
[0024] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0026] Figure 1 is a schematic diagram of main steps of a storage monitoring method according to an embodiment of the present invention;
[0027] Figure 2 It is a schematic diagram of the main process of a storage monitoring method according to a reference embodiment of the present invention;
[0028] Figure 3 is a schematic diagram of main modules of a storage monitoring device according to an embodiment of the present invention;
[0029] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0030] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0032] Figure 1 Schematic diagram of the main steps of the storage monitoring method according to an embodiment of the present invention. As an embodiment of the present invention, Figure 1 As shown, the main steps of the storage monitoring method of the embodiment of the present invention may include:
[0033] Step S101: According to the task of storing and monitoring the application, the configuration information of the application and the registration information of the application are obtained.
[0034] In the storage monitoring method of the present invention, step S101 requires the server to obtain the configuration information and registration information of the application after receiving the task of storing the monitoring application. The configuration information is the information pre-configured by the server for the application, mainly including: reporting information strategy, reporting timing, reporting method, maximum storage capacity of the module and maximum storage capacity of the special device module, etc. The registration information is the information about the application registered on the server, including the version information of the registered application, the storage threshold of each module in the registered application, and the contact method of the contact person of each module in the registered application, such as an email address.
[0035] Among them, the reporting information strategy refers to the reporting percentage of the application (i.e., the proportion of devices that need to report information to all devices that install the application). For example, only 10% of users are allowed to send reporting information to the server, because as long as a certain amount of data is reached, the purpose of storage statistics can be achieved. The advantage of doing so is to select users by random sampling to achieve the effect of reducing traffic waste. The present invention can also dynamically set the percentage of reporting information according to the number of users of the application, further improving the practicality of this solution. The reporting opportunity refers to the specific time of reporting, which can be reported in real time or delayed (i.e., unified reporting when the application enters the background, or unified reporting when the application is started). Of course, other reporting opportunities can also be used, and the present invention does not limit this. The reporting method can include unlimited local area network upload method and mobile network upload method. The maximum storage capacity of the module refers to the maximum storage capacity of each module in the application. The maximum storage capacity of the special device module refers to the maximum storage capacity of each module in the application for special devices, such as devices with small memory.
[0036] As another reference embodiment of the present invention, before obtaining the configuration information of the application and the registration information of the application in the above step S101, the storage monitoring method may also include: confirming that the application is the latest version. In modular engineering, the code is managed by a version management tool, and the code is stored on the server. The present invention needs to detect whether there is a new version of the application. When a new version is detected, it is necessary to obtain the configuration information and registration information of the latest version of the application. At the same time, the server needs to pull the corresponding new version of the project to the local. For modular engineering, the code addresses of each module will be different, and the versions of each module corresponding to the new version of the application will also be different, so the code of the corresponding version of each module corresponding to the new version of the application will be pulled.
[0037] Step S102: Receive the reporting information related to the application according to the reporting information strategy and reporting timing in the configuration information. After the configuration information is acquired in the above step S101, this step uses the reporting information strategy and reporting timing in the configuration information to receive the reporting information.
[0038] As another reference embodiment of the present invention, the above step S102 receives the reporting information related to the application according to the reporting information strategy and reporting timing in the configuration information, which can be specifically explained as: according to the reporting information strategy in the configuration information, determine the device on which the application is installed; according to the reporting timing in the configuration information, receive the reporting information related to the application reported by the device. In the present invention, according to the reporting information strategy, it is determined whether the device on which the application is installed needs to report information. If so, the reporting information reported by the device is received using the reporting timing in the configuration information. For example, there are 100 devices on which the application is installed, and the reporting strategy is a reporting percentage of 10%. Then, 10 devices are randomly selected from the 100 devices as devices that need to report information, and then according to the reporting timing, the reporting information related to the application reported by these 10 devices is received.
[0039] As another reference embodiment of the present invention, after receiving the reported information related to the application in the above step S102, the storage monitoring method may further include: organizing the reported information based on the device on which the application is installed or the module in the application, and generating a graphical report of the reported information. In the present invention, after obtaining the reported information, the reported information may be organized based on the device on which the application is installed to obtain a graphical report. For example, based on the mobile phone model as a dimension, a distribution graph of the percentage of memory usage, a distribution graph of the percentage of remaining system storage space, a distribution graph of the memory occupied by the application, and a distribution graph of the average memory occupied by each module are statistically generated. The present invention may also organize the reported information based on the module in the application as a dimension to obtain a graphical report. The purpose of this is to process the reported information in the form of a chart, so as to facilitate intuitive observation of the reported information and further improve the efficiency of storage monitoring.
[0040] Step S103: According to the registration information, determine whether the reported information reaches the storage threshold, and if so, send an alarm message. In the embodiment of the present invention, the registration information may include: the storage threshold of each module in the application and the contact of each module in the application. After the reported information is obtained in the above step S102, the storage threshold of each module in the registration information is used to verify the reported information.
[0041] In an embodiment of the present invention, the reported information may include: the unique identifier of the device, the system storage capacity of the device, the remaining system storage capacity of the device, the memory usage percentage of the device, the storage capacity used by the application, the unique identifier of each module in the application, and the storage capacity of each module in the application.
[0042] As another reference embodiment of the present invention, the above step S103 determines whether the reported information exceeds the storage threshold according to the registration information, and if so, sends an alarm message, which may include: for the storage capacity of each module in the application, determining whether the storage capacity exceeds the storage threshold of the module, and if so, sending an alarm message to the contact of the module. For example, the reported information includes the storage capacity of module A, and then determines whether the storage capacity of module A exceeds the storage threshold of module A in the registration information. If it exceeds, the server sends an alarm message to the contact of module A. In this way, the contact can obtain the alarm information in time and reset and optimize module A.
[0043] The technical solution for storage monitoring of the present invention includes two parts: a server and a client. The server refers to the background program of the server, and the client refers to a software development kit (SDK), which is generally a collection of development tools used by software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.
[0044] In this solution, the server is first configured with information, then registered, and then the client's reported information is processed to generate a report. After reaching the threshold, an alarm message is sent. The server includes: a first configuration unit, a registration unit, a scanning unit, a processing unit, a reporting unit, and an alarm unit. The first configuration unit is mainly used to configure the application and obtain configuration information; the registration unit is mainly used to register the application and obtain registration information; the scanning unit is mainly used to scan whether the application is the latest version, and if so, obtain the code of the latest version of the application; the processing unit is used to receive the reported information reported by the device; the reporting unit is used to organize and count the reported information to obtain a graphical report of the reported information; the alarm unit is used to determine whether the reported information exceeds the storage threshold, and if it exceeds the threshold, send an alarm message to the contact.
[0045] The client in this solution includes four parts: a second configuration unit, a system storage unit, an application storage unit and a reporting unit. Among them, the second configuration unit of the client corresponds to the first configuration unit of the server, and is mainly used to request configuration information from the server, confirm whether it is a device that needs to send reporting information based on the requested configuration information, and send the reporting information to the server according to the reporting timing; the system storage unit is used to obtain the system memory occupancy size or percentage, and obtain the system available storage space size and occupied space size; the application storage unit is used to provide a registration interface for obtaining information, does not provide storage function, and is mainly responsible for reporting statistics; the reporting unit is used to determine from the configuration unit whether to report the service, and if reporting is performed, send the reporting information to the server at the reporting timing.
[0046] Figure 2 FIG. 1 is a schematic diagram of the main process of a storage monitoring method according to a reference embodiment of the present invention. Figure 2 As shown, the main process of the storage monitoring method of the embodiment of the present invention may include:
[0047] Step S201: confirming that the application is the latest version according to the task of storing the monitoring application;
[0048] Step S202: Obtain configuration information and registration information of the latest version of the application, wherein the registration information may include: a storage threshold of each module in the application and a contact person of each module in the application;
[0049] Step S203: Determine the device on which the application is installed according to the reporting information policy in the configuration information;
[0050] Step S204: receiving, according to the reporting opportunity in the configuration information, reporting information related to the application reported by the device, wherein the reporting information may include: a unique identifier of the device, a system storage amount of the device, a remaining amount of system storage of the device, a memory usage percentage of the device, a used storage amount of the application, a unique identifier of each module in the application, and a storage amount of each module in the application;
[0051] Step S205: sorting the reported information based on the device on which the application is installed or the module in the application, and generating a graphical report of the reported information;
[0052] Step S206: Select any module in the application as module A;
[0053] Step S207: Determine whether the storage capacity of module A in the application exceeds the storage threshold of module A in the registration information. If so, execute step S208;
[0054] Step S208: Sending alarm information to the contact of module A;
[0055] Step S209: Determine whether to analyze all modules in the application program. If not, execute step S206 again.
[0056] It can be seen from the technical solution of storage monitoring according to the embodiment of the present invention that the configuration information of the application can be used to monitor the application, and then the reporting information can be obtained, and then the reporting information can be judged with the help of the registration information, and finally the alarm information can be sent according to the judgment result, so that a method for storage monitoring can be provided to speed up the running speed of the application and enhance the user experience; in the embodiment of the present invention, before obtaining the configuration information and the registration information, it is necessary to confirm that the application is the latest version, so that the accuracy of storage monitoring can be improved; in the embodiment of the present invention, the reporting information strategy is used to determine the device on which the application is installed, and then according to the reporting timing, the reporting information sent by the device is received, so that some target objects can be selected for information reporting, reducing traffic waste and speeding up the storage monitoring speed; in the embodiment of the present invention, after receiving the reporting information, the reporting information is sorted out in different dimensions to obtain a graphical report, so that it can be convenient to view; in the embodiment of the present invention, it is judged in turn whether the modules in the application reach the corresponding storage threshold. If reached, an alarm message is sent to the contact of the module, so that the contact can find the unreasonable storage situation in time and modify the module to achieve the effect of storage monitoring.
[0057] Figure 3 Schematic diagram of main modules of a storage monitoring device according to an embodiment of the present invention. Figure 3As shown, the storage monitoring device 300 of the embodiment of the present invention mainly includes the following modules: an acquisition module 301 , a receiving module 302 and a judgment module 303 .
[0058] Among them, the acquisition module 301 can be used to obtain the configuration information of the application and the registration information of the application according to the task of storing the monitoring application. The receiving module 302 can be used to receive the reporting information related to the application according to the reporting information strategy and reporting timing in the configuration information. The judgment module 303 can be used to judge whether the reporting information reaches the storage threshold according to the registration information, and if so, send an alarm message.
[0059] In the embodiment of the present invention, the acquisition module 301 may also be used to: before acquiring the configuration information of the application and the registration information of the application, confirm that the application is the latest version.
[0060] In the embodiment of the present invention, the receiving module 302 can also be used to: determine the device with the application installed according to the reporting information strategy in the configuration information; and receive the reporting information related to the application reported by the device according to the reporting timing in the configuration information.
[0061] In an embodiment of the present invention, the reported information may include: the unique identifier of the device, the system storage capacity of the device, the remaining system storage capacity of the device, the memory usage percentage of the device, the storage capacity used by the application, the unique identifier of each module in the application, and the storage capacity of each module in the application.
[0062] In the embodiment of the present invention, the registration information may include: the storage threshold of each module in the application and the contact of each module in the application. And the judgment module 303 may also be used to: for the storage amount of each module in the application, judge whether the storage amount exceeds the storage threshold of the module, and if so, send an alarm message to the contact of the module.
[0063] In the embodiment of the present invention, the receiving module 302 may also be used to: after receiving the reported information related to the application, organize the reported information based on the device where the application is installed or the module in the application, and generate a graphical report of the reported information.
[0064] From the above description, it can be seen that the application can be monitored by using the configuration information of the application, and then the reporting information can be obtained, and then the reporting information can be judged with the help of the registration information, and finally the alarm information can be sent according to the judgment result, so that a storage monitoring method can be provided to speed up the running speed of the application and enhance the user experience; in the embodiment of the present invention, before obtaining the configuration information and the registration information, it is necessary to confirm that the application is the latest version, so that the accuracy of storage monitoring can be improved; in the embodiment of the present invention, the reporting information strategy is used to determine the device on which the application is installed, and then according to the reporting timing, the reporting information sent by the device is received, so that some target objects can be selected for information reporting, reducing traffic waste and speeding up the storage monitoring speed; in the embodiment of the present invention, after receiving the reporting information, the reporting information is sorted by different dimensions to obtain a graphical report, so that it can be convenient to view; in the embodiment of the present invention, it is judged in turn whether the modules in the application reach the corresponding storage threshold. If reached, an alarm message is sent to the contact of the module, so that the contact can find the unreasonable storage situation in time and modify the module to achieve the effect of storage monitoring.
[0065] Figure 4 An exemplary system architecture 400 is shown to which the storage monitoring method or storage monitoring apparatus according to the embodiment of the present invention may be applied.
[0066] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0067] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0068] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0069] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0070] It should be noted that the storage monitoring method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the storage monitoring device is generally set in the server 405 .
[0071] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0072] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0073] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0074] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0075] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0076] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0077] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0078] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module, a receiving module and a judgment module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the acquisition module may also be described as "a module for acquiring configuration information and registration information of an application according to the task of storing and monitoring the application".
[0079] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining the configuration information and registration information of the application according to the task of storing the monitoring application; receiving the reporting information related to the application according to the reporting information strategy and reporting timing in the configuration information; judging whether the reporting information reaches the storage threshold according to the registration information, and if so, sending an alarm message.
[0080] According to the technical solution of the embodiment of the present invention, the application can be monitored by using the configuration information of the application, and then the reporting information can be obtained, and then the reporting information can be judged with the help of the registration information, and finally the alarm information can be sent according to the judgment result, so as to provide a storage monitoring method, speed up the running speed of the application, and enhance the user experience; in the embodiment of the present invention, before obtaining the configuration information and the registration information, it is necessary to confirm that the application is the latest version, so as to improve the accuracy of storage monitoring; in the embodiment of the present invention, the reporting information strategy is used to determine the device on which the application is installed, and then according to the reporting timing, the reporting information sent by the device is received, so that some target objects can be selected for information reporting, reduce traffic waste, and speed up the storage monitoring speed; in the embodiment of the present invention, after receiving the reporting information, the reporting information is sorted by different dimensions to obtain a graphical report, so that it can be convenient to view; in the embodiment of the present invention, it is judged in turn whether the modules in the application reach the corresponding storage threshold, and if so, the alarm information is sent to the contact of the module, so that the contact can find the unreasonable storage situation in time and modify the module to achieve the effect of storage monitoring.
[0081] 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 may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for storage monitoring, It is characterized in that Applied to the server, including: According to the task of storing the monitoring application, obtaining configuration information of the application and registration information of the application; the registration information includes: a storage threshold of each module in the application and a contact person of each module in the application; According to the reporting information strategy and reporting timing in the configuration information, receiving the reporting information related to the application sent by the client, including: determining the device on which the application is installed according to the reporting information strategy in the configuration information; receiving the reporting information related to the application reported by the device according to the reporting timing in the configuration information; the reporting information strategy indicates the reporting percentage of the application; According to the registration information, determine whether the reported information reaches a storage threshold, including: for the storage amount of each module in the application, determine whether the storage amount exceeds the storage threshold of the module, and if so, send an alarm message to the contact of the module.
2. The method according to claim 1, It is characterized in that Before obtaining the configuration information of the application and the registration information of the application, the method further includes: confirming that the application is the latest version.
3. The method according to claim 1, It is characterized in that The reported information includes: the unique identifier of the device, the system storage capacity of the device, the remaining system storage capacity of the device, the memory usage percentage of the device, the storage capacity used by the application, the unique identifier of each module in the application, and the storage capacity of each module in the application.
4. The method according to claim 1, It is characterized in that After receiving the reporting information related to the application, the method further includes: The reported information is sorted based on the device on which the application is installed or the module in the application, and a graphical report of the reported information is generated.
5. A storage monitoring device, It is characterized in that Applied to the server, including: An acquisition module, used to acquire configuration information of the application and registration information of the application according to the task of storing and monitoring the application; the registration information includes: a storage threshold of each module in the application and a contact person of each module in the application; A receiving module, configured to receive the reporting information related to the application sent by the client according to the reporting information strategy and reporting timing in the configuration information, including: determining the device on which the application is installed according to the reporting information strategy in the configuration information; receiving the reporting information related to the application reported by the device according to the reporting timing in the configuration information; the reporting information strategy indicates the reporting percentage of the application; A judgment module is used to judge whether the reported information reaches a storage threshold based on the registration information, including: judging whether the storage amount of each module in the application exceeds the storage threshold of the module, and if so, sending an alarm message to the contact of the module.
6. The device according to claim 5, It is characterized in that The acquisition module is further used to: before acquiring the configuration information of the application and the registration information of the application, confirm that the application is the latest version.
7. The device according to claim 5, It is characterized in that The reported information includes: the unique identifier of the device, the system storage capacity of the device, the remaining system storage capacity of the device, the memory usage percentage of the device, the storage capacity used by the application, the unique identifier of each module in the application, and the storage capacity of each module in the application.
8. The device according to claim 5, It is characterized in that The receiving module is further used for: after receiving the reporting information related to the application, organizing the reporting information based on the device where the application is installed or the module in the application, and generating a graphical report of the reporting information.
9. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
10. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
