Query
query NotificationRule($id: NotificationRuleId!) {
notificationRule(id: $id) {
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
}
}
}Variables
{
"id": "value"
}Response
{
"data": {
"notificationRule": {
"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
notificationRule
Get a notification rule. Requires NOTIFICATION_RULES_READ permissions.
QUERY
notificationRule(id: NotificationRuleId!): NotificationRuleArguments
id
NotificationRuleId!
required
Returns
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 NotificationRule($id: NotificationRuleId!) {
notificationRule(id: $id) {
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
}
}
}Variables
{
"id": "value"
}Response
{
"data": {
"notificationRule": {
"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"
}
}
}
}