[go: up one dir, main page]

CN110389880A - Method and device for outputting information - Google Patents

Method and device for outputting information Download PDF

Info

Publication number
CN110389880A
CN110389880A CN201910680571.7A CN201910680571A CN110389880A CN 110389880 A CN110389880 A CN 110389880A CN 201910680571 A CN201910680571 A CN 201910680571A CN 110389880 A CN110389880 A CN 110389880A
Authority
CN
China
Prior art keywords
information
storage
abnormal
user
usage amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910680571.7A
Other languages
Chinese (zh)
Inventor
管宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910680571.7A priority Critical patent/CN110389880A/en
Publication of CN110389880A publication Critical patent/CN110389880A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了用于输出信息的方法和装置,涉及云计算领域。上述方法的一具体实施方式包括:获取用户的用户标识;根据用户标识,确定用户申请的存储空间信息以及用户标识对应的当前使用量信息;根据存储空间信息以及当前使用量信息,确定是否存储异常;响应于确定存储异常,生成以及输出异常信息。该实施方式可以实现对用户的存储容量的自动预警。

The embodiment of the application discloses a method and device for outputting information, which relate to the field of cloud computing. A specific implementation of the above method includes: obtaining the user ID of the user; according to the user ID, determining the storage space information requested by the user and the current usage information corresponding to the user ID; according to the storage space information and the current usage information, determining whether the storage is abnormal ; generating and outputting exception information in response to determining a storage exception. This embodiment can realize automatic warning of the user's storage capacity.

Description

用于输出信息的方法和装置Method and device for outputting information

技术领域technical field

本申请实施例涉及计算机技术领域,具体涉及用于输出信息的方法和装置。The embodiments of the present application relate to the field of computer technologies, and in particular to methods and devices for outputting information.

背景技术Background technique

随着存储技术的发展和创新,越来越多的存储系统支持多租户租用。存储系统就会存在多个租户同时使用的情况。存储系统需要对每个租户的数据所占用的容量进行统计,以进行预警。随着租户数量的成倍增长,对于多个租户容量预警的复杂度就会线性增长。With the development and innovation of storage technology, more and more storage systems support multi-tenant lease. The storage system will be used by multiple tenants at the same time. The storage system needs to collect statistics on the capacity occupied by the data of each tenant for early warning. As the number of tenants increases exponentially, the complexity of capacity alerts for multiple tenants increases linearly.

发明内容Contents of the invention

本申请实施例提出了用于输出信息的方法和装置。The embodiments of the present application propose a method and an apparatus for outputting information.

第一方面,本申请实施例提供了一种用于输出信息的方法,包括:获取用户的用户标识;根据上述用户标识,确定上述用户申请的存储空间信息以及上述用户标识对应的当前使用量信息;根据上述存储空间信息以及上述当前使用量信息,确定是否存储异常;响应于确定存储异常,生成以及输出异常信息。In the first aspect, the embodiment of the present application provides a method for outputting information, including: acquiring the user ID of the user; determining the storage space information requested by the user and the current usage information corresponding to the user ID according to the user ID ; According to the above storage space information and the above current usage information, determine whether the storage is abnormal; in response to determining that the storage is abnormal, generate and output abnormal information.

在一些实施例中,上述根据上述存储空间信息以及上述当前使用量信息,确定是否存储异常,包括:根据上述存储空间信息以及上述当前使用量信息,确定存储空间的当前使用率;响应于确定上述当前使用率大于第一预设阈值,确定存储异常。In some embodiments, the above-mentioned determining whether the storage is abnormal according to the above-mentioned storage space information and the above-mentioned current usage information includes: determining the current usage rate of the storage space according to the above-mentioned storage space information and the above-mentioned current usage information; in response to determining the above-mentioned If the current usage rate is greater than the first preset threshold, it is determined that the storage is abnormal.

在一些实施例中,上述根据上述存储空间信息以及上述当前使用量信息,确定是否存储异常,包括:响应于确定上述当前使用率小于或等于上述第一预设阈值,获取历史使用量信息;根据上述历史使用量信息,确定存储空间的使用量变化率;响应于确定上述使用量变化率的绝对值大于第二预设阈值,确定存储异常。In some embodiments, the above-mentioned determining whether the storage is abnormal according to the above-mentioned storage space information and the above-mentioned current usage information includes: obtaining historical usage information in response to determining that the above-mentioned current usage rate is less than or equal to the above-mentioned first preset threshold; For the historical usage information, determine a usage change rate of the storage space; and determine storage abnormality in response to determining that the absolute value of the usage change rate is greater than a second preset threshold.

在一些实施例中,上述根据上述存储空间信息以及上述当前使用量信息,确定是否存储异常,包括:根据上述历史使用量信息,确定存储空间的使用量变化曲线;根据上述使用量变化曲线,确定存储空间的使用量变化周期;响应于确定上述当前使用量信息所处周期的使用量变化曲线与使用量变化周期内的使用量变化曲线不相符,确定存储异常。In some embodiments, the determining whether the storage is abnormal according to the above-mentioned storage space information and the above-mentioned current usage information includes: according to the above-mentioned historical usage information, determining the usage change curve of the storage space; according to the above-mentioned usage change curve, determining The usage change period of the storage space; in response to determining that the usage change curve of the period where the current usage information is located does not match the usage change curve within the usage change period, determining that the storage is abnormal.

