Lists options for configuring AI Automation triggers
Returns the source-of-truth options used by the AI Automation editor.
curl --request GET \
--url https://api.rootly.com/v1/ai_automations/trigger_options \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rootly.com/v1/ai_automations/trigger_options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rootly.com/v1/ai_automations/trigger_options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rootly.com/v1/ai_automations/trigger_options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rootly.com/v1/ai_automations/trigger_options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rootly.com/v1/ai_automations/trigger_options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootly.com/v1/ai_automations/trigger_options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ai_automation_trigger_options",
"type": "ai_automation_trigger_options",
"attributes": {
"trigger_kinds": [
{
"value": "schedule",
"label": "<string>"
}
],
"events": [
{
"value": "incident.created",
"label": "<string>",
"condition_fields": [
"severity"
]
}
],
"conditions": {
"fields": [
{
"value": "severity",
"label": "<string>",
"choices": [
{
"value": "<string>",
"label": "<string>"
}
]
}
],
"operators": [
{
"value": "eq",
"label": "<string>",
"value_type": "choice"
}
]
},
"schedule": {
"frequencies": [
{
"value": "hourly",
"label": "<string>",
"uses_hour": true,
"uses_weekday": true
}
],
"weekdays": [
{
"value": "MO",
"label": "<string>"
}
],
"default_frequency": "hourly",
"default_hour": 11,
"default_weekday": "MO",
"default_timezone": "<string>",
"rrule_frequencies": [
"HOURLY"
],
"timezones": [
{
"value": "<string>",
"label": "<string>",
"aliases": [
"<string>"
]
}
]
},
"destinations": [
{
"value": "slack_channel",
"label": "<string>",
"trigger_kinds": [
"schedule"
],
"event_names": [
"incident.created"
],
"requires_slack_channel": true
}
],
"limits": {
"max_credits_per_run": 1000,
"max_runs_per_window": 1440,
"run_windows": [
{
"value": "1_hour",
"label": "<string>",
"seconds": 3600
}
]
}
}
}
}{
"errors": [
{
"title": "<string>",
"status": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"title": "<string>",
"status": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
OAuth Automations read scope permits access
Options for configuring AI Automation triggers and destinations. Conditions only apply to event triggers and are sent as {"any": [{"all": [{field, operator, value}]}]}. choice values must match one of the field's choices (case-insensitive), text values are free-form, and none operators take no value. Skills are listed by GET /v1/ai_skills?filter[invocable_by]=automation; Slack channels are listed by GET /v1/ai_automations/slack_channels. schedule_rrule accepts custom RRULEs using rrule_frequencies. Any IANA timezone resolved by ActiveSupport::TimeZone[...] is accepted; timezones is the editor's list.
Show child attributes
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/ai_automations/trigger_options \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rootly.com/v1/ai_automations/trigger_options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rootly.com/v1/ai_automations/trigger_options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rootly.com/v1/ai_automations/trigger_options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rootly.com/v1/ai_automations/trigger_options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rootly.com/v1/ai_automations/trigger_options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootly.com/v1/ai_automations/trigger_options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ai_automation_trigger_options",
"type": "ai_automation_trigger_options",
"attributes": {
"trigger_kinds": [
{
"value": "schedule",
"label": "<string>"
}
],
"events": [
{
"value": "incident.created",
"label": "<string>",
"condition_fields": [
"severity"
]
}
],
"conditions": {
"fields": [
{
"value": "severity",
"label": "<string>",
"choices": [
{
"value": "<string>",
"label": "<string>"
}
]
}
],
"operators": [
{
"value": "eq",
"label": "<string>",
"value_type": "choice"
}
]
},
"schedule": {
"frequencies": [
{
"value": "hourly",
"label": "<string>",
"uses_hour": true,
"uses_weekday": true
}
],
"weekdays": [
{
"value": "MO",
"label": "<string>"
}
],
"default_frequency": "hourly",
"default_hour": 11,
"default_weekday": "MO",
"default_timezone": "<string>",
"rrule_frequencies": [
"HOURLY"
],
"timezones": [
{
"value": "<string>",
"label": "<string>",
"aliases": [
"<string>"
]
}
]
},
"destinations": [
{
"value": "slack_channel",
"label": "<string>",
"trigger_kinds": [
"schedule"
],
"event_names": [
"incident.created"
],
"requires_slack_channel": true
}
],
"limits": {
"max_credits_per_run": 1000,
"max_runs_per_window": 1440,
"run_windows": [
{
"value": "1_hour",
"label": "<string>",
"seconds": 3600
}
]
}
}
}
}{
"errors": [
{
"title": "<string>",
"status": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"title": "<string>",
"status": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}