Specify <stream id>/<alarm callback id>
as ID.
$ terraform import graylog_alarm_callback.test 5bb1b4b5c9e77bbbbbbbbbbb/5c4acaefc9e77bbbbbbbbbbb
name | type | description |
---|---|---|
type | string | |
title | string | |
stream_id | string |
None.
org.graylog2.alarmcallbacks.HTTPAlarmCallback
name | type | description |
---|---|---|
http_configuration | ||
http_configuration.url | string |
None.
org.graylog2.alarmcallbacks.EmailAlarmCallback
name | type | description |
---|---|---|
email_configuration | ||
email_configuration.sender | string | |
email_configuration.subject | string |
name | default | type | description |
---|---|---|---|
email_configuration.body | "" | string | |
email_configuration.user_receivers | [] | []string | |
email_configuration.email_receivers | [] | []string |
org.graylog2.plugins.slack.callback.SlackAlarmCallback
name | type | description |
---|---|---|
slack_configuration | ||
slack_configuration.color | string | |
slack_configuration.webhook_url | string | |
slack_configuration.channel | string |
name | default | type | description |
---|---|---|---|
slack_configuration.icon_url | "" | string | |
slack_configuration.graylog2_url | "" | string | |
slack_configuration.icon_emoji | "" | string | |
slack_configuration.user_name | "" | string | |
slack_configuration.proxy_address | "" | string | |
slack_configuration.custom_message | "" | string | |
slack_configuration.backlog_items | 0 | int | |
slack_configuration.link_names | true | bool | |
slack_configuration.notify_channel | false | bool |
We support only the above alarm callback types officially, but in order to support other alarm callback types as much as possible, we provide some additional attributes.
general_int_configuration
general_bool_configuration
general_float_configuration
general_string_configuration
For example, you can use the HipChat Plugin although we don't support it officially.
resource "graylog_alarm_callback" "hipchat" {
type = "org.graylog2.alarmcallbacks.hipchat.HipChatAlarmCallback"
stream_id = "000000000000000000000001"
title = "test"
general_string_configuration {
color = "yellow"
api_url = "https://api.hipchat.com"
message_template = "test template"
api_token = "test"
graylog_base_url = "http://localhost:9000"
room = "test"
}
general_bool_configuration {
notify = "true"
}
}
None.
name | default | type | description |
---|---|---|---|
general_int_configuration | {} | map[string]int | |
general_bool_configuration | {} | map[string]bool | |
general_float_configuration | {} | map[string]float64 | |
general_string_configuration | {} | map[string]string |