Alarms

1. List Alarms

Retrieves a list of CoreStack Alarms for a given tenant. ID in the output is referred as Alarm ID

Syntax
(.venv)$ corestack alarms-list

Parameters

None

Sample Output

2. View Alarm

Retrieves a CoreStack Alarm by its ID. Alarm ID can be fetched from the output of alarms-list command. Name, Status, Created By, Updated By etc., will be available as output

Syntax
(.venv)$ corestack alarm-show <alarm_id>

Parameters

Attributes Description
alarm_id Required.ID of the CoreStack Alarm to be retrieved

Sample Output

3. Delete Alarm

Deletes an Alarm by its ID. Alarm once deleted cannot be reverted. Delete Status will be displayed as output

Syntax
(.venv)$ corestack alarm-delete <alarm_id>

Parameters

Attributes Description
alarm_id Required.ID of the CoreStack Alarm to be deleted

Sample Output

4. Create Alarm

Create an alarm with the inputs (Request Body). Alarm ID will be returned as output

Syntax
(.venv)$ corestack alarm-create <body >

Parameters

Attributes Description
body Required. JSON content with the needed inputs to create an alarm

Example:
{
“alarm_action”: {
“resource”: [“59b7ea1507e312068a454966”],
“action_inputs”: {
“service_accounts”: [{
“service_type”: “Cloud”,
“region”: “useast1”,
“id”: “59a508cf07e31206a6a3282b”
}],
“resource_elements”: [],
“args”: {
“Bill_Scheduled_bucket_name”: “satyabilling”,
“to_email”: “arun.p@cloudenablers.com”,
“Billing_filename”: “awsbillingcsv”
}
},
“type”: “template”
},
“type”: “alert”,
“name”: “test_alarm1_template_service”
}

Sample Output