在一些实施例中,上述方法还包括:为所获取的当前使用量信息标注时间;存储标注后的当前使用量信息。In some embodiments, the above method further includes: marking time for the acquired current usage information; and storing the marked current usage information.

在一些实施例中,上述响应于确定存储异常,生成以及输出异常信息,包括:响应于确定存储异常,生成异常信息,以及根据上述用户提交的联系信息,输出异常信息。In some embodiments, the generating and outputting abnormal information in response to determining that the storage is abnormal includes: generating abnormal information in response to determining that the storage is abnormal, and outputting the abnormal information according to the contact information submitted by the user.

在一些实施例中,上述方法还包括:响应于接收到上述用户发送的修改信息,根据上述修改信息,修改上述联系信息和/或上述第一预设阈值。In some embodiments, the method further includes: in response to receiving the modification information sent by the user, modifying the contact information and/or the first preset threshold according to the modification information.

第二方面,本申请实施例提供了一种用于输出信息的装置,包括:获取单元,被配置成获取用户的用户标识;确定单元,被配置成根据上述用户标识,确定上述用户申请的存储空间信息以及上述用户标识对应的当前使用量信息;判断单元,被配置成根据上述存储空间信息以及上述当前使用量信息,确定是否存储异常;输出单元,被配置成响应于确定存储异常,生成以及输出异常信息。In a second aspect, an embodiment of the present application provides an apparatus for outputting information, including: an acquisition unit configured to acquire a user ID of a user; a determination unit configured to determine the storage requested by the user according to the user ID The space information and the current usage information corresponding to the above-mentioned user identification; the judging unit is configured to determine whether the storage is abnormal according to the above-mentioned storage space information and the above-mentioned current usage information; the output unit is configured to respond to the determination of the storage abnormality, generate and Output exception information.

在一些实施例中,上述判断单元进一步被配置成:根据上述存储空间信息以及上述当前使用量信息,确定存储空间的当前使用率;响应于确定上述当前使用率大于第一预设阈值,确定存储异常。In some embodiments, the judging unit is further configured to: determine the current usage rate of the storage space according to the storage space information and the current usage information; abnormal.

在一些实施例中,上述判断单元进一步被配置成:响应于确定上述当前使用率小于或等于上述第一预设阈值,获取历史使用量信息;根据上述历史使用量信息,确定存储空间的使用量变化率;响应于确定上述使用量变化率的绝对值大于第二预设阈值,确定存储异常。In some embodiments, the judging unit is further configured to: obtain historical usage information in response to determining that the current usage rate is less than or equal to the first preset threshold; determine the storage space usage based on the historical usage information rate of change: in response to determining that the absolute value of the rate of change of the usage amount is greater than a second preset threshold, determining that the storage is abnormal.

在一些实施例中,上述判断单元进一步被配置成:根据上述历史使用量信息,确定存储空间的使用量变化曲线;根据上述使用量变化曲线,确定存储空间的使用量变化周期;响应于确定上述当前使用量信息所处周期的使用量变化曲线与使用量变化周期内的使用量变化曲线不相符,确定存储异常。In some embodiments, the judging unit is further configured to: determine the usage change curve of the storage space according to the historical usage information; determine the storage space usage change cycle according to the usage change curve; The usage change curve of the period where the current usage information is located does not match the usage change curve within the usage change period, and it is determined that the storage is abnormal.

在一些实施例中,上述装置还包括:标注单元,被配置成为所获取的当前使用量信息标注时间;存储单元,被配置成存储标注后的当前使用量信息。In some embodiments, the above device further includes: a marking unit configured to mark time for the acquired current usage information; a storage unit configured to store the marked current usage information.

在一些实施例中,上述输出单元进一步被配置成:响应于确定存储异常,生成异常信息,以及根据上述用户提交的联系信息,输出异常信息。In some embodiments, the output unit is further configured to: generate exception information in response to determining that the storage is abnormal, and output the exception information according to the contact information submitted by the user.

在一些实施例中,上述装置还包括修改单元,被配置成:响应于接收到上述用户发送的修改信息,根据上述修改信息,修改上述联系信息和/或上述第一预设阈值。In some embodiments, the above-mentioned apparatus further includes a modification unit configured to: modify the above-mentioned contact information and/or the above-mentioned first preset threshold according to the above-mentioned modification information in response to receiving the modification information sent by the above-mentioned user.

第三方面,本申请实施例提供了一种服务器,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行,使得上述一个或多个处理器实现如第一方面任一实施例所描述的方法。In a third aspect, the embodiment of the present application provides a server, including: one or more processors; a storage device, on which one or more programs are stored, when the above one or more programs are processed by the executed by a processor, so that the above-mentioned one or more processors implement the method described in any embodiment of the first aspect.

第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面任一实施例所描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, the method as described in any embodiment of the first aspect is implemented.

