Related queries and mutations in Monitors. Each has its own section.
Queries
getExceptionActivityLogs (query)
getExceptionActivityLogs is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get activity logs for an exception
Arguments
Returns
ExceptionActivityLogEntryConnection
Example
query GetExceptionActivityLogs($exceptionId: UUID!) {
getExceptionActivityLogs(exceptionId: $exceptionId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Types used only by getExceptionActivityLogs
getExceptionActivityLogsExceptionActivityLogEntryConnection
ExceptionActivityLogEntryConnectionObject type.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [ExceptionActivityLogEntryEdge]! | Contains the nodes in this connection. |
ExceptionActivityLogEntryEdge
ExceptionActivityLogEntryEdgeObject type. A Relay edge containing a ExceptionActivityLogEntry and its cursor.
| Field | Type | Description |
|---|---|---|
node | ExceptionActivityLogEntry | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
DateTime, ExceptionActivityLogEntry, PageInfo, UUID
getMonitorExceptions (query)
getMonitorExceptions is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Retrieves monitor exception records
Arguments
| Argument | Type | Description |
|---|---|---|
jobExecutionUuid | UUID! | JobExecution to fetch the output sample for |
Returns
CustomSQLOutputSampleWithExceptions
Example
query GetMonitorExceptions($jobExecutionUuid: UUID!) {
getMonitorExceptions(jobExecutionUuid: $jobExecutionUuid) {
exceptionPrimaryKeyColumn
samplingDisabled
}
}Types used only by getMonitorExceptions
getMonitorExceptionsColumnConfig
ColumnConfigObject type.
| Field | Type | Description |
|---|---|---|
isUpdatable | Boolean! | Whether this column can be updated by users |
type | ColumnConfigType! | Column type: predefined or custom |
valueOptions | [String!] | Possible values for this column. Only set for custom columns. |
ColumnConfigType
ColumnConfigTypeEnum type.
| Value | Description |
|---|---|
PREDEFINED | |
CUSTOM |
CustomSQLOutputSampleWithExceptions
CustomSQLOutputSampleWithExceptionsObject type.
| Field | Type | Description |
|---|---|---|
data | SampleDataSection | Read-only sample data from the custom SQL execution |
metadata | ExceptionMetadataSection | Updatable exception metadata for each row |
exceptionPrimaryKeyColumn | String! | The primary key column name used to identify exceptions |
samplingDisabled | Boolean! | Whether sampling is disabled for this job execution |
DateTimeAttribute
DateTimeAttributeObject type.
| Field | Type | Description |
|---|---|---|
dateTimeValue | DateTime! | DateTime value |
ExceptionMetadataRowValue
ExceptionMetadataRowValueUnion type.
One of: IntegerAttribute, DateTimeAttribute, UserAttribute, StringAttribute
ExceptionMetadataSection
ExceptionMetadataSectionObject type. Data associated to each sampled row. Columns and rows can be matched to SampleDataSection by index.
| Field | Type | Description |
|---|---|---|
columns | [String] | Metadata column names |
columnsConfig | [ColumnConfig!] | Configuration for each metadata column, matching the order of columns. |
rows | [[ExceptionMetadataRowValue]] | Exception metadata rows, matching the order of data rows. |
IntegerAttribute
IntegerAttributeObject type.
| Field | Type | Description |
|---|---|---|
integerValue | Int! | Integer value |
SampleDataSection
SampleDataSectionObject type. Sampled monitor breach data
| Field | Type | Description |
|---|---|---|
columns | [String] | Column names from the sample data |
rows | [[String]] | Sample data rows |
StringAttribute
StringAttributeObject type.
| Field | Type | Description |
|---|---|---|
stringValue | String! | String value |
Related types
Mutations
bulkCreateCommentForExceptions (mutation)
bulkCreateCommentForExceptions is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Add a comment to all specified exceptions
Arguments
| Argument | Type | Description |
|---|---|---|
exceptionIds | [UUID!]! | List of exception UUIDs to add the comment to. All exceptions must belong to the same monitor. |
text | String! | Comment text |
Returns
BulkCreateCommentForExceptions
Example
mutation BulkCreateCommentForExceptions($exceptionIds: [UUID!]!, $text: String!) {
bulkCreateCommentForExceptions(exceptionIds: $exceptionIds, text: $text) {
success
}
}Types used only by bulkCreateCommentForExceptions
bulkCreateCommentForExceptionsBulkCreateCommentForExceptions
BulkCreateCommentForExceptionsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the bulk comment creation was successful |
Related types
bulkUpdateMonitorExceptions (mutation)
bulkUpdateMonitorExceptions is a mutation in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Bulk update exception attributes, such as assignee
Arguments
| Argument | Type | Description |
|---|---|---|
attributes | [ExceptionAttributeInput!]! | List of attribute updates with name and value |
exceptionIds | [UUID!]! | List of exception UUIDs to update. All exceptions must belong to the same monitor. |
Returns
BulkUpdateMonitorExceptions
Example
mutation BulkUpdateMonitorExceptions($attributes: [ExceptionAttributeInput!]!, $exceptionIds: [UUID!]!) {
bulkUpdateMonitorExceptions(attributes: $attributes, exceptionIds: $exceptionIds) {
success
}
}Types used only by bulkUpdateMonitorExceptions
bulkUpdateMonitorExceptionsBulkUpdateMonitorExceptions
BulkUpdateMonitorExceptionsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the bulk update was successful |
ExceptionAttributeInput
ExceptionAttributeInputInput object type. Input type for a single exception attribute update.
| Field | Type | Description |
|---|---|---|
name | String! | Name of the attribute to update (e.g., 'assignee') |
value | String | Value for the attribute. If not provided, clears the attribute. |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
