Monitor labels, tags and dimensions (GraphQL)

Related queries and mutations in Monitors. Each has its own section.

Queries

getAccountMonitorLabels (query)

getAccountMonitorLabels is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Please use getMonitorLabels instead

Get monitor labels

Returns

[MonitorLabelObject]

Example

query GetAccountMonitorLabels {
  getAccountMonitorLabels {
    uuid
    label
    defaultFailureAudience
    monitorCount
    notificationCount
    usedInMac
  }
}

Related types

MonitorLabelObject

getMonitorLabels (query)

getMonitorLabels is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get monitor labels

Returns

[MonitorLabelObject]

Example

query GetMonitorLabels {
  getMonitorLabels {
    uuid
    label
    defaultFailureAudience
    monitorCount
    notificationCount
    usedInMac
  }
}

Related types

MonitorLabelObject

listDataQualityDimensions (query)

listDataQualityDimensions is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List all data quality dimensions.

Returns

ListDataQualityDimensionsOutput

Example

query ListDataQualityDimensions {
  listDataQualityDimensions {
    dataQualityDimension
  }
}

Types used only by listDataQualityDimensions

ListDataQualityDimensionsOutput

Object type.

FieldTypeDescription
dataQualityDimension[String!]All supported data quality dimensions.

listMonitorTags (query)

listMonitorTags is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List monitor tags.

Arguments

ArgumentTypeDescription
pageSizeIntPage size for each call. If not set, by default it's 50.
offsetIntOffset that indicates where to start returning the result.

Returns

ListMonitorTagsOutput

Example

query ListMonitorTags {
  listMonitorTags {
    totalCount
  }
}

Types used only by listMonitorTags

ListMonitorTagsOutput

Object type.

FieldTypeDescription
totalCountIntTotal count of the monitor tags in a user's account.
tags[TagInfoOutput!]Monitor Tags list.
TagInfoOutput

Object type.

FieldTypeDescription
nameString!Tag key
valueStringTag Value
idString!Tag ID

monitorLabels (query)

monitorLabels is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Please use getMonitorLabels instead

Get monitor labels

Returns

[MonitorLabel]

Example

query MonitorLabels {
  monitorLabels {
    label
  }
}

Types used only by monitorLabels

MonitorLabel

Object type.

FieldTypeDescription
labelStringThe monitor label name

Mutations

addMonitorsLabels (mutation)

addMonitorsLabels is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
audienceConditions[AudienceConditionInput!]Restricts audiences in labels to alerts at the given triage priorities: the priority the triage agent assigns to an alert, or NOT_TRIAGED when no priority arrives. For example, [{audience: "oncall", triagePriority: [HIGH, MEDIUM]}] notifies oncall only for High and Medium alerts on these monitors. Audiences in labels without an entry are notified of every alert, so [] clears their restrictions. Omit the argument to leave existing restrictions unchanged. Audiences outside labels are never changed. Rejected if a monitor would end up with every audience restricted and none including NOT_TRIAGED, since its untriaged alerts would notify nobody.
labels[String]!Labels to add on the monitors
monitorUuids[UUID]!UUID of the monitors to update

Returns

AddMonitorsLabels

Example

mutation AddMonitorsLabels($labels: [String]!, $monitorUuids: [UUID]!) {
  addMonitorsLabels(labels: $labels, monitorUuids: $monitorUuids) {
    success
  }
}

Types used only by addMonitorsLabels

AddMonitorsLabels

Object type.

FieldTypeDescription
successBoolean

Related types

AudienceConditionInput, UUID

bulkAddMonitorDataQualityDimension (mutation)

bulkAddMonitorDataQualityDimension is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Bulk add monitor data quality dimension.

Arguments

ArgumentTypeDescription
dataQualityDimensionStringData quality dimension to assign to monitors
monitorUuids[UUID!]!UUIDs of the metric monitor or custom rule

Returns

BulkAddMonitorDataQualityDimension

Example

mutation BulkAddMonitorDataQualityDimension($monitorUuids: [UUID!]!) {
  bulkAddMonitorDataQualityDimension(monitorUuids: $monitorUuids) {
    success
  }
}

Types used only by bulkAddMonitorDataQualityDimension

BulkAddMonitorDataQualityDimension

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

bulkAddMonitorTags (mutation)

bulkAddMonitorTags is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Bulk add monitor tags.

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!UUIDs of the metric monitor or custom rule
tags[TagKeyValuePairInput]!Tags to insert on the monitor

Returns

BulkAddMonitorTags

Example

mutation BulkAddMonitorTags($monitorUuids: [UUID!]!, $tags: [TagKeyValuePairInput]!) {
  bulkAddMonitorTags(monitorUuids: $monitorUuids, tags: $tags) {
    success
  }
}

Types used only by bulkAddMonitorTags

BulkAddMonitorTags

Object type.

FieldTypeDescription
successBoolean

Related types

TagKeyValuePairInput, UUID

createOrUpdateMonitorLabel (mutation)

createOrUpdateMonitorLabel is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Create or update a monitor label

Arguments

ArgumentTypeDescription
labelString!The monitor label name
monitorUuids[UUID]If any monitor IDs are given, add this label to those monitors; additive only, does not remove the label from other monitors
uuidUUIDThe monitor label ID

Returns

CreateOrUpdateMonitorLabel

Example

mutation CreateOrUpdateMonitorLabel($label: String!) {
  createOrUpdateMonitorLabel(label: $label) {
    monitorLabel {
      uuid
      label
      defaultFailureAudience
      monitorCount
      notificationCount
      usedInMac
    }
  }
}

Types used only by createOrUpdateMonitorLabel

CreateOrUpdateMonitorLabel

Object type. Create or update a monitor label

FieldTypeDescription
monitorLabelMonitorLabelObjectThe created monitor label

Related types

MonitorLabelObject, UUID

deleteMonitorLabel (mutation)

deleteMonitorLabel is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Delete a monitor label

Arguments

ArgumentTypeDescription
uuidUUID!The monitor label ID

Returns

DeleteMonitorLabel

Example

mutation DeleteMonitorLabel($uuid: UUID!) {
  deleteMonitorLabel(uuid: $uuid) {
    deleted
  }
}

Types used only by deleteMonitorLabel

DeleteMonitorLabel

Object type. Delete a monitor label

FieldTypeDescription
deletedBooleanTrue if the monitor label was deleted

Related types

UUID

deleteMonitorTag (mutation)

deleteMonitorTag is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Delete unused monitor tag

Arguments

ArgumentTypeDescription
tagIdUUID!UUID of the tag to delete

Returns

DeleteMonitorTag

Example

mutation DeleteMonitorTag($tagId: UUID!) {
  deleteMonitorTag(tagId: $tagId) {
    success
  }
}

Types used only by deleteMonitorTag

DeleteMonitorTag

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

removeMonitorsLabels (mutation)

removeMonitorsLabels is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
labels[String]!Labels to remove from the monitors
monitorUuids[UUID]!UUID of the monitors to update

Returns

RemoveMonitorsLabels

Example

mutation RemoveMonitorsLabels($labels: [String]!, $monitorUuids: [UUID]!) {
  removeMonitorsLabels(labels: $labels, monitorUuids: $monitorUuids) {
    success
  }
}

Types used only by removeMonitorsLabels

RemoveMonitorsLabels

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorDataQualityDimension (mutation)

updateMonitorDataQualityDimension is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Update data quality dimension on a monitor.

Arguments

ArgumentTypeDescription
dataQualityDimensionStringData quality dimension to assign to the monitor.If not set, we'll clear the data quality dimension on the monitor.
monitorTypeString!Type of monitor.
monitorUuidUUID!UUID of the metric monitor or custom rule.

Returns

UpdateMonitorDataQualityDimension

Example

mutation UpdateMonitorDataQualityDimension($monitorType: String!, $monitorUuid: UUID!) {
  updateMonitorDataQualityDimension(monitorType: $monitorType, monitorUuid: $monitorUuid) {
    success
  }
}

Types used only by updateMonitorDataQualityDimension

UpdateMonitorDataQualityDimension

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorTags (mutation)

updateMonitorTags is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether to group dbt snapshot failures with the same error message into the same incident

Arguments

ArgumentTypeDescription
monitorTypeStringDEPRECATED: field is ignored
monitorUuidUUID!UUID of the metric monitor or custom rule
tags[TagKeyValuePairInput]!Tags to insert on the monitor

Returns

UpdateMonitorTags

Example

mutation UpdateMonitorTags($monitorUuid: UUID!, $tags: [TagKeyValuePairInput]!) {
  updateMonitorTags(monitorUuid: $monitorUuid, tags: $tags) {
    success
  }
}

Types used only by updateMonitorTags

UpdateMonitorTags

Object type.

FieldTypeDescription
successBoolean

Related types

TagKeyValuePairInput, UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.