本申请的上述实施例提供的用于输出信息的方法和装置,首先可以获取用户的用户标识。并根据用户标识,确定用户申请的存储空间信息以及用户标识对应的当前使用量信息。根据存储空间信息以及当前使用量信息,确定是否存储异常。如果存储异常,则生成并输出异常信息。本实施例的方法,可以实现对用户的存储容量的自动预警。In the method and device for outputting information provided by the above embodiments of the present application, firstly, the user ID of the user may be acquired. And according to the user identifier, determine the storage space information requested by the user and the current usage information corresponding to the user identifier. According to the storage space information and the current usage information, it is determined whether the storage is abnormal. If an exception is stored, an exception message is generated and output. The method of this embodiment can realize the automatic early warning of the user's storage capacity.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;

图2是根据本申请的用于输出信息的方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for outputting information according to the present application;

图3是根据本申请的用于输出信息的方法的一个应用场景的示意图;FIG. 3 is a schematic diagram of an application scenario of a method for outputting information according to the present application;

图4是根据本申请的用于输出信息的方法的又一个实施例的流程图;Fig. 4 is a flowchart of another embodiment of a method for outputting information according to the present application;

图5是根据本申请的用于输出信息的装置的一个实施例的结构示意图;Fig. 5 is a schematic structural diagram of an embodiment of a device for outputting information according to the present application;

图6是适于用来实现本申请实施例的服务器的计算机系统的结构示意图。Fig. 6 is a schematic structural diagram of a computer system suitable for implementing the server of the embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了可以应用本申请的用于输出信息的方法或用于输出信息的装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the method for outputting information or the apparatus for outputting information of the present application can be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。例如,用户可以终端设备101、102、103向服务器105发送查询请求,或接收服务器105发送的查询结果。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like. For example, a user may send a query request to the server 105 through the terminal device 101 , 102 , or 103 , or receive a query result sent by the server 105 . Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens and supporting web browsing, including but not limited to smartphones, tablet computers, e-book readers, laptop computers and desktop computers and many more. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as a plurality of software or software modules (for example, to provide distributed services), or as a single software or software module. No specific limitation is made here.

服务器105可以是提供各种服务的服务器,例如对存储空间的使用量查询提供支持的后台服务器。后台服务器可以对接收到的查询请求等数据进行分析等处理,并将处理结果(例如查询结果)反馈给终端设备101、102、103。The server 105 may be a server that provides various services, such as a background server that provides support for querying storage space usage. The background server can analyze and process the received query request and other data, and feed back the processing result (eg, query result) to the terminal devices 101 , 102 , 103 .

需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or as a single software or software module. No specific limitation is made here.

需要说明的是,本申请实施例所提供的用于输出信息的方法一般由服务器105执行,相应地,用于输出信息的装置一般设置于服务器105中。It should be noted that the method for outputting information provided in the embodiment of the present application is generally executed by the server 105 , and correspondingly, the device for outputting information is generally set in the server 105 .

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

继续参考图2,示出了根据本申请的用于输出信息的方法的一个实施例的流程200。本实施例的用于输出信息的方法,包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of an embodiment of a method for outputting information according to the present application is shown. The method for outputting information in this embodiment includes the following steps:

步骤201,获取用户的用户标识。Step 201, acquire the user ID of the user.

在本实施例中,用于输出信息的方法的执行主体(例如图1所示的服务器105)可以通过有线连接方式或者无线连接方式从用户所使用的终端设备(例如图1所示的终端设备101、102、103)处获取用户的用户标识。具体的,执行主体可以提供查询端口,用户可以通过终端设备调用上述查询端口来向执行主体发送查询请求。上述查询请求包括用户标识。可以理解的是,用户可以首先向执行主体发送存储空间申请请求,以申请存储空间。In this embodiment, the execution subject of the method for outputting information (for example, the server 105 shown in FIG. 1 ) can connect from a terminal device used by a user (such as the terminal device shown in FIG. 1 ) through a wired connection or a wireless connection. 101, 102, 103) to obtain the user ID of the user. Specifically, the execution subject may provide a query port, and the user may call the above query port through a terminal device to send a query request to the execution subject. The above query request includes a user ID. It can be understood that the user may first send a storage space application request to the execution subject to apply for the storage space.

需要指出的是,上述无线连接方式可以包括但不限于3G/4G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB(ultra wideband)连接、以及其他现在已知或将来开发的无线连接方式。It should be pointed out that the above wireless connection methods may include but not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods known or developed in the future .

步骤202,根据用户标识,确定用户申请的存储空间信息以及用户标识对应的当前使用量信息。Step 202, according to the user ID, determine the storage space information requested by the user and the current usage information corresponding to the user ID.

执行主体在获取到用户标识后,可以根据用户标识,确定用户申请的存储空间信息。具体的,执行主体本地存储有用户标识与存储空间信息的对应关系。然后,执行主体可以查询上述对应关系,确定与用户的用户标识对应的存储空间信息。存储空间信息用于表示用户申请的存储空间的容量。执行主体还可以查询用户标识对应的当前使用量信息。此处,当前使用量信息即为用户已经使用的存储空间的大小。After the execution subject obtains the user ID, it can determine the storage space information requested by the user according to the user ID. Specifically, the execution subject locally stores the correspondence between the user identifier and the storage space information. Then, the execution subject can query the above-mentioned corresponding relationship, and determine the storage space information corresponding to the user ID of the user. The storage space information is used to indicate the capacity of the storage space requested by the user. The execution subject can also query the current usage information corresponding to the user ID. Here, the current usage information is the size of the storage space already used by the user.

