import * as Types from '../graphql-types'; //============================================================== /* tslint:disable */ /* eslint-disable */ /* prettier-ignore */ // @generated // This file was automatically generated and should not be edited. //============================================================== export type GetMetricDefinitionQueryVariables = Types.Exact<{ cloudId: Types.Scalars['ID']; metricDefinitionId: Types.Scalars['ID']; includeMetricSources: Types.Scalars['Boolean']; }>; export type GetMetricDefinitionQuery = { __typename?: 'Query', compass?: { __typename?: 'CompassCatalogQueryApi', metricDefinition?: { __typename?: 'CompassMetricDefinition', id: string, name?: string | null, description?: string | null, type: Types.CompassMetricDefinitionType, derivedEventTypes?: Array | null, format?: { __typename?: 'CompassMetricDefinitionFormatSuffix', suffix?: string | null } | null, metricSources?: { __typename?: 'CompassMetricSourcesConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, startCursor?: string | null, endCursor?: string | null, hasPreviousPage: boolean }, nodes?: Array<{ __typename?: 'CompassMetricSource', id: string, externalMetricSourceId?: string | null, url?: string | null }> | null } | { __typename?: 'QueryError' } | null } | { __typename?: 'QueryError', identifier?: string | null, message?: string | null, extensions?: Array<{ __typename?: 'AdminApplicationErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'CplsQueryErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'GenericQueryErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'HelpLayoutQueryErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'JiraIssueCommandPaletteActionUnsupportedErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'JiraIssueFieldUnsupportedErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'JiraIssueSearchErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'JiraVersionConnectionResultQueryErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'LpConnectionQueryErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'ShepherdGenericQueryErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'ToolchainCheckAuthErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'ToolchainContainerConnectionErrorExtension', statusCode?: number | null, errorType?: string | null } | { __typename?: 'ToolchainWorkspaceConnectionErrorExtension', statusCode?: number | null, errorType?: string | null }> | null } | null } | null }; export const GetMetricDefinition = ` query getMetricDefinition($cloudId: ID!, $metricDefinitionId: ID!, $includeMetricSources: Boolean!) { compass { metricDefinition(cloudId: $cloudId, metricDefinitionId: $metricDefinitionId) { ... on CompassMetricDefinition { id name description type format { ... on CompassMetricDefinitionFormatSuffix { suffix } } derivedEventTypes metricSources @include(if: $includeMetricSources) { ... on CompassMetricSourcesConnection { pageInfo { hasNextPage startCursor endCursor hasPreviousPage } nodes { id externalMetricSourceId url } } } } ... on QueryError { identifier message extensions { statusCode errorType } } } } } `;