Incidents and alert updates, part 1 of 2 (GraphQL)

Related queries and mutations in Alerts and incidents. Each has its own section.

Queries

getAlertNotificationSettingsUsed (query)

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

Status: Experimental

The notification settings that were used to send notifications for the alert

Arguments

ArgumentTypeDescription
alertIdUUID!The alert UUID

Returns

[AccountNotificationSetting]

Example

query GetAlertNotificationSettingsUsed($alertId: UUID!) {
  getAlertNotificationSettingsUsed(alertId: $alertId) {
    id
    deletedAt
    uuid
    createdTime
    lastUpdateTime
    name
    isTemplateManaged
    namespace
    type
    recipients
    extra
    notificationScheduleType
    notificationEnabled
    recipientDisplayName
    recipientsDisplayNames
    permalink
    alertSubTypes
    customMessage
    integrationId
    channelUrl
  }
}

Related types

AccountNotificationSetting, UUID

getAlertTypeSummary (query)

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

Get a summary of counts by type for alerts in the account

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
startTimeDateTimeFilter for alerts newer than this
endTimeDateTimeFilter for alerts older than this
domainIdUUIDFilter by domain UUID

Returns

AlertTypeSummary

Example

query GetAlertTypeSummary {
  getAlertTypeSummary {
    anomalies
    schemaChanges
    jsonSchemaChanges
    deletedTables
    metricAnomalies
    agentMetricAnomalies
    agentEvaluationAnomalies
    agentAnomalies
    metricComparisonAnomalies
    customRuleAnomalies
    performanceAnomalies
    dbtErrors
    etlErrors
    pseudoIntegrationTest
    ruleRunExecutionError
    merged
  }
}

Types used only by getAlertTypeSummary

AlertTypeSummary

Object type.

FieldTypeDescription
anomaliesInt
schemaChangesInt
jsonSchemaChangesInt
deletedTablesInt
metricAnomaliesInt
agentMetricAnomaliesInt
agentEvaluationAnomaliesInt
agentAnomaliesInt
metricComparisonAnomaliesInt
customRuleAnomaliesInt
performanceAnomaliesInt
dbtErrorsInt
etlErrorsInt
pseudoIntegrationTestInt
ruleRunExecutionErrorInt
mergedInt

Related types

DateTime, UUID

getCommentsForMonitorIncidents (query)

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

Get comments associated with incidents that have events created by the monitors

Arguments

ArgumentTypeDescription
monitorUuids[UUID]Monitor uuids
startTimeDateTimeFilter for comments newer than this
endTimeDateTimeFilter for comments older than this
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

EventConnection

Example

