alertservice.create¶
Create an Alert Service of specified type.
If enabled, it sends alerts to the configured type of Alert Service.
No Additional Items
Tuple Validation
Parameter 1: alert_service_create
alert_service_create
Type: objectAlert service configuration data for the new service.
No Additional PropertiesName
Type: stringHuman-readable name for the alert service.
Must be at least 1
characters long
Attributes
Service-specific configuration attributes (credentials, endpoints, etc.).
AWSSNSServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Amazon SNS.
Must be one of:
- "AWSSNS"
"AWSSNS"
Region
Type: stringAWS region where the SNS topic is located.
Must be at least 1
characters long
Topic Arn
Type: stringAmazon Resource Name (ARN) of the SNS topic to publish alerts to.
Must be at least 1
characters long
Aws Access Key Id
Type: stringAWS access key ID for authentication.
Must be at least 1
characters long
Aws Secret Access Key
Type: stringAWS secret access key for authentication.
Must be at least 1
characters long
InfluxDBServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for InfluxDB.
Must be one of:
- "InfluxDB"
"InfluxDB"
Host
Type: stringInfluxDB server hostname or IP address.
Must be at least 1
characters long
Username
Type: stringUsername for InfluxDB authentication.
Must be at least 1
characters long
Password
Type: stringPassword for InfluxDB authentication.
Must be at least 1
characters long
Database
Type: stringInfluxDB database name to store alert data.
Must be at least 1
characters long
Series Name
Type: stringName of the time series to store alert events.
Must be at least 1
characters long
MailServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for email notifications.
Must be one of:
- "Mail"
"Mail"
Email address to send alerts to. Empty string uses system default.
MattermostServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Mattermost.
Must be one of:
- "Mattermost"
"Mattermost"
Url
Type: stringFormat: uriMattermost webhook URL for posting alerts.
Must be at least 1
characters long
Must be at most 2083
characters long
Username
Type: stringUsername to display when posting alerts to Mattermost.
Must be at least 1
characters long
Channel
Type: string Default: ""Mattermost channel name to post alerts to. Empty string uses webhook default.
Icon Url
Default: ""URL of icon image to display with alert messages. Empty string uses default.
Must be one of:
- ""
""
Must be at least 1
characters long
Must be at most 2083
characters long
OpsGenieServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for OpsGenie.
Must be one of:
- "OpsGenie"
"OpsGenie"
Api Key
Type: stringOpsGenie API key for authentication.
Must be at least 1
characters long
Api Url
Default: ""OpsGenie API URL. Empty string uses default OpsGenie endpoint.
Must be one of:
- ""
""
Must be at least 1
characters long
Must be at most 2083
characters long
PagerDutyServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for PagerDuty.
Must be one of:
- "PagerDuty"
"PagerDuty"
Service Key
Type: stringPagerDuty service integration key for sending alerts.
Must be at least 1
characters long
Client Name
Type: stringClient name to identify the source of alerts in PagerDuty.
Must be at least 1
characters long
SlackServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Slack.
Must be one of:
- "Slack"
"Slack"
Url
Type: stringFormat: uriSlack webhook URL for posting alert messages.
Must be at least 1
characters long
Must be at most 2083
characters long
SNMPTrapServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for SNMP traps.
Must be one of:
- "SNMPTrap"
"SNMPTrap"
Host
Type: stringSNMP trap receiver hostname or IP address.
Port
Type: integerTCP port number for SNMP trap receiver.
Value must be greater or equal to 1
and lesser or equal to 65535
V3
Type: booleanWhether to use SNMP v3 instead of v1/v2c.
Community
Default: nullSNMP community string for v1/v2c authentication or null
for v3.
Must be at least 1
characters long
V3 Username
Default: nullSNMP v3 username for authentication or null
for v1/v2c.
Must be at least 1
characters long
V3 Authkey
Default: nullSNMP v3 authentication key or null
if not using authentication.
Must be at least 1
characters long
V3 Privkey
Default: nullSNMP v3 privacy key for encryption or null
if not using privacy.
Must be at least 1
characters long
V3 Authprotocol
Type: enum (of null or string) Default: nullSNMP v3 authentication protocol or null
for no authentication.
Must be one of:
- null
- "MD5"
- "SHA"
- "128SHA224"
- "192SHA256"
- "256SHA384"
- "384SHA512"
V3 Privprotocol
Type: enum (of null or string) Default: nullSNMP v3 privacy protocol for encryption or null
for no privacy.
Must be one of:
- null
- "DES"
- "3DESEDE"
- "AESCFB128"
- "AESCFB192"
- "AESCFB256"
- "AESBLUMENTHALCFB192"
- "AESBLUMENTHALCFB256"
TelegramServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Telegram.
Must be one of:
- "Telegram"
"Telegram"
Bot Token
Type: stringTelegram bot token for API authentication.
Must be at least 1
characters long
Chat Ids
Type: array of integerList of Telegram chat IDs to send alerts to (minimum 1 required).
Must contain a minimum of 1
items
Each item of this array must be:
VictorOpsServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for VictorOps (now Splunk On-Call).
Must be one of:
- "VictorOps"
"VictorOps"
Api Key
Type: stringVictorOps API key for authentication.
Must be at least 1
characters long
Routing Key
Type: stringVictorOps routing key to determine alert destination and escalation policy.
Must be at least 1
characters long
Level
Type: enum (of string)Minimum alert severity level that triggers notifications through this service.
Must be one of:
- "INFO"
- "NOTICE"
- "WARNING"
- "ERROR"
- "CRITICAL"
- "ALERT"
- "EMERGENCY"
Enabled
Type: boolean Default: trueWhether the alert service is active and will send notifications.
AlertServiceEntry
Type: objectThe created alert service configuration.
No Additional PropertiesName
Type: stringHuman-readable name for the alert service.
Must be at least 1
characters long
Attributes
Service-specific configuration attributes (credentials, endpoints, etc.).
AWSSNSServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Amazon SNS.
Must be one of:
- "AWSSNS"
"AWSSNS"
Region
Type: stringAWS region where the SNS topic is located.
Must be at least 1
characters long
Topic Arn
Type: stringAmazon Resource Name (ARN) of the SNS topic to publish alerts to.
Must be at least 1
characters long
Aws Access Key Id
Type: stringAWS access key ID for authentication.
Must be at least 1
characters long
Aws Secret Access Key
Type: stringAWS secret access key for authentication.
Must be at least 1
characters long
InfluxDBServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for InfluxDB.
Must be one of:
- "InfluxDB"
"InfluxDB"
Host
Type: stringInfluxDB server hostname or IP address.
Must be at least 1
characters long
Username
Type: stringUsername for InfluxDB authentication.
Must be at least 1
characters long
Password
Type: stringPassword for InfluxDB authentication.
Must be at least 1
characters long
Database
Type: stringInfluxDB database name to store alert data.
Must be at least 1
characters long
Series Name
Type: stringName of the time series to store alert events.
Must be at least 1
characters long
MailServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for email notifications.
Must be one of:
- "Mail"
"Mail"
Email address to send alerts to. Empty string uses system default.
MattermostServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Mattermost.
Must be one of:
- "Mattermost"
"Mattermost"
Url
Type: stringFormat: uriMattermost webhook URL for posting alerts.
Must be at least 1
characters long
Must be at most 2083
characters long
Username
Type: stringUsername to display when posting alerts to Mattermost.
Must be at least 1
characters long
Channel
Type: string Default: ""Mattermost channel name to post alerts to. Empty string uses webhook default.
Icon Url
Default: ""URL of icon image to display with alert messages. Empty string uses default.
Must be one of:
- ""
""
Must be at least 1
characters long
Must be at most 2083
characters long
OpsGenieServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for OpsGenie.
Must be one of:
- "OpsGenie"
"OpsGenie"
Api Key
Type: stringOpsGenie API key for authentication.
Must be at least 1
characters long
Api Url
Default: ""OpsGenie API URL. Empty string uses default OpsGenie endpoint.
Must be one of:
- ""
""
Must be at least 1
characters long
Must be at most 2083
characters long
PagerDutyServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for PagerDuty.
Must be one of:
- "PagerDuty"
"PagerDuty"
Service Key
Type: stringPagerDuty service integration key for sending alerts.
Must be at least 1
characters long
Client Name
Type: stringClient name to identify the source of alerts in PagerDuty.
Must be at least 1
characters long
SlackServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Slack.
Must be one of:
- "Slack"
"Slack"
Url
Type: stringFormat: uriSlack webhook URL for posting alert messages.
Must be at least 1
characters long
Must be at most 2083
characters long
SNMPTrapServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for SNMP traps.
Must be one of:
- "SNMPTrap"
"SNMPTrap"
Host
Type: stringSNMP trap receiver hostname or IP address.
Port
Type: integerTCP port number for SNMP trap receiver.
Value must be greater or equal to 1
and lesser or equal to 65535
V3
Type: booleanWhether to use SNMP v3 instead of v1/v2c.
Community
Default: nullSNMP community string for v1/v2c authentication or null
for v3.
Must be at least 1
characters long
V3 Username
Default: nullSNMP v3 username for authentication or null
for v1/v2c.
Must be at least 1
characters long
V3 Authkey
Default: nullSNMP v3 authentication key or null
if not using authentication.
Must be at least 1
characters long
V3 Privkey
Default: nullSNMP v3 privacy key for encryption or null
if not using privacy.
Must be at least 1
characters long
V3 Authprotocol
Type: enum (of null or string) Default: nullSNMP v3 authentication protocol or null
for no authentication.
Must be one of:
- null
- "MD5"
- "SHA"
- "128SHA224"
- "192SHA256"
- "256SHA384"
- "384SHA512"
V3 Privprotocol
Type: enum (of null or string) Default: nullSNMP v3 privacy protocol for encryption or null
for no privacy.
Must be one of:
- null
- "DES"
- "3DESEDE"
- "AESCFB128"
- "AESCFB192"
- "AESCFB256"
- "AESBLUMENTHALCFB192"
- "AESBLUMENTHALCFB256"
TelegramServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for Telegram.
Must be one of:
- "Telegram"
"Telegram"
Bot Token
Type: stringTelegram bot token for API authentication.
Must be at least 1
characters long
Chat Ids
Type: array of integerList of Telegram chat IDs to send alerts to (minimum 1 required).
Must contain a minimum of 1
items
Each item of this array must be:
VictorOpsServiceModel
Type: objectNo Additional Properties
Type
Type: constAlert service type identifier for VictorOps (now Splunk On-Call).
Must be one of:
- "VictorOps"
"VictorOps"
Api Key
Type: stringVictorOps API key for authentication.
Must be at least 1
characters long
Routing Key
Type: stringVictorOps routing key to determine alert destination and escalation policy.
Must be at least 1
characters long
Level
Type: enum (of string)Minimum alert severity level that triggers notifications through this service.
Must be one of:
- "INFO"
- "NOTICE"
- "WARNING"
- "ERROR"
- "CRITICAL"
- "ALERT"
- "EMERGENCY"
Enabled
Type: boolean Default: trueWhether the alert service is active and will send notifications.
Id
Type: integerUnique identifier for the alert service.
Type Title
Type: stringHuman-readable title for the alert service type.
Required roles: ALERT_WRITE