步骤203,根据存储空间信息以及当前使用量信息,确定是否存储异常。Step 203, according to the storage space information and the current usage information, determine whether the storage is abnormal.

执行主体在确定用户标识对应的存储空间信息以及当前使用量信息后,可以确定是否存储异常。例如,执行主体可以计算当前使用量与存储空间的比值,以判断存储空间的使用率是否超过第一预设阈值,如果超过,则认为存储异常。其中,上述第一预设阈值可以是用户自行设置的,也可以是执行主体根据存储空间的大小设置的。After the execution subject determines the storage space information corresponding to the user ID and the current usage information, it can determine whether the storage is abnormal. For example, the execution subject may calculate the ratio of the current usage amount to the storage space to determine whether the usage rate of the storage space exceeds a first preset threshold, and if it exceeds, the storage is considered abnormal. Wherein, the above-mentioned first preset threshold may be set by the user, or may be set by the execution subject according to the size of the storage space.

步骤204,响应于确定存储异常,生成以及输出异常信息。Step 204, generating and outputting exception information in response to determining that the storage is abnormal.

如果执行主体确定存储异常,则执行主体可以生成异常信息。具体的,执行主体可以将存储空间信息和当前使用量信息作为异常信息。或者,执行主体还可以根据当前的存储空间的使用率生成异常信息。然后,可以将上述异常信息输出给用户。If the execution subject determines to store an exception, the execution subject may generate exception information. Specifically, the execution subject may use storage space information and current usage information as exception information. Alternatively, the execution subject may also generate exception information according to the current storage space usage. Then, the above-mentioned exception information may be output to the user.

在本实施例的一些可选的实现方式中,上述方法还可以进一步包括图2中未示出的以下步骤:为所获取的当前使用量信息标注时间;存储标注后的当前使用量信息。In some optional implementations of this embodiment, the above method may further include the following steps not shown in FIG. 2 : marking time for the acquired current usage information; and storing the marked current usage information.

本实现方式中,执行主体可以在每次获取到当前使用量信息后,可以为当前使用量信息标注时间。所标注的时间为当前使用量信息的获取时刻。在标注后,执行主体可以将标注后的当前使用量信息存储到数据库中。In this implementation manner, the execution subject may mark the current usage information with a time after obtaining the current usage information each time. The marked time is the acquisition time of the current usage information. After marking, the executive body can store the marked current usage information in the database.

在本实施例的一些可选的实现方式中,上述步骤204具体可以通过图2中未示出的以下步骤来实现:响应于确定存储异常,生成异常信息,以及根据用户提交的联系信息,输出异常信息。In some optional implementations of this embodiment, the above step 204 can be specifically implemented through the following steps not shown in FIG. exception information.

本实现方式中,执行主体在确定存储异常,生成异常信息后,可以根据用户所提交的联系信息,将上述异常信息按照联系信息发送出去,以供用户能够及时查看。In this implementation, after the execution subject determines that the storage is abnormal and generates abnormal information, it can send the above abnormal information according to the contact information submitted by the user, so that the user can check it in time.

在本实施例的一些可选的实现方式中,上述方法还可以进一步包括图2中未示出的以下步骤:响应于接收到用户发送的修改信息,根据修改信息,修改联系信息和/或第一预设阈值。In some optional implementations of this embodiment, the above method may further include the following steps not shown in FIG. 2: in response to receiving the modification information sent by the user, modify the contact information and/or the first a preset threshold.

本实现方式中,用户可以通过执行主体提供的端口,来向执行主体发送修改信息。上述修改信息可以用于修改用户的联系信息。在第一预设阈值为用户自行设置的情况下,用户还可以通过发送修改信息来修改第一预设阈值。执行主体在接收到上述修改信息后,可以对上述联系信息和/或第一预设阈值进行修改。In this implementation, the user can send modification information to the execution subject through the port provided by the execution subject. The above modification information may be used to modify the user's contact information. In the case that the first preset threshold is set by the user, the user may also modify the first preset threshold by sending modification information. After receiving the above-mentioned modification information, the execution subject may modify the above-mentioned contact information and/or the first preset threshold.

继续参见图3,图3是根据本实施例的用于输出信息的方法的应用场景的一个示意图。在图3的应用场景中,用户在申请1GB的存储空间后,可以通过手机中的页面中的“我要查询”来查询存储空间的使用量。服务器在可以根据用户的用户标识,来确定用户的存储空间为256GB,当前使用量为200GB。服务器确定使用率超出阈值,生成异常信息“您的存储空间为256GB,当前已使用200GB。存储空间的剩余量不足,请及时申请新的存储空间。”。用户可以根据上述异常信息,及时申请新的存储空间。Continue referring to FIG. 3 , which is a schematic diagram of an application scenario of the method for outputting information according to this embodiment. In the application scenario shown in FIG. 3 , after applying for 1GB of storage space, the user can query the usage of the storage space through "I want to query" on the page in the mobile phone. According to the user ID of the user, the server can determine that the user's storage space is 256GB, and the current usage is 200GB. The server determines that the usage rate exceeds the threshold, and generates an exception message "Your storage space is 256GB, and 200GB is currently used. The remaining storage space is insufficient. Please apply for new storage space in time.". Users can apply for new storage space in time based on the above abnormal information.

