Service control method and device, computer equipment, storage medium and program product
By acquiring terminal resource status information, selecting target resource packages, and combining them with bound or alternative resource packages for management, the problems of rule redundancy and neglect of correlation in CDN resource management are solved. This enables refined service management in complex application scenarios, improves terminal experience, and reduces maintenance difficulty.
Patent Information
- Application Number
- CN202511764429.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-27
- Publication Date
- 2026-02-27
AI Technical Summary
Existing technologies in CDN resource management suffer from redundant control rules and ignore resource relationships, making them unsuitable for complex application scenarios, impacting user experience and increasing development and maintenance difficulty.
By obtaining the terminal's resource status information, selecting the target resource package, and combining it with the bound or alternative resource packages based on its usage and subscription information, fine-grained management can be achieved, avoiding service interruptions caused by disabling a single resource package. This is applicable to any type of resource package.
It enables refined service management in complex application scenarios, improves the user experience of terminals, reduces development and maintenance difficulty, and reduces rule redundancy.
Smart Images

Figure CN121585850A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a service management and control method and device, computer equipment, a storage medium and a program product. BACKGROUND
[0002] With the development of CDN (Content Delivery Network) technology, various types of CDN resources have emerged in succession. Users can subscribe to various CDN resources to enjoy the services provided by the corresponding resources.
[0003] To ensure user service experience, the corresponding services can be disabled, alarmed, and managed and controlled according to the resource subscription state and use state of the user. Related technologies customize a set of independent management and control rules for each resource to manage and control services.
[0004] However, the method of the related technology is prone to cause redundant management and control rules, and ignores the association between resources, making it difficult to apply to complex application scenarios. SUMMARY
[0005] Therefore, it is necessary to provide a service management and control method, device, computer equipment, storage medium and program product that can be applied to complex application scenarios.
[0006] In a first aspect, the present application provides a service management and control method, comprising:
[0007] obtaining resource state information of a terminal; wherein the resource state information comprises use information and attribute information of each resource package that has been subscribed to;
[0008] selecting a target resource package from each resource package according to the resource state information; wherein the use state of each resource package that has the same attribute information as the target resource package reaches a disabled state, or there is no resource package in each resource package that has the same attribute information as the target resource package;
[0009] determining whether the target resource package meets a resource warning condition according to the use information of the target resource package; and
[0010] In one of the embodiments, the resource warning condition includes a first warning condition, and the first warning condition represents that the usage state of the target resource package reaches a disabled state; in a case where the target resource package satisfies the first warning condition, the target service provided by the target resource package is controlled according to the resource state information and the subscription information of the target resource package, including: in a case where it is determined according to the subscription information of the target resource package that the target resource package is associated with a binding resource and the binding resource does not reach the first warning condition, the binding resource is used to replace the target resource package to provide the target service; wherein the binding resource is a resource that has been subscribed by the terminal and is bound to the target resource package; in a case where it is determined according to the subscription information of the target resource package that the target resource package is not associated with a binding resource, the target service provided by the target resource package is controlled according to the resource state information.
[0011] In one of the embodiments, the target service includes a first service corresponding to the target area and a second service corresponding to the target function; the target service provided by the target resource package is controlled according to the resource state information, including: the existence of a replacement resource package in each resource package is determined according to the resource state information of each resource package; wherein the replacement resource package is used to provide a replacement service; the replacement service includes the second service and a third service corresponding to an area other than the target area; in a case where the existence is that there is at least one replacement resource package, the target service provided by the target resource package is controlled according to the usage information of the replacement resource package; in a case where the existence is that there is no replacement resource package, the second service is disabled.
[0012] In one of the embodiments, the target service provided by the target resource package is controlled according to the usage information of the replacement resource package, including: in a case where it is determined according to the usage information of the replacement resource package that the replacement resource package does not satisfy the first warning condition, the target service is disabled, and the accessible area of the terminal is changed from the target area to another area corresponding to the replacement resource package, so that the replacement resource package provides the replacement service; in a case where it is determined according to the usage information of the replacement resource package that the replacement resource package satisfies the first warning condition, the second service is disabled.
[0013] In one of the embodiments, in a case where the number of the replacement resource packages that do not satisfy the first warning condition is at least two, the accessible area of the terminal is changed from the target area to another area corresponding to the replacement resource package, including: according to the usage priority of each replacement resource package, a replacement resource package with the highest usage priority is selected from each replacement resource package, and the accessible area of the terminal is changed from the target area to another area corresponding to the selected replacement resource package.
[0014] In one of the embodiments, the resource warning condition comprises a second warning condition, and the second warning condition represents that the usage state of the target resource package reaches a warning state and does not reach a disable state; in a case where the target resource package satisfies the second warning condition, the target service provided by the target resource package is controlled according to the resource state information and the subscription information of the target resource package, including: determining the warning information corresponding to the target service according to the resource state information and the subscription information of the target resource package; maintaining the target service, and outputting the warning information.
[0015] In a second aspect, the present application further provides a service control device, comprising:
[0016] an acquisition module configured to acquire resource state information of a terminal; wherein the resource state information comprises usage information and attribute information of each resource package that has been subscribed;
[0017] a selection module configured to select a target resource package from each resource package according to the resource state information; wherein a usage state of a resource package with the same attribute information as the target resource package reaches a disable state, or there is no resource package with the same attribute information as the target resource package in each resource package;
[0018] a control module configured to, in a case where the target resource package satisfies a resource warning condition according to the usage information of the target resource package, control a target service provided by the target resource package according to the resource state information and the subscription information of the target resource package.
[0019] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0020] acquiring resource state information of a terminal; wherein the resource state information comprises usage information and attribute information of each resource package that has been subscribed;
[0021] selecting a target resource package from each resource package according to the resource state information; wherein a usage state of a resource package with the same attribute information as the target resource package reaches a disable state, or there is no resource package with the same attribute information as the target resource package in each resource package;
[0022] in a case where the target resource package satisfies a resource warning condition according to the usage information of the target resource package, controlling a target service provided by the target resource package according to the resource state information and the subscription information of the target resource package.
[0023] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0024] Obtain the terminal's resource status information; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package;
[0025] Based on the resource status information, select the target resource package from each resource package; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package.
[0026] Based on the usage information of the target resource package, and if it is determined that the target resource package meets the resource early warning conditions, the target services that the target resource package can provide are controlled based on the resource status information and the subscription information of the target resource package.
[0027] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0028] Obtain the terminal's resource status information; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package;
[0029] Based on the resource status information, select the target resource package from each resource package; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package.
[0030] Based on the usage information of the target resource package, and if it is determined that the target resource package meets the resource early warning conditions, the target services that the target resource package can provide are controlled based on the resource status information and the subscription information of the target resource package.
[0031] The aforementioned service management methods, devices, computer equipment, storage media, and program products acquire usage and attribute information of each resource package subscribed to by the terminal. They then select a target resource package from the resource packages whose usage status matches the target resource package's attribute information and is either disabled or does not exist. If the target resource package meets resource warning conditions based on its usage information, the system manages the target service provided by the target resource package by combining the target resource package's subscription information with the usage and attribute information of each resource package subscribed to by the terminal. Because the management of the target service provided by each target resource package considers both the target resource package's usage information and the usage and attribute information of each resource package subscribed to by the terminal, it overcomes the technical problem of related technologies that directly disable the service provided by a single resource package after it reaches a disabled state, thus affecting the user experience. Furthermore, the management process does not limit the specific type of target resource package, making it applicable to any type of target resource package. This solves the problem of rule redundancy caused by customizing management rules for different types of resource packages and reduces development and maintenance difficulty. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a diagram illustrating the application environment of a service management method in one embodiment.
[0034] Figure 2 This is a flowchart illustrating a service management method in one embodiment;
[0035] Figure 3 This is a flowchart illustrating the service control method in another embodiment;
[0036] Figure 4 This is a flowchart illustrating the service control method in yet another embodiment;
[0037] Figure 5 This is a flowchart illustrating the service control method in another embodiment;
[0038] Figure 6 This is a structural block diagram of a service management device in one embodiment;
[0039] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0041] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0042] Due to the different services corresponding to each resource, the relevant technologies configure independent control rule codes for each resource to perform control over the corresponding service according to the corresponding control rules. However, for different CDN resources, there are certain relationships between the resources subscribed by the terminal. That is to say, in a certain scenario, after resource A is exhausted or expires, the terminal can still use resource B, which is related to resource A, to enjoy the service. However, the control of the relevant technologies only applies to the resource itself and does not take into account the information of other resources subscribed by the terminal.
[0043] Furthermore, a large amount of code increases the difficulty and cost of system development and maintenance. The presence of identical or similar logic in the management rules for different resources also leads to code redundancy. Additionally, the need for manual intervention to add new management rules for new resources results in delays in service management for these new resources.
[0044] To address the aforementioned issues, this application provides a service management method.
[0045] The service management method provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located on the cloud or other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0046] In one exemplary embodiment, such as Figure 2 As shown, a service management method is provided, which can be applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps S201 to S203. Among them:
[0047] S201, Obtain the terminal's resource status information.
[0048] For example, resource status information may include usage information and attribute information for each subscribed resource package. Here, a resource package represents a limited resource with a fixed usage quota subscribed by the terminal. Usage information reflects the usage status of the resource package; attribute information can serve as an identifier to distinguish different resource packages and can reflect at least one dimension of the resource package's characteristics, such as functional characteristics, regional characteristics, and subscription cycle characteristics.
[0049] In some embodiments, resource status information may further include usage information and attribute information of subscribed on-demand resources. On-demand resources are resources that are billed in real time based on terminal usage.
[0050] Taking a resource package as an example, usage information can include the used amount, remaining amount, or the ratio between the used amount and the total used amount, or the ratio between the remaining amount and the total used amount. Usage information can also include the validity period status and activation / deactivation status of the resource package. The validity period status reflects whether the resource package is within its validity period, and the activation / deactivation status reflects whether the resource package has been actively deactivated by the terminal.
[0051] Taking on-demand resources as an example, the usage information can be the subscription status of the on-demand resources, such as subscription bound to the target resource package, or not subscribed, etc.
[0052] For example, resource package a is a monthly video acceleration resource package for location A. The attribute information of resource package a may include: functional feature - video acceleration, regional feature - location A, and subscription period feature - monthly subscription.
[0053] In one embodiment, after obtaining the initial resource status information of the terminal, the initial resource status can be preprocessed to obtain the terminal's resource status information.
[0054] For example, the process of preprocessing the initial resource status information may include removing abnormal and duplicate information from the initial resource status information.
[0055] S202, Select the target resource package from the resource packages based on the resource status information.
[0056] Optionally, the resource packages in each resource package that have the same attribute information as the target resource package are in a disabled state, or there are no resource packages in each resource package that have the same attribute information as the target resource package.
[0057] That is, for each resource package, if there is no resource package with the same attribute information as the resource package among the resource packages already subscribed to by the terminal, the resource package can be identified as the target resource package; or, if there is a resource package with the same attribute information as the resource package among the resource packages already subscribed to by the terminal (identical resource package), but the usage status of these identical resource packages has reached the disabled state, then the resource package can be identified as the target resource package.
[0058] For example, a disabled status could indicate that the remaining usable quota of the resource package is 0, that the resource package has exceeded its usable period, or that the service of the resource package has been suspended. The resource package can be suspended based on a disable request initiated by the terminal.
[0059] For example, if a terminal simultaneously subscribes to three targeted traffic resource packages for location A, and at a certain moment, based on the obtained resource status information, it is known that the usage information of two targeted traffic resource packages for location A is prohibited, while the other targeted traffic resource package for location A still has 70% of its remaining quota, then the targeted traffic resource package for location A can be identified as the target resource package.
[0060] S203, based on the usage information of the target resource package, if it is determined that the target resource package meets the resource early warning conditions, control the target services that the target resource package can provide based on the resource status information and the subscription information of the target resource package.
[0061] For example, resource warning conditions may include at least one of the following: the remaining quota of the target resource package is less than a preset first quota threshold, the usage quota of the target resource package exceeds a preset second quota threshold, the available period of the target resource package is less than a preset duration, the target resource package is actively disabled by the terminal, or the terminal's billing is abnormal.
[0062] In some embodiments, the ordering information for the target resource package may include information about the bound resources that are associated with the target resource package. This information may include usage information and attribute information, and the type of bound resource may be a resource package, an on-demand resource, or a value-added resource.
[0063] In some embodiments, the target service corresponds to the attribute information of the target resource package. For example, if the target resource package b is a single-day security acceleration resource package for location C, then the target service that the target resource package b can provide is single-day security acceleration for location C, and the attribute information of the target resource package b includes: subscription cycle characteristic - single day, regional characteristic - location C, and functional characteristic - security acceleration.
[0064] For example, controlling a target service may include issuing control work orders or other instructions to perform corresponding operations on the controlled object based on the control work orders or other instructions. The instructions shall include at least a terminal identifier, a target resource package identifier, a target service identifier, a controlled object identifier, and the control operation to be performed.
[0065] For example, Company XX's management system website has the domain name www.xx.com. To ensure that employees in all branch offices can quickly access the website and its information, they have subscribed to a resource package and on-demand resources with CDN acceleration as the target service. If all resources are disabled, employees in each branch office will no longer enjoy the CDN acceleration service; that is, they will not be able to enjoy accelerated access to the management system website. In this case, a control ticket is issued to disable CDN acceleration for the domain name www.xx.com. The control ticket will include the domain name www.xx.com as the control object identifier, CDN acceleration as the target service identifier, and the control operation to be performed is disabling.
[0066] In another embodiment, the control operation can also be to update the accessible areas of the terminal, etc.
[0067] The aforementioned service management method obtains the usage and attribute information of each resource package subscribed to by the terminal. It then selects a target resource package from the resource packages whose usage status matches the target resource package's attribute information and is either disabled or does not exist. If the target resource package meets the resource warning conditions based on its usage information, the method combines the target resource package's subscription information with the usage and attribute information of each resource package subscribed to by the terminal to manage the target service provided by that target resource package. Because the management of the target service provided by each target resource package considers both the target resource package's usage information and the usage and attribute information of each resource package subscribed to by the terminal, it overcomes the technical problem of related technologies that directly disable the services provided by a single resource package after it reaches a disabled state, thus affecting the user experience. Furthermore, the method does not limit the specific type of target resource package during the management process, making it applicable to any type of target resource package. This solves the problem of rule redundancy caused by customizing management rules for different types of resource packages and reduces development and maintenance difficulty.
[0068] For example, the warning conditions may include a first warning condition, which indicates that the usage status of the target resource package has reached a disabled state. If the target resource package meets the first warning condition, in order to ensure the continuity of service enjoyed by the terminal, the target service can be controlled in conjunction with the subscription information of the target resource package.
[0069] In one exemplary embodiment, such as Figure 3 As shown, S203 includes S301 to S303. Wherein:
[0070] S301, Based on the order information of the target resource package, determine the association status of the target resource package. If the association status is associated with bound resources, proceed to S302; if the association status is not associated with bound resources, proceed to S303.
[0071] In one embodiment, the association status is used to characterize whether the resources ordered by the terminal include bound resources that are bound to the target resource package. That is, the bound resources can be resources that the terminal has ordered and that are bound to the target resource package. The bound resources can provide the same target service as the target resource package, or they can provide services other than the target service.
[0072] For example, if the target resource package f can provide the target service of video acceleration in location A, and the terminal has also subscribed to on-demand video acceleration resources in location A that are bound to the target resource package, then the association of the target resource package can be determined as an associated bound resource, namely, on-demand video acceleration resources in location A.
[0073] S302, if the bound resource does not meet the first warning condition, the bound resource is used to replace the target resource package to provide the target service.
[0074] If the bound resource can provide the same target service as the target resource package and the bound resource does not meet the first warning condition, the bound resource can be used to provide the target service in place of the target resource package after the target resource package is disabled.
[0075] For example, the target service that target resource package f can provide is video acceleration in location A, and the bound resource of target resource package f is on-demand video acceleration resource in location A. That is, target resource package f and its bound resource can provide the same target service - video acceleration in location A. Therefore, after the usage status of target resource package f reaches the disabled state, on-demand video acceleration resource in location A can be used to replace target resource package f to provide video acceleration service in location A to the terminal.
[0076] In this case, the terminal's use of the target service will not be interrupted by the disabling of the target resource package. The replacement of resources is an automatic and imperceptible management process for the terminal.
[0077] S303, based on resource status information, controls the target services that the target resource package can provide.
[0078] If, based on the ordering information of the target resource package, it is determined that the target resource package is not associated with any bound resources, it means that the terminal has not ordered any resources that can replace the target resource package to continue providing the target service. In this case, the target service can be controlled based on the resource status information.
[0079] After the target resource package meets the first warning condition, the association of the target resource package is determined by combining the terminal's order information. Thus, when it is determined that the target resource package is associated with a bound resource, the bound resource can be used to replace the target resource package to continue providing the target service to the terminal, achieving more refined service control. This avoids service interruption caused by disabling a single target resource package, thereby improving the terminal's user experience.
[0080] Optionally, the target service includes a first service corresponding to the target region and a second service corresponding to the target function. Taking the target resource package f in the above embodiment as an example, the target resource package f can provide a first service corresponding to location A and a second service corresponding to video acceleration. If it is determined that the target resource package is not associated with any bound resources, the multi-dimensional services in the target region can be managed separately based on the attribute information of the target resource package.
[0081] Based on the above embodiments, in an exemplary embodiment, such as Figure 4 As shown, S303 includes S401 to S403. Wherein:
[0082] S401, Based on the resource status information of each resource package, determine the existence of alternative resource packages in each resource package. If at least one alternative resource package exists, execute S402 as follows; otherwise, if no alternative resource package exists, execute S403 as follows.
[0083] In one embodiment, an alternative resource package represents other resource packages that the terminal has subscribed to and that can provide alternative services. These alternative services include services in certain dimensions of the target service and services that differ from other dimensions of the target service.
[0084] For example, alternative services may include a second service and a third service corresponding to regions other than the target region.
[0085] For example, the video acceleration resource package in location B can be a substitute resource package for the target resource package f in the above embodiments, which can provide the second service in the target service but cannot provide the first service in the target service.
[0086] In one embodiment, the presence of alternative resource packs is used to reflect whether alternative resource packs are included in the resource packs ordered by the terminal.
[0087] S402, based on the usage information of the alternative resource package, control the target services that the target resource package can provide.
[0088] Optionally, if there is at least one alternative resource package among the resource packages ordered by the terminal, control actions such as disabling or changing the target service provided by the target resource package can be performed based on the usage information of the alternative resource package.
[0089] For example, if all alternative resource packages are disabled, it means that there are no available alternative resource packages among the resource packages ordered by the terminal, and the target service is directly disabled.
[0090] For example, if at least one of the alternative resource packages is not in a disabled state, it means that there is an available alternative resource package among the resource packages ordered by the terminal. The accessible region of the terminal can be changed according to the region corresponding to the alternative resource package, and the terminal can use the alternative resource package to enjoy the second service in the target service.
[0091] S403, disable the second service.
[0092] Optionally, if no alternative resource package is available among the resource packages ordered by the terminal, the second service can be directly disabled. For example, a control work order corresponding to the disabled function can be issued in this case.
[0093] The above solution does not directly disable the target service when it is determined that the target resource package is not associated with any bound resources. Instead, it selects alternative resource packages that can provide alternative services from the resource packages ordered by the terminal. Thus, when the terminal has ordered at least one alternative resource package, it uses each alternative resource package to control the target service that the target resource package can provide, thereby improving the reasonable utilization rate of the resource packages ordered by the terminal.
[0094] However, the usage information of the existing alternative resource packages differs, and the specific control actions performed on the target service also differ.
[0095] In one exemplary embodiment, such as Figure 5 As shown, S403 includes S501 to S503. Wherein:
[0096] S501, Based on the usage information of the alternative resource package, determine whether the alternative resource package meets the first warning condition. If the alternative resource package does not meet the first warning condition, execute S502 as follows; otherwise, if the alternative resource package meets the first warning condition, execute S503 as follows.
[0097] Optionally, if at least one alternative resource package exists, the usage status of each alternative resource package can be determined based on its usage information to determine whether the usage status of each alternative resource package has reached the disabled state.
[0098] For example, when there are multiple alternative resource packages, it is necessary to determine the usage status of each alternative resource package in turn. If at least one of the multiple alternative resource packages is not in a disabled state, the following S502 can be executed. However, if the usage status of multiple alternative resource packages is disabled, the following S503 can be executed directly.
[0099] S502, disable the target service and change the terminal's accessible area from the target area to another area corresponding to the alternative resource package, so that the alternative resource package provides alternative services.
[0100] Optionally, if at least one alternative resource package is not in a disabled state, a control work order for disabling the service is first issued to disable the target service, and then a control work order for changing the region is issued to change the service region of the terminal, so that the terminal can use the alternative resource package to enjoy the second service and the third service corresponding to the service region of the alternative resource package.
[0101] For example, the video acceleration resource package in region B, as a substitute resource package for the target resource package f, can provide a third service corresponding to the region B. If the substitute resource package fails to meet the first warning condition, the terminal's accessible region can be changed from region A to region B, thereby continuing to provide the corresponding substitute service to the terminal using the substitute resource package.
[0102] S503 disables the second service.
[0103] If all alternative resource packages meet the first warning condition, indicating that there are no available alternative resource packages among the resource packages ordered by the terminal, a service disabling control work order can be issued to directly disable the second service.
[0104] Based on the existence of alternative resource packages, the above solution determines the actual availability of each alternative resource package based on its usage information. This allows the solution to disable the target service and change the terminal's accessible area from the target area to another area corresponding to the alternative resource package when an available alternative resource package is available. This enables the alternative resource package to provide alternative services, thereby allowing for more refined control over the target services that the target resource package can provide.
[0105] In one embodiment, if at least two alternative resource packages fail to meet the first warning condition, changing the terminal's accessible area from the target area to another area corresponding to the alternative resource package may include: selecting the alternative resource package with the highest usage priority from among the alternative resource packages according to the usage priority of each alternative resource package, and changing the terminal's accessible area from the target area to another area corresponding to the selected alternative resource package.
[0106] For example, the priority of using alternative resource packages can be automatically configured after the terminal orders them, and can be related to the distance between the region corresponding to the alternative resource package and the terminal, the load of the region corresponding to the alternative resource package, implementation costs, etc.
[0107] Furthermore, if the highest-priority alternative resource package becomes disabled during use, other available alternative resource packages can be selected in order of their usage priority, and the accessible areas of the terminal can be changed accordingly.
[0108] The above solution prioritizes the use of the highest priority alternative resource packages based on their usage priority, thus avoiding service lag and response delays caused by randomly selecting available alternative resource packages. This improves the utilization rate of alternative resource packages while ensuring the user experience of the terminal service.
[0109] Based on the above embodiments, in one embodiment, the resource warning condition further includes a second warning condition, which indicates that the usage status of the target resource package has reached a warning state but has not reached a disabled state. The warning state is related to the actual situation of the terminal, the total usage quota of the resource package, etc., and is not limited in this application. For example, the warning state can be that the remaining quota ratio is 30%, and the remaining quota ratio of the target resource package is 30%, which means that the usage status of the target resource package has reached a warning state but has not reached a disabled state.
[0110] For example, when the target resource package meets the second warning condition, the target service that the target resource package can provide can be controlled based on the resource status information and the ordering information of the target resource package. This may include: determining the warning information corresponding to the target service based on the resource status information and the ordering information of the target resource package; maintaining the target service and outputting the warning information.
[0111] For example, determining the warning information corresponding to the target service based on the resource status information and the order information of the target resource package may include: if, based on the order information of the target resource package, it is determined that the target resource package is associated with a bound resource and the bound resource has not met the first warning condition, the warning information is determined to be that the bound resource will be used to replace the target resource package to provide the target service after the target resource package meets the first warning condition.
[0112] Specifically, based on the ordering information of the target resource package, if it is determined that the target resource package is not associated with any resources, the existence of alternative resource packages in each resource package is determined based on the resource status information of each resource package. If the existence status is that there are no alternative resource packages, the warning information is determined to disable the second service after the target resource package meets the first warning condition.
[0113] If, based on the ordering information of the target resource package, it is determined that the target resource package is not associated with any resources, the existence of alternative resource packages in each resource package is determined based on the resource status information of each resource package. If at least one alternative resource package exists and the alternative resource package does not meet the first warning condition, the warning information is determined to disable the target service after the target resource package meets the first warning condition, and to change the accessible area of the terminal from the target area to another area corresponding to the alternative resource package, so that the alternative resource package can provide alternative services.
[0114] If at least one alternative resource package exists, and based on the usage information of the alternative resource package, it is determined that the alternative resource package meets the first warning condition, then the warning information is determined to be that the second service will be disabled after the target resource package meets the first warning condition.
[0115] If there are at least two alternative resource packages that do not meet the first warning condition, the alternative resource package with the highest usage priority is selected from the alternative resource packages according to the usage priority of each alternative resource package, and the warning information is determined to be that after the target resource package meets the first warning condition, the accessible area of the terminal will be changed from the target area to another area corresponding to the selected alternative resource package, so that the alternative resource package can provide alternative services.
[0116] The control strategy corresponding to the second warning condition and the control strategy corresponding to the first warning condition have the same or similar logical rules. However, the control strategy corresponding to the first warning condition is based on the premise that the target resource package is in a disabled state. The control strategy corresponding to the second warning condition outputs alarm information corresponding to the actual control action based on the control logic of the control strategy corresponding to the first warning condition, and executes the control action corresponding to the alarm information after the target resource package meets the first warning condition.
[0117] For example, the terminal's display unit can display: "The remaining quota of the current target resource package has reached 30% and is about to be used up. Please use it reasonably. After the current target resource package is used up, if you continue to enjoy the target service provided by the target resource package, the target service will be provided using the bound resources that have been ordered, and billing will be based on usage."
[0118] In some embodiments, the database of the system used to execute the service management method is configured with a management rule table corresponding to the service management method described above.
[0119] For example, in order to improve the scalability and maintainability of the above service management method and reduce rule redundancy, the management rule table may include a first rule table, a second rule table and a third rule table with mapping relationships respectively. Each table includes different specific fields, which can reduce rule redundancy caused by the same fields. Moreover, for newly ordered resources, new fields can be added on the basis of existing fields, and existing fields do not need to be added again.
[0120] The first rule table includes all control actions and alarm messages that may be executed and output by various resource packages and other types of resources when the first and second warning conditions are met, respectively. The second rule table includes all control rules corresponding to all control actions and alarm messages that may be executed by each resource. The third rule table includes the instruction information corresponding to each control action and alarm message.
[0121] In some embodiments, the number of rule tables may be more than three, but this application is not limited thereto.
[0122] Based on the above embodiments, in some embodiments, the service management method may further include:
[0123] When a terminal uses the subscribed resource packages and on-demand resources to enjoy corresponding services, the terminal defaults to obtaining the required data from the nearest edge node. If the terminal cannot obtain the required data from the current edge node, it can send a back-to-origin request corresponding to the current edge node to select a nearby edge node. By evaluating the load, implementation cost, and latency of these edge nodes, an alternative edge node is determined, allowing the terminal to obtain data from the alternative edge node when enjoying the corresponding service. If no alternative edge node exists, the terminal selects the source node to obtain the required data.
[0124] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0125] Based on the same inventive concept, this application also provides a service management device for implementing the service management method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more service management device embodiments provided below can be found in the limitations of the service management method described above, and will not be repeated here.
[0126] In one exemplary embodiment, such as Figure 6 As shown, a service management device 600 is provided, including: an acquisition module 610, a selection module 620, and a management module 630, wherein:
[0127] The acquisition module 610 is used to acquire the resource status information of the terminal; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package;
[0128] The selection module 620 is used to select a target resource package from each resource package based on resource status information; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package.
[0129] The control module 630 is used to control the target services that the target resource package can provide, based on the target resource package's usage information and the target resource package's ordering information, after determining that the target resource package meets the resource early warning conditions.
[0130] In some embodiments, the resource warning conditions include a first warning condition, which indicates that the usage status of the target resource package has reached a disabled state; when the target resource package meets the first warning condition, the control module 630 includes a replacement submodule and a control submodule.
[0131] The replacement submodule is used to provide the target service by replacing the target resource package with the bound resource when the target resource package is associated with a bound resource based on the target resource package's subscription information and the bound resource does not meet the first warning condition; wherein, the bound resource is a resource that the terminal has subscribed to and is bound to the target resource package.
[0132] The control submodule is used to control the target services that the target resource package can provide, based on the resource status information, when it is determined that the target resource package is not associated with any resources according to the ordering information of the target resource package.
[0133] In some embodiments, the target service includes a first service corresponding to the target region and a second service corresponding to the target function, and the control submodule includes a determination unit, a control unit, and a disabling unit.
[0134] The determining unit is used to determine the existence of alternative resource packages in each resource package based on the resource status information of each resource package; wherein, the alternative resource packages are used to provide alternative services; the alternative services include a second service and a third service corresponding to other areas besides the target area.
[0135] The control unit is used to control the target services that the target resource package can provide, based on the usage information of the alternative resource package, when at least one alternative resource package exists.
[0136] The disable unit is used to disable the second service when there is no alternative resource package available.
[0137] In some embodiments, the control unit may include a change subunit and a disable subunit.
[0138] The modification subunit is used to disable the target service and change the accessible area of the terminal from the target area to another area corresponding to the alternative resource package when it is determined that the alternative resource package does not meet the first warning condition based on the usage information of the alternative resource package, so that the alternative resource package can provide alternative services.
[0139] The disable subunit is used to disable the second service if the alternative resource package meets the first warning condition based on the usage information of the alternative resource package.
[0140] In some embodiments, if there are at least two alternative resource packages that do not meet the first warning condition, the change subunit is further configured to select the alternative resource package with the highest usage priority from the alternative resource packages according to the usage priority of each alternative resource package, and change the accessible area of the terminal from the target area to another area corresponding to the selected alternative resource package.
[0141] In some embodiments, the resource warning conditions include a second warning condition, which indicates that the usage status of the target resource package has reached the warning state but has not reached the disabled state; when the target resource package meets the second warning condition, the control module 630 further includes a determination submodule and an output submodule.
[0142] The determination submodule is used to determine the warning information corresponding to the target service based on the resource status information and the ordering information of the target resource package.
[0143] The output submodule is used to maintain the target service and output early warning information.
[0144] Each module in the aforementioned service management device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can invoke and execute the corresponding operations of each module.
[0145] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores resource status information. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a service management method.
[0146] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0147] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0148] Obtain the terminal's resource status information; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package;
[0149] Based on the resource status information, select the target resource package from each resource package; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package.
[0150] Based on the usage information of the target resource package, and if it is determined that the target resource package meets the resource early warning conditions, the target services that the target resource package can provide are controlled based on the resource status information and the subscription information of the target resource package.
[0151] In one embodiment, when the processor executes the computer program, it further implements the following steps: if, based on the ordering information of the target resource package, it is determined that the target resource package is associated with a bound resource and the bound resource does not meet the first warning condition, the bound resource is used to replace the target resource package to provide the target service; wherein, the bound resource is a resource that the terminal has ordered and is bound to the target resource package; if, based on the ordering information of the target resource package, it is determined that the target resource package is not associated with a bound resource, the target service that the target resource package can provide is controlled based on the resource status information.
[0152] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the existence of alternative resource packages in each resource package based on the resource status information of each resource package; wherein, the alternative resource package is used to provide alternative services; the alternative services include a second service and a third service corresponding to other regions besides the target region; if at least one alternative resource package exists, controlling the target service that the target resource package can provide based on the usage information of the alternative resource package; if no alternative resource package exists, disabling the second service.
[0153] In one embodiment, when the processor executes the computer program, it further performs the following steps: if it is determined, based on the usage information of the alternative resource package, that the alternative resource package does not meet the first warning condition, disable the target service and change the accessible area of the terminal from the target area to another area corresponding to the alternative resource package, so that the alternative resource package provides alternative services; if it is determined, based on the usage information of the alternative resource package, that the alternative resource package meets the first warning condition, disable the second service.
[0154] In one embodiment, when the processor executes the computer program, it further performs the following steps: selecting the alternative resource package with the highest usage priority from among the alternative resource packages according to the usage priority of each alternative resource package, and changing the accessible area of the terminal from the target area to another area corresponding to the selected alternative resource package.
[0155] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the warning information corresponding to the target service based on the resource status information and the ordering information of the target resource package; maintaining the target service and outputting the warning information.
[0156] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0157] Obtain the terminal's resource status information; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package;
[0158] Based on the resource status information, select the target resource package from each resource package; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package.
[0159] Based on the usage information of the target resource package, and if it is determined that the target resource package meets the resource early warning conditions, the target services that the target resource package can provide are controlled based on the resource status information and the subscription information of the target resource package.
[0160] In one embodiment, when the processor executes the computer program, it further implements the following steps: if, based on the ordering information of the target resource package, it is determined that the target resource package is associated with a bound resource and the bound resource does not meet the first warning condition, the bound resource is used to replace the target resource package to provide the target service; wherein, the bound resource is a resource that the terminal has ordered and is bound to the target resource package; if, based on the ordering information of the target resource package, it is determined that the target resource package is not associated with a bound resource, the target service that the target resource package can provide is controlled based on the resource status information.
[0161] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the existence of alternative resource packages in each resource package based on the resource status information of each resource package; wherein, the alternative resource package is used to provide alternative services; the alternative services include a second service and a third service corresponding to other regions besides the target region; if at least one alternative resource package exists, controlling the target service that the target resource package can provide based on the usage information of the alternative resource package; if no alternative resource package exists, disabling the second service.
[0162] In one embodiment, when the processor executes the computer program, it further performs the following steps: if it is determined, based on the usage information of the alternative resource package, that the alternative resource package does not meet the first warning condition, disable the target service and change the accessible area of the terminal from the target area to another area corresponding to the alternative resource package, so that the alternative resource package provides alternative services; if it is determined, based on the usage information of the alternative resource package, that the alternative resource package meets the first warning condition, disable the second service.
[0163] In one embodiment, when the processor executes the computer program, it further performs the following steps: selecting the alternative resource package with the highest usage priority from among the alternative resource packages according to the usage priority of each alternative resource package, and changing the accessible area of the terminal from the target area to another area corresponding to the selected alternative resource package.
[0164] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the warning information corresponding to the target service based on the resource status information and the ordering information of the target resource package; maintaining the target service and outputting the warning information.
[0165] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0166] Obtain the terminal's resource status information; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package;
[0167] Based on the resource status information, select the target resource package from each resource package; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package.
[0168] Based on the usage information of the target resource package, and if it is determined that the target resource package meets the resource early warning conditions, the target services that the target resource package can provide are controlled based on the resource status information and the subscription information of the target resource package.
[0169] In one embodiment, when the processor executes the computer program, it further implements the following steps: if, based on the ordering information of the target resource package, it is determined that the target resource package is associated with a bound resource and the bound resource does not meet the first warning condition, the bound resource is used to replace the target resource package to provide the target service; wherein, the bound resource is a resource that the terminal has ordered and is bound to the target resource package; if, based on the ordering information of the target resource package, it is determined that the target resource package is not associated with a bound resource, the target service that the target resource package can provide is controlled based on the resource status information.
[0170] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the existence of alternative resource packages in each resource package based on the resource status information of each resource package; wherein, the alternative resource package is used to provide alternative services; the alternative services include a second service and a third service corresponding to other regions besides the target region; if at least one alternative resource package exists, controlling the target service that the target resource package can provide based on the usage information of the alternative resource package; if no alternative resource package exists, disabling the second service.
[0171] In one embodiment, when the processor executes the computer program, it further performs the following steps: if it is determined, based on the usage information of the alternative resource package, that the alternative resource package does not meet the first warning condition, disable the target service and change the accessible area of the terminal from the target area to another area corresponding to the alternative resource package, so that the alternative resource package provides alternative services; if it is determined, based on the usage information of the alternative resource package, that the alternative resource package meets the first warning condition, disable the second service.
[0172] In one embodiment, when the processor executes the computer program, it further performs the following steps: selecting the alternative resource package with the highest usage priority from among the alternative resource packages according to the usage priority of each alternative resource package, and changing the accessible area of the terminal from the target area to another area corresponding to the selected alternative resource package.
[0173] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the warning information corresponding to the target service based on the resource status information and the ordering information of the target resource package; maintaining the target service and outputting the warning information.
[0174] It should be noted that the resource status information of the terminal involved in this application (including but not limited to the usage information and attribute information of each resource package ordered by the terminal) and data (including but not limited to data used for analysis, data stored, data displayed) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0175] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0176] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0177] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A service management method, characterized in that, The method includes: Obtain the terminal's resource status information; wherein, the resource status information includes usage information and attribute information of each subscribed resource package; Based on the resource status information, a target resource package is selected from each resource package; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package; Based on the usage information of the target resource package, if it is determined that the target resource package meets the resource early warning conditions, the target services that the target resource package can provide are controlled based on the resource status information and the ordering information of the target resource package.
2. The method according to claim 1, characterized in that, The resource early warning conditions include a first early warning condition, which indicates that the usage status of the target resource package has reached the disabled state. When the target resource package meets the first warning condition, the step of controlling the target services that the target resource package can provide based on the resource status information and the ordering information of the target resource package includes: If, based on the order information of the target resource package, it is determined that the target resource package is associated with a bound resource and the bound resource does not meet the first warning condition, the bound resource is used to replace the target resource package to provide the target service; wherein, the bound resource is a resource that the terminal has ordered and is bound to the target resource package; If, based on the ordering information of the target resource package, it is determined that the target resource package is not associated with any bound resources, the target services that the target resource package can provide are controlled based on the resource status information.
3. The method according to claim 2, characterized in that, The target service includes a first service corresponding to the target area and a second service corresponding to the target function; The step of controlling the target services that the target resource package can provide based on the resource status information includes: Based on the resource status information of each resource package, the existence of alternative resource packages in each resource package is determined; wherein, the alternative resource packages are used to provide alternative services; the alternative services include the second service and a third service corresponding to other regions besides the target region; In the case where at least one alternative resource package exists, the target service that the target resource package can provide is controlled based on the usage information of the alternative resource package. If the alternative resource package is not available, the second service is disabled.
4. The method according to claim 3, characterized in that, The step of controlling the target services that the target resource package can provide based on the usage information of the alternative resource package includes: If, based on the usage information of the alternative resource package, it is determined that the alternative resource package does not meet the first warning condition, the target service is disabled, and the accessible area of the terminal is changed from the target area to another area corresponding to the alternative resource package, so that the alternative resource package can provide the alternative service. If, based on the usage information of the alternative resource package, it is determined that the alternative resource package meets the first warning condition, the second service is disabled.
5. The method according to claim 4, characterized in that, If at least two of the alternative resource packages fail to meet the first warning condition, the accessible area of the terminal is changed from the target area to another area corresponding to the alternative resource package, including: Based on the usage priority of each alternative resource package, the alternative resource package with the highest usage priority is selected from among the alternative resource packages, and the accessible area of the terminal is changed from the target area to another area corresponding to the selected alternative resource package.
6. The method according to claim 1, characterized in that, The resource warning conditions include a second warning condition, which indicates that the usage status of the target resource package has reached the warning state but has not reached the disabled state. When the target resource package meets the second early warning condition, the step of controlling the target services that the target resource package can provide based on the resource status information and the ordering information of the target resource package includes: Based on the resource status information and the ordering information of the target resource package, determine the early warning information corresponding to the target service; Maintain the target service and output the warning information.
7. A service management device, characterized in that, The device includes: The acquisition module is used to acquire the resource status information of the terminal; wherein, the resource status information includes the usage information and attribute information of each subscribed resource package; The selection module is used to select a target resource package from each resource package based on the resource status information; wherein, the resource package in each resource package with the same attribute information as the target resource package is in a disabled state, or there is no resource package in each resource package with the same attribute information as the target resource package; The control module is used to control the target services that the target resource package can provide, based on the resource status information and the ordering information of the target resource package, when the target resource package meets the resource early warning conditions according to the usage information of the target resource package.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.