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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | The alert UUID |
Returns
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
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
getAlertTypeSummaryAlertTypeSummary
AlertTypeSummaryObject type.
| Field | Type | Description |
|---|---|---|
anomalies | Int | |
schemaChanges | Int | |
jsonSchemaChanges | Int | |
deletedTables | Int | |
metricAnomalies | Int | |
agentMetricAnomalies | Int | |
agentEvaluationAnomalies | Int | |
agentAnomalies | Int | |
metricComparisonAnomalies | Int | |
customRuleAnomalies | Int | |
performanceAnomalies | Int | |
dbtErrors | Int | |
etlErrors | Int | |
pseudoIntegrationTest | Int | |
ruleRunExecutionError | Int | |
merged | Int |
Related types
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
Returns
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
| Argument | Type | Description |
|---|---|---|
uuid | UUID |
Returns
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
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | 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
getEventGroupsEventGroup
EventGroupObject type.
| Field | Type | Description |
|---|---|---|
groupKey | EventGroupKey! | Attributes that uniquely defines an event group |
groupMetadata | EventGroupMetadata! | 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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | Filter by alert (grouping of related events) |
groupId | String | Filter by a specific group ID |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
PaginatedEventGroupConnection
Example
query GetEventGroupsPaginated($alertId: UUID!) {
getEventGroupsPaginated(alertId: $alertId) {
totalCount
}
}Types used only by getEventGroupsPaginated
getEventGroupsPaginatedGroupEventConnection
GroupEventConnectionObject type. Connection type for paginating events within a group.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [GroupEventEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of events in the group |
GroupEventEdge
GroupEventEdgeObject type. A Relay edge containing a GroupEvent and its cursor.
| Field | Type | Description |
|---|---|---|
node | Event | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
PaginatedEventGroup
PaginatedEventGroupObject type. Event group with paginated events for use with getEventGroupsPaginated.
| Field | Type | Description |
|---|---|---|
groupId | String! | Unique identifier for the event group (hash of group key) |
groupKey | EventGroupKey! | Attributes that uniquely defines an event group |
groupMetadata | EventGroupMetadata! | Additional metadata of the event group (not used to create the event group) |
groupEvents | GroupEventConnection | Paginated list of events in an event group |
PaginatedEventGroupConnection
PaginatedEventGroupConnectionObject type.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [PaginatedEventGroupEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of event groups |
PaginatedEventGroupEdge
PaginatedEventGroupEdgeObject type. A Relay edge containing a PaginatedEventGroup and its cursor.
| Field | Type | Description |
|---|---|---|
node | PaginatedEventGroup | The item at the end of the edge |
cursor | String! | 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
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter by a specific warehouse |
fullTableId | String | Filter by the full table id (e.g. project:dataset.table) |
eventType | String | Filter by the type of event |
eventTypes | [String] | Filter by a list of types |
dataset | String | Filter by the dataset |
tablesOlderThanDays | Int | Filter for events based on table age |
eventStates | [String] | Filter by a list of states |
excludeState | String | Exclude a specific state |
startTime | DateTime | Filter for events newer than this |
endTime | DateTime | Filter for events older than this |
incidentId | UUID | Filter by incident (grouping of related events). Deprecated, use alertId instead |
alertId | UUID | Filter by alert (grouping of related events) |
includeTimelineEvents | Boolean | Flag that decides whether to include incident timeline related events. If event_types specified, this will be ignored. |
includeAnomalyEvents | Boolean | Flag that decides whether to include anomaly timeline related events. If event_types specified, this will be ignored |
descOrder | Boolean | Returns events in descending order of create_time |
monitorId | UUID | Filter by the UUID of the monitor or rule that generated the event |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
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
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter by a specific warehouse |
domainId | UUID | Filter by domain UUID |
eventTypes | [String] | Filter by a list of types |
alertEndTime | DateTime | Filter for events belonging to alerts older than this time |
alertRuleId | UUID | Filter 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 |
descOrder | Boolean | Returns events in descending order of create_time |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
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
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter by a specific warehouse |
domainId | UUID | Filter by domain UUID |
eventTypes | [String] | Filter by a list of types |
incidentEndTime | DateTime | Filter for events belonging to incidents older than this time |
incidentRuleId | UUID | Filter 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 |
descOrder | Boolean | Returns events in descending order of create_time |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
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
Returns
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
| Argument | Type | Description |
|---|---|---|
incidentId | UUID | Incident for which to retrieve events. Deprecated, use alertId instead |
alertId | UUID | Alert for which to retrieve events |
whereCondition | String | Filter by segmented where condition |
whereConditions | [String!] | Filter events which for any of the given where conditions. |
metric | String | Filter by metric name |
field | String | Filter 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. |
first | Int | Number of results to return (default: 1,000) |
offset | Int | From which offset to return the next results |
descOrder | Boolean | Returns events in descending order Default: false. |
Returns
Example
query GetFhEvents {
getFhEvents {
totalCount
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
monitorId | UUID | Monitor for which to retrieve events. |
bulkMonitorId | UUID | Bulk monitor for which to retrieve events. |
fullTableId | String | Full table ID to filter events for a table when using bulkMonitorId. |
startTime | DateTime! | Filter for events created after this |
endTime | DateTime! | Filter for events created before this |
whereCondition | String | Filter 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. |
metric | String | Filter by metric name |
field | String | Filter by field name |
first | Int | Number of results to return (default: 1,000) |
offset | Int | From which offset to return the next results |
descOrder | Boolean | Returns events in descending order Default: false. |
Returns
Example
query GetFhEventsByMonitor($startTime: DateTime!, $endTime: DateTime!) {
getFhEventsByMonitor(startTime: $startTime, endTime: $endTime) {
totalCount
}
}Related types
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
Returns
[String]
Example
query GetFhEventsFieldFilterValues {
getFhEventsFieldFilterValues
}Related types
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
Returns
[String]
Example
query GetFhEventsMetricFilterValues {
getFhEventsMetricFilterValues
}Related types
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
Returns
[String]
Example
query GetFhEventsWhereConditionFilterValues {
getFhEventsWhereConditionFilterValues
}Related types
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
| Argument | Type | Description |
|---|---|---|
incidentId | UUID | Incident for which to retrieve filter values. Deprecated, use alertId instead |
alertId | UUID | Alert for which to retrieve filter values |
metric | String | Filter by metric name |
field | String | Filter by field name |
searchValues | [String!] | Filter values which contain any of the search values |
first | Int | Number of results to return (default: 1,000) Default: 1000. |
offset | Int | From which offset to return the next results Default: 0. |
descOrder | Boolean | Returns values in descending order Default: false. |
Returns
FHEventsFilterValues
Example
query GetFhEventsWhereConditionFilterValuesPaginated {
getFhEventsWhereConditionFilterValuesPaginated {
values
totalCount
}
}Types used only by getFhEventsWhereConditionFilterValuesPaginated
getFhEventsWhereConditionFilterValuesPaginatedFHEventsFilterValues
FHEventsFilterValuesObject type.
| Field | Type | Description |
|---|---|---|
values | [String!]! | List of values |
totalCount | Int! | Total number of results available |
Related types
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
| Argument | Type | Description |
|---|---|---|
incidentId | UUID! | The incident UUID |
Returns
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
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter 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 |
startTime | DateTime | Filter for incidents newer than this |
endTime | DateTime | Filter 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 |
includeTimelineEvents | Boolean | Flag decides whether to include timeline events or not. By default it's false. If event_types field set, this will be ignored too. |
includeAnomalyEvents | Boolean | Flag decides whether to include anomaly events or not. By default it's false. If event_types field set, this will be ignored too. |
domainId | UUID | Filter by domain UUID |
monitorIds | [UUID] | Filter for specific monitors |
ruleId | UUID | Filter 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 |
minEventCount | Int | Filter to incidents with at least this many events |
maxEventCount | Int | Filter to incidents with at most this many events |
containsKeyAsset | Boolean | If true, filter to incidents containing a key asset |
includeNormalized | Boolean | If false, filter out normalized events. |
hasJiraTickets | Boolean | If false, include incidents without jira tickets. If true, include incidents with jira tickets. If null, return all incidents. |
hasServicenowIncidents | Boolean | If false, include incidents without ServiceNow incidents. If true, include incidents with ServiceNow incidents. If null, return all incidents. |
hasOpsgenieIncidents | Boolean | If 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 |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
orderBy | String | Ordering |
Returns
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
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter 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 |
startTime | DateTime | Filter for incidents newer than this |
endTime | DateTime | Filter 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 |
includeTimelineEvents | Boolean | Flag decides whether to include timeline events or not. By default it's false. If event_types field set, this will be ignored too. |
includeAnomalyEvents | Boolean | Flag decides whether to include anomaly events or not. By default it's false. If event_types field set, this will be ignored too. |
domainId | UUID | Filter by domain UUID |
monitorIds | [UUID] | Filter for specific monitors |
ruleId | UUID | Filter 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 |
minEventCount | Int | Filter to incidents with at least this many events |
maxEventCount | Int | Filter to incidents with at most this many events |
containsKeyAsset | Boolean | If true, filter to incidents containing a key asset |
includeNormalized | Boolean | If false, filter out normalized events. |
hasJiraTickets | Boolean | If false, include incidents without jira tickets. If true, include incidents with jira tickets. If null, return all incidents. |
hasServicenowIncidents | Boolean | If false, include incidents without ServiceNow incidents. If true, include incidents with ServiceNow incidents. If null, return all incidents. |
hasOpsgenieIncidents | Boolean | If 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 |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
IncidentsCountByDateConnection
Example
query GetIncidentsCountByDate {
getIncidentsCountByDate {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Types used only by getIncidentsCountByDate
getIncidentsCountByDateIncidentsCountByDate
IncidentsCountByDateObject type.
| Field | Type | Description |
|---|---|---|
date | Date | Date of the count |
count | Int | Count of incidents on the date |
IncidentsCountByDateConnection
IncidentsCountByDateConnectionObject type.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [IncidentsCountByDateEdge]! | Contains the nodes in this connection. |
IncidentsCountByDateEdge
IncidentsCountByDateEdgeObject type. A Relay edge containing a IncidentsCountByDate and its cursor.
| Field | Type | Description |
|---|---|---|
node | IncidentsCountByDate | The item at the end of the edge |
cursor | String! | 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
getIncidentsFiltersIncidentsFilter
IncidentsFilterObject type.
| Field | Type | Description |
|---|---|---|
fieldName | String | |
displayName | String | |
incidentsParameterName | String | Associated getIncidents parameter used to filter incidents |
incidentsParameterAcceptsMultipleValues | Boolean | Whether the associated getIncidents parameter accepts multiple values as input |
facetable | Boolean | Whether the filter shows up as a facet on the incidents UI page |
facetSearchable | Boolean | Whether 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
| Argument | Type | Description |
|---|---|---|
request | [IncidentsFilterDataRequestType]! |
Returns
[IncidentsFilterData]
Example
query GetIncidentsFiltersData($request: [IncidentsFilterDataRequestType]!) {
getIncidentsFiltersData(request: $request) {
fieldName
}
}Types used only by getIncidentsFiltersData
getIncidentsFiltersDataIncidentsFilterData
IncidentsFilterDataObject type.
| Field | Type | Description |
|---|---|---|
fieldName | IncidentsFilterFields | |
values | [IncidentsFilterDataValue] | List of possible values to filter incidents |
pageInfo | NextPageInfo | Data for paginating values |
IncidentsFilterDataFilterType
IncidentsFilterDataFilterTypeInput object type.
| Field | Type | Description |
|---|---|---|
fieldName | String! | |
value | GenericScalar! |
IncidentsFilterDataRequestType
IncidentsFilterDataRequestTypeInput object type.
| Field | Type | Description |
|---|---|---|
fieldName | String! | |
searchCriteria | IncidentsFilterDataSearchCriteriaType! | |
first | Int | Number of results to return |
after | String | Cursor to paginate results |
searchValue | String | Respond with filter values which contain this text |
IncidentsFilterDataSearchCriteriaType
IncidentsFilterDataSearchCriteriaTypeInput object type.
IncidentsFilterDataValue
IncidentsFilterDataValueObject type.
| Field | Type | Description |
|---|---|---|
value | GenericScalar | |
displayName | String | |
count | Int | |
childValues | [IncidentsFilterDataValue] | |
incidentsParameterName | String | If this has a value, it should override the value from IncidentsFilter |
IncidentsFilterFields
IncidentsFilterFieldsEnum type.
| Value | Description |
|---|---|
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
| Argument | Type | Description |
|---|---|---|
incidentUuid | UUID! | Incident identifier |
Returns
TimelineEventData
Example
query GetIncidentTimelineEvents($incidentUuid: UUID!) {
getIncidentTimelineEvents(incidentUuid: $incidentUuid)
}Types used only by getIncidentTimelineEvents
getIncidentTimelineEventsEventDataDeclaredIncidentSeverityUpdateTimeline
EventDataDeclaredIncidentSeverityUpdateTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
severity | String | Current declared incident severity |
oldSeverity | String | Previous declared incident severity |
EventDataIncidentCommentTimeline
EventDataIncidentCommentTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
comment | String | Incident comment |
EventDataIncidentDetectorFeedbackTimeline
EventDataIncidentDetectorFeedbackTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
feedbackEventUuid | UUID | Alert event the feedback was recorded on |
eventDate | String | Alert event date |
eventTableId | String | Alert event table id |
eventMetric | String | Alert event metric |
eventField | String | Alert event field |
eventWhereCondition | String | Alert event where condition |
reason | String | Detector feedback reason |
EventDataIncidentMergeTimeline
EventDataIncidentMergeTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
mergedFromAlertIds | [String] | Alert ids merged into this incident |
mergedIntoAlertId | String | Alert id the other alerts were merged into |
EventDataIncidentNameUpdateTimeline
EventDataIncidentNameUpdateTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
name | String | Current incident name |
oldName | String | Previous incident name |
EventDataIncidentOwnerUpdateTimeline
EventDataIncidentOwnerUpdateTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
owner | String | Current incident owner |
oldOwner | String | Previous incident owner |
EventDataIncidentReactionUpdateTimeline
EventDataIncidentReactionUpdateTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
type | String | Current reaction type |
oldType | String | Previous reaction type |
reasons | [String] | Reaction reasons |
comment | String | Reaction comment |
EventDataIncidentSeverityUpdateTimeline
EventDataIncidentSeverityUpdateTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
severity | String | Current incident severity |
oldSeverity | String | Previous incident severity |
EventDataIncidentSplitTimeline
EventDataIncidentSplitTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
eventNum | Int | Number of events split from incident |
EventDataIncidentStatusUpdateTimeline
EventDataIncidentStatusUpdateTimelineObject type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
status | String | Current incident status |
oldStatus | String | Previous incident status |
EventDataSloBreachTimeline
EventDataSloBreachTimelineObject type.
| Field | Type | Description |
|---|---|---|
sloType | String | SLO type (tta or ttr) |
sloBreachAt | String | ISO timestamp of the SLO breach deadline |
breachDetectedAt | String | ISO timestamp when the SLO breach was detected |
eventUuid | UUID | Event unique identifier |
IEventDataBaseTimeline
IEventDataBaseTimelineInterface type.
| Field | Type | Description |
|---|---|---|
updatedByEmail | String | email of the person who did some update that lead to this timeline item |
updatedByName | String | ame of the person who did some update that lead to this timeline item |
updatedByCognitoId | String | cognito id of the person who did some update that lead to this timeline item |
updatedById | String | mc id of the person who did some update that lead to this timeline item |
updatedAt | String | formatted datetime of when the timeline created |
eventUuid | UUID | Event unique identifier |
TimeLineEvent
TimeLineEventUnion type.
One of: EventDataIncidentStatusUpdateTimeline, EventDataIncidentSplitTimeline, EventDataIncidentSeverityUpdateTimeline, EventDataIncidentReactionUpdateTimeline, EventDataIncidentOwnerUpdateTimeline, EventDataIncidentCommentTimeline, EventDataIncidentNameUpdateTimeline, EventDataDeclaredIncidentSeverityUpdateTimeline, EventDataIncidentMergeTimeline, EventDataIncidentDetectorFeedbackTimeline, EventDataSloBreachTimeline
TimelineEventData
TimelineEventDataObject type.
| Field | Type | Description |
|---|---|---|
timelineEvents | [TimeLineEvent] |
Related types
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
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
getIncidentTypeSummaryIncidentTypeSummary
IncidentTypeSummaryObject type.
| Field | Type | Description |
|---|---|---|
anomalies | Int | |
schemaChanges | Int | |
jsonSchemaChanges | Int | |
deletedTables | Int | |
metricAnomalies | Int | |
agentMetricAnomalies | Int | |
agentEvaluationAnomalies | Int | |
agentAnomalies | Int | |
metricComparisonAnomalies | Int | |
customRuleAnomalies | Int | |
performanceAnomalies | Int | |
dbtErrors | Int | |
etlErrors | Int | |
pseudoIntegrationTest | Int | |
ruleRunExecutionError | Int | |
merged | Int |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | Monitor for which to retrieve events |
startTime | DateTime! | Filter for events created after this |
endTime | DateTime! | Filter for events created before this |
segmentedValues | [String!] | Filter events which for any of the given segments. |
metric | String | Filter by metric name |
sourceField | String | Filter by source field name |
targetField | String | Filter by target field name |
descOrder | Boolean | Returns events in descending order Default: false. |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | 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
getMetricEventGroupsMetricEventGroup
MetricEventGroupObject type.
| Field | Type | Description |
|---|---|---|
groupKey | MetricEventGroupKey! | Attributes that uniquely defines an event group |
groupMetadata | MetricEventGroupMetadata! | Additional metadata of the event group (not used to create the event group) |
MetricEventGroupKey
MetricEventGroupKeyObject type.
| Field | Type | Description |
|---|---|---|
monitorUuid | UUID! | The UUID of the metric monitor of the grouped events |
metric | String | The name of the metric of the grouped events |
MetricEventGroupMetadata
MetricEventGroupMetadataObject type.
| Field | Type | Description |
|---|---|---|
newestEventGeneratedTime | DateTime | |
groupTitle | String | |
tables | [WarehouseTable] | All tables associated with the metric event group |
totalEvents | Int | Total 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
| Argument | Type | Description |
|---|---|---|
monitorId | UUID! | Monitor UUID; also matches events by parent monitor. |
timeRange | DateTimeRangeInput! | Window over event creation time (max 2 months). |
eventTypes | [String!] | Restrict to these anomaly event types; other types are ignored. |
limit | Int | Max (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
getMonitorMetricBreachCountsMonitorMetricBreachCount
MonitorMetricBreachCountObject type. Count of anomaly events a monitor produced for a single (table, metric) pair over a time window.
| Field | Type | Description |
|---|---|---|
mcon | String! | MCON of the table the events fired on. |
metric | String! | Metric that breached (e.g. null_rate, last_updated_on). Falls back to the event type when the anomaly carries no metric. |
count | Int! | Number of anomaly events for this (table, metric) pair. |
Related types
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | Filter by alert id |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetPastCommentsForAlert($alertId: UUID!) {
getPastCommentsForAlert(alertId: $alertId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
