Introduction

Purpose

In CloudStack, we have features like Alerts and Events that helps administrator in managing the cloud. Admin can get a list of Alerts and Events but there is no way to control them i.e delete or archive them.

This feature will provide the functionality to delete or archive the acknowledged Alerts/Events. In this way admin can get more controls over the Alerts and Events and manage them to get required and useful information. CloudStack admin can manage them by using the APIs or through CloudStack UI. This is a functional specification of feature "Ability to delete/archive Events and Alerts" which has Jira ID CLOUDSTACK-___

References

Use Cases

Feature Specifications

Architecture and Design description

Delete or Archive Alerts

DB schema changes:

Existing schema changes

New client APIs

ApiName

Request parameters

Response parameters

Available to regular user

deleteAlert

  • id(can pass one or more IDs seperated by comma)
  • type
  • true/false

No

archiveAlert

  • id(can pass one or more IDs seperated by comma)
  • type
  • true/false

No

In the above mentioned APIs, id and type are optional parameters. If admin can pass one or multiple ids of alert to delete/archive them as per the requirement or if admin wants to delete/archive all the alerts of a particular type then he needs to pass only type parameter along with type value. If admin passes both ids and type then CloudStack will match the ids and type and delete/archive only those alerts which satisfy this criteria.

New classes for client APIs

Changes to Existing Files:

Delete or Archive Events

DB schema changes:

Existing schema changes

New client APIs

ApiName

Request parameters

Response parameters

Available to regular user

deleteEvent

    • id(can pass one or more IDs seperated by comma)
    • type
    • true/false

No

archiveEvent

    • id(can pass one or more IDs seperated by comma)
    • type

true/false

No

The APIs deleteEvent and archiveEvent will perform in the similar manner as of deleteAlert and archiveAlert.

New classes for client APIs

Changes to Existing Files:

Logging and Debugging

All logs will go to management-server.log

Current limitations

UI flow

This is the mockup UI, will modify it as per the suggestions.