Query
query NotificationRuleByResourceName($namespaceId: NamespaceId!, $resourceName: String!) {
notificationRuleByResourceName(namespaceId: $namespaceId, resourceName: $resourceName) {
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
{
"namespaceId": "value",
"resourceName": "string"
}Response
{
"data": {
"notificationRuleByResourceName": {
"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
notificationRuleByResourceName
Get a notification rule by resource name. Requires NOTIFICATION_RULES_READ permissions.
QUERY
notificationRuleByResourceName(namespaceId: NamespaceId!, resourceName: String!): NotificationRuleArguments
namespaceId
NamespaceId!
required
resourceName
String!
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 NotificationRuleByResourceName($namespaceId: NamespaceId!, $resourceName: String!) {
notificationRuleByResourceName(namespaceId: $namespaceId, resourceName: $resourceName) {
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
{
"namespaceId": "value",
"resourceName": "string"
}Response
{
"data": {
"notificationRuleByResourceName": {
"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"
}
}
}
}