本申请的上述实施例提供的用于输出信息的方法,首先可以获取用户的用户标识。并根据用户标识,确定用户申请的存储空间信息以及用户标识对应的当前使用量信息。根据存储空间信息以及当前使用量信息,确定是否存储异常。如果存储异常,则生成并输出异常信息。本实施例的方法,可以实现对用户的存储容量的自动预警。In the method for outputting information provided by the above embodiments of the present application, first, the user ID of the user may be obtained. And according to the user identifier, determine the storage space information requested by the user and the current usage information corresponding to the user identifier. According to the storage space information and the current usage information, it is determined whether the storage is abnormal. If an exception is stored, an exception message is generated and output. The method of this embodiment can realize the automatic early warning of the user's storage capacity.

继续参见图4,其示出了根据本申请的用于输出信息的方法中用于判断存储异常的实施例的流程400。如图4所示,本实施例中,可以通过以下步骤来判断是否存储异常:Continue referring to FIG. 4 , which shows a flow 400 of an embodiment of judging storage exceptions in the method for outputting information according to the present application. As shown in Figure 4, in this embodiment, the following steps can be used to determine whether the storage is abnormal:

步骤401,根据存储空间信息以及当前使用量信息,确定存储空间的当前使用率。Step 401: Determine the current usage rate of the storage space according to the storage space information and the current usage information.

本实施例中,执行主体可以计算当前使用量与存储空间的比值,该比值为存储空间的当前使用率。In this embodiment, the execution subject may calculate the ratio of the current usage amount to the storage space, and the ratio is the current usage rate of the storage space.

步骤402,判断当前使用率是否大于第一预设阈值。Step 402, judging whether the current usage rate is greater than a first preset threshold.

如果大于,则确认存储异常。如果不大于,则继续执行步骤403。If greater than, confirm storage exception. If not, proceed to step 403 .

步骤403,获取历史使用量信息。Step 403, acquiring historical usage information.

本实施例中,执行主体可以从数据库中获取历史使用量信息。可以理解的是,执行主体在每次获取当前使用量信息并标注时间后,可以将标注后的当前使用量信息存储到数据库中,以供分析时作为历史使用量信息使用。In this embodiment, the execution subject can obtain historical usage information from the database. It can be understood that, after obtaining the current usage information and marking the time each time, the execution subject may store the marked current usage information in the database for use as historical usage information during analysis.

步骤404,根据历史使用量信息,确定存储空间的使用量变化率。Step 404: Determine the usage change rate of the storage space according to the historical usage information.

执行主体在获取到历史使用量信息后,可以做历史使用量与时间的变化曲线。然后可以计算上述变化曲线的斜率。该斜率可以作为存储空间的使用量变化率。After the execution subject obtains the historical usage information, it can make the change curve of the historical usage and time. The slope of the above variation curve can then be calculated. The slope can be used as the rate of change of the usage of the storage space.

步骤405,判断使用量变化率的绝对值是否大于第二预设阈值。Step 405, judging whether the absolute value of the change rate of the usage amount is greater than a second preset threshold.

如果大于,则说明存储空间的增加得过快或减少得过快,存储空间出现异常的可能性比较大。则此时,执行主体可以认定存储异常。If it is larger, it means that the storage space increases or decreases too fast, and the possibility of abnormal storage space is relatively high. Then at this time, the execution subject can determine that the storage is abnormal.

步骤406,根据历史使用量信息,确定存储空间的使用量变化曲线。Step 406: Determine the usage change curve of the storage space according to the historical usage information.

在获取到历史使用量信息后,执行主体还可以执行本步骤,即将历史使用量信息作为纵坐标,将时间作为横坐标,从而可以确定存储空间的使用量变化曲线。After obtaining the historical usage information, the execution subject can also perform this step, that is, the historical usage information is used as the vertical axis, and the time is used as the horizontal axis, so as to determine the usage change curve of the storage space.

步骤407,根据使用量变化曲线,确定存储空间的使用量变化周期。Step 407, according to the usage change curve, determine the usage change period of the storage space.

根据上述使用量变化曲线,执行主体可以分析上述曲线的变化规律,确定存储空间的使用量变化周期。对于某些用户来说,其对存储空间的使用量变化具有时间规律。例如,在一个项目开始时,存储空间的使用量逐渐增多。至项目结束时,存储空间的使用量达到最大值。在项目开始下一个项目前,将上一个项目的所有数据删除,这样下一个项目的数据可以存储在存储空间中。根据这样的规律,执行主体可以确定出存储空间的使用量变化周期。According to the above usage change curve, the executive body can analyze the change law of the above curve to determine the storage space usage change period. For some users, the usage of storage space varies with time. For example, at the beginning of a project, storage space usage gradually increases. By the end of the project, storage space usage has reached the maximum. Before the project starts the next project, delete all the data of the previous project, so that the data of the next project can be stored in the storage space. According to such rules, the execution subject can determine the period of change in the usage of the storage space.

