Query
query NotificationRulesList {
notificationRulesList {
channel {
createdAt
id
integration {
createdAt
id
name
resourceName
updatedAt
}
name
namespace {
apiKeys {
__typename
}
avatar
avatarThumbnail
createdAt
description
id
}
notificationRules {
__typename
}
}
config {
mentionOwner
ownerCondition {
config {
__typename
}
owners {
__typename
}
}
priorityCondition {
priorities
}
segmentConditions {
config {
__typename
}
segments {
__typename
}
}
severityCondition {
config {
__typename
}
severities
}
sourceCondition {
config {
__typename
}
sources {
__typename
}
}
}
createdAt
id
name
namespace {
apiKeys {
apiKey {
__typename
}
roleConfig {
__typename
}
}
avatar
avatarThumbnail
createdAt
description
id
}
}
}Response
{
"data": {
"notificationRulesList": [
{
"channel": {
"createdAt": "value",
"id": "value",
"integration": {
"createdAt": "value",
"id": "value",
"name": "string",
"resourceName": "string",
"updatedAt": "value"
},
"name": "string",
"namespace": {
"apiKeys": [
{
"__typename": "ApiKeyRole"
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
},
"notificationRules": [
{
"__typename": "NotificationRule"
}
]
},
"config": {
"mentionOwner": true,
"ownerCondition": {
"config": {
"__typename": "OwnerNotificationRuleConditionConfig"
},
"owners": [
{
"__typename": "User"
}
]
},
"priorityCondition": {
"priorities": [
"CRITICAL"
]
},
"segmentConditions": [
{
"config": {
"__typename": "SegmentNotificationRuleConditionConfig"
},
"segments": [
{
"__typename": "SegmentField"
}
]
}
],
"severityCondition": {
"config": {
"__typename": "SeverityNotificationRuleConditionConfig"
},
"severities": [
"HIGH"
]
},
"sourceCondition": {
"config": {
"__typename": "SourceNotificationRuleConditionConfig"
},
"sources": [
{
"__typename": "Source"
}
]
}
},
"createdAt": "value",
"id": "value",
"name": "string",
"namespace": {
"apiKeys": [
{
"apiKey": {
"__typename": "ApiKey"
},
"roleConfig": {
"__typename": "NamespaceRoleConfig"
}
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
}
}
]
}
}Queries
notificationRulesList
Get all notification rules. Requires NOTIFICATION_RULES_READ permissions.
QUERY
notificationRulesList(filter: ResourceFilter): [NotificationRule!]!Arguments
filter
Returns
[NotificationRule!]!
channel
config
Notification rule configuration.
createdAt
DateTime!
When the notification rule was created.
id
NotificationRuleId!
Notification rule identifier.
name
String!
The display name of the notification rule.
namespace
resourceName
String!
The resource name of the notification rule.
updatedAt
DateTime!
When the notification rule was last updated.
Query
query NotificationRulesList {
notificationRulesList {
channel {
createdAt
id
integration {
createdAt
id
name
resourceName
updatedAt
}
name
namespace {
apiKeys {
__typename
}
avatar
avatarThumbnail
createdAt
description
id
}
notificationRules {
__typename
}
}
config {
mentionOwner
ownerCondition {
config {
__typename
}
owners {
__typename
}
}
priorityCondition {
priorities
}
segmentConditions {
config {
__typename
}
segments {
__typename
}
}
severityCondition {
config {
__typename
}
severities
}
sourceCondition {
config {
__typename
}
sources {
__typename
}
}
}
createdAt
id
name
namespace {
apiKeys {
apiKey {
__typename
}
roleConfig {
__typename
}
}
avatar
avatarThumbnail
createdAt
description
id
}
}
}Response
{
"data": {
"notificationRulesList": [
{
"channel": {
"createdAt": "value",
"id": "value",
"integration": {
"createdAt": "value",
"id": "value",
"name": "string",
"resourceName": "string",
"updatedAt": "value"
},
"name": "string",
"namespace": {
"apiKeys": [
{
"__typename": "ApiKeyRole"
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
},
"notificationRules": [
{
"__typename": "NotificationRule"
}
]
},
"config": {
"mentionOwner": true,
"ownerCondition": {
"config": {
"__typename": "OwnerNotificationRuleConditionConfig"
},
"owners": [
{
"__typename": "User"
}
]
},
"priorityCondition": {
"priorities": [
"CRITICAL"
]
},
"segmentConditions": [
{
"config": {
"__typename": "SegmentNotificationRuleConditionConfig"
},
"segments": [
{
"__typename": "SegmentField"
}
]
}
],
"severityCondition": {
"config": {
"__typename": "SeverityNotificationRuleConditionConfig"
},
"severities": [
"HIGH"
]
},
"sourceCondition": {
"config": {
"__typename": "SourceNotificationRuleConditionConfig"
},
"sources": [
{
"__typename": "Source"
}
]
}
},
"createdAt": "value",
"id": "value",
"name": "string",
"namespace": {
"apiKeys": [
{
"apiKey": {
"__typename": "ApiKey"
},
"roleConfig": {
"__typename": "NamespaceRoleConfig"
}
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
}
}
]
}
}