EBS event notifications

更新时间:
复制 MD 格式

EBS sends event notifications for system events, disk attach/detach operations, cloud disk retention, and overdue payment releases.

Event list

EBS sends notifications for the following events:

System events

EBS system events cover exceptions only, not maintenance events. Notifications are sent at the start and end of each event. See Appendix: EBS system event notifications for event notification names.

The following example shows a JSON notification for a Stalled event, which indicates severely affected disk performance.

  • When an EBS system event occurs, the notification includes the executeStartTime property.

    {
      "id": "2256A988-0B26-4E2B-820A-8A********E5",
      "product": "ECS",
      "resourceId": "acs:ecs:cn-hangzhou:169070********30:disk/d-t4ndyqve********n4ds",
      "level": "CRITICAL",
      "name": "Disk:Stalled:Executing",
      "userId": "169070********30",
      "eventTime": "20190410T080101.922+0800",
      "regionId": "cn-hangzhou",
      "content": {
        "eventId": "e-t4navn7********6x5no",
        "diskId": "d-t4ndyqve********n4ds",
        "device": "/dev/xvdb",
        "eventType": "Stalled",
        "executeStartTime": "2019-04-10T01:01:01Z",
        "ecsInstanceId": "i-bp1ecr********5go2go",
        "ecsInstanceName": "ecs-instance-name"
      }
    }
  • When an EBS system event ends, the notification includes an additional executeFinishTime property.

    {
      "id": "2256A988-0B26-4E2B-820A-8A********E5",
      "product": "ECS",
      "resourceId": "acs:ecs:cn-hangzhou:169070********30:disk/d-t4ndyqve********n4ds",
      "level": "CRITICAL",
      "name": "Disk:Stalled:Executing",
      "userId": "169070********30",
      "eventTime": "20190410T080301.922+0800",
      "regionId": "cn-hangzhou",
      "content": {
        "eventId": "e-t4navn7********6x5no",   
        "diskId": "d-t4ndyqve********n4ds",    
        "device": "/dev/xvdb",                 
        "eventType": "Stalled",                
        "executeStartTime": "2019-04-10T01:01:01Z",   
        "executeFinishTime": "2019-04-10T01:03:01Z",  
        "ecsInstanceId": "i-bp1ecr********5go2go",    
        "ecsInstanceName": "ecs-instance-name"        
      }
    }

The following table describes the content parameters.

Parameter

Description

Example

eventId

The system event ID.

e-t4navn7********6x5no

diskId

The ID of the affected disk.

d-t4ndyqve********n4ds

device

The device mount point.

/dev/xvdb

eventType

The EBS system event type. Valid values:

  • Degraded: Disk performance is degraded.

  • SeverelyDegraded: Disk performance is severely degraded.

  • Stalled: Disk performance is severely affected.

Stalled

executeStartTime

The event start time in UTC.

2019-04-10T01:01:01Z

executeFinishTime

The event end time in UTC.

2019-04-10T01:03:01Z

ecsInstanceId

The ID of the instance the disk is attached to.

i-bp1ecr********5go2go

ecsInstanceName

The name of the instance the disk is attached to.

ecs-instance-name

Data disk attach and detach

ECS sends an event notification when a data disk attach or detach operation completes, indicating whether it succeeded. See Attach a data disk and Detach a data disk.

The following example shows a JSON event notification:

{
  "id": "2256A988-0B26-4E2B-820A-8A********E5",
  "product": "ECS",
  "resourceId": "acs:ecs:cn-hangzhou:169070********30:disk/d-t4ndyqve********n4ds",
  "level": "INFO",
  "name": "Disk:DiskOperationCompleted",
  "userId": "169070********30",
  "eventTime": "20190409T121826.922+0800",
  "regionId": "cn-hangzhou",
  "content": {
      "diskId" : "d-t4ndyqve********n4ds",
      "operation" : "AttachDisk",
      "result" : "accomplished",
      "instanceId" : "i-t4ndpdf***********dsa",
      "diskType" : "data"
  }
}

The following table describes the content parameters.

Parameter

Description

Example

diskId

The disk ID.

d-bp1bwa********9ol4mi

operation

The operation type. Valid values:

  • AttachDisk: Attach a disk.

  • DetachDisk: Detach a disk.

AttachDisk

result

The operation result. Valid values:

  • accomplished: Succeeded.

  • failed: Failed.

Note

The event level is INFO on success, and WARN on failure.

accomplished

instanceId

The instance ID.

i-t4ndpdf***********dsa

diskType

The disk type. Valid values:

  • system: System disk.

  • data: Data disk.

data

Cloud disk retention

If you disable Release Disks with Instance, attached cloud disks (including system disks and data disks) are retained and converted to pay-as-you-go data disks when the ECS instance is released. See Release a cloud disk.

The following example shows a JSON event notification:

{
    "id": "2256A988-0B26-4E2B-820A-8A********E5",
    "product": "ECS",
    "resourceId": "acs:ecs:cn-hangzhou:169070********30:disk/d-t4ndyqve********n4ds",
    "level": "INFO",
    "instanceName": "disk-event-subscription",
    "name": "Disk:ConvertToPostpaidCompleted",
    "userId": "169070********30",
    "eventTime": "20190409T121826.922+0800",
    "regionId": "cn-hangzhou",
    "content": {
    "diskId" : "d-t4ndyqve********n4ds",
    "result" : "accomplished"
    }
}

The following table describes the content parameters.

Parameter

Description

Example

diskId

The disk ID.

d-bp1bwa********9ol4mi

result

The operation result. Valid values:

  • accomplished: Succeeded.

  • failed: Failed.

accomplished

Overdue payment release

A release event notification is sent in the following scenarios:

  • Your account has not completed real-name verification, or your balance is less than CNY 100.

  • Your pay-as-you-go disk is released due to an overdue payment.

Note

Alibaba Cloud provides the extended suspension-free benefit. When a pay-as-you-go resource is overdue, you can continue to use cloud services for a certain amount or duration. Normal fees apply during the extended period. For more information, see Extended Suspension-Free Benefit.

The following example shows a JSON event notification:

{
    "id": "2256A988-0B26-4E2B-820A-8A********E5",
    "product": "ECS",
    "resourceId": "acs:ecs:cn-hangzhou:169070********30:disk/d-t4ndyqve********n4ds",
    "level": "CRITICAL",
    "instanceName": "disk-event-subscription",
    "name": "Disk:OverduePaymentRelease",
    "userId": "169070********30",
    "eventTime": "20190409T121826.922+0800",
    "regionId": "cn-hangzhou",
    "content": {
    "instanceId" : "i-bp1792********an2ukf",
    "diskId" : "d-t4ndyqve********n4ds"
    }
}

The following table describes the content parameters.

Parameter

Description

Example

instanceId

The ID of the instance the disk was attached to.

i-bp1792********an2ukf

diskId

The disk ID.

d-bp1bwa********9ol4mi

Appendix: EBS system event notifications

Impact

Event type and code

Event notification

Performance impact

Disk performance is severely affected (Stalled)

  • Severe performance impact in progress: Disk:Stalled:Executing

  • Severe performance impact resolved: Disk:Stalled:Executed

Local disk damage

A local disk is damaged (ErrorDetected)

  • Local disk damage alert active: Disk:ErrorDetected:Executing

  • Local disk damage alert cleared: Disk:ErrorDetected:Executed

References

Call DescribeDisksFullStatus to query the full status of your disks.