步骤408,判断当前使用量信息所处周期的使用量变化曲线与使用量变化周期内的使用量变化曲线是否相符。In step 408, it is judged whether the usage change curve of the period in which the current usage information is located is consistent with the usage change curve within the usage change period.

在确定出使用量变化周期后,执行主体可以将上述使用量变化曲线按照使用量变化周期,划分为多段使用量变化子曲线。然后,将当前使用量信息所处的周期的使用量变化子曲线是否与其它使用量变化周期内的使用量变化子曲线相符。如果不相符,则确定存储异常。此处的相符,并不是指当前使用量与其它周期内的某一个历史使用量相同,而是指当前使用量所处周期内的使用量变化子曲线的变化趋势与其它使用量变化周期内的使用量变化子曲线的变化趋势相同,例如,都为缓慢增长。After the usage change cycle is determined, the executive body may divide the above usage change curve into multiple usage change sub-curves according to the usage change cycle. Then, it is determined whether the usage change sub-curve of the cycle where the current usage information is in is consistent with the usage change sub-curve in other usage change cycles. If it does not match, it is determined that the storage is abnormal. The coincidence here does not mean that the current usage is the same as a certain historical usage in other cycles, but that the change trend of the usage change sub-curve in the current usage cycle is the same as that in other usage change cycles. The change trends of the usage change sub-curves are the same, for example, they all show slow growth.

步骤409,响应于确定存储异常,生成以及输出异常信息。Step 409, generating and outputting exception information in response to determining that the storage is abnormal.

本申请的上述实施例提供的用于输出信息的方法,可以从多个方面分析用户的存储空间是否发生存储异常,从而能够实现多方面预警。The method for outputting information provided by the above-mentioned embodiments of the present application can analyze whether storage abnormality occurs in the user's storage space from multiple aspects, so as to realize multi-faceted early warning.

进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于输出信息的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 5 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for outputting information, which corresponds to the method embodiment shown in FIG. 2 , the The device can be specifically applied to various electronic devices.

如图5所示,本实施例的用于输出信息的装置500包括:获取单元501、确定单元502、判断单元503以及输出单元504。As shown in FIG. 5 , the apparatus 500 for outputting information in this embodiment includes: an acquiring unit 501 , a determining unit 502 , a judging unit 503 and an output unit 504 .

获取单元501,被配置成获取用户的用户标识。The acquiring unit 501 is configured to acquire a user identifier of a user.

确定单元502,被配置成根据用户标识,确定用户申请的存储空间信息以及用户标识对应的当前使用量信息。The determining unit 502 is configured to determine the storage space information requested by the user and the current usage information corresponding to the user identifier according to the user identifier.

判断单元503,被配置成根据存储空间信息以及当前使用量信息,确定是否存储异常。The judging unit 503 is configured to determine whether the storage is abnormal according to the storage space information and the current usage information.

输出单元504,被配置成响应于确定存储异常,生成以及输出异常信息。The output unit 504 is configured to generate and output exception information in response to determining that the storage is abnormal.

在本实施例的一些可选的实现方式中,判断单元503可以进一步被配置成:根据存储空间信息以及当前使用量信息,确定存储空间的当前使用率;响应于确定当前使用率大于第一预设阈值,确定存储异常。In some optional implementations of this embodiment, the judging unit 503 may be further configured to: determine the current usage rate of the storage space according to the storage space information and the current usage information; Set a threshold to determine storage exceptions.

在本实施例的一些可选的实现方式中,判断单元503可以进一步被配置成:响应于确定当前使用率小于或等于第一预设阈值,获取历史使用量信息;根据历史使用量信息,确定存储空间的使用量变化率;响应于确定使用量变化率的绝对值大于第二预设阈值,确定存储异常。In some optional implementations of this embodiment, the judging unit 503 may be further configured to: acquire historical usage information in response to determining that the current usage rate is less than or equal to a first preset threshold; according to the historical usage information, determine The usage change rate of the storage space; in response to determining that the absolute value of the usage change rate is greater than a second preset threshold, it is determined that the storage is abnormal.

在本实施例的一些可选的实现方式中,判断单元503可以进一步被配置成:根据历史使用量信息,确定存储空间的使用量变化曲线;根据使用量变化曲线,确定存储空间的使用量变化周期;响应于确定当前使用量信息所处周期的使用量变化曲线与使用量变化周期内的使用量变化曲线不相符,确定存储异常。In some optional implementation manners of this embodiment, the judging unit 503 may be further configured to: determine the usage change curve of the storage space according to the historical usage information; determine the usage change curve of the storage space according to the usage change curve Period: in response to determining that the usage variation curve of the period where the current usage information is located does not match the usage variation curve within the usage variation period, determining that the storage is abnormal.

在本实施例的一些可选的实现方式中,上述装置还可以进一步包括图5中未示出的标注单元和存储单元。In some optional implementation manners of this embodiment, the foregoing apparatus may further include a labeling unit and a storage unit not shown in FIG. 5 .

标注单元,被配置成为所获取的当前使用量信息标注时间。The marking unit is configured to mark time for the acquired current usage information.

存储单元,被配置成存储标注后的当前使用量信息。The storage unit is configured to store the marked current usage information.

