Monitors, part 3 of 3 (GraphQL)

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

Mutations

tuneTableMonitorAssetRuleThreshold (mutation)

tuneTableMonitorAssetRuleThreshold 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

Tune only the sensitivity or manual threshold of a table monitor's per-asset OOTB replacement rule (create-or-update)

Arguments

ArgumentTypeDescription
freshnessThresholdMinutesIntManual freshness threshold in minutes (FRESHNESS only)
ruleTypeTableMonitorAssetRuleType!Which OOTB detector to tune
sensitivitySensitivityLevelsAuto-threshold sensitivity (mutually exclusive with a manual threshold)
tableString!Full table id of the asset
unchangedSizeThresholdMinutesIntManual unchanged-size threshold in minutes (UNCHANGED_SIZE only)
volumeLookbackMinutesIntLookback window for the volume-change band (VOLUME_CHANGE only)
volumeLowerThresholdFloatManual lower bound of the volume-change band (VOLUME_CHANGE only)
volumeUpperThresholdFloatManual upper bound of the volume-change band (VOLUME_CHANGE only)
warehouseString!Warehouse name or UUID

Returns

TuneTableMonitorAssetRuleThreshold

Example

mutation TuneTableMonitorAssetRuleThreshold($ruleType: TableMonitorAssetRuleType!, $table: String!, $warehouse: String!) {
  tuneTableMonitorAssetRuleThreshold(ruleType: $ruleType, table: $table, warehouse: $warehouse) {
    success
    uuid
    ruleType
  }
}

Types used only by tuneTableMonitorAssetRuleThreshold

TableMonitorAssetRuleType

Enum type. The OOTB detector this rule configures. Volume-change and unchanged-size are both
backed by VolumeSLO but use different volume metrics. Schema-change is a per-table
on/off flag rather than a CustomRuleModel, so it has no YAML/SLO.

ValueDescription
FRESHNESS
VOLUME_CHANGE
UNCHANGED_SIZE
SCHEMA
TuneTableMonitorAssetRuleThreshold

Object type. Tune ONLY the breach boundary of a table monitor's per-asset OOTB replacement rule.

Changes a single asset/metric detector's auto sensitivity OR its manual threshold — for
freshness, volume change, or unchanged size — creating the replacement rule on first use and
updating it thereafter, without touching schedule, notifications, severity, or any other part
of the rule. Available to a tune-capable role without broad table-edit access; the caller must
still be able to see the table.

Supply exactly one knob. Sensitivity and the manual threshold are mutually exclusive modes; the
manual threshold's shape depends on ruleType:

  • FRESHNESS: freshnessThresholdMinutes (alert when not updated for longer than this).
  • UNCHANGED_SIZE: unchangedSizeThresholdMinutes (alert when unchanged for longer than this).
  • VOLUME_CHANGE: an out-of-range band volumeUpperThreshold / volumeLowerThreshold
    (optionally with volumeLookbackMinutes).
FieldTypeDescription
successBoolean!
uuidUUID!UUID of the created or updated OOTB replacement rule
ruleTypeTableMonitorAssetRuleType!

Related types

SensitivityLevels, UUID

updateMonitorDescription (mutation)

updateMonitorDescription 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: General availability

Set the monitor description

Arguments

ArgumentTypeDescription
descriptionString!The new monitor name (the description field)
monitorTypeStringDEPRECATED: field is ignored
monitorUuidUUID!UUID of the metric monitor or custom rule

Returns

UpdateMonitorDescription

Example

mutation UpdateMonitorDescription($description: String!, $monitorUuid: UUID!) {
  updateMonitorDescription(description: $description, monitorUuid: $monitorUuid) {
    success
  }
}

Types used only by updateMonitorDescription

UpdateMonitorDescription

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorLabels (mutation)

updateMonitorLabels 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: General availability

Set the monitor labels

Arguments

ArgumentTypeDescription
labels[String]!Labels to insert on the monitor
monitorTypeStringDEPRECATED: field is ignored
monitorUuidUUID!UUID of the metric monitor or custom rule

Returns

UpdateMonitorLabels

Example

mutation UpdateMonitorLabels($labels: [String]!, $monitorUuid: UUID!) {
  updateMonitorLabels(labels: $labels, monitorUuid: $monitorUuid) {
    success
  }
}

Types used only by updateMonitorLabels

UpdateMonitorLabels

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorName (mutation)

updateMonitorName 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 updateMonitorDescription instead

DEPRECATED. Set the monitor description

Arguments

ArgumentTypeDescription
monitorTypeStringDEPRECATED: field is ignored
monitorUuidUUID!UUID of the metric monitor or custom rule
nameString!The new monitor name (the description field)

Returns

UpdateMonitorName

Example

mutation UpdateMonitorName($monitorUuid: UUID!, $name: String!) {
  updateMonitorName(monitorUuid: $monitorUuid, name: $name) {
    success
  }
}

Types used only by updateMonitorName

UpdateMonitorName

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorNotes (mutation)

updateMonitorNotes 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: General availability

Set the monitor notes

Arguments

ArgumentTypeDescription
monitorTypeStringDEPRECATED: field is ignored
monitorUuidUUID!UUID of the metric monitor or custom rule
notesString!The notes for the monitor

Returns

UpdateMonitorNotes

Example

mutation UpdateMonitorNotes($monitorUuid: UUID!, $notes: String!) {
  updateMonitorNotes(monitorUuid: $monitorUuid, notes: $notes) {
    success
  }
}

Types used only by updateMonitorNotes

UpdateMonitorNotes

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorsPriorities (mutation)

updateMonitorsPriorities 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 the priorities of monitors

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!UUIDs of the metric monitors or custom rules
priorityStringThe new priority for the monitors

Returns

UpdateMonitorsPriorities

Example

mutation UpdateMonitorsPriorities($monitorUuids: [UUID!]!) {
  updateMonitorsPriorities(monitorUuids: $monitorUuids) {
    success
  }
}

Types used only by updateMonitorsPriorities

UpdateMonitorsPriorities

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

updateMonitorsSchedules (mutation)

updateMonitorsSchedules 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 the schedules of monitors

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!UUIDs of the metric monitors or custom rules
scheduleConfigScheduleConfigInput!Schedule

Returns

UpdateMonitorsSchedules

Example

mutation UpdateMonitorsSchedules($monitorUuids: [UUID!]!, $scheduleConfig: ScheduleConfigInput!) {
  updateMonitorsSchedules(monitorUuids: $monitorUuids, scheduleConfig: $scheduleConfig) {
    success
  }
}

Types used only by updateMonitorsSchedules

UpdateMonitorsSchedules

Object type.

FieldTypeDescription
successBoolean

Related types

ScheduleConfigInput, UUID

updateMonitorsSensitivity (mutation)

updateMonitorsSensitivity 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 update sensitivity for monitors

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!UUIDs of the monitors to update
sensitivitySensitivityLevels!Target sensitivity level

Returns

UpdateMonitorsSensitivityResponse

Example

mutation UpdateMonitorsSensitivity($monitorUuids: [UUID!]!, $sensitivity: SensitivityLevels!) {
  updateMonitorsSensitivity(monitorUuids: $monitorUuids, sensitivity: $sensitivity) {
    updated
    skipped
  }
}

Types used only by updateMonitorsSensitivity

UpdateMonitorsSensitivityResponse

Object type.

FieldTypeDescription
updatedInt!Number of monitors whose sensitivity was updated
skippedInt!Number of monitors skipped (manual thresholds or unsupported type)

Related types

SensitivityLevels, UUID

Source: The GraphQL API reference

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