query GetCommentsForMonitorIncidents {
  getCommentsForMonitorIncidents {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DateTime, EventConnection, UUID

getEvent (query)

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

Arguments

ArgumentTypeDescription
uuidUUID

Returns

Event

Example

query GetEvent {
  getEvent {
    id
    eventType
    accountUuid
    createdTime
    data
    ackTimestamp
    eventState
    notifiedUsers
    totalComments
    importanceScore
    isImportant
    isChild
    uuid
    monitorId
    parentMonitorId
    customRuleEntities
    customRuleProjects
    customRuleDatasets
    eventGeneratedTime
    hasLiveFreshness
  }
}

Related types

Event, UUID

getEventGroups (query)

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

Status: Experimental

Get event groups, excluding metric events

Arguments

ArgumentTypeDescription
alertIdUUID!Filter by alert (grouping of related events)

Returns

[EventGroup]

Example

query GetEventGroups($alertId: UUID!) {
  getEventGroups(alertId: $alertId) {
    groupKey {
      monitorUuid
      eventType
      tableMcon
      metric
      queryGroupHash
      jobMcon
      jobRunId
    }
  }
}

Types used only by getEventGroups

EventGroup

Object type.

FieldTypeDescription
groupKeyEventGroupKey!Attributes that uniquely defines an event group
groupMetadataEventGroupMetadata!Additional metadata of the event group (not used to create the event group)
groupEvents[Event]!List of events in an event group

Related types

Event, EventGroupKey, EventGroupMetadata, UUID

getEventGroupsPaginated (query)

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

Status: Experimental

Get event groups with pagination support, excluding metric events. Supports nested pagination of events within each group via groupEvents(first, after).

Arguments

ArgumentTypeDescription
alertIdUUID!Filter by alert (grouping of related events)
groupIdStringFilter by a specific group ID
beforeString
afterString
firstInt
lastInt

Returns

PaginatedEventGroupConnection

Example

query GetEventGroupsPaginated($alertId: UUID!) {
  getEventGroupsPaginated(alertId: $alertId) {
    totalCount
  }
}

Types used only by getEventGroupsPaginated

GroupEventConnection

Object type. Connection type for paginating events within a group.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[GroupEventEdge]!Contains the nodes in this connection.
totalCountIntTotal number of events in the group
GroupEventEdge

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

FieldTypeDescription
nodeEventThe item at the end of the edge
cursorString!A cursor for use in pagination
PaginatedEventGroup

Object type. Event group with paginated events for use with getEventGroupsPaginated.

FieldTypeDescription
groupIdString!Unique identifier for the event group (hash of group key)
groupKeyEventGroupKey!Attributes that uniquely defines an event group
groupMetadataEventGroupMetadata!Additional metadata of the event group (not used to create the event group)
groupEventsGroupEventConnectionPaginated list of events in an event group
PaginatedEventGroupConnection

Object type.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[PaginatedEventGroupEdge]!Contains the nodes in this connection.
totalCountIntTotal number of event groups
PaginatedEventGroupEdge

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

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

Related types

Event, EventGroupKey, EventGroupMetadata, PageInfo, UUID

getEvents (query)

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

Get events (i.e. anomalies, changes, etc.) in my account

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
fullTableIdStringFilter by the full table id (e.g. project:dataset.table)
eventTypeStringFilter by the type of event
eventTypes[String]Filter by a list of types
datasetStringFilter by the dataset
tablesOlderThanDaysIntFilter for events based on table age
eventStates[String]Filter by a list of states
excludeStateStringExclude a specific state
startTimeDateTimeFilter for events newer than this
endTimeDateTimeFilter for events older than this
incidentIdUUIDFilter by incident (grouping of related events). Deprecated, use alertId instead
alertIdUUIDFilter by alert (grouping of related events)
includeTimelineEventsBooleanFlag that decides whether to include incident timeline related events. If event_types specified, this will be ignored.
includeAnomalyEventsBooleanFlag that decides whether to include anomaly timeline related events. If event_types specified, this will be ignored
descOrderBooleanReturns events in descending order of create_time
monitorIdUUIDFilter by the UUID of the monitor or rule that generated the event
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

EventConnection

Example

query GetEvents {
  getEvents {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DateTime, EventConnection, UUID

getEventsForAlerts (query)

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

Status: Experimental

Get events by filtering on associated alert properties

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
domainIdUUIDFilter by domain UUID
eventTypes[String]Filter by a list of types
alertEndTimeDateTimeFilter for events belonging to alerts older than this time
alertRuleIdUUIDFilter for events belonging to alerts that are associated with this custom rule UUID
alertFullTableIds[String]Filter for events belonging to alerts associated with these full table ids
descOrderBooleanReturns events in descending order of create_time
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

EventConnection

Example

query GetEventsForAlerts {
  getEventsForAlerts {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DateTime, EventConnection, UUID

getEventsForIncidents (query)

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

Status: Deprecated: Use getEventsForAlerts instead

DEPRECATED. Get events by filtering on associated incident properties

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
domainIdUUIDFilter by domain UUID
eventTypes[String]Filter by a list of types
incidentEndTimeDateTimeFilter for events belonging to incidents older than this time
incidentRuleIdUUIDFilter for events belonging to incidents that are associated with this custom rule UUID
incidentFullTableIds[String]Filter for events belonging to incidents associated with these full table ids
descOrderBooleanReturns events in descending order of create_time
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

EventConnection

Example

query GetEventsForIncidents {
  getEventsForIncidents {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DateTime, EventConnection, UUID

getEventTypeSummary (query)

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

Arguments

ArgumentTypeDescription
resourceIdUUID
startTimeDateTime
endTimeDateTime

Returns

EventTypeSummary

Example

query GetEventTypeSummary {
  getEventTypeSummary {
    schemaChange
    freshAnom
    unchangedSizeAnom
    jsonSchemaChange
    deleteTable
    sizeAnom
    sizeDiff
    metricAnom
    metricComparisonAnom
    agentMetricAnom
    agentEvaluationAnom
    agentTrajectoryAnom
    agentValidationAnom
    agentAnom
    customRuleAnom
    validationAnom
    distAnom
    queryRuntimeAnom
    queryPerformanceAnom
    dbtModelError
  }
}

Related types

DateTime, EventTypeSummary, UUID

getFhEvents (query)

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

Status: Experimental

Get metric monitor events for the given incident

Arguments

ArgumentTypeDescription
incidentIdUUIDIncident for which to retrieve events. Deprecated, use alertId instead
alertIdUUIDAlert for which to retrieve events
whereConditionStringFilter by segmented where condition
whereConditions[String!]Filter events which for any of the given where conditions.
metricStringFilter by metric name
fieldStringFilter by field name
segments[String!]Filter events which for any of the given segments.
searchValues[String!]Filter events which contain any of the search values on either their where_condition, metric, or field.
firstIntNumber of results to return (default: 1,000)
offsetIntFrom which offset to return the next results
descOrderBooleanReturns events in descending order Default: false.

Returns

FHEvents

Example

query GetFhEvents {
  getFhEvents {
    totalCount
  }
}

Related types

FHEvents, UUID

getFhEventsByMonitor (query)

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

Status: Experimental

Get metric monitor events for the given monitor

Arguments

ArgumentTypeDescription
monitorIdUUIDMonitor for which to retrieve events.
bulkMonitorIdUUIDBulk monitor for which to retrieve events.
fullTableIdStringFull table ID to filter events for a table when using bulkMonitorId.
startTimeDateTime!Filter for events created after this
endTimeDateTime!Filter for events created before this
whereConditionStringFilter by segmented where condition
whereConditions[String!]Filter events which for any of the given where conditions.
segments[String!]Filter events which for any of the given segments.
metricStringFilter by metric name
fieldStringFilter by field name
firstIntNumber of results to return (default: 1,000)
offsetIntFrom which offset to return the next results
descOrderBooleanReturns events in descending order Default: false.

Returns

FHEvents

Example

query GetFhEventsByMonitor($startTime: DateTime!, $endTime: DateTime!) {
  getFhEventsByMonitor(startTime: $startTime, endTime: $endTime) {
    totalCount
  }
}

Related types

DateTime, FHEvents, UUID

getFhEventsFieldFilterValues (query)

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

Get possible field names for FH events filter

Arguments

ArgumentTypeDescription
incidentIdUUIDIncident for which to retrieve filter values. Deprecated, use alertId instead
alertIdUUIDAlert for which to retrieve filter values
whereConditionStringFilter by segmented where condition
metricStringFilter by metric name

Returns

[String]

Example

query GetFhEventsFieldFilterValues {
  getFhEventsFieldFilterValues
}

Related types

UUID

getFhEventsMetricFilterValues (query)

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

Get possible metric names for FH events filter

Arguments

ArgumentTypeDescription
incidentIdUUIDIncident for which to retrieve filter values. Deprecated, use alertId instead
alertIdUUIDAlert for which to retrieve filter values
whereConditionStringFilter by segmented where condition
fieldStringFilter by field name

Returns

[String]

Example

query GetFhEventsMetricFilterValues {
  getFhEventsMetricFilterValues
}

Related types

UUID

getFhEventsWhereConditionFilterValues (query)

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

Get possible segmented where conditions for FH events filter

Arguments

ArgumentTypeDescription
incidentIdUUIDIncident for which to retrieve filter values. Deprecated, use alertId instead
alertIdUUIDAlert for which to retrieve filter values
metricStringFilter by metric name
fieldStringFilter by field name

Returns

[String]

Example

query GetFhEventsWhereConditionFilterValues {
  getFhEventsWhereConditionFilterValues
}

Related types

UUID

getFhEventsWhereConditionFilterValuesPaginated (query)

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

Status: Experimental

Get possible segmented where conditions for FH events filter

Arguments

ArgumentTypeDescription
incidentIdUUIDIncident for which to retrieve filter values. Deprecated, use alertId instead
alertIdUUIDAlert for which to retrieve filter values
metricStringFilter by metric name
fieldStringFilter by field name
searchValues[String!]Filter values which contain any of the search values
firstIntNumber of results to return (default: 1,000) Default: 1000.
offsetIntFrom which offset to return the next results Default: 0.
descOrderBooleanReturns values in descending order Default: false.

Returns

FHEventsFilterValues

Example

query GetFhEventsWhereConditionFilterValuesPaginated {
  getFhEventsWhereConditionFilterValuesPaginated {
    values
    totalCount
  }
}

Types used only by getFhEventsWhereConditionFilterValuesPaginated

FHEventsFilterValues

Object type.

FieldTypeDescription
values[String!]!List of values
totalCountInt!Total number of results available

Related types

UUID

getIncidentNotificationSettingsUsed (query)

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

Status: Deprecated: Use getAlertNotificationSettingsUsed instead

DEPRECATED. The notification settings that were used to send notifications for the incident

Arguments

ArgumentTypeDescription
incidentIdUUID!The incident UUID

Returns

[AccountNotificationSetting]

Example

query GetIncidentNotificationSettingsUsed($incidentId: UUID!) {
  getIncidentNotificationSettingsUsed(incidentId: $incidentId) {
    id
    deletedAt
    uuid
    createdTime
    lastUpdateTime
    name
    isTemplateManaged
    namespace
    type
    recipients
    extra
    notificationScheduleType
    notificationEnabled
    recipientDisplayName
    recipientsDisplayNames
    permalink
    alertSubTypes
    customMessage
    integrationId
    channelUrl
  }
}

Related types

AccountNotificationSetting, UUID

getIncidents (query)

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

Status: Deprecated: Use getAlerts instead

DEPRECATED. Get incidents (i.e. a collection of related events) in my account

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
incidentTypes[String]Filter by type of incident (e.g. anomalies)
incidentSubTypes[IncidentSubType]Filter by incident sub type (e.g. freshness_anomaly)
eventTypes[String]Filter by type of event as an incident can have multiple event types
eventStates[String]Filter by the state individual events are in
startTimeDateTimeFilter for incidents newer than this
endTimeDateTimeFilter for incidents older than this
incidentIds[UUID]Filter for specific incidents
owners[String]Filter for specific owners
severities[String]Filter for specific severities
priorities[String]Filter for specific priorities
includeFeedback[String]Filter by user feedback
excludeFeedback[String]Exclude by user feedback
projects[String]Filter by projects
datasets[String]Filter by datasets
tables[String]Filter by tables
fullTableIds[String]Filter by full table ids
includeTimelineEventsBooleanFlag decides whether to include timeline events or not. By default it's false. If event_types field set, this will be ignored too.
includeAnomalyEventsBooleanFlag decides whether to include anomaly events or not. By default it's false. If event_types field set, this will be ignored too.
domainIdUUIDFilter by domain UUID
monitorIds[UUID]Filter for specific monitors
ruleIdUUIDFilter by custom rule UUID
tagKeyValuePairs[TagKeyValuePairInput]Filter by tag key values
tagKeyValues[TagPair](Deprecated, use tag_key_value_pairs instead) Filter by tag key values
tagKeys[String](Deprecated, use tag_key_value_pairs instead) Filter by tag keys
minEventCountIntFilter to incidents with at least this many events
maxEventCountIntFilter to incidents with at most this many events
containsKeyAssetBooleanIf true, filter to incidents containing a key asset
includeNormalizedBooleanIf false, filter out normalized events.
hasJiraTicketsBooleanIf false, include incidents without jira tickets. If true, include incidents with jira tickets. If null, return all incidents.
hasServicenowIncidentsBooleanIf false, include incidents without ServiceNow incidents. If true, include incidents with ServiceNow incidents. If null, return all incidents.
hasOpsgenieIncidentsBooleanIf false, include incidents without Opsgenie incidents. If true, include incidents with Opsgenie incidents. If null, return all incidents.
jobMcons[String]If provided, filter incidents by job mcons
audienceUuids[UUID]Filter for specific audience uuids
offsetInt
beforeString
afterString
firstInt
lastInt
orderByStringOrdering

Returns

IncidentConnection

Example

query GetIncidents {
  getIncidents {
    totalCount
  }
}

Related types

DateTime, IncidentConnection, IncidentSubType, TagKeyValuePairInput, TagPair, UUID

getIncidentsCountByDate (query)

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

Status: Deprecated: Use getAlertsCountByDate instead

DEPRECATED. Get incidents (i.e. a collection of related events) in my account

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
incidentTypes[String]Filter by type of incident (e.g. anomalies)
incidentSubTypes[IncidentSubType]Filter by incident sub type (e.g. freshness_anomaly)
eventTypes[String]Filter by type of event as an incident can have multiple event types
eventStates[String]Filter by the state individual events are in
startTimeDateTimeFilter for incidents newer than this
endTimeDateTimeFilter for incidents older than this
incidentIds[UUID]Filter for specific incidents
owners[String]Filter for specific owners
severities[String]Filter for specific severities
priorities[String]Filter for specific priorities
includeFeedback[String]Filter by user feedback
excludeFeedback[String]Exclude by user feedback
projects[String]Filter by projects
datasets[String]Filter by datasets
tables[String]Filter by tables
fullTableIds[String]Filter by full table ids
includeTimelineEventsBooleanFlag decides whether to include timeline events or not. By default it's false. If event_types field set, this will be ignored too.
includeAnomalyEventsBooleanFlag decides whether to include anomaly events or not. By default it's false. If event_types field set, this will be ignored too.
domainIdUUIDFilter by domain UUID
monitorIds[UUID]Filter for specific monitors
ruleIdUUIDFilter by custom rule UUID
tagKeyValuePairs[TagKeyValuePairInput]Filter by tag key values
tagKeyValues[TagPair](Deprecated, use tag_key_value_pairs instead) Filter by tag key values
tagKeys[String](Deprecated, use tag_key_value_pairs instead) Filter by tag keys
minEventCountIntFilter to incidents with at least this many events
maxEventCountIntFilter to incidents with at most this many events
containsKeyAssetBooleanIf true, filter to incidents containing a key asset
includeNormalizedBooleanIf false, filter out normalized events.
hasJiraTicketsBooleanIf false, include incidents without jira tickets. If true, include incidents with jira tickets. If null, return all incidents.
hasServicenowIncidentsBooleanIf false, include incidents without ServiceNow incidents. If true, include incidents with ServiceNow incidents. If null, return all incidents.
hasOpsgenieIncidentsBooleanIf false, include incidents without Opsgenie incidents. If true, include incidents with Opsgenie incidents. If null, return all incidents.
jobMcons[String]If provided, filter incidents by job mcons
audienceUuids[UUID]Filter for specific audience uuids
beforeString
afterString
firstInt
lastInt

Returns

IncidentsCountByDateConnection

Example

query GetIncidentsCountByDate {
  getIncidentsCountByDate {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Types used only by getIncidentsCountByDate

IncidentsCountByDate

Object type.

FieldTypeDescription
dateDateDate of the count
countIntCount of incidents on the date
IncidentsCountByDateConnection

Object type.

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

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

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

Related types

Date, DateTime, IncidentSubType, PageInfo, TagKeyValuePairInput, TagPair, UUID

getIncidentsFilters (query)

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

Status: Deprecated: Use getAlertsFilters instead

DEPRECATED. Filters that can be applied when requesting for a list of incidents

Returns

[IncidentsFilter]

Example

query GetIncidentsFilters {
  getIncidentsFilters {
    fieldName
    displayName
    incidentsParameterName
    incidentsParameterAcceptsMultipleValues
    facetable
    facetSearchable
  }
}

Types used only by getIncidentsFilters

IncidentsFilter

Object type.

FieldTypeDescription
fieldNameString
displayNameString
incidentsParameterNameStringAssociated getIncidents parameter used to filter incidents
incidentsParameterAcceptsMultipleValuesBooleanWhether the associated getIncidents parameter accepts multiple values as input
facetableBooleanWhether the filter shows up as a facet on the incidents UI page
facetSearchableBooleanWhether the filter values can be searched by their display name

getIncidentsFiltersData (query)

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

Status: Deprecated: Use getAlertsFiltersData instead

DEPRECATED. Get possible values for incident filters

Arguments

ArgumentTypeDescription
request[IncidentsFilterDataRequestType]!

Returns

[IncidentsFilterData]

Example

query GetIncidentsFiltersData($request: [IncidentsFilterDataRequestType]!) {
  getIncidentsFiltersData(request: $request) {
    fieldName
  }
}

Types used only by getIncidentsFiltersData

IncidentsFilterData

Object type.

FieldTypeDescription
fieldNameIncidentsFilterFields
values[IncidentsFilterDataValue]List of possible values to filter incidents
pageInfoNextPageInfoData for paginating values
IncidentsFilterDataFilterType

Input object type.

FieldTypeDescription
fieldNameString!
valueGenericScalar!
IncidentsFilterDataRequestType

Input object type.

FieldTypeDescription
fieldNameString!
searchCriteriaIncidentsFilterDataSearchCriteriaType!
firstIntNumber of results to return
afterStringCursor to paginate results
searchValueStringRespond with filter values which contain this text
IncidentsFilterDataSearchCriteriaType

Input object type.

FieldTypeDescription
startTimeDateTime!filter for incidents after or equal to this time
endTimeDateTimefilter for incidents before this time
filters[IncidentsFilterDataFilterType]List of filters to apply to incidents
IncidentsFilterDataValue

Object type.

FieldTypeDescription
valueGenericScalar
displayNameString
countInt
childValues[IncidentsFilterDataValue]
incidentsParameterNameStringIf this has a value, it should override the value from IncidentsFilter
IncidentsFilterFields

Enum type.

ValueDescription
status
incident_type
owner
table
dataset
tag
severity
priority
jira
servicenow
opsgenie
include_normalized
contains_key_asset
domain
project
audience

Related types

DateTime, GenericScalar, NextPageInfo

getIncidentTimelineEvents (query)

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

Status: Deprecated: Use getEvents instead by specifying eventTypes to filter

DEPRECATED. Fetches timeline events for an incident

Arguments

ArgumentTypeDescription
incidentUuidUUID!Incident identifier

Returns

TimelineEventData

Example

query GetIncidentTimelineEvents($incidentUuid: UUID!) {
  getIncidentTimelineEvents(incidentUuid: $incidentUuid)
}

Types used only by getIncidentTimelineEvents

EventDataDeclaredIncidentSeverityUpdateTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
severityStringCurrent declared incident severity
oldSeverityStringPrevious declared incident severity
EventDataIncidentCommentTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
commentStringIncident comment
EventDataIncidentDetectorFeedbackTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
feedbackEventUuidUUIDAlert event the feedback was recorded on
eventDateStringAlert event date
eventTableIdStringAlert event table id
eventMetricStringAlert event metric
eventFieldStringAlert event field
eventWhereConditionStringAlert event where condition
reasonStringDetector feedback reason
EventDataIncidentMergeTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
mergedFromAlertIds[String]Alert ids merged into this incident
mergedIntoAlertIdStringAlert id the other alerts were merged into
EventDataIncidentNameUpdateTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
nameStringCurrent incident name
oldNameStringPrevious incident name
EventDataIncidentOwnerUpdateTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
ownerStringCurrent incident owner
oldOwnerStringPrevious incident owner
EventDataIncidentReactionUpdateTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
typeStringCurrent reaction type
oldTypeStringPrevious reaction type
reasons[String]Reaction reasons
commentStringReaction comment
EventDataIncidentSeverityUpdateTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
severityStringCurrent incident severity
oldSeverityStringPrevious incident severity
EventDataIncidentSplitTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
eventNumIntNumber of events split from incident
EventDataIncidentStatusUpdateTimeline

Object type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
statusStringCurrent incident status
oldStatusStringPrevious incident status
EventDataSloBreachTimeline

Object type.

FieldTypeDescription
sloTypeStringSLO type (tta or ttr)
sloBreachAtStringISO timestamp of the SLO breach deadline
breachDetectedAtStringISO timestamp when the SLO breach was detected
eventUuidUUIDEvent unique identifier
IEventDataBaseTimeline

Interface type.

FieldTypeDescription
updatedByEmailStringemail of the person who did some update that lead to this timeline item
updatedByNameStringame of the person who did some update that lead to this timeline item
updatedByCognitoIdStringcognito id of the person who did some update that lead to this timeline item
updatedByIdStringmc id of the person who did some update that lead to this timeline item
updatedAtStringformatted datetime of when the timeline created
eventUuidUUIDEvent unique identifier
TimeLineEvent

Union type.

One of: EventDataIncidentStatusUpdateTimeline, EventDataIncidentSplitTimeline, EventDataIncidentSeverityUpdateTimeline, EventDataIncidentReactionUpdateTimeline, EventDataIncidentOwnerUpdateTimeline, EventDataIncidentCommentTimeline, EventDataIncidentNameUpdateTimeline, EventDataDeclaredIncidentSeverityUpdateTimeline, EventDataIncidentMergeTimeline, EventDataIncidentDetectorFeedbackTimeline, EventDataSloBreachTimeline

TimelineEventData

Object type.

FieldTypeDescription
timelineEvents[TimeLineEvent]

Related types

UUID

getIncidentTypeSummary (query)

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

Status: Deprecated: Use getAlertTypeSummary instead

DEPRECATED. Get a summary of counts by type for incidents in the account

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
startTimeDateTimeFilter for incidents newer than this
endTimeDateTimeFilter for incidents older than this
domainIdUUIDFilter by domain UUID

Returns

IncidentTypeSummary

Example

query GetIncidentTypeSummary {
  getIncidentTypeSummary {
    anomalies
    schemaChanges
    jsonSchemaChanges
    deletedTables
    metricAnomalies
    agentMetricAnomalies
    agentEvaluationAnomalies
    agentAnomalies
    metricComparisonAnomalies
    customRuleAnomalies
    performanceAnomalies
    dbtErrors
    etlErrors
    pseudoIntegrationTest
    ruleRunExecutionError
    merged
  }
}

Types used only by getIncidentTypeSummary

IncidentTypeSummary

Object type.

FieldTypeDescription
anomaliesInt
schemaChangesInt
jsonSchemaChangesInt
deletedTablesInt
metricAnomaliesInt
agentMetricAnomaliesInt
agentEvaluationAnomaliesInt
agentAnomaliesInt
metricComparisonAnomaliesInt
customRuleAnomaliesInt
performanceAnomaliesInt
dbtErrorsInt
etlErrorsInt
pseudoIntegrationTestInt
ruleRunExecutionErrorInt
mergedInt

Related types

DateTime, UUID

getMetricComparisonEvents (query)

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

Status: Experimental

Get metric comparison events for the given monitor

Arguments

ArgumentTypeDescription
monitorUuidUUID!Monitor for which to retrieve events
startTimeDateTime!Filter for events created after this
endTimeDateTime!Filter for events created before this
segmentedValues[String!]Filter events which for any of the given segments.
metricStringFilter by metric name
sourceFieldStringFilter by source field name
targetFieldStringFilter by target field name
descOrderBooleanReturns events in descending order Default: false.
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

EventConnection

Example

query GetMetricComparisonEvents($monitorUuid: UUID!, $startTime: DateTime!, $endTime: DateTime!) {
  getMetricComparisonEvents(monitorUuid: $monitorUuid, startTime: $startTime, endTime: $endTime) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DateTime, EventConnection, UUID

getMetricEventGroups (query)

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

Status: Experimental

Get event groups, including only metric events

Arguments

ArgumentTypeDescription
alertIdUUID!Filter by alert (grouping of related events)

Returns

[MetricEventGroup]

Example

query GetMetricEventGroups($alertId: UUID!) {
  getMetricEventGroups(alertId: $alertId) {
    groupKey {
      monitorUuid
      metric
    }
  }
}

Types used only by getMetricEventGroups

MetricEventGroup

Object type.

FieldTypeDescription
groupKeyMetricEventGroupKey!Attributes that uniquely defines an event group
groupMetadataMetricEventGroupMetadata!Additional metadata of the event group (not used to create the event group)
MetricEventGroupKey

Object type.

FieldTypeDescription
monitorUuidUUID!The UUID of the metric monitor of the grouped events
metricStringThe name of the metric of the grouped events
MetricEventGroupMetadata

Object type.

FieldTypeDescription
newestEventGeneratedTimeDateTime
groupTitleString
tables[WarehouseTable]All tables associated with the metric event group
totalEventsIntTotal number of events in the event group

Related types

DateTime, UUID, WarehouseTable

getMonitorMetricBreachCounts (query)

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

Status: Experimental

Rank a monitor's noisiest (table, metric) pairs over a time window by the number of anomaly events, to decide what to tune. Counts every non-timeline event type the monitor produced (freshness, volume, field-health metrics, agent evaluations, dbt/pipeline failures); the metric falls back to the event type when an event carries no metric. Events not linked to a catalog table are excluded. Restricted callers only see monitors within their permitted domains.

Arguments

ArgumentTypeDescription
monitorIdUUID!Monitor UUID; also matches events by parent monitor.
timeRangeDateTimeRangeInput!Window over event creation time (max 2 months).
eventTypes[String!]Restrict to these anomaly event types; other types are ignored.
limitIntMax (table, metric) pairs to return. Defaults to 1000, capped at 5000.

Returns

[MonitorMetricBreachCount!]

Example

query GetMonitorMetricBreachCounts($monitorId: UUID!, $timeRange: DateTimeRangeInput!) {
  getMonitorMetricBreachCounts(monitorId: $monitorId, timeRange: $timeRange) {
    mcon
    metric
    count
  }
}

Types used only by getMonitorMetricBreachCounts

MonitorMetricBreachCount

Object type. Count of anomaly events a monitor produced for a single (table, metric) pair over a time window.

FieldTypeDescription
mconString!MCON of the table the events fired on.
metricString!Metric that breached (e.g. null_rate, last_updated_on). Falls back to the event type when the anomaly carries no metric.
countInt!Number of anomaly events for this (table, metric) pair.

Related types

DateTimeRangeInput, UUID

getPastCommentsForAlert (query)

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

Status: Experimental

Get past events for a specific alert

Arguments

ArgumentTypeDescription
alertIdUUID!Filter by alert id
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

EventConnection

Example

query GetPastCommentsForAlert($alertId: UUID!) {
  getPastCommentsForAlert(alertId: $alertId) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

EventConnection, UUID

Source: The GraphQL API reference

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