Tags (GraphQL)

Related queries and mutations in Catalog and lineage. Each has its own section.

Queries

listTags (query)

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

Status: Experimental

List tags.

Arguments

ArgumentTypeDescription
pageSizeIntPage size for each call. If not set, by default it's 50.
offsetIntOffset that indicates where to start returning the result.
tagTypeTagTypeif set, we'd return tags only of that type.

Returns

ListTagsOutput

Example

query ListTags {
  listTags {
    totalCount
  }
}

Types used only by listTags

ListTagsOutput

Object type.

FieldTypeDescription
totalCountIntTotal count of the tags in a user's account.
tags[TagObjectOutput]Tags list.

Related types

TagObjectOutput, TagType

Mutations

createOrUpdateTag (mutation)

createOrUpdateTag is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create or update a tag.

Arguments

ArgumentTypeDescription
tagNameStringTag name. Required when creating a new tag.
tagTypeTagTypeTag type. Required when creating a new tag, and tag_type can't be changed once created.
tagUuidUUIDUUID of tag for update.
tagValueStringTag value.

Returns

CreateOrUpdateTagMutation

Example

mutation CreateOrUpdateTag {
  createOrUpdateTag {
    tagObject {
      uuid
      type
      tagName
      tagValue
      createdAt
      updatedAt
    }
  }
}

Types used only by createOrUpdateTag

CreateOrUpdateTagMutation

Object type.

FieldTypeDescription
tagObjectTagObjectOutputCreated or updated data operations dashboard

Related types

TagObjectOutput, TagType, UUID

createOrUpdateTagAssignments (mutation)

createOrUpdateTagAssignments is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create or update tags assignments for a list of objects with the same type.

Arguments

ArgumentTypeDescription
objectIds[String]!Object ids.
objectTypeTagAssignmentObjectTypeObject type.
tagTypeTagType!Tag Type.
tagUuids[UUID]!UUIDs of tags to assign to the objects.

Returns

CreateOrUpdateTagAssignmentsMutation

Example

mutation CreateOrUpdateTagAssignments($objectIds: [String]!, $tagType: TagType!, $tagUuids: [UUID]!) {
  createOrUpdateTagAssignments(objectIds: $objectIds, tagType: $tagType, tagUuids: $tagUuids) {
    success
  }
}

Types used only by createOrUpdateTagAssignments

CreateOrUpdateTagAssignmentsMutation

Object type.

FieldTypeDescription
successBooleanIndicates if the assignments are created successfully.
TagAssignmentObjectType

Enum type.

ValueDescription
CUSTOM_RULE_MONITOR
METRIC_MONITOR
TABLE_MONITOR
BULK_MONITOR
MONITOR_EXCEPTION
JOB_MONITOR

Related types

TagType, UUID

Source: The GraphQL API reference

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