Performance insight tickets (GraphQL)

Related queries and mutations in Performance and cost. Each has its own section.

Mutations

createJiraTicketForPerformanceInsights (mutation)

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

Status: Experimental

Create a Jira ticket for a set of cost/performance insights.

Arguments

ArgumentTypeDescription
detailsCreateJiraPerformanceInsightTicketInput!
findingKeyVersionIntKey version ('finding.keyVersion') of 'findingKeys'. Give with 'findingKeys'.
findingKeys[String!]Stable keys ('finding.stableKey') of the selected findings. Give with 'findingKeyVersion'.
insightKeys[String!]Keys of the selected insights, within 'threadId'. Give with 'threadId'.
threadIdStringRun that surfaced the selected insights. Give with 'insightKeys'.

Returns

CreateJiraTicketForPerformanceInsights

Example

mutation CreateJiraTicketForPerformanceInsights($details: CreateJiraPerformanceInsightTicketInput!) {
  createJiraTicketForPerformanceInsights(details: $details) {
    ticket {
      id
      provider
      identifier
      url
      sourceThreadId
      coveredInsightKeys
      coveredFindingKeys
      findingKeyVersion
      createdTime
    }
  }
}

Types used only by createJiraTicketForPerformanceInsights

CreateJiraPerformanceInsightTicketInput

Input object type. Jira ticket details for a performance insight.

FieldTypeDescription
integrationIdUUID!UUID of the Jira integration to create the ticket under.
projectInt!Jira project id.
issuetypeInt!Jira issue-type id.
summaryString!Ticket summary (must be non-empty).
descriptionStringTicket description (Markdown).
fieldsJSONStringAdditional Jira fields keyed by field id (e.g. required custom fields).
CreateJiraTicketForPerformanceInsights

Object type.

FieldTypeDescription
ticketPerformanceInsightTicket

Related types

JSONString, PerformanceInsightTicket, UUID

createLinearTicketForPerformanceInsights (mutation)

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

Status: Experimental

Create a Linear issue for a set of cost/performance insights.

Arguments

ArgumentTypeDescription
detailsCreateLinearPerformanceInsightTicketInput!
findingKeyVersionIntKey version ('finding.keyVersion') of 'findingKeys'. Give with 'findingKeys'.
findingKeys[String!]Stable keys ('finding.stableKey') of the selected findings. Give with 'findingKeyVersion'.
insightKeys[String!]Keys of the selected insights, within 'threadId'. Give with 'threadId'.
threadIdStringRun that surfaced the selected insights. Give with 'insightKeys'.

Returns

CreateLinearTicketForPerformanceInsights

Example

mutation CreateLinearTicketForPerformanceInsights($details: CreateLinearPerformanceInsightTicketInput!) {
  createLinearTicketForPerformanceInsights(details: $details) {
    ticket {
      id
      provider
      identifier
      url
      sourceThreadId
      coveredInsightKeys
      coveredFindingKeys
      findingKeyVersion
      createdTime
    }
  }
}

Types used only by createLinearTicketForPerformanceInsights

CreateLinearPerformanceInsightTicketInput

Input object type. Linear ticket details for a performance insight.

FieldTypeDescription
titleString!Ticket title (must be non-empty).
descriptionStringTicket description (Markdown).
teamIdStringLinear team ID; defaults to the integration's default team.
CreateLinearTicketForPerformanceInsights

Object type.

FieldTypeDescription
ticketPerformanceInsightTicket

Related types

PerformanceInsightTicket

Source: The GraphQL API reference

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