Monitoring plans and findings (GraphQL)

Related queries and mutations in AI features. Each has its own section.

Queries

domainMonitoringPlanEntries (query)

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

Status: Experimental

Each requested domain's monitoring-plan entry state for the caller, in one read: whether a plan is ready, being built, or has a draft of the caller's in progress or ready to review. Drafts are the caller's own, as on the plan tab. Gated like domainMonitoringPlanState; domains the caller can't read plans on are omitted.

Arguments

ArgumentTypeDescription
domainUuids[UUID!]!UUIDs of the metadata domains to read, at most 100.

Returns

[DomainMonitoringPlanEntry!]!

Example

query DomainMonitoringPlanEntries($domainUuids: [UUID!]!) {
  domainMonitoringPlanEntries(domainUuids: $domainUuids) {
    domainUuid
    state
    planUuid
    builtFromDraft
    detectionTime
    runCompletedTime
  }
}

Types used only by domainMonitoringPlanEntries

DomainMonitoringPlanEntry

Object type. One domain's monitoring-plan entry state, for a CTA that opens its plan.

FieldTypeDescription
domainUuidUUID!UUID of the metadata domain.
stateMonitoringPlanEntryState!Where the domain's plan stands for the caller.
planUuidUUIDThe domain's newest complete plan, whatever the state. Null when none.
builtFromDraftBooleanThe plan's MonitoringPlan.builtFromDraft: whether it was built from a reviewed draft selection. Null when planUuid is null.
detectionTimeDateTimeThe plan's MonitoringPlan.detectionTime: when its run started. Null when planUuid is null.
runCompletedTimeDateTimeThe plan's MonitoringPlan.runCompletedTime: when its run reached a terminal status. Null when planUuid is null, and for a plan with no recorded run.
MonitoringPlanEntryState

Enum type. Where a domain's monitoring plan stands for the caller, to label a CTA into its plan.

ValueDescription
NOT_STARTEDNo plan, and no draft of the caller's in progress.
DRAFTINGThe caller's draft is being written.
DRAFT_READYThe caller has a draft to review that no plan was built from yet.
GENERATINGA plan is being built, or its findings are still landing.
PLAN_READYThe newest complete plan is the domain's current state.

Related types

DateTime, UUID

domainMonitoringPlanState (query)

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

Status: Experimental

The domain's monitoring-plan surface in one read: the latest run execution (reconciled against the agent, so a freshly-finished run reports its terminal status immediately) plus the newest COMPLETE plan. Never returns a partial plan: a run's findings arrive asynchronously, so until they have all landed the previous complete plan keeps serving. Poll while settled is false. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access — so a monitor-only user who ran the plan can read it.

Arguments

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain whose monitoring-plan state to fetch.

Returns

DomainMonitoringPlanState!

Example

query DomainMonitoringPlanState($domainUuid: UUID!) {
  domainMonitoringPlanState(domainUuid: $domainUuid) {
    settled
  }
}

Types used only by domainMonitoringPlanState

DomainMonitoringPlanState

Object type. A domain's monitoring-plan surface in one consistent read.

The latest run drives the tab's state (nothing / running / done / failed); the
plan is always the newest COMPLETE one, never a partial. While a new run is in
flight — or finished but still draining the findings ingestion queue — plan
keeps holding the previous complete plan, and settled is what says the window
has closed.

FieldTypeDescription
latestRunAgenticPlatformPipelineExecutionOutputThe domain's most recent monitoring-run execution, reconciled against the agent on read. Null when no run was ever requested.
planMonitoringPlanThe domain's newest fully-ingested plan. Null when no complete plan exists yet. While a newer run is publishing, this keeps holding the previous complete plan.
settledBoolean!Whether this state has stopped moving. False while a run is in flight or a completed run's findings are still being ingested — poll while false. True means what is here is the outcome: a run that failed or published nothing settles without its uuid ever matching the plan's, so poll on this, not on uuid comparison.

Related types

AgenticPlatformPipelineExecutionOutput, MonitoringPlan, UUID

finding (query)

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

Status: Experimental

Fetch a single finding by UUID.

Arguments

ArgumentTypeDescription
idUUID!

Returns

Finding

Example

query Finding($id: UUID!) {
  finding(id: $id) {
    createdTime
    updatedTime
    uuid
    title
    summary
    detectionTime
    detailPayload
    actions
    confidenceScore
    useCase
    criticalityScore
    suggestedNextSteps
    budgetCreditsConsumed
    id
    findingType
    agentType
    severity
    priority
    status
    agenticScopeUuid
  }
}

