influxdb/pkger/testdata/notification_endpoint.json

110 lines
2.5 KiB
JSON

[
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "Label",
"metadata": {
"name": "label_1"
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointSlack",
"metadata": {
"name": "slack_notification_endpoint"
},
"spec":{
"description": "slack desc",
"url": "https://hooks.slack.com/services/bip/piddy/boppidy",
"token": "tokenval",
"status": "active",
"associations": [
{
"kind": "Label",
"name": "label_1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointHTTP",
"metadata": {
"name": "http_none_auth_notification_endpoint"
},
"spec":{
"description": "http none auth desc",
"method": "GET",
"type": "none",
"url": "https://www.example.com/endpoint/noneauth",
"status": "active",
"associations": [
{
"kind": "Label",
"name": "label_1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointHTTP",
"metadata": {
"name": "http_basic_auth_notification_endpoint"
},
"spec":{
"description": "http basic auth desc",
"method": "POST",
"type": "basic",
"url": "https://www.example.com/endpoint/basicauth",
"username": "secret username",
"password": "secret password",
"status": "inactive",
"associations": [
{
"kind": "Label",
"name": "label_1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointHTTP",
"metadata": {
"name": "http_bearer_auth_notification_endpoint"
},
"spec":{
"description": "http bearer auth desc",
"type": "bearer",
"method": "PUT",
"url": "https://www.example.com/endpoint/bearerauth",
"token": "secret token",
"associations": [
{
"kind": "Label",
"name": "label_1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointPagerDuty",
"metadata": {
"name": "pager_duty_notification_endpoint"
},
"spec":{
"description": "pager duty desc",
"url": "http://localhost:8080/orgs/7167eb6719fa34e5/alert-history",
"routingKey": "secret routing-key",
"status": "active",
"associations": [
{
"kind": "Label",
"name": "label_1"
}
]
}
}
]