CN-114691456-B - Service alarm method and device
Abstract
The service alarming method and device are applied to a cloud service platform, the cloud service platform is used for respectively butting a target service instance and a target service provider, the target service instance is created by deploying services provided by the target service provider on cloud resources corresponding to a target user, the method comprises the steps of obtaining alarming information aiming at the target service instance, and sending the alarming information to the target service provider under the condition that the target user is determined to endow the alarming information aiming at the target service instance with alarming information obtaining permission.
Inventors
- HE CHUAN
- WU JUNYIN
- ZHAO YU
- ZHENG DAYU
- Bao Wenle
Assignees
- 阿里巴巴(中国)有限公司
- 阿里巴巴(中国)有限公司
Dates
- Publication Date
- 20260421
- Application Date
- 20220311
- Priority Date
- 20220311
Claims (10)
- 1. A service alert method, applied to a cloud service platform, the cloud service platform being configured to dock a target service instance and a target facilitator, respectively, the target service instance being created by deploying a service provided by the target facilitator on a cloud resource corresponding to a target user, the method comprising: acquiring alarm information aiming at the target service instance; transmitting the alert information to the target service provider under the condition that the target user is determined to endow the alert information acquisition authority for the target service instance to the target service provider; the sending the alarm information to the target service provider includes: And synchronizing the alarm information sent to the target user to the target service provider.
- 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, The alarm information is actively generated by the target service instance; Or the alarm information is generated by monitoring the target service instance by a monitoring instance running on the cloud resource corresponding to the target user; Or the alarm information is generated by the cloud service platform by monitoring the target service instance.
- 3. The method as recited in claim 1, further comprising: Inquiring a service alarm authority rule corresponding to the target service instance, wherein the service alarm authority rule is used for recording an authorization object and/or description information of the authorization object, which are preset by the target user, aiming at the target service instance; and under the condition that the target service provider is determined to belong to an authorized object defined by the service alarm authority rule, determining that the target user has endowed the target service provider with alarm information acquisition authority for the target service instance.
- 4. The method as recited in claim 1, further comprising: receiving an authority application request initiated by the target service provider aiming at the target service instance, wherein the authority application request is used for requesting the acquisition authority of the alarm information aiming at the target service instance; Sending permission confirmation information to the target user corresponding to the target service instance according to the permission application request; and determining whether to grant the acquisition permission of the alarm information aiming at the target service instance to the target service provider according to an operation result returned by the target user in response to the permission confirmation information.
- 5. The method of claim 1, wherein the step of determining the position of the substrate comprises, The generation conditions of the alarm information comprise that the state information of the target service instance meets the predefined alarm information generation rule; wherein the alert information generation rule is defined by the target facilitator or the target user.
- 6. The method of claim 1, wherein the cloud service platform is pre-packaged with an authorization scenario in which an authorized party grants an authorization to an authorized party a specified right to a service instance corresponding to the authorized party, further comprising: Receiving an application request of the target user aiming at the authorization scene, wherein the application request at least comprises the description information of the target user, the description information of the target service provider and the description information of the target service instance; and assigning information contained in the application request to the authorization scene, and applying the authorization scene to enable the target user to grant the designated authority of the target service corresponding to the authorization scene to the target service provider.
- 7. The method as recited in claim 1, further comprising: Receiving a remote link request of the target service provider for the target service instance, wherein the remote link request is irrelevant to a user name and/or a password of the target user about the target service instance; in the case that a target user has given the target service provider a privacy-free operation right for the target service instance, a remote link between the target service provider and the target user is established according to the remote link request.
- 8. A service alert device, applied to a cloud service platform for interfacing a target service instance and a target facilitator, respectively, the target service instance being created by deploying a service provided by the target facilitator on a cloud resource corresponding to a target user, the device comprising: the alarm information acquisition unit is used for acquiring alarm information aiming at the target service instance; An alert information transmitting unit configured to transmit alert information to the target service provider in a case where it is determined that the target user has given the alert information acquisition right for the target service instance to the target service provider; The alarm information sending unit is specifically configured to: And synchronizing the alarm information sent to the target user to the target service provider.
- 9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.
- 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-7 when executing the program.
Description
Service alarm method and device Technical Field The present disclosure relates to the field of cloud computing, and in particular, to a service alarm method and apparatus. Background With the development of cloud computing technology, more and more users choose to enable third party service providers to provide required application software for themselves, so that the users can directly use the application software without personally constructing or maintaining. However, if the application software provided by the service provider is finally deployed in the cloud resource of the user, once any abnormality occurs in the application software, the user can only wait for actively detecting and reporting the service provider, and then the service provider performs fault detection, so that the abnormality processing efficiency is low, and meanwhile, a correspondence relationship exists between the user and the service provider, for example, so that the management cost is high and the difficulty is high. Disclosure of Invention In view of the foregoing, the present disclosure provides a service alarm method and apparatus to solve the deficiencies in the related art. Specifically, the specification is realized by the following technical scheme: according to a first aspect of embodiments of the present disclosure, there is provided a service alert method applied to a cloud service platform, where the cloud service platform is configured to dock a target service instance and a target service provider, respectively, where the target service instance is created by deploying a service provided by the target service provider on a cloud resource corresponding to a target user, and the method includes: acquiring alarm information aiming at the target service instance; and sending the alarm information to the target service provider under the condition that the target user is determined to endow the alarm information acquisition authority for the target service instance to the target service provider. According to a second aspect of embodiments of the present disclosure, there is provided a service alert device applied to a cloud service platform for interfacing a target service instance and a target service provider, respectively, the target service instance being created by deploying a service provided by the target service provider on a cloud resource corresponding to a target user, the device comprising: the alarm information acquisition unit is used for acquiring alarm information aiming at the target service instance; and the alarm information sending unit is used for sending the alarm information to the target service provider under the condition that the target user is determined to endow the target service provider with the alarm information acquisition permission aiming at the target service instance. According to a third aspect of embodiments of the present specification, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method according to the first aspect. According to a fourth aspect of embodiments of the present specification, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when the program is executed. In the technical scheme provided by the specification, the cloud service platform builds a clear and controllable management channel between the target user and the target service provider by introducing the technical means of authorization management, improves the management efficiency of the target user and the target service provider under one-to-many or many-to-one conditions, and simultaneously enables the target service provider to automatically and timely receive and process the alarm information when the alarm occurs to the target service instance, so that the alarm processing efficiency is improved. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Drawings FIG. 1 is a schematic diagram of an architecture of a service alerting system as shown in an exemplary embodiment of the present description; FIG. 2 is a flow chart of a service alerting method as shown in an exemplary embodiment of the present disclosure; FIG. 3 is a schematic diagram illustrating three-way interaction between a user, a cloud service platform, and a facilitator according to an exemplary embodiment of the present disclosure; FIG. 4 is a schematic block diagram of an electronic device shown in an exemplary embodiment of the present disclosure; fig. 5 is a schematic structural view of a service alerting device according to an exemplary embodiment of the present specification. Detailed Description Reference will now be ma