在本实施例的一些可选的实现方式中,输出单元504可以进一步被配置成:响应于确定存储异常,生成异常信息,以及根据用户提交的联系信息,输出异常信息。In some optional implementation manners of this embodiment, the output unit 504 may be further configured to: generate exception information in response to determining that the storage is abnormal, and output the exception information according to the contact information submitted by the user.

在本实施例的一些可选的实现方式中,所述装置500还可以进一步包括图5中未示出的修改单元,被配置成:响应于接收到用户发送的修改信息,根据修改信息,修改联系信息和/或第一预设阈值。In some optional implementations of this embodiment, the apparatus 500 may further include a modifying unit not shown in FIG. 5, configured to: in response to receiving the modification information sent by the user, according to the modification information, modify Contact information and/or a first preset threshold.

应当理解,用于输出信息的装置500中记载的单元501至单元504分别与参考图2中描述的方法中的各个步骤相对应。由此,上文针对用于输出信息的方法描述的操作和特征同样适用于装置500及其中包含的单元,在此不再赘述。It should be understood that the units 501 to 504 recorded in the apparatus 500 for outputting information respectively correspond to the steps in the method described with reference to FIG. 2 . Therefore, the operations and features described above for the method for outputting information are also applicable to the device 500 and the units contained therein, and will not be repeated here.

下面参考图6,其示出了适于用来实现本公开的实施例的电子设备(例如图1中的服务器)600的结构示意图。图6示出的服务器仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , it shows a schematic structural diagram of an electronic device (such as the server in FIG. 1 ) 600 suitable for implementing embodiments of the present disclosure. The server shown in FIG. 6 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.

如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, an electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may be randomly accessed according to a program stored in a read-only memory (ROM) 602 or loaded from a storage device 608. Various appropriate actions and processes are executed by programs in the memory (RAM) 603 . In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored. The processing device 601 , ROM 602 and RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .

通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图6中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 607 such as a computer; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 6 shows electronic device 600 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided. Each block shown in FIG. 6 may represent one device, or may represent multiple devices as required.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开的实施例的方法中限定的上述功能。需要说明的是,本公开的实施例所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 608 , or from ROM 602 . When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the embodiments of the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取用户的用户标识;根据用户标识,确定用户申请的存储空间信息以及用户标识对应的当前使用量信息;根据存储空间信息以及当前使用量信息,确定是否存储异常;响应于确定存储异常,生成以及输出异常信息。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the user ID of the user; determines the storage space information requested by the user according to the user ID; and The current usage information corresponding to the user identifier; according to the storage space information and the current usage information, determine whether the storage is abnormal; and generate and output abnormal information in response to determining that the storage is abnormal.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的实施例的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of embodiments of the present disclosure may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, Also included are conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (such as through an Internet Service Provider). Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取单元、确定单元、判断单元和输出单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取用户的用户标识的单元”。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor, for example, it may be described as: a processor includes an acquiring unit, a determining unit, a judging unit and an output unit. Wherein, the names of these units do not limit the unit itself under certain circumstances, for example, the obtaining unit may also be described as "a unit for obtaining the user ID of the user".

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the above-mentioned invention without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of technical features or equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features having similar functions disclosed in (but not limited to) the embodiments of the present disclosure.

Claims (16)