Related types

Finding, UUID

findings (query)

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

Status: Experimental

List findings produced by autonomous observability agents.

Arguments

ArgumentTypeDescription
filterFindingFilterInput
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

FindingConnection

Example

query Findings {
  findings {
    totalCount
  }
}

Types used only by findings

FindingConnection

Object type.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[FindingEdge]!Contains the nodes in this connection.
totalCountInt!
FindingEdge

Object type. A Relay edge containing a Finding and its cursor.

FieldTypeDescription
nodeFindingThe item at the end of the edge
cursorString!A cursor for use in pagination
FindingFilterInput

Input object type.

FieldTypeDescription
findingTypes[FindingType!]
severities[FindingSeverity!]
priorities[FindingPriority!]
statuses[FindingStatus!]
agentTypes[FindingAgentType!]
agenticScopeUuids[UUID!]
useCases[String!]
assetMconString
monitorUuids[UUID!]Return only findings linked to at least one of the given monitor UUIDs. When combined with monitorRoles, the SAME link must satisfy both predicates (one join, one row) — i.e., the finding must have a monitor link whose uuid is in monitorUuids AND whose role is in monitorRoles. null / omitted = no filter; [] = match nothing.
monitorRoles[FindingMonitorRole!]Return only findings with at least one monitor link in one of the given roles. See monitorUuids for combined-filter semantics. null / omitted = no filter; [] = match nothing.
deployedMonitorUuids[UUID!]Return only findings that deployed at least one of the given monitor UUIDs. Targets the deployedMonitors relation (monitors this finding created or modified) — a different relation than monitorUuids (related/triggering monitors), with no role dimension. When combined with monitorUuids / monitorRoles, the filters compose independently: each adds its own join, so a finding must have a matching row in BOTH relations. null / omitted = no filter; [] = match nothing.
parentFindingUuidUUIDReturn only findings whose parent finding has this UUID.
includeChildrenBooleanWhether to include findings derived from a parent finding (e.g., individual monitors deployed from a coverage-gap finding). Defaults to false so top-level lists show only root findings. Set to true when explicitly fetching children (e.g., for a parent's detail view). Default: false.
stagedBooleanFilter on whether a finding is one phase of a staged monitoring strategy (has a stage). true = only staged-phase findings; false = only non-staged findings (containers, standalone findings); null / omitted = no filter.
searchQueryString
needsAttentionBoolean
detectionTimeStartDateTime
detectionTimeEndDateTime
orderBy[String!]Order results by one or more fields. Prefix a field with '-' for DESC. Allowed fields: title, agentType, status, severity, priority, criticalityScore, useCase, detectionTime. Defaults to '-detectionTime' (newest first). An implicit secondary sort by id guarantees stable pagination.
detectionTimeOrderFindingSortDirectionDEPRECATED: use orderBy: ['detectionTime'] or ['-detectionTime'] instead. Order of results by detection_time. Defaults to DESC (newest first).
FindingSortDirection

Enum type.

ValueDescription
ASC
DESC

Related types

DateTime, Finding, FindingAgentType, FindingMonitorRole, FindingPriority, FindingSeverity, FindingStatus, FindingType, PageInfo, UUID

getDomainMonitoringPlan (query)

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

Status: Deprecated: Returns only one container, so it silently hides the rest of a run that grouped by database. Use latestMonitoringPlan, which returns the run's containers.

DEPRECATED. Returns a domain's latest top-level MONITORING_GAP finding — the outcome of its most recent monitoring run — or null when the domain has none. The finding is either a staged plan (staged=true; read its phases and staged monitors via getDomainMonitoringPlanChildren) or a no-suggestion outcome (staged=false) whose summary explains why the run suggested nothing (e.g. the important tables are already adequately covered, or there were no use cases / monitorable assets in scope). Branch on staged to render the plan vs. the reason. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access — so a monitor-only user who ran the plan can read it back.

Arguments

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain whose monitoring plan to fetch.

Returns

Finding

Example

query GetDomainMonitoringPlan($domainUuid: UUID!) {
  getDomainMonitoringPlan(domainUuid: $domainUuid) {
    createdTime
    updatedTime
    uuid
    title
    summary
    detectionTime
    detailPayload
    actions
    confidenceScore
    useCase
    criticalityScore
    suggestedNextSteps
    budgetCreditsConsumed
    id
    findingType
    agentType
    severity
    priority
    status
    agenticScopeUuid
  }
}

Related types

Finding, UUID

getDomainMonitoringPlanChildren (query)

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

Status: Experimental

Returns the direct children of a monitoring-plan finding — a container's phase findings and a phase's staged monitor findings (with proposedMonitor apply state) — in detection order. Monitor-permission-gated (monitors/management write or propose); the parent is validated to be a MONITORING_GAP finding in a domain the caller is authorized on, so this can never read arbitrary or alerts findings.

Arguments

ArgumentTypeDescription
parentFindingUuidUUID!UUID of a MONITORING_GAP plan finding whose direct children to fetch.
findingTypes[FindingType!]Optional filter narrowing the returned children to these finding types (e.g. [MONITORING_GAP] for phases, [MONITOR_DEPLOYED] for staged monitors). Omitted / null returns every direct child.

Returns

[Finding!]

Example

query GetDomainMonitoringPlanChildren($parentFindingUuid: UUID!) {
  getDomainMonitoringPlanChildren(parentFindingUuid: $parentFindingUuid) {
    createdTime
    updatedTime
    uuid
    title
    summary
    detectionTime
    detailPayload
    actions
    confidenceScore
    useCase
    criticalityScore
    suggestedNextSteps
    budgetCreditsConsumed
    id
    findingType
    agentType
    severity
    priority
    status
    agenticScopeUuid
  }
}

Related types

Finding, FindingType, UUID

getMonitoringPlan (query)

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

Status: Deprecated: Returns one container rather than the run it belongs to. Use monitoringPlan, which accepts the same finding UUID and returns the whole run.

DEPRECATED. Fetches a single monitoring-plan container (a top-level MONITORING_GAP finding) by UUID — backing the monitoring-plan tab's ?plan=<uuid> deeplink. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access. Denies (not found) a non-MONITORING_GAP uuid, a cross-domain plan, or a caller lacking monitor write/propose, so it can never return an alerts finding or a plan for a domain the caller can't see.

Arguments

ArgumentTypeDescription
findingUuidUUID!UUID of a MONITORING_GAP monitoring-plan container finding to fetch.

Returns

Finding

Example

query GetMonitoringPlan($findingUuid: UUID!) {
  getMonitoringPlan(findingUuid: $findingUuid) {
    createdTime
    updatedTime
    uuid
    title
    summary
    detectionTime
    detailPayload
    actions
    confidenceScore
    useCase
    criticalityScore
    suggestedNextSteps
    budgetCreditsConsumed
    id
    findingType
    agentType
    severity
    priority
    status
    agenticScopeUuid
  }
}

Related types

Finding, UUID

getMonitoringPlanForMonitor (query)

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

Status: Deprecated: Names the container but not the run, so the deeplink can't say which section of a multi-container plan staged the monitor. Use monitoringPlanForMonitor.

DEPRECATED. Returns the monitoring-plan container (top-level MONITORING_GAP finding) a monitor was staged from, or null when the monitor was not created from a plan. Backs the monitor-details page's plan deeplink. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access — so a monitor-only user can discover the plan. A plan in a domain the caller can't see is denied.

Arguments

ArgumentTypeDescription
monitorUuidUUID!UUID of a monitor to find the monitoring plan it was staged from.

Returns

Finding

Example

query GetMonitoringPlanForMonitor($monitorUuid: UUID!) {
  getMonitoringPlanForMonitor(monitorUuid: $monitorUuid) {
    createdTime
    updatedTime
    uuid
    title
    summary
    detectionTime
    detailPayload
    actions
    confidenceScore
    useCase
    criticalityScore
    suggestedNextSteps
    budgetCreditsConsumed
    id
    findingType
    agentType
    severity
    priority
    status
    agenticScopeUuid
  }
}

Related types

Finding, UUID

getMonitoringPlans (query)

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

Status: Deprecated: Lists containers, so one run that grouped by database appears as several entries. Use monitoringPlans, which lists one entry per run.

DEPRECATED. Lists all of a domain's top-level MONITORING_GAP monitoring-plan containers (the containers produced by monitoring runs), newest first. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access. Domain-scoped: domainUuid is required and data-authorized against the caller's domain restrictions. Read each plan's phases and staged monitors via getDomainMonitoringPlanChildren.

Arguments

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain whose monitoring plans to list.

Returns

[Finding!]

Example

query GetMonitoringPlans($domainUuid: UUID!) {
  getMonitoringPlans(domainUuid: $domainUuid) {
    createdTime
    updatedTime
    uuid
    title
    summary
    detectionTime
    detailPayload
    actions
    confidenceScore
    useCase
    criticalityScore
    suggestedNextSteps
    budgetCreditsConsumed
    id
    findingType
    agentType
    severity
    priority
    status
    agenticScopeUuid
  }
}

Related types

Finding, UUID

latestMonitoringPlan (query)

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

Status: Experimental

Returns a domain's most recent monitoring run as one plan, or null when the domain has never run. The plan carries every top-level container the run produced — one per database when the run grouped db-centrically — so the whole run is reachable, not just the container that finished last. Unlike monitoringPlans this is NOT restricted to runs that staged monitors: a run that suggested nothing is still returned with staged=false, so an empty run reads as a real result rather than 'never run'. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access — so a monitor-only user who ran the plan can read it back.

Arguments

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain whose latest monitoring plan to fetch.

Returns

MonitoringPlan

Example

query LatestMonitoringPlan($domainUuid: UUID!) {
  latestMonitoringPlan(domainUuid: $domainUuid) {
    planUuid
    agenticScopeUuid
    detectionTime
    staged
    runStatus
    runCompletedTime
    builtFromDraft
    revisesPlanUuid
    correctionCount
  }
}

Related types

MonitoringPlan, UUID

monitoringPlan (query)

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

Status: Experimental

Fetches one monitoring run's plan by UUID — backing the monitoring-plan tab's ?plan=<uuid> deeplink. Returns null (not an error) for an unknown UUID, one that resolves to something other than a monitoring-plan container, or a run whose containers have since been deleted, so a stale deeplink can degrade to the latest plan. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access; a plan in a domain the caller can't see is denied.

Arguments

ArgumentTypeDescription
planUuidUUID!A plan's planUuid. A container finding's UUID also resolves to its plan, so links captured before plans were run-keyed keep working.

Returns

MonitoringPlan

Example

query MonitoringPlan($planUuid: UUID!) {
  monitoringPlan(planUuid: $planUuid) {
    planUuid
    agenticScopeUuid
    detectionTime
    staged
    runStatus
    runCompletedTime
    builtFromDraft
    revisesPlanUuid
    correctionCount
  }
}

Related types

MonitoringPlan, UUID

monitoringPlanCandidateOutcome (query)

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

Status: Experimental

One monitor candidate's outcome and its full check history. Pass exactly one of runUuid, collectionUuid or planUuid. Same monitor-permission and domain boundary as monitoringPlanOutcomes; a guessed candidate id in another account's collection resolves nothing.

Arguments

ArgumentTypeDescription
candidateIdString!The candidate's stable id.
runUuidUUIDThe run's UUID.
collectionUuidUUIDThe collection's own UUID.
planUuidUUIDA plan UUID.

Returns

MonitoringPlanCandidateOutcome

Example

query MonitoringPlanCandidateOutcome($candidateId: String!) {
  monitoringPlanCandidateOutcome(candidateId: $candidateId) {
    collectionUuid
    candidateId
  }
}

Types used only by monitoringPlanCandidateOutcome

MonitoringPlanCandidateOutcome

Object type. One monitor candidate's settled decision plus every check attempt recorded against it, so a client can answer why a monitor is absent without paging the whole collection.

FieldTypeDescription
collectionUuidUUID!
candidateIdString!
decisionMonitoringPlanOutcomeDecisionThe decision that settled the candidate, when one was recorded.
checks[MonitoringPlanOutcomeCheck!]!
MonitoringPlanOutcomeCheck

Object type. One check observed against a monitor candidate. Only a completed check carries a verdict; an unavailable check says nothing about the data.

FieldTypeDescription
uuidUUID!
checkIdString!
checkNameString!Which check ran, e.g. dry_run_preview or field_suitability_probe.
candidateIdStringCandidate checked; null for a table-level check.
attemptIdStringWhich attempt of the candidate was checked.
executionString!Whether the check ran: completed, failed, skipped, unavailable or not_applicable.
verdictStringWhat a completed check established. Null unless execution is completed.
observedAtDateTime!
recordJSONString!The versioned check body, including the checked scope and fingerprints.

Related types

DateTime, JSONString, MonitoringPlanOutcomeDecision, UUID

monitoringPlanForMonitor (query)

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

Status: Experimental

Returns the monitoring run a monitor was staged from plus the container within that run which staged it, or null when the monitor was not created from a plan. Backs the monitor-details page's plan deeplink — deeplink to ?plan=<planUuid>&container=<containerUuid> so the right section is expanded, since a run can hold one container per database. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access — so a monitor-only user can discover the plan. A plan in a domain the caller can't see is denied.

Arguments

ArgumentTypeDescription
monitorUuidUUID!UUID of a monitor to find the monitoring plan it was staged from.

Returns

MonitoringPlanAnchor

Example

query MonitoringPlanForMonitor($monitorUuid: UUID!) {
  monitoringPlanForMonitor(monitorUuid: $monitorUuid) {
    containerUuid
  }
}

Types used only by monitoringPlanForMonitor

MonitoringPlanAnchor

Object type. A monitoring plan plus the container within it to open.

FieldTypeDescription
planMonitoringPlan!The run the monitor was staged from.
containerUuidUUID!UUID of the container within the run that staged the monitor — the section to expand on arrival, since a run can hold one container per database.

Related types

MonitoringPlan, UUID

monitoringPlanOutcomes (query)

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

Status: Experimental

A monitoring run's recorded outcomes: why each table got no new coverage and how each monitor candidate ended. Pass exactly one of runUuid, collectionUuid or planUuid. Filters narrow within that collection and can never widen it. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access — and reauthorized against the collection's domain on every page.

Arguments

ArgumentTypeDescription
runUuidUUIDThe run's UUID. Resolves the collection directly, so this works for a failed or interrupted run that published no findings.
collectionUuidUUIDThe collection's own UUID.
planUuidUUIDA plan UUID, resolved through the monitoring-plan surface first.
ownerKeyStringOnly decisions recorded under this owner.
tableMconStringOnly decisions about this table.
agentIdStringOnly decisions about this agent.
candidateIdStringOnly decisions about this monitor candidate.
afterStringCursor from a previous page's endCursor.
firstIntPage size. Defaults to 50, capped at 200.

Returns

MonitoringPlanOutcomes

Example

query MonitoringPlanOutcomes {
  monitoringPlanOutcomes {
    collectionUuid
    runUuid
    status
    captureStatus
    materializationStatus
    recordingState
    recordingReasons
    recordingDiagnostics
    snapshotRevision
    provisional
    filteredTotal
    decisionCount
    checkCount
  }
}

Types used only by monitoringPlanOutcomes

MonitoringPlanOutcomeEdge

Object type.

FieldTypeDescription
nodeMonitoringPlanOutcomeDecision!
MonitoringPlanOutcomePageInfo

Object type.

FieldTypeDescription
endCursorStringCursor to pass as after for the next page.
hasNextPageBoolean!
MonitoringPlanOutcomes

Object type. A page of a monitoring run's recorded outcomes, plus the collection state a client needs to trust the page.

FieldTypeDescription
collectionUuidUUID!
runUuidUUID!The run the collection belongs to.
statusMonitoringPlanOutcomeStatus!
captureStatusMonitoringPlanOutcomeCaptureStatus!
materializationStatusMonitoringPlanMaterializationStatus!
recordingStateMonitoringPlanRecordingState!Whether the run's outcome producer finished sending, and whether to keep polling. Derived at read time; unlike status, it exists for every collection. Stopping at a non-pending state does not promise an immutable snapshot: late batches can still add rows.
recordingReasons[String!]!Why the recording is not complete: no seal arrived before the ingestion grace elapsed, the run has no terminal time to bound the wait, or capture is disabled. Empty unless recordingState is incomplete or not_recorded.
recordingDiagnostics[String!]!Recording quality, independent of recordingState: producer_loss for records the producer explicitly dropped, recording_uncertainty for protocol errors. A complete recording can carry these — the seal means the producer finished, not that everything landed.
snapshotRevisionInt!Revision of the snapshot this page was read from. Cursors are bound to it; restart pagination from the first page when it changes.
provisionalBoolean!True while the readable set can still change — the run is still recording, or accepted bulk records are still being indexed.
filteredTotalInt!Exact number of persisted records matching the filter.
decisionCountInt!Exact number of persisted decisions in the whole collection.
checkCountInt!Exact number of persisted checks in the whole collection.
edges[MonitoringPlanOutcomeEdge!]!
pageInfoMonitoringPlanOutcomePageInfo!
MonitoringPlanRecordingState

Enum type. Whether the run's outcome producer finished sending, and whether to keep polling.

Derived at read time from the producer's seal and the run's execution
state — not a stored status. It describes the recording, not the
monitoring work: a run that errored can still have recorded completely,
and its execution status says how the run itself went.

  • pending: the producer has not sealed yet; keep polling.
  • complete: the producer sealed. It does not promise every record was
    valid, delivered or persisted — read recordingDiagnostics for that.
  • incomplete: no seal arrived and none is expected; reasons explains.
  • not_recorded: the run was dispatched without outcome capture.
ValueDescription
PENDING
COMPLETE
INCOMPLETE
NOT_RECORDED

Related types

MonitoringPlanMaterializationStatus, MonitoringPlanOutcomeCaptureStatus, MonitoringPlanOutcomeDecision, MonitoringPlanOutcomeStatus, UUID

monitoringPlans (query)

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

Status: Experimental

Lists a domain's monitoring runs as plans, newest run first — the run switcher for the monitoring-plan tab. Restricted to runs that staged at least one monitor, so a standalone monitoring gap never appears as a plan; use latestMonitoringPlan for the latest outcome whether or not it staged anything. Monitor-permission-gated (monitors/management write or propose) — NOT alerts/access. Domain-scoped: domainUuid is required and data-authorized against the caller's domain restrictions.

Arguments

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain whose monitoring plans to list.

Returns

[MonitoringPlan!]

Example

query MonitoringPlans($domainUuid: UUID!) {
  monitoringPlans(domainUuid: $domainUuid) {
    planUuid
    agenticScopeUuid
    detectionTime
    staged
    runStatus
    runCompletedTime
    builtFromDraft
    revisesPlanUuid
    correctionCount
  }
}

Related types

MonitoringPlan, UUID

Mutations

applyMonitorFindings (mutation)

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

Status: Experimental

Apply a monitor-creation finding's monitors (dry-run, draft, or live).

Arguments

ArgumentTypeDescription
audienceConditions[AudienceConditionByUuidInput!]Narrows individual audiences to the triage priorities that reach them. Always a full replace. Omitting the argument (or passing null) makes every audience in audienceUuids unconditional, the same as passing an empty list. A non-empty list replaces the conditions wholesale. Every audience named here must also appear in audienceUuids, which stays the monitor's full audience set. A condition narrows when one of those audiences is notified; it does not add one.
audienceUuids[UUID!]Audiences to route the created monitors' notifications to, replacing whatever the staged config asked for — including any per-audience triage conditions it carried. Omitted or empty leaves the config's own routing alone. An audience that does not exist in this account rejects the whole request, so nothing is half-applied.
dataQualityDimensionStringData quality dimension for every monitor this apply creates. Whether it replaces the staged config's dimension is set by monitorFieldMode. Omitted keeps the config's dimension.
findingUuidUUID!
modeMonitorApplyMode!
monitorFieldModeMonitorFieldModeWhether priority and dataQualityDimension replace the staged config's value or fill it only where missing. Defaults to FILL_MISSING.
priorityStringPriority (P1 to P5) for every monitor this apply creates. Whether it replaces the staged config's priority is set by monitorFieldMode. Omitted keeps the config's priority.
tags[TagKeyValuePairInput!]Tags to add to every monitor this apply creates, on top of the tags in its staged config. Use it on accounts that require tags on monitors.

Returns

ApplyMonitorFindings

Example

mutation ApplyMonitorFindings($findingUuid: UUID!, $mode: MonitorApplyMode!) {
  applyMonitorFindings(findingUuid: $findingUuid, mode: $mode) {
    job {
      uuid
      jobType
      status
      progressTotal
      progressCompleted
      error
      result
      queuedAt
      startedAt
      finishedAt
      lastHeartbeatAt
    }
  }
}

Types used only by applyMonitorFindings

ApplyMonitorFindings

Object type. Apply the monitors of a monitor-creation finding.

The target may be a container (applies all phases in order), a phase (applies
that phase's monitors), or a single monitor finding. Modes: DRY_RUN (validate
only), DRAFT (create paused for review), or CREATE (create live). Work runs
asynchronously — the returned job is polled via queuedJob and per-monitor
progress is read from each monitor finding's proposedMonitor.

FieldTypeDescription
jobQueuedJob!

Related types

AudienceConditionByUuidInput, MonitorApplyMode, MonitorFieldMode, QueuedJob, TagKeyValuePairInput, UUID

applyMonitoringPlan (mutation)

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

Status: Experimental

Apply a whole monitoring plan (dry-run, draft, or live) — one job per staged container, since a plan that grouped by database applies each container independently.

Arguments

ArgumentTypeDescription
audienceConditions[AudienceConditionByUuidInput!]Narrows individual audiences to the triage priorities that reach them. Always a full replace. Omitting the argument (or passing null) makes every audience in audienceUuids unconditional, the same as passing an empty list. A non-empty list replaces the conditions wholesale. Every audience named here must also appear in audienceUuids, which stays the monitor's full audience set. A condition narrows when one of those audiences is notified; it does not add one.
audienceUuids[UUID!]Audiences to route the created monitors' notifications to, replacing whatever the staged config asked for — including any per-audience triage conditions it carried. Omitted or empty leaves the config's own routing alone. An audience that does not exist in this account rejects the whole request, so nothing is half-applied.
dataQualityDimensionStringData quality dimension for every monitor this apply creates. Whether it replaces the staged config's dimension is set by monitorFieldMode. Omitted keeps the config's dimension.
modeMonitorApplyMode!
monitorFieldModeMonitorFieldModeWhether priority and dataQualityDimension replace the staged config's value or fill it only where missing. Defaults to FILL_MISSING.
planUuidUUID!planUuid of the monitoring plan to apply.
priorityStringPriority (P1 to P5) for every monitor this apply creates. Whether it replaces the staged config's priority is set by monitorFieldMode. Omitted keeps the config's priority.
tags[TagKeyValuePairInput!]Tags to add to every monitor this apply creates, on top of the tags in its staged config. Use it on accounts that require tags on monitors.

Returns

ApplyMonitoringPlan

Example

mutation ApplyMonitoringPlan($mode: MonitorApplyMode!, $planUuid: UUID!) {
  applyMonitoringPlan(mode: $mode, planUuid: $planUuid) {
    jobs {
      uuid
      jobType
      status
      progressTotal
      progressCompleted
      error
      result
      queuedAt
      startedAt
      finishedAt
      lastHeartbeatAt
    }
  }
}

Types used only by applyMonitoringPlan

ApplyMonitoringPlan

Object type. Apply every staged container of a monitoring plan.

A run that groups its work by database produces one container per database, and
each container applies independently — so enabling a whole plan starts one job per
staged container. Poll all of them via queuedJob; per-monitor progress is read
from each monitor finding's proposedMonitor, as with a single-container apply.

FieldTypeDescription
jobs[QueuedJob!]!One job per staged container, in plan order. Containers that staged nothing are skipped, so this can be shorter than the plan's containers.

Related types

AudienceConditionByUuidInput, MonitorApplyMode, MonitorFieldMode, QueuedJob, TagKeyValuePairInput, UUID

applyMonitoringPlanSubset (mutation)

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

Status: Experimental

Apply only the named monitors of a monitoring plan (dry-run, draft, or live) — one job per container the selection touches. Use this instead of applyMonitoringPlan when the customer accepted some of the plan's proposed monitors rather than all of them.

Arguments

ArgumentTypeDescription
audienceConditions[AudienceConditionByUuidInput!]Narrows individual audiences to the triage priorities that reach them. Always a full replace. Omitting the argument (or passing null) makes every audience in audienceUuids unconditional, the same as passing an empty list. A non-empty list replaces the conditions wholesale. Every audience named here must also appear in audienceUuids, which stays the monitor's full audience set. A condition narrows when one of those audiences is notified; it does not add one.
audienceUuids[UUID!]Audiences to route the created monitors' notifications to, replacing whatever the staged config asked for — including any per-audience triage conditions it carried. Omitted or empty leaves the config's own routing alone. An audience that does not exist in this account rejects the whole request, so nothing is half-applied.
dataQualityDimensionStringData quality dimension for every monitor this apply creates. Whether it replaces the staged config's dimension is set by monitorFieldMode. Omitted keeps the config's dimension.
modeMonitorApplyMode!
monitorFieldModeMonitorFieldModeWhether priority and dataQualityDimension replace the staged config's value or fill it only where missing. Defaults to FILL_MISSING.
monitorFindingUuids[UUID!]!Findings of the individual monitors to apply — the uuid of each monitor-creation leaf finding. Duplicates are collapsed; an empty list is rejected.
planUuidUUID!planUuid of the monitoring plan to apply from.
priorityStringPriority (P1 to P5) for every monitor this apply creates. Whether it replaces the staged config's priority is set by monitorFieldMode. Omitted keeps the config's priority.
tags[TagKeyValuePairInput!]Tags to add to every monitor this apply creates, on top of the tags in its staged config. Use it on accounts that require tags on monitors.

Returns

ApplyMonitoringPlanSubset

Example

mutation ApplyMonitoringPlanSubset($mode: MonitorApplyMode!, $monitorFindingUuids: [UUID!]!, $planUuid: UUID!) {
  applyMonitoringPlanSubset(mode: $mode, monitorFindingUuids: $monitorFindingUuids, planUuid: $planUuid) {
    jobs {
      uuid
      jobType
      status
      progressTotal
      progressCompleted
      error
      result
      queuedAt
      startedAt
      finishedAt
      lastHeartbeatAt
    }
  }
}

Types used only by applyMonitoringPlanSubset

ApplyMonitoringPlanSubset

Object type. Apply an explicit subset of a monitoring plan's proposed monitors.

Partial accept: a customer who wants some of a plan's proposed monitors enables
exactly those, instead of enabling all of them and deleting the rest. Only the
containers the selection actually touches get a job, so this returns one job per
affected container rather than one per staged container — poll them all via
queuedJob, as with a whole-plan apply.

Every uuid in monitorFindingUuids must be a monitor finding staged under this
plan; a uuid that is not rejects the whole request, so a monitor the customer
picked is never silently skipped. Under enforced table coverage, a selection that
keeps a monitor but drops the table monitor staged to cover its target is also
rejected, naming the monitor to add — those monitors would otherwise be created
only to be refused one by one.

Unlike applyMonitoringPlan this is allowed while the plan's run is still
publishing: the request names specific monitors and every one is verified to exist
before any job is created, so there is no whole-plan claim for an in-flight run to
falsify.

FieldTypeDescription
jobs[QueuedJob!]!One job per container the selection touches, in plan order. Containers no selected monitor belongs to are skipped, so this is usually shorter than the plan's containers.

Related types

AudienceConditionByUuidInput, MonitorApplyMode, MonitorFieldMode, QueuedJob, TagKeyValuePairInput, UUID

deleteFinding (mutation)

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

Status: Experimental

Delete a finding and all of its child findings (system users only). Optionally also delete the monitors those findings deployed.

Arguments

ArgumentTypeDescription
deleteDeployedMonitorsBooleanWhether to also delete the real monitors these findings deployed. false (default): only the findings and their link records are removed; the deployed monitors are left intact. true: the deployed monitors are also deleted. null is treated as false. Default: false.
findingUuidUUID!

Returns

DeleteFinding

Example

mutation DeleteFinding($findingUuid: UUID!) {
  deleteFinding(findingUuid: $findingUuid) {
    deletedFindingCount
    deletedMonitorCount
  }
}

Types used only by deleteFinding

DeleteFinding

Object type. Permanently delete a finding and all of its child findings.

Restricted to Monte Carlo system users. Deletes the target finding and every
finding derived from it (its child-finding subtree), along with each finding's
monitor, deployed-monitor, alert, asset, and feedback links.

FieldTypeDescription
deletedFindingCountInt!Number of findings deleted, including the target and all child findings.
deletedMonitorCountInt!Number of deployed monitors deleted (0 unless deleteDeployedMonitors was set).

Related types

UUID

submitFindingFeedback (mutation)

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

Status: Experimental

Append user feedback on a finding.

Arguments

ArgumentTypeDescription
actionFindingFeedbackAction!
findingUuidUUID!
noteString

Returns

SubmitFindingFeedback

Example

mutation SubmitFindingFeedback($action: FindingFeedbackAction!, $findingUuid: UUID!) {
  submitFindingFeedback(action: $action, findingUuid: $findingUuid) {
    finding {
      createdTime
      updatedTime
      uuid
      title
      summary
      detectionTime
      detailPayload
      actions
      confidenceScore
      useCase
      criticalityScore
      suggestedNextSteps
      budgetCreditsConsumed
      id
      findingType
      agentType
      severity
      priority
      status
      agenticScopeUuid
    }
  }
}

Types used only by submitFindingFeedback

SubmitFindingFeedback

Object type. Append user feedback (Confirm/Override/Dismiss/Undo) to a finding.

FieldTypeDescription
findingFinding!

Related types

Finding, FindingFeedbackAction, UUID

Source: The GraphQL API reference

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