Configs
Configs emit events when their health changes or when they are created, modified, or removed.
Health events
config.healthyconfig.unhealthyconfig.warningconfig.unknown
ec2-health-notification.yamlapiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: ec2-instance-health-alerts
namespace: default
spec:
events:
- config.unhealthy
- config.warning
filter: config.type == 'AWS::EC2::Instance'
to:
email: alerts@acme.com

Default Template
The default notification template for health events is:
Title
{{ if ne channel "slack"}}{{.config.type}} {{.config.name}} is {{.config.health}}{{end}}
Template
Default content is generated from the notification payload in modules/mission-control/notification/message.go.
State events
config.createdconfig.updatedconfig.deleted
ec2-instance-updates.yamlapiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: ec2-instance-changes
namespace: default
spec:
events:
- config.created
- config.updated
- config.deleted
filter: config.type == 'AWS::EC2::Instance'
to:
email: alerts@acme.com

Default Template
Title
{{ if ne channel "slack"}}{{.config.type}} {{.config.name}} was {{.new_state}}{{end}}
Template
Default content is generated from the notification payload in modules/mission-control/notification/message.go.
Template Variables
| Field | Description | Scheme |
|---|---|---|
agent | Details of the agent | |
channel | The notification channel, e.g. |
|
config | Corresponding config item. | |
groupedResources | A list of grouped resource names. Only available when notifications are grouped using |
|
new_state | The state change that triggered this event. Only available on config state events (e.g. |
|
permalink | A link to the resource in Mission Control |
|
recent_events | Recent config changes from the last hour |
|
silenceURL | A link to silence this notification |
|
Config Item
| Field | Description | Scheme |
|---|---|---|
config | Configuration |
|
config_class | Class of the config item |
|
created_at | Creation timestamp |
|
delete_reason | Reason for deletion |
|
deleted_at | Deletion timestamp |
|
description | Description |
|
external_id | External IDs |
|
health |
|
|
id | ID of the config item |
|
labels | Labels |
|
name | Name |
|
properties |
|
|
ready | Whether the config item is ready |
|
scraper_id | ID of the scraper |
|
source | Source |
|
status | Status |
|
tags | Tags |
|
type | Type |
|
updated_at | Update timestamp |
|
Agent
| Field | Description | Scheme |
|---|---|---|
description | Short description of the agent |
|
id | The id of the agent |
|
name | The name of the agent |
|