1. a kind of method for output information, comprising:
Obtain the user identifier of user;
According to the user identifier, determine that the storage space information of user's application and the user identifier are corresponding current Usage amount information;
According to the storage space information and the currently used amount information, it is determined whether storage is abnormal;
In response to determining that storage is abnormal, generation and output abnormality information.
It is described according to the storage space information and the currently used amount 2. according to the method described in claim 1, wherein Information, it is determined whether storage is abnormal, comprising:
According to the storage space information and the currently used amount information, the currently used rate of memory space is determined;
It is greater than the first preset threshold in response to the determination currently used rate, determines that storage is abnormal.
It is described according to the storage space information and the currently used amount 3. according to the method described in claim 2, wherein Information, it is determined whether storage is abnormal, comprising:
It is less than or equal to first preset threshold in response to the determination currently used rate, obtains history usage amount information;
According to the history usage amount information, the usage amount change rate of memory space is determined;
It is greater than the second preset threshold in response to the absolute value of the determination usage amount change rate, determines that storage is abnormal.
It is described according to the storage space information and the currently used amount 4. according to the method described in claim 3, wherein Information, it is determined whether storage is abnormal, comprising:
According to the history usage amount information, the usage amount change curve of memory space is determined;
According to the usage amount change curve, the usage amount period of change of memory space is determined;
In response in the usage amount change curve and usage amount period of change in period locating for the determination currently used amount information Usage amount change curve is not consistent, and determines that storage is abnormal.
5. according to the method described in claim 1, wherein, the method also includes:
For the acquired currently used amount information labeling time;
Currently used amount information after storage mark.
6. according to the method described in claim 2, wherein, described in response to determining that storage is abnormal, generation and output abnormality are believed Breath, comprising:
In response to determining that storage is abnormal, exception information, and the contact details submitted according to the user, output abnormality letter are generated Breath.
7. according to the method described in claim 6, wherein, the method also includes:
The modification information sent in response to receiving the user, according to the modification information, modify the contact details and/or First preset threshold.
8. a kind of device for output information, comprising:
Acquiring unit is configured to obtain the user identifier of user;
Determination unit is configured to determine the storage space information of user application and described according to the user identifier The corresponding currently used amount information of user identifier;
Judging unit is configured to according to the storage space information and the currently used amount information, it is determined whether storage It is abnormal;
Output unit is configured in response to determine that storage is abnormal, generation and output abnormality information.
9. device according to claim 8, wherein the judging unit is further configured to:
According to the storage space information and the currently used amount information, the currently used rate of memory space is determined;
It is greater than the first preset threshold in response to the determination currently used rate, determines that storage is abnormal.
10. device according to claim 9, wherein the judging unit is further configured to:
It is less than or equal to first preset threshold in response to the determination currently used rate, obtains history usage amount information;
According to the history usage amount information, the usage amount change rate of memory space is determined;
It is greater than the second preset threshold in response to the absolute value of the determination usage amount change rate, determines that storage is abnormal.
11. device according to claim 10, wherein the judging unit is further configured to:
According to the history usage amount information, the usage amount change curve of memory space is determined;
According to the usage amount change curve, the usage amount period of change of memory space is determined;
In response in the usage amount change curve and usage amount period of change in period locating for the determination currently used amount information Usage amount change curve is not consistent, and determines that storage is abnormal.
12. device according to claim 8, wherein described device further include:
Unit is marked, the acquired currently used amount information labeling time is configured to;
Storage unit, the currently used amount information after being configured to store mark.
13. device according to claim 9, wherein the output unit is further configured to:
In response to determining that storage is abnormal, exception information, and the contact details submitted according to the user, output abnormality letter are generated Breath.
14. device according to claim 13, wherein described device further includes modification unit, is configured to:
The modification information sent in response to receiving the user, according to the modification information, modify the contact details and/or First preset threshold.
15. a kind of server, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Method as described in any in claim 1-7.
CN201910680571.7A 2019-07-26 2019-07-26 Method and device for outputting information Pending CN110389880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910680571.7A CN110389880A (en) 2019-07-26 2019-07-26 Method and device for outputting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910680571.7A CN110389880A (en) 2019-07-26 2019-07-26 Method and device for outputting information

Publications (1)

Publication Number Publication Date
CN110389880A true CN110389880A (en) 2019-10-29

Family

ID=68287406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910680571.7A Pending CN110389880A (en) 2019-07-26 2019-07-26 Method and device for outputting information

Country Status (1)

Country Link
CN (1) CN110389880A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080174426A1 (en) * 2007-01-24 2008-07-24 Network Appliance, Inc. Monitoring usage rate patterns in storage resources
CN101441984A (en) * 2007-11-22 2009-05-27 北京京东方光电科技有限公司 Method and system for monitoring dry method etching process
US9003019B1 (en) * 2011-09-30 2015-04-07 Emc Corporation Methods and systems for utilization tracking and notification of cloud resources
CN105426254A (en) * 2015-12-24 2016-03-23 北京轻元科技有限公司 A hierarchical cloud computing resource customization method and system
CN108199920A (en) * 2017-12-29 2018-06-22 北京星河星云信息技术有限公司 Monitor the method and server of the performance of the server in cloud platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080174426A1 (en) * 2007-01-24 2008-07-24 Network Appliance, Inc. Monitoring usage rate patterns in storage resources
CN101441984A (en) * 2007-11-22 2009-05-27 北京京东方光电科技有限公司 Method and system for monitoring dry method etching process
US9003019B1 (en) * 2011-09-30 2015-04-07 Emc Corporation Methods and systems for utilization tracking and notification of cloud resources
CN105426254A (en) * 2015-12-24 2016-03-23 北京轻元科技有限公司 A hierarchical cloud computing resource customization method and system
CN108199920A (en) * 2017-12-29 2018-06-22 北京星河星云信息技术有限公司 Monitor the method and server of the performance of the server in cloud platform

Similar Documents

Publication Publication Date Title
CN111198859B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110445632B (en) Method and device for preventing client from crashing
CN105071976A (en) Data transmission method and device
CN109933508B (en) Method and device for sending information
WO2020216204A1 (en) Information acquisition method and apparatus
CN109949806B (en) Information interaction method and device
CN111459364A (en) Icon updating method and device and electronic equipment
CN112083945A (en) NPM installation package update prompt method, device, electronic device and storage medium
CN112307393A (en) Information issuing method and device and electronic equipment
CN110084298A (en) Method and device for detection image similarity
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN111240952B (en) Log collection method and device
CN110413920A (en) Method and device for generating pages
CN114253520B (en) Interface code generation method and device
KR20210113963A (en) Method and appartus for obtaining information
CN110187987B (en) Method and apparatus for processing requests
CN105743890B (en) Authority information generation method and device
CN111274104B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110716699A (en) Method and apparatus for writing data
CN112311842A (en) Method and apparatus for information interaction
CN109840073B (en) Method and device for realizing business process
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN106933449B (en) Icon processing method and device
CN110389880A (en) Method and device for outputting information
CN116775977A (en) Information query method, device, equipment and 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