Related queries and mutations in Monitors. Each has its own section.
Mutations
createOrUpdateFreshnessCustomRule (mutation)
createOrUpdateFreshnessCustomRule 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
Create or update a freshness monitor
Arguments
| Argument | Type | Description |
|---|---|---|
alertGrouping | AlertGroupingInput | Per-monitor alert grouping configuration. Omit or pass null for legacy per-type grouping; a non-null value enables monitor-based alert grouping. The createOrUpdate* mutations are full-state: omitting this field on an update clears any existing configuration (same as samplingConfig). |
audienceConditions | [AudienceConditionInput!] | Narrows individual audiences to the triage priorities that reach them. Always a full replace: omitting the argument (or passing null) makes every audience unconditional, the same as passing an empty list; a non-empty list replaces the conditions wholesale. Every audience named here must also appear in this mutation's audience list (audiences, or labels on the mutations that spell it that way), which stays the monitor's full audience set — a condition narrows when one of them is notified, it does not add one. |
autoTriage | Boolean | Per-monitor automated-triage override. true forces triage on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. |
comparisons | [CustomRuleComparisonInput]! | Custom rule comparisons |
customRuleUuid | UUID | UUID of custom rule, to update existing rule |
dataQualityDimension | String | Data quality dimension on the custom rule. |
description | String | Used as the name in the UI |
domainUuids | [UUID!] | Please provide one and only one valid domain uuid. |
dwId | UUID | Warehouse the tables are contained in. Required when using fullTableIds |
eventRollupCount | Int | The number of events to roll up into a single incident |
eventRollupUntilChanged | Boolean | If true, roll up events until the value changes |
exceptionPrimaryKeyColumn | String | Specifies the column which contains the primary key for sampled data used in exception management. |
failureAudiences | [String!] | The audiences to notify on failure |
intervalMinutes | Int | How often to run scheduled custom rule check (DEPRECATED, use schedule instead) |
labels | [String] | The monitor labels |
notes | String | Additional context for the monitor Default: "". |
notifyRuleRunFailure | Boolean | DEPRECATED: Completely ignored. This field has no effect on anything. Use failure_audiences to determine who is notified when run failures occur. |
pause | Boolean | Pause state of the rule. |
priority | String | The default priority for alerts involving this monitor |
replacesOotb | Boolean | Indicate if this rule replaces the default ootb detector |
scheduleConfig | ScheduleConfigInput | Schedule of custom rule |
severity | String | DEPRECATED. Use priority instead. The default severity for incidents involving this monitor Default: "". |
startTime | DateTime | Start time of schedule (DEPRECATED, use schedule instead) |
tags | [TagKeyValuePairInput] | The monitor tags. |
timezone | String | Timezone (DEPRECATED, use timezone in scheduleConfig instead |
Returns
CreateOrUpdateFreshnessCustomRule
Example
mutation CreateOrUpdateFreshnessCustomRule($comparisons: [CustomRuleComparisonInput]!) {
createOrUpdateFreshnessCustomRule(comparisons: $comparisons) {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by createOrUpdateFreshnessCustomRule
createOrUpdateFreshnessCustomRuleCreateOrUpdateFreshnessCustomRule
CreateOrUpdateFreshnessCustomRuleObject type. Create or update a freshness custom rule
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
AlertGroupingInput, AudienceConditionInput, CustomRule, CustomRuleComparisonInput, DateTime, ScheduleConfigInput, TagKeyValuePairInput, UUID
createOrUpdateQueryPerfRule (mutation)
createOrUpdateQueryPerfRule 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
Create or update a query performance monitor
Arguments
| Argument | Type | Description |
|---|---|---|
audienceConditions | [AudienceConditionInput!] | Narrows individual audiences to the triage priorities that reach them. Always a full replace: omitting the argument (or passing null) makes every audience unconditional, the same as passing an empty list; a non-empty list replaces the conditions wholesale. Every audience named here must also appear in this mutation's audience list (audiences, or labels on the mutations that spell it that way), which stays the monitor's full audience set — a condition narrows when one of them is notified, it does not add one. |
autoTriage | Boolean | Per-monitor automated-triage override. true forces triage on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. |
comparisons | [CustomRuleComparisonInput]! | Custom rule comparisons |
customRuleUuid | UUID | UUID of custom rule, to update existing rule |
dataQualityDimension | String | data quality dimension |
description | String! | Description of rule |
domainUuids | [UUID!] | Please provide one and only one valid domain uuid. |
dryRun | Boolean | Dry run the monitor creation or update and return the MaC YAML and queries. Default: false. |
failureAudiences | [String!] | The monitor failure audiences |
isDraft | Boolean | Make target a draft monitor. Default: false. |
labels | [String] | The monitor labels |
notes | String | Additional context for the rule |
priority | String | The default priority for alerts involving this monitor |
ruleName | String | Rule Name. DEPRECATED: field will be ignored. |
selection | QuerySelectionInput! | Selection of the monitored queries |
severity | String | DEPRECATED. Use priority instead. The default severity for incidents involving this monitor Default: "". |
tags | [TagKeyValuePairInput] | The monitor tags. |
Returns
CreateOrUpdateQueryPerfRule
Example
mutation CreateOrUpdateQueryPerfRule($comparisons: [CustomRuleComparisonInput]!, $description: String!, $selection: QuerySelectionInput!) {
createOrUpdateQueryPerfRule(comparisons: $comparisons, description: $description, selection: $selection) {
yaml
}
}Types used only by createOrUpdateQueryPerfRule
createOrUpdateQueryPerfRuleCreateOrUpdateQueryPerfRule
CreateOrUpdateQueryPerfRuleObject type. Create or update query performance rule/monitor.
There must be exactly (3) comparisons, which follow this format:
{
"comparisonType": "QUERY_PERFORMANCE",
"operator": "GT",
"metric": "runtime",
"threshold": <THRESHOLD IN SECONDS>,
},
{
"comparisonType": "QUERY_PERFORMANCE",
"operator": "GT",
"metric": "runtime_change",
"threshold": <THRESHOLD AS PERCENTAGE>,
"baselineAggFunction": <MEDIAN|AVG>,
"thresholdLookbackDataPoints": <NUMBER OF DATA POINTS TO INCLUDE IN LOOKBACK RANGE>,
},
{
"comparisonType": "QUERY_PERFORMANCE",
"operator": "GT",
"metric": "consecutive_breach_count",
"threshold": <NUMBER OF CONSECUTIVE BREACHES TO TRIGGER AN ALERT>,
}
| Field | Type | Description |
|---|---|---|
customRule | CustomRule | |
yaml | String |
Related types
AudienceConditionInput, CustomRule, CustomRuleComparisonInput, QuerySelectionInput, TagKeyValuePairInput, UUID
createOrUpdateVolumeRule (mutation)
createOrUpdateVolumeRule 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
Create or update a volume monitor
Arguments
| Argument | Type | Description |
|---|---|---|
alertGrouping | AlertGroupingInput | Per-monitor alert grouping configuration. Omit or pass null for legacy per-type grouping; a non-null value enables monitor-based alert grouping. The createOrUpdate* mutations are full-state: omitting this field on an update clears any existing configuration (same as samplingConfig). |
audienceConditions | [AudienceConditionInput!] | Narrows individual audiences to the triage priorities that reach them. Always a full replace: omitting the argument (or passing null) makes every audience unconditional, the same as passing an empty list; a non-empty list replaces the conditions wholesale. Every audience named here must also appear in this mutation's audience list (audiences, or labels on the mutations that spell it that way), which stays the monitor's full audience set — a condition narrows when one of them is notified, it does not add one. |
autoTriage | Boolean | Per-monitor automated-triage override. true forces triage on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. |
comparisons | [CustomRuleComparisonInput]! | Custom rule comparisons |
customRuleUuid | UUID | UUID of custom rule, to update existing rule |
dataCollectionScheduleConfig | ScheduleConfigInput | Data Collection schedule of custom rule |
dataQualityDimension | String | Data quality dimension on the custom rule. |
description | String! | Description of rule |
domainUuids | [UUID!] | Please provide one and only one valid domain uuid. |
dwId | UUID | Warehouse the tables are contained in. Required when using fullTableIds |
eventRollupCount | Int | The number of events to roll up into a single incident |
eventRollupUntilChanged | Boolean | If true, roll up events until the value changes |
exceptionPrimaryKeyColumn | String | Specifies the column which contains the primary key for sampled data used in exception management. |
failureAudiences | [String!] | The audiences to notify on failure |
labels | [String] | The monitor labels |
notes | String | Additional context for the monitor Default: "". |
notifyRuleRunFailure | Boolean | DEPRECATED: Completely ignored. This field has no effect on anything. Use failure_audiences to determine who is notified when run failures occur. |
override | Boolean | If override is set, it forces the dc schedule to run |
priority | String | The default priority for alerts involving this monitor |
replacesOotb | Boolean | Indicate if this rule replaces the default ootb detector |
scheduleConfig | ScheduleConfigInput | Schedule of custom rule |
severity | String | DEPRECATED. Use priority instead. The default severity for incidents involving this monitor Default: "". |
tags | [TagKeyValuePairInput] | The monitor tags. |
timezone | String | Timezone (DEPRECATED, use timezone in scheduleConfig instead |
Returns
CreateOrUpdateVolumeRule
Example
mutation CreateOrUpdateVolumeRule($comparisons: [CustomRuleComparisonInput]!, $description: String!) {
createOrUpdateVolumeRule(comparisons: $comparisons, description: $description) {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by createOrUpdateVolumeRule
createOrUpdateVolumeRuleCreateOrUpdateVolumeRule
CreateOrUpdateVolumeRuleObject type. Create or update a Volume Rule
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
AlertGroupingInput, AudienceConditionInput, CustomRule, CustomRuleComparisonInput, ScheduleConfigInput, TagKeyValuePairInput, UUID
deleteCustomRule (mutation)
deleteCustomRule 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 custom rule
Arguments
Returns
DeleteCustomRule
Example
mutation DeleteCustomRule {
deleteCustomRule {
uuid
}
}Types used only by deleteCustomRule
deleteCustomRuleDeleteCustomRule
DeleteCustomRuleObject type. Delete a custom rule
| Field | Type | Description |
|---|---|---|
uuid | UUID |
Related types
deleteCustomSqlTemplate (mutation)
deleteCustomSqlTemplate 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 custom sql template
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID | uuid of custom sql template |
Returns
DeleteCustomSQLTemplate
Example
mutation DeleteCustomSqlTemplate {
deleteCustomSqlTemplate {
success
}
}Types used only by deleteCustomSqlTemplate
deleteCustomSqlTemplateDeleteCustomSQLTemplate
DeleteCustomSQLTemplateObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
pauseRule (mutation)
pauseRule 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.
Pause a rule from collecting data or triggering notifications
Arguments
| Argument | Type | Description |
|---|---|---|
pause | Boolean! | Pause state of the monitor. |
reason | String | Justification for the change, recorded as a monitor comment. |
uuid | UUID! | UUID of the rule whose skip status is being changed. |
Returns
PauseRule
Example
mutation PauseRule($pause: Boolean!, $uuid: UUID!) {
pauseRule(pause: $pause, uuid: $uuid) {
rule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by pauseRule
pauseRulePauseRule
PauseRuleObject type. Pause a rule from collecting data or triggering notifications
| Field | Type | Description |
|---|---|---|
rule | CustomRule | The rule whose pause property has been toggled. |
Related types
restoreCustomRule (mutation)
restoreCustomRule 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.
Restore a soft-deleted custom rule. When connectionUuid is provided, a rule that was soft-deleted as a side-effect of its connection being deleted is re-pointed to the new connection before being un-tombstoned. The new connection must live in the same warehouse as the rule, share the original connection's type, and support a superset of its job types.
Arguments
| Argument | Type | Description |
|---|---|---|
connectionUuid | UUID | Re-point the rule to a different connection as part of the restore. Only valid when the rule was deleted as a side-effect of its original connection being deleted. The new connection must be in the same warehouse, share the original connection's type, and support a superset of its job types. |
uuid | UUID | UUID for rule to restore |
warehouseUuid | UUID | Deprecated |
Returns
RestoreCustomRule
Example
mutation RestoreCustomRule {
restoreCustomRule {
uuid
}
}Types used only by restoreCustomRule
restoreCustomRuleRestoreCustomRule
RestoreCustomRuleObject type. Restore a soft-deleted custom rule. When connectionUuid is provided, a rule that was soft-deleted as a side-effect of its connection being deleted is re-pointed to the new connection before being un-tombstoned. The new connection must live in the same warehouse as the rule, share the original connection's type, and support a superset of its job types.
| Field | Type | Description |
|---|---|---|
uuid | UUID |
Related types
runCustomRules (mutation)
runCustomRules 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
Run a list of custom rules manually
Arguments
| Argument | Type | Description |
|---|---|---|
ruleUuids | [UUID!]! | Rule UUIDs |
Returns
RunCustomRules
Example
mutation RunCustomRules($ruleUuids: [UUID!]!) {
runCustomRules(ruleUuids: $ruleUuids) {
success
}
}Types used only by runCustomRules
runCustomRulesRunCustomRules
RunCustomRulesObject type. Run a list of custom rules manually
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
runSqlRule (mutation)
runSqlRule 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.
Run a Custom SQL monitor manually
Arguments
| Argument | Type | Description |
|---|---|---|
ruleUuid | UUID! | Rule UUID |
runtimeVariables | [RuntimeVariableValueInput!] | Rule execution runtime_variables |
Returns
RunSqlRule
Example
mutation RunSqlRule($ruleUuid: UUID!) {
runSqlRule(ruleUuid: $ruleUuid) {
jobExecutionUuids
}
}Types used only by runSqlRule
runSqlRuleRunSqlRule
RunSqlRuleObject type. Run a Custom SQL monitor manually
| Field | Type | Description |
|---|---|---|
jobExecutionUuids | [UUID] | DEPRECATED |
Related types
RuntimeVariableValueInput, UUID
snoozeCustomRule (mutation)
snoozeCustomRule 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.
Snooze a custom rule. Data collection will continue, but no anomalies will be reported.
Arguments
| Argument | Type | Description |
|---|---|---|
reason | String | Justification for the change, recorded as a monitor comment. |
snoozeMinutes | Int | Number of minutes to snooze rule - deprecated by snooze_type |
snoozeType | CustomRuleSnoozeInput | Choose regular snooze or conditional snooze options |
uuid | UUID | UUID for rule to snooze - deprecated by snooze_type |
Returns
SnoozeCustomRule
Example
mutation SnoozeCustomRule {
snoozeCustomRule {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by snoozeCustomRule
snoozeCustomRuleCustomRuleSnoozeInput
CustomRuleSnoozeInputInput object type. input variables for snoozing
| Field | Type | Description |
|---|---|---|
ruleUuid | UUID! | UUID of rule to snooze |
snoozeMinutes | Int | number of minutes to snooze rule |
conditionalSnooze | Boolean | snooze rule until breach condition changes or is resolved Default: false. |
SnoozeCustomRule
SnoozeCustomRuleObject type. Snooze a custom rule. Data collection will continue, but no anomalies will be reported.
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
snoozeCustomRules (mutation)
snoozeCustomRules 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
Snooze a list of custom rules. Data collection will continue, but no anomalies will be reported.
Arguments
| Argument | Type | Description |
|---|---|---|
conditionalSnooze | Boolean | snooze rules until breach condition changes or is resolved Default: false. |
reason | String | Justification for the change, recorded as a comment on each rule. |
snoozeMinutes | Int | number of minutes to snooze rules |
uuids | [UUID!] | UUIDs of the rules to snooze |
Returns
SnoozeCustomRules
Example
mutation SnoozeCustomRules {
snoozeCustomRules {
customRules {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by snoozeCustomRules
snoozeCustomRulesSnoozeCustomRules
SnoozeCustomRulesObject type.
| Field | Type | Description |
|---|---|---|
customRules | [CustomRule!] |
Related types
triggerCircuitBreakerRule (mutation)
triggerCircuitBreakerRule 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: Deprecated: Use TriggerCircuitBreakerRuleV2 instead to support rules with multiple executions
Run a custom rule as a circuit breaker immediately. Supports rules that produce a single pollable job execution.
Arguments
| Argument | Type | Description |
|---|---|---|
namespace | String | Namespace |
ruleName | String | Rule Name |
ruleUuid | UUID | Rule UUID |
Returns
TriggerCircuitBreakerRule
Example
mutation TriggerCircuitBreakerRule {
triggerCircuitBreakerRule {
jobExecutionUuid
}
}Types used only by triggerCircuitBreakerRule
triggerCircuitBreakerRuleTriggerCircuitBreakerRule
TriggerCircuitBreakerRuleObject type. Run a custom rule as a circuit breaker immediately. Supports rules that produce a single pollable job execution.
| Field | Type | Description |
|---|---|---|
jobExecutionUuid | UUID | The UUID of the job execution that can be polled for a result. A run may also dispatch data-collection-only executions, which are not returned. |
Related types
triggerCircuitBreakerRuleV2 (mutation)
triggerCircuitBreakerRuleV2 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.
Run a custom rule as a circuit breaker immediately. Supports rules that create multiple queries.
Arguments
| Argument | Type | Description |
|---|---|---|
namespace | String | Namespace |
ruleName | String | Rule Name |
ruleUuid | UUID | Rule UUID |
runtimeVariables | [RuntimeVariableValueInput!] | Rule execution runtime variables |
Returns
TriggerCircuitBreakerRuleV2
Example
mutation TriggerCircuitBreakerRuleV2 {
triggerCircuitBreakerRuleV2 {
jobExecutionUuids
}
}Types used only by triggerCircuitBreakerRuleV2
triggerCircuitBreakerRuleV2TriggerCircuitBreakerRuleV2
TriggerCircuitBreakerRuleV2Object type. Run a custom rule as a circuit breaker immediately. Supports rules that create multiple queries.
| Field | Type | Description |
|---|---|---|
jobExecutionUuids | [UUID] | The UUIDs of the job executions that can be polled for a result. A run may also dispatch data-collection-only executions, which are not returned. |
Related types
RuntimeVariableValueInput, UUID
triggerCustomRule (mutation)
triggerCustomRule 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: Deprecated: Use RunSqlRule instead
Run a custom rule immediately
Arguments
| Argument | Type | Description |
|---|---|---|
customSqlContains | String | String to completely or partially match the rule SQL, case-insensitive |
descriptionContains | String | String to completely or partially match the rule description, case-insensitive |
ruleId | UUID | Rule id |
Returns
TriggerCustomRule
Example
mutation TriggerCustomRule {
triggerCustomRule {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by triggerCustomRule
triggerCustomRuleTriggerCustomRule
TriggerCustomRuleObject type. Run a custom rule immediately
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
unsnoozeCustomRule (mutation)
unsnoozeCustomRule 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.
Un-snooze a custom rule.
Arguments
| Argument | Type | Description |
|---|---|---|
reason | String | Justification for the change, recorded as a monitor comment. |
uuid | UUID | UUID for rule to un-snooze |
Returns
UnsnoozeCustomRule
Example
mutation UnsnoozeCustomRule {
unsnoozeCustomRule {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by unsnoozeCustomRule
unsnoozeCustomRuleUnsnoozeCustomRule
UnsnoozeCustomRuleObject type. Un-snooze a custom rule.
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
unsnoozeCustomRules (mutation)
unsnoozeCustomRules 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
Un-snooze a list of custom rules.
Arguments
| Argument | Type | Description |
|---|---|---|
reason | String | Justification for the change, recorded as a comment on each rule. |
uuids | [UUID!] | UUIDs of the rules to snooze |
Returns
UnsnoozeCustomRules
Example
mutation UnsnoozeCustomRules {
unsnoozeCustomRules {
customRules {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by unsnoozeCustomRules
unsnoozeCustomRulesUnsnoozeCustomRules
UnsnoozeCustomRulesObject type. Un-snooze a list of custom rules.
| Field | Type | Description |
|---|---|---|
customRules | [CustomRule!] |
Related types
updateCustomMetricRuleNotes (mutation)
updateCustomMetricRuleNotes 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: Deprecated: Use UpdateMonitorNotes instead
Create or update notes for custom metric rule
Arguments
| Argument | Type | Description |
|---|---|---|
customRuleUuid | UUID! | UUID of custom rule, to update existing rule |
notes | String | Additional context for the custom SQL rule |
Returns
UpdateCustomMetricRuleNotes
Example
mutation UpdateCustomMetricRuleNotes($customRuleUuid: UUID!) {
updateCustomMetricRuleNotes(customRuleUuid: $customRuleUuid) {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by updateCustomMetricRuleNotes
updateCustomMetricRuleNotesUpdateCustomMetricRuleNotes
UpdateCustomMetricRuleNotesObject type. Create or update notes for custom metric rule
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
updateCustomMetricSeverity (mutation)
updateCustomMetricSeverity 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: Deprecated: Custom metric rule now has priority instead of severity
DEPRECATED. Create or update default severity for custom metric rule
Arguments
| Argument | Type | Description |
|---|---|---|
customRuleUuid | UUID! | UUID of custom rule, to update existing rule |
severity | String | System set severity when an incident for the rule is created |
Returns
UpdateCustomMetricSeverity
Example
mutation UpdateCustomMetricSeverity($customRuleUuid: UUID!) {
updateCustomMetricSeverity(customRuleUuid: $customRuleUuid) {
customRule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by updateCustomMetricSeverity
updateCustomMetricSeverityUpdateCustomMetricSeverity
UpdateCustomMetricSeverityObject type. DEPRECATED. Create or update default severity for custom metric rule
| Field | Type | Description |
|---|---|---|
customRule | CustomRule |
Related types
updateCustomRuleInvestigationQuery (mutation)
updateCustomRuleInvestigationQuery 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.
Update a rule's investigation query
Arguments
| Argument | Type | Description |
|---|---|---|
customSamplingSql | String! | The new investigation query |
ruleUuid | UUID! | The UUID of the rule to update |
Returns
UpdateCustomRuleInvestigationQuery
Example
mutation UpdateCustomRuleInvestigationQuery($customSamplingSql: String!, $ruleUuid: UUID!) {
updateCustomRuleInvestigationQuery(customSamplingSql: $customSamplingSql, ruleUuid: $ruleUuid) {
rule {
id
createdTime
updatedTime
uuid
accountUuid
projects
datasets
isDeleted
deletedAt
description
notes
labels
failureAudiences
isTemplateManaged
namespace
priority
isPaused
pausedReason
isDraft
isAutoCreated
}
}
}Types used only by updateCustomRuleInvestigationQuery
updateCustomRuleInvestigationQueryUpdateCustomRuleInvestigationQuery
UpdateCustomRuleInvestigationQueryObject type. Update a rule's investigation query
| Field | Type | Description |
|---|---|---|
rule | CustomRule | The updated rule |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
