Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Subscribing to an Event

Updated on 2024-10-12 GMT+08:00

Scenarios

This section describes how to configure SMN to obtain server status information of cloud applications, such as creation, startup, shutdown, restarting, deletion, recomposing, upgrading, as well as image creation, and report the information to Cloud Trace Service (CTS) to improve the APS access speed and operation accuracy.

NOTE:

Message queues may be blocked or CTS may fail to be called due to the event notification mechanism. Therefore, users cannot completely depend on event notifications. Instead, they need to periodically call APIs to update data. For details, see Workspace Application Streaming API Reference. For any questions, submit a service ticket for technical support.

Procedure

Configuring a subscription event

  1. Enable CTS.

    NOTE:

    When CTS is enabled, a system tracker is automatically created. You can use this tracker.

  2. Create an SMN topic.
  3. Add a subscription.
  4. Configure key event notifications.

    NOTE:

    Configure parameters for key event notifications as follows:

    • Notification name: This parameter is user-defined, for example, keyOperate_WorkspaceAPP.
    • Operation type: Select Custom. In the operation list, set Select Service to WorkspaceAPP, Select Resource to server or session, and Select Operation to createServer, rebootServer, startServer, stopServer, deleteServer, reinstallServer, changeServerImage, createServerImage, sessionConnect, sessionDisconnect, or sessionLogout.
    • User: not specified.
    • Notification: yes.
    • Topic: Select the topic created in 2.

Verifying the subscription event

NOTE:
  • When a cloud server is successful or fails to be created, started, shut down, restarted, deleted, recomposed, or upgraded, an image is successful or fails to be created, or a session is connected, disconnected, or logged out, the system automatically reports an event to CTS. You will receive a message based on the protocol configured in 3. For example, if you select email, you will receive a notification email.
  • You can also view all traces on the CTS console.
  1. Log in to the console.
  1. Expand the service list and choose Management & Governance > Cloud Trace Service.
  2. On the Trace List page, set Trace Source to WorkspaceAPP, Resource Type to server or session, and search by Trace Name. The trace name is shown in Table 1.

    Table 1 Types of events that can be traced

    Operation

    Resource Type

    Trace Name

    Creating a server

    server

    createServer

    Deleting a server

    server

    deleteServer

    Shutting down a server

    server

    stopServer

    Starting a server

    server

    startServer

    Restarting a server

    server

    rebootServer

    Creating an image

    server

    createServerImage

    Upgrading an image

    server

    changeServerImage

    Reinstalling a server

    server

    reinstallServer

    Session connection

    session

    sessionConnect

    Session disconnection

    session

    sessionDisconnect

    Session logout

    session

    sessionLogout

  3. Press Enter to query the result.
  4. Take shutting down a cloud server as an example. View Trace Overview of the event. The status is BEGIN, as shown in Figure 1.

    Figure 1 Starting to shut down a server

  5. View Trace Overview of the shutdown event. The server has been shut down, as shown in Figure 2.

    Figure 2 Server shut down
    NOTE:
    • When server creation or deletion fails, a failure trace is reported. In the trace details, the value of Message is FAIL.
    • If a server is powered off or not shut down on the homepage of the Workspace client, it is shut down abnormally. In this case, the BEGIN message is not reported in CTS. Only the message indicating that the server has been shut down will be reported.
    • Three minutes after the server is started, if the login status is not Ready on the server management page, a failure trace is reported. In the trace details, the value of Message is FAIL.
    • Three minutes after the server is shut down, if the login status is not Stopped on the server management page, a failure trace is reported. In the trace details, the value of Message is FAIL.

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback