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
Example
query GetAccountMonitorLabels {
getAccountMonitorLabels {
uuid
label
defaultFailureAudience
monitorCount
notificationCount
usedInMac
}
}Related types
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
Example
query GetMonitorLabels {
getMonitorLabels {
uuid
label
defaultFailureAudience
monitorCount
notificationCount
usedInMac
}
}Related types
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
listDataQualityDimensionsListDataQualityDimensionsOutput
ListDataQualityDimensionsOutputObject type.
| Field | Type | Description |
|---|---|---|
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
| Argument | Type | Description |
|---|---|---|
pageSize | Int | Page size for each call. If not set, by default it's 50. |
offset | Int | Offset that indicates where to start returning the result. |
Returns
ListMonitorTagsOutput
Example
query ListMonitorTags {
listMonitorTags {
totalCount
}
}Types used only by listMonitorTags
listMonitorTagsListMonitorTagsOutput
ListMonitorTagsOutputObject type.
| Field | Type | Description |
|---|---|---|
totalCount | Int | Total count of the monitor tags in a user's account. |
tags | [TagInfoOutput!] | Monitor Tags list. |
TagInfoOutput
TagInfoOutputObject type.
| Field | Type | Description |
|---|---|---|
name | String! | Tag key |
value | String | Tag Value |
id | String! | 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
monitorLabelsMonitorLabel
MonitorLabelObject type.
| Field | Type | Description |
|---|---|---|
label | String | The 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
| Argument | Type | Description |
|---|---|---|
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
addMonitorsLabelsAddMonitorsLabels
AddMonitorsLabelsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
dataQualityDimension | String | Data 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
bulkAddMonitorDataQualityDimensionBulkAddMonitorDataQualityDimension
BulkAddMonitorDataQualityDimensionObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
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
bulkAddMonitorTagsBulkAddMonitorTags
BulkAddMonitorTagsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
Returns
CreateOrUpdateMonitorLabel
Example
mutation CreateOrUpdateMonitorLabel($label: String!) {
createOrUpdateMonitorLabel(label: $label) {
monitorLabel {
uuid
label
defaultFailureAudience
monitorCount
notificationCount
usedInMac
}
}
}Types used only by createOrUpdateMonitorLabel
createOrUpdateMonitorLabelCreateOrUpdateMonitorLabel
CreateOrUpdateMonitorLabelObject type. Create or update a monitor label
| Field | Type | Description |
|---|---|---|
monitorLabel | MonitorLabelObject | The created monitor label |
Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | The monitor label ID |
Returns
DeleteMonitorLabel
Example
mutation DeleteMonitorLabel($uuid: UUID!) {
deleteMonitorLabel(uuid: $uuid) {
deleted
}
}Types used only by deleteMonitorLabel
deleteMonitorLabelDeleteMonitorLabel
DeleteMonitorLabelObject type. Delete a monitor label
| Field | Type | Description |
|---|---|---|
deleted | Boolean | True if the monitor label was deleted |
Related types
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
| Argument | Type | Description |
|---|---|---|
tagId | UUID! | UUID of the tag to delete |
Returns
DeleteMonitorTag
Example
mutation DeleteMonitorTag($tagId: UUID!) {
deleteMonitorTag(tagId: $tagId) {
success
}
}Types used only by deleteMonitorTag
deleteMonitorTagDeleteMonitorTag
DeleteMonitorTagObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
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
removeMonitorsLabelsRemoveMonitorsLabels
RemoveMonitorsLabelsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
dataQualityDimension | String | Data quality dimension to assign to the monitor.If not set, we'll clear the data quality dimension on the monitor. |
monitorType | String! | Type of monitor. |
monitorUuid | UUID! | 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
updateMonitorDataQualityDimensionUpdateMonitorDataQualityDimension
UpdateMonitorDataQualityDimensionObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorType | String | DEPRECATED: field is ignored |
monitorUuid | UUID! | 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
updateMonitorTagsUpdateMonitorTags
UpdateMonitorTagsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
