import * as outputs from "../types/output"; export interface ActionConnectionAnthropic { /** * Configuration for Anthropic API key authentication */ apiKey?: outputs.ActionConnectionAnthropicApiKey; } export interface ActionConnectionAnthropicApiKey { /** * Anthropic API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionAnthropicApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionAnthropicApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionAsana { /** * Configuration for Asana access token authentication */ accessToken?: outputs.ActionConnectionAsanaAccessToken; } export interface ActionConnectionAsanaAccessToken { /** * Asana access token. String length must be at least 1. */ accessToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ accessTokenAwsSecretsManager?: outputs.ActionConnectionAsanaAccessTokenAccessTokenAwsSecretsManager; } export interface ActionConnectionAsanaAccessTokenAccessTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionAws { /** * Configuration for an assume role AWS connection */ assumeRole?: outputs.ActionConnectionAwsAssumeRole; } export interface ActionConnectionAwsAssumeRole { /** * AWS account that the connection is created for. String length must be at least 1. */ accountId?: string; /** * External ID that specifies which connection can be used to assume the role */ externalId: string; /** * AWS account that will assume the role */ principalId: string; /** * Role to assume. String length must be at least 1. */ role?: string; } export interface ActionConnectionAzure { /** * Configuration for Azure tenant authentication */ tenant?: outputs.ActionConnectionAzureTenant; } export interface ActionConnectionAzureTenant { /** * Azure application client ID. String length must be at least 1. */ appClientId?: string; /** * Azure application client secret. String length must be at least 1. */ clientSecret?: string; /** * Custom scope requested when acquiring an OAuth 2 access token. String length must be at least 1. */ customScopes?: string; /** * Azure Active Directory tenant ID. String length must be at least 1. */ tenantId?: string; } export interface ActionConnectionCircleCi { /** * Configuration for CircleCI API key authentication */ apiKey?: outputs.ActionConnectionCircleCiApiKey; } export interface ActionConnectionCircleCiApiKey { /** * CircleCI API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionCircleCiApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionCircleCiApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionClickup { /** * Configuration for ClickUp API key authentication */ apiKey?: outputs.ActionConnectionClickupApiKey; } export interface ActionConnectionClickupApiKey { /** * ClickUp API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionClickupApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionClickupApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionCloudflare { /** * Configuration for Cloudflare API token authentication */ apiToken?: outputs.ActionConnectionCloudflareApiToken; /** * Configuration for Cloudflare global API token authentication */ globalApiToken?: outputs.ActionConnectionCloudflareGlobalApiToken; } export interface ActionConnectionCloudflareApiToken { /** * Cloudflare API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionCloudflareApiTokenApiTokenAwsSecretsManager; } export interface ActionConnectionCloudflareApiTokenApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionCloudflareGlobalApiToken { /** * Email address associated with the Cloudflare account. String length must be at least 1. */ authEmail?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ authEmailAwsSecretsManager?: outputs.ActionConnectionCloudflareGlobalApiTokenAuthEmailAwsSecretsManager; /** * Cloudflare global API key. String length must be at least 1. */ globalApiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ globalApiKeyAwsSecretsManager?: outputs.ActionConnectionCloudflareGlobalApiTokenGlobalApiKeyAwsSecretsManager; } export interface ActionConnectionCloudflareGlobalApiTokenAuthEmailAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionCloudflareGlobalApiTokenGlobalApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionConfigCat { /** * Configuration for ConfigCat SDK key authentication */ sdkKey?: outputs.ActionConnectionConfigCatSdkKey; } export interface ActionConnectionConfigCatSdkKey { /** * ConfigCat Public Management API password. String length must be at least 1. */ apiPassword?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiPasswordAwsSecretsManager?: outputs.ActionConnectionConfigCatSdkKeyApiPasswordAwsSecretsManager; /** * ConfigCat Public Management API username. String length must be at least 1. */ apiUsername?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiUsernameAwsSecretsManager?: outputs.ActionConnectionConfigCatSdkKeyApiUsernameAwsSecretsManager; /** * ConfigCat SDK key. String length must be at least 1. */ sdkKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ sdkKeyAwsSecretsManager?: outputs.ActionConnectionConfigCatSdkKeySdkKeyAwsSecretsManager; } export interface ActionConnectionConfigCatSdkKeyApiPasswordAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionConfigCatSdkKeyApiUsernameAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionConfigCatSdkKeySdkKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionDatadog { /** * Configuration for Datadog API and application key authentication */ apiKey?: outputs.ActionConnectionDatadogApiKey; } export interface ActionConnectionDatadogApiKey { /** * Datadog API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionDatadogApiKeyApiKeyAwsSecretsManager; /** * Datadog application key. String length must be at least 1. */ appKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ appKeyAwsSecretsManager?: outputs.ActionConnectionDatadogApiKeyAppKeyAwsSecretsManager; /** * Datadog site data center. String length must be at least 1. */ datacenter?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ datacenterAwsSecretsManager?: outputs.ActionConnectionDatadogApiKeyDatacenterAwsSecretsManager; /** * Custom subdomain used for URLs generated with this connection. String length must be at least 1. */ subdomain?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ subdomainAwsSecretsManager?: outputs.ActionConnectionDatadogApiKeySubdomainAwsSecretsManager; } export interface ActionConnectionDatadogApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionDatadogApiKeyAppKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionDatadogApiKeyDatacenterAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionDatadogApiKeySubdomainAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionExternalSecretsManager { /** * ID of an AWS connection in the same organization used to retrieve secrets. String length must be at least 1. */ connectionId: string; /** * AWS region containing the secrets. String length must be at least 1. */ region: string; } export interface ActionConnectionFastly { /** * Configuration for Fastly API key authentication */ apiKey?: outputs.ActionConnectionFastlyApiKey; } export interface ActionConnectionFastlyApiKey { /** * Fastly API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionFastlyApiKeyApiKeyAwsSecretsManager; } export interface ActionConnectionFastlyApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionFreshservice { /** * Configuration for Freshservice API key authentication */ apiKey?: outputs.ActionConnectionFreshserviceApiKey; } export interface ActionConnectionFreshserviceApiKey { /** * Freshservice API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionFreshserviceApiKeyApiKeyAwsSecretsManager; /** * Freshservice domain. String length must be at least 1. */ domain?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ domainAwsSecretsManager?: outputs.ActionConnectionFreshserviceApiKeyDomainAwsSecretsManager; } export interface ActionConnectionFreshserviceApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionFreshserviceApiKeyDomainAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionGcp { /** * Configuration for Google Cloud service account authentication */ serviceAccount?: outputs.ActionConnectionGcpServiceAccount; } export interface ActionConnectionGcpServiceAccount { /** * Google Cloud service account private key. String length must be at least 1. */ privateKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ privateKeyAwsSecretsManager?: outputs.ActionConnectionGcpServiceAccountPrivateKeyAwsSecretsManager; /** * Google Cloud service account email. String length must be at least 1. */ serviceAccountEmail?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ serviceAccountEmailAwsSecretsManager?: outputs.ActionConnectionGcpServiceAccountServiceAccountEmailAwsSecretsManager; } export interface ActionConnectionGcpServiceAccountPrivateKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionGcpServiceAccountServiceAccountEmailAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionGemini { /** * Configuration for Gemini API key authentication */ apiKey?: outputs.ActionConnectionGeminiApiKey; } export interface ActionConnectionGeminiApiKey { /** * Gemini API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionGeminiApiKeyApiKeyAwsSecretsManager; } export interface ActionConnectionGeminiApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionGitlab { /** * Configuration for GitLab API key authentication */ apiKey?: outputs.ActionConnectionGitlabApiKey; } export interface ActionConnectionGitlabApiKey { /** * GitLab API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionGitlabApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionGitlabApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionGreyNoise { /** * Configuration for GreyNoise API key authentication */ apiKey?: outputs.ActionConnectionGreyNoiseApiKey; } export interface ActionConnectionGreyNoiseApiKey { /** * GreyNoise API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionGreyNoiseApiKeyApiKeyAwsSecretsManager; } export interface ActionConnectionGreyNoiseApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionHttp { /** * Base HTTP url for the integration. String length must be at least 1. */ baseUrl?: string; /** * Configuration for an HTTP connection that uses token auth */ tokenAuth?: outputs.ActionConnectionHttpTokenAuth; } export interface ActionConnectionHttpTokenAuth { /** * Body for HTTP authentication */ body?: outputs.ActionConnectionHttpTokenAuthBody; /** * Header for HTTP authentication */ headers?: outputs.ActionConnectionHttpTokenAuthHeader[]; /** * Token for HTTP authentication */ tokens?: outputs.ActionConnectionHttpTokenAuthToken[]; /** * URL parameter for HTTP authentication */ urlParameters?: outputs.ActionConnectionHttpTokenAuthUrlParameter[]; } export interface ActionConnectionHttpTokenAuthBody { /** * Serialized body content. String length must be at least 1. */ content?: string; /** * Content type of the body. String length must be at least 1. */ contentType?: string; } export interface ActionConnectionHttpTokenAuthHeader { /** * Header name. String length must be at least 1. */ name?: string; /** * String length must be at least 1. */ value?: string; } export interface ActionConnectionHttpTokenAuthToken { /** * Token name. String length must be at least 1. */ name?: string; /** * Token type Valid values are `SECRET`. */ type?: string; /** * Token value. String length must be at least 1. */ value?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ valueAwsSecretsManager?: outputs.ActionConnectionHttpTokenAuthTokenValueAwsSecretsManager; } export interface ActionConnectionHttpTokenAuthTokenValueAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionHttpTokenAuthUrlParameter { /** * URL parameter name. String length must be at least 1. */ name?: string; /** * URL parameter value. String length must be at least 1. */ value?: string; } export interface ActionConnectionLaunchDarkly { /** * Configuration for LaunchDarkly API key authentication */ apiKey?: outputs.ActionConnectionLaunchDarklyApiKey; } export interface ActionConnectionLaunchDarklyApiKey { /** * LaunchDarkly API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionLaunchDarklyApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionLaunchDarklyApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionNotion { /** * Configuration for Notion API key authentication */ apiKey?: outputs.ActionConnectionNotionApiKey; } export interface ActionConnectionNotionApiKey { /** * Notion API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionNotionApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionNotionApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionOkta { /** * Configuration for Okta API token authentication */ apiToken?: outputs.ActionConnectionOktaApiToken; } export interface ActionConnectionOktaApiToken { /** * Okta API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionOktaApiTokenApiTokenAwsSecretsManager; /** * Okta domain. String length must be at least 1. */ domain?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ domainAwsSecretsManager?: outputs.ActionConnectionOktaApiTokenDomainAwsSecretsManager; } export interface ActionConnectionOktaApiTokenApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionOktaApiTokenDomainAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionOpenai { /** * Configuration for OpenAI API key authentication */ apiKey?: outputs.ActionConnectionOpenaiApiKey; } export interface ActionConnectionOpenaiApiKey { /** * OpenAI API token. String length must be at least 1. */ apiToken?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiTokenAwsSecretsManager?: outputs.ActionConnectionOpenaiApiKeyApiTokenAwsSecretsManager; } export interface ActionConnectionOpenaiApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionServiceNow { /** * Configuration for ServiceNow basic authentication */ basicAuth?: outputs.ActionConnectionServiceNowBasicAuth; } export interface ActionConnectionServiceNowBasicAuth { /** * ServiceNow instance. String length must be at least 1. */ instance?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ instanceAwsSecretsManager?: outputs.ActionConnectionServiceNowBasicAuthInstanceAwsSecretsManager; /** * ServiceNow password. String length must be at least 1. */ password?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ passwordAwsSecretsManager?: outputs.ActionConnectionServiceNowBasicAuthPasswordAwsSecretsManager; /** * ServiceNow username. String length must be at least 1. */ username?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ usernameAwsSecretsManager?: outputs.ActionConnectionServiceNowBasicAuthUsernameAwsSecretsManager; } export interface ActionConnectionServiceNowBasicAuthInstanceAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionServiceNowBasicAuthPasswordAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionServiceNowBasicAuthUsernameAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionSplit { /** * Configuration for Split API key authentication */ apiKey?: outputs.ActionConnectionSplitApiKey; } export interface ActionConnectionSplitApiKey { /** * Split API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionSplitApiKeyApiKeyAwsSecretsManager; } export interface ActionConnectionSplitApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionStatsig { /** * Configuration for Statsig API key authentication */ apiKey?: outputs.ActionConnectionStatsigApiKey; } export interface ActionConnectionStatsigApiKey { /** * Statsig API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionStatsigApiKeyApiKeyAwsSecretsManager; } export interface ActionConnectionStatsigApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionConnectionVirusTotal { /** * Configuration for VirusTotal API key authentication */ apiKey?: outputs.ActionConnectionVirusTotalApiKey; } export interface ActionConnectionVirusTotalApiKey { /** * VirusTotal API key. String length must be at least 1. */ apiKey?: string; /** * AWS Secrets Manager reference for this field. To use it, set `externalSecretsManager` on the connection and omit the literal field. Available only for supported credential tokens on connections that run in Datadog's cloud. */ apiKeyAwsSecretsManager?: outputs.ActionConnectionVirusTotalApiKeyApiKeyAwsSecretsManager; } export interface ActionConnectionVirusTotalApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key?: string; /** * Name or ARN of the secret. String length must be at least 1. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId?: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage?: string; } export interface ActionExecutionPolicyActionPattern { /** * The fully qualified action names this policy matches. Use `*` to match all actions of the integration, or a fully qualified name prefixed with the integration's action namespace (for example `com.datadoghq.script.*` for the Script integration). */ actionFqns: string[]; /** * The integration the actions belong to. Valid values are `INTEGRATION_KUBERNETES`, `INTEGRATION_SCRIPT`, `INTEGRATION_REMOTE_ACTION`, `INTEGRATION_SLACK`. */ integration: string; } export interface ActionExecutionPolicyScope { /** * Restricts the policy to specific Kubernetes namespaces. Requires `action_pattern.integration` to be `INTEGRATION_KUBERNETES`. */ kubernetes?: outputs.ActionExecutionPolicyScopeKubernetes; /** * Restricts the policy to specific remote shell paths. Requires `action_pattern.integration` to be `INTEGRATION_REMOTE_ACTION`. */ remoteActionRshell?: outputs.ActionExecutionPolicyScopeRemoteActionRshell; /** * Restricts the policy to specific scripts. Requires `action_pattern.integration` to be `INTEGRATION_SCRIPT`. */ scripts?: outputs.ActionExecutionPolicyScopeScripts; /** * Restricts the policy to specific Slack channel names. Requires `action_pattern.integration` to be `INTEGRATION_SLACK`. */ slack?: outputs.ActionExecutionPolicyScopeSlack; } export interface ActionExecutionPolicyScopeKubernetes { /** * A rule restricting the Kubernetes scope to specific namespaces. */ rules?: outputs.ActionExecutionPolicyScopeKubernetesRule[]; } export interface ActionExecutionPolicyScopeKubernetesRule { /** * The Kubernetes namespaces this rule applies to. */ targetNamespaces: string[]; } export interface ActionExecutionPolicyScopeRemoteActionRshell { /** * A rule restricting remote shell access to specific paths. */ rules?: outputs.ActionExecutionPolicyScopeRemoteActionRshellRule[]; } export interface ActionExecutionPolicyScopeRemoteActionRshellRule { /** * The level of remote shell access granted for the target paths. Valid values are `readOnly`, `readWrite`. */ access: string; /** * The filesystem paths this rule applies to. */ targetPaths: string[]; } export interface ActionExecutionPolicyScopeScripts { /** * A rule restricting the script scope to specific script names. */ rules?: outputs.ActionExecutionPolicyScopeScriptsRule[]; } export interface ActionExecutionPolicyScopeScriptsRule { /** * The script names this rule applies to. */ targetScriptNames: string[]; } export interface ActionExecutionPolicyScopeSlack { /** * A rule restricting the Slack scope to specific channel names. */ rules?: outputs.ActionExecutionPolicyScopeSlackRule[]; } export interface ActionExecutionPolicyScopeSlackRule { /** * The channel name selectors this rule applies to, for example `incident-*`. Use `*` to match any channel name. */ channelNameSelectors: string[]; } export interface ActionExecutionPolicyTarget { /** * The tags identifying the target, for example `env:prod` for Agents or `slack_workspace_id:T0123456789` for a Slack workspace. */ agentTags: string[]; /** * A human-readable name for the target. */ name?: string; } export interface AiGatewayBudgetSelector { /** * Dimension to match: `userId`, `teamId`, `model`, `provider`, or `tag:` with a lowercase key. */ dim: string; /** * Whether each matched value gets its own budget instance. When `false`, spend is pooled across all matched values. Defaults to `false`. */ perValue: boolean; /** * Values the dimension must have. Omit to match any value, including requests that don't have the dimension. */ values?: string[]; } export interface AiGatewayPolicyTier { /** * Targets in the tier. */ targets: outputs.AiGatewayPolicyTierTarget[]; } export interface AiGatewayPolicyTierTarget { /** * Model name, or a pattern with a trailing `*`. */ model: string; /** * Slug of the provider to route to, or `*` to fan out to every provider. When unset, the gateway resolves the provider from the model. */ provider?: string; } export interface AiGatewayProviderIntegrationConfig { /** * AWS region, for `bedrock` providers. */ bedrockRegion?: string; /** * Azure AI Foundry project name, for `azureFoundry` providers. */ foundryProject?: string; /** * ARM resource ID of the Azure AI Foundry resource, for `azureFoundry` providers. */ foundryResourceId?: string; /** * GCP location, for `gemini` providers. */ location?: string; /** * GCP project ID, for `gemini` providers. */ projectId?: string; /** * Operations that a `custom` provider discovered and manually added models support. The API defaults to `OPENAI_CHAT_COMPLETIONS`. */ supportedOperations: string[]; } export interface AiGatewayRoutingRuleTier { /** * Decision model of a `classified` tier. Required on a `classified` tier and not allowed on others. */ classifier?: outputs.AiGatewayRoutingRuleTierClassifier; /** * How the tier orders its targets. `configured` tries them in the order listed. `weightedAffinity` spreads requests by each target's `weight`. `classified`, which lets a decision model pick one target by its `rubric`, is allowed only on the first tier. Valid values are `configured`, `weightedAffinity`, `classified`. Defaults to `"configured"`. */ ordering: string; /** * Destinations in the tier, in order. A target is either a model, set with `provider` and `model`, or another routing rule, set with `routingRule`. A routing rule target must be the only target in its tier. */ targets: outputs.AiGatewayRoutingRuleTierTarget[]; } export interface AiGatewayRoutingRuleTierClassifier { /** * Minimum confidence that the picked target must reach. If the confidence is lower, the request goes to the default target. Value must be between 0.000000 and 1.000000. Defaults to `0.5`. */ confidenceThreshold: number; /** * Prompt that tells the decision model about the rule's traffic, up to 2000 characters. */ context?: string; /** * Canonical name of the decision model on that provider. */ model: string; /** * Slug of the provider that serves the decision model. It must be an OpenAI, Baseten, or TypeSafe provider. */ provider: string; } export interface AiGatewayRoutingRuleTierTarget { /** * Marks the default target of a `classified` tier, which receives requests that don't match any rubric. Each `classified` tier must have exactly one default target. */ default?: boolean; /** * Model to route to. Required for a model target. */ model?: string; /** * Slug of the provider to route to, or `*` to route to any provider that serves the model. Required for a model target. */ provider?: string; /** * Reasoning effort override for a model target. When unset, the caller's and provider's defaults apply. Valid values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`. */ reasoningLevel?: string; /** * Slug of another routing rule to route to. */ routingRule?: string; /** * Description of when the decision model should pick this target, up to 300 characters. Required on every target of a `classified` tier except the default one, and not allowed in other tiers. */ rubric?: string; /** * Relative weight of the target in a `weightedAffinity` tier. The API uses 1 when it's unset. Not allowed in other tiers. Value must be between 1 and 10000. */ weight?: number; } export interface ApmRetentionFilterFilter { /** * The search query - follow the span search syntax, use `AND` between tags and `\` to escape special characters, use nanosecond for duration. Defaults to `"*"`. */ query: string; } export interface AppsecWafCustomRuleAction { /** * Override the default action to take when the WAF custom rule would block. */ action?: string; parameters?: outputs.AppsecWafCustomRuleActionParameters; } export interface AppsecWafCustomRuleActionParameters { /** * The location to redirect to when the WAF custom rule triggers. */ location?: string; /** * The status code to return when the WAF custom rule triggers. */ statusCode?: number; } export interface AppsecWafCustomRuleCondition { /** * Operator to use for the WAF Condition. */ operator?: string; parameters?: outputs.AppsecWafCustomRuleConditionParameters; } export interface AppsecWafCustomRuleConditionParameters { /** * Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter. */ data?: string; inputs?: outputs.AppsecWafCustomRuleConditionParametersInput[]; /** * List of value to use with the condition. Only used with the phrase*match, !phrase*match, exact*match and !exact*match operator. */ lists?: string[]; options?: outputs.AppsecWafCustomRuleConditionParametersOptions; /** * Regex to use with the condition. Only used with match*regex and !match*regex operator. */ regex?: string; /** * Store the captured value in the specified tag name. Only used with the captureData operator. */ value?: string; } export interface AppsecWafCustomRuleConditionParametersInput { /** * Input from the request on which the condition should apply. */ address?: string; /** * Specific path for the input. */ keyPaths?: string[]; } export interface AppsecWafCustomRuleConditionParametersOptions { /** * Evaluate the value as case sensitive. */ caseSensitive?: boolean; /** * Only evaluate this condition if the value has a minimum amount of characters. */ minLength?: number; } export interface AppsecWafCustomRuleScope { /** * The environment scope for the WAF custom rule. */ env?: string; /** * The service scope for the WAF custom rule. */ service?: string; } export interface AppsecWafExclusionFilterRulesTarget { /** * Target a single WAF rule based on its identifier. */ ruleId?: string; tags?: outputs.AppsecWafExclusionFilterRulesTargetTags; } export interface AppsecWafExclusionFilterRulesTargetTags { /** * The category of the targeted WAF rules. */ category?: string; /** * The type of the targeted WAF rules. */ type?: string; } export interface AppsecWafExclusionFilterScope { /** * Deploy on this environment. */ env?: string; /** * Deploy on this service. */ service?: string; } export interface AwsCurConfigAccountFilters { /** * List of AWS account IDs to exclude from cost analysis. Only used when `includeNewAccounts` is `true`. Cannot be used together with `includedAccounts`. */ excludedAccounts?: string[]; /** * Whether to automatically include new member accounts in your cost analysis. When `true`, use `excludedAccounts` to specify accounts to exclude. When `false`, use `includedAccounts` to specify only the accounts to include. */ includeNewAccounts?: boolean; /** * List of AWS account IDs to include in cost analysis. Only used when `includeNewAccounts` is `false`. Cannot be used together with `excludedAccounts`. */ includedAccounts?: string[]; } export interface AzureUcConfigActualBillConfig { /** * The name of the configured Azure Export. */ exportName: string; /** * The path where the Azure Export is saved. */ exportPath: string; /** * The name of the storage account where the Azure Export is saved. */ storageAccount: string; /** * The name of the storage container where the Azure Export is saved. */ storageContainer: string; } export interface AzureUcConfigAmortizedBillConfig { /** * The name of the configured Azure Export. */ exportName: string; /** * The path where the Azure Export is saved. */ exportPath: string; /** * The name of the storage account where the Azure Export is saved. */ storageAccount: string; /** * The name of the storage container where the Azure Export is saved. */ storageContainer: string; } export interface ChildOrganizationApiKey { /** * API key. */ key: string; /** * Name of your API key. */ name: string; } export interface ChildOrganizationApplicationKey { /** * Hash of an application key. */ hash: string; /** * Name of an application key. */ name: string; /** * Owner of an application key. */ owner: string; } export interface ChildOrganizationSetting { /** * Whether or not the organization users can share widgets outside of Datadog. */ privateWidgetShare: boolean; /** * The access role of the user. Options are `st` (standard user), `adm` (admin user), or `ro` (read-only user). Allowed enum values: `st`, `adm` , `ro`, `ERROR` */ samlAutocreateAccessRole: string; /** * List of domains where the SAML automated user creation is enabled. */ samlAutocreateUsersDomains: outputs.ChildOrganizationSettingSamlAutocreateUsersDomain[]; /** * Whether or not SAML can be enabled for this organization. */ samlCanBeEnabled: boolean; /** * Identity provider endpoint for SAML authentication. */ samlIdpEndpoint: string; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ samlIdpInitiatedLogins: outputs.ChildOrganizationSettingSamlIdpInitiatedLogin[]; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ samlIdpMetadataUploaded: boolean; /** * URL for SAML logging. */ samlLoginUrl: string; /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. */ samlStrictModes: outputs.ChildOrganizationSettingSamlStrictMode[]; /** * SAML properties */ samls: outputs.ChildOrganizationSettingSaml[]; } export interface ChildOrganizationSettingSaml { /** * Whether or not SAML is enabled for this organization. */ enabled: boolean; } export interface ChildOrganizationSettingSamlAutocreateUsersDomain { /** * List of domains where the SAML automated user creation is enabled. */ domains: string[]; /** * Whether or not the automated user creation based on SAML domain is enabled. */ enabled: boolean; } export interface ChildOrganizationSettingSamlIdpInitiatedLogin { /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ enabled: boolean; } export interface ChildOrganizationSettingSamlStrictMode { /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. */ enabled: boolean; } export interface ChildOrganizationUser { /** * The access role of the user. Options are `st` (standard user), `adm` (admin user), or `ro` (read-only user). Allowed enum values: `st`, `adm`, `ro`, `ERROR` */ accessRole: string; /** * The new email of the user. */ email: string; /** * The name of the user. */ name: string; } export interface CloudConfigurationRuleFilter { /** * The type of filtering action. Valid values are `require`, `suppress`. */ action: string; /** * Query for selecting logs to apply the filtering action. */ query: string; } export interface CloudInventorySyncConfigAws { /** * AWS Account ID of the account holding the bucket. */ awsAccountId?: string; /** * Name of the S3 bucket holding the inventory files. */ destinationBucketName?: string; /** * AWS Region of the bucket holding the inventory files. */ destinationBucketRegion?: string; /** * Prefix path within the bucket for inventory files. */ destinationPrefix?: string; } export interface CloudInventorySyncConfigAzure { /** * Azure Client ID. */ clientId?: string; /** * Azure Storage Container name. */ container?: string; /** * Azure Resource Group name. */ resourceGroup?: string; /** * Azure Storage Account name. */ storageAccount?: string; /** * Azure Subscription ID. */ subscriptionId?: string; /** * Azure Tenant ID. */ tenantId?: string; } export interface CloudInventorySyncConfigGcp { /** * Name of the GCS bucket holding the inventory files. */ destinationBucketName?: string; /** * GCP Project ID of the project holding the bucket. */ projectId?: string; /** * Service account email used for reading the bucket. */ serviceAccountEmail?: string; /** * Name of the source bucket the inventory report is generated for. */ sourceBucketName?: string; } export interface ComplianceCustomFrameworkRequirement { /** * The controls of the requirement. Length must be at least 1. */ controls: outputs.ComplianceCustomFrameworkRequirementControl[]; /** * The name of the requirement. String length must be at least 1. */ name: string; } export interface ComplianceCustomFrameworkRequirementControl { /** * The name of the control. String length must be at least 1. */ name: string; /** * The set of rules IDs for the control. Length must be at least 1. */ rulesIds: string[]; } export interface CostBudgetBudgetLine { /** * Map of month (YYYYMM) to budget amount. Example: {"202601": 1000.0, "202602": 1200.0} */ amounts: { [key: string]: number; }; /** * Child tag filters for hierarchical budgets. **Note:** Must be used with parent*tag*filters. Cannot be used with tag*filters. */ childTagFilters?: outputs.CostBudgetBudgetLineChildTagFilter[]; /** * Parent tag filters for hierarchical budgets. **Note:** Must be used with child*tag*filters. Cannot be used with tag*filters. */ parentTagFilters?: outputs.CostBudgetBudgetLineParentTagFilter[]; /** * Tag filters for non-hierarchical budgets. **Note:** Cannot be used with parent*tag*filters/child*tag*filters. */ tagFilters?: outputs.CostBudgetBudgetLineTagFilter[]; } export interface CostBudgetBudgetLineChildTagFilter { /** * Must be one of the tags from the `metricsQuery`. */ tagKey: string; tagValue: string; } export interface CostBudgetBudgetLineParentTagFilter { /** * Must be one of the tags from the `metricsQuery`. */ tagKey: string; tagValue: string; } export interface CostBudgetBudgetLineTagFilter { /** * Must be one of the tags from the `metricsQuery`. */ tagKey: string; tagValue: string; } export interface CostBudgetEntry { amount: number; month: number; tagFilters?: outputs.CostBudgetEntryTagFilter[]; } export interface CostBudgetEntryTagFilter { /** * **Note:** Must be one of the tags from the `metricsQuery`. */ tagKey: string; tagValue: string; } export interface CostCustomForecastEntry { /** * The forecast override amount for the month. Value must be at least 0.000000. */ amount: number; /** * The month the entry applies to, in `YYYYMM` format. */ month: number; /** * Tag filters that scope this entry to a specific budget entry tag combination. */ tagFilters?: outputs.CostCustomForecastEntryTagFilter[]; } export interface CostCustomForecastEntryTagFilter { tagKey: string; tagValue: string; } export interface CsmThreatsAgentRuleAction { /** * Hash action configuration */ hash?: outputs.CsmThreatsAgentRuleActionHash; /** * Set action configuration */ set?: outputs.CsmThreatsAgentRuleActionSet; } export interface CsmThreatsAgentRuleActionHash { /** * The field to hash */ field?: string; } export interface CsmThreatsAgentRuleActionSet { /** * Whether to append to the set */ append: boolean; /** * The default value to set */ defaultValue: string; /** * The expression to use for the set action */ expression: string; /** * The field to get the value from */ field: string; /** * Whether the set action is inherited */ inherited: boolean; /** * The name of the set action */ name?: string; /** * The scope of the set action (process, container, cgroup, or empty) */ scope: string; /** * The maximum size of the set */ size: number; /** * The time to live for the set in nanoseconds */ ttl: number; /** * The value to set */ value: string; } export interface CustomAllocationRuleCostsToAllocate { /** * The condition to match. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition?: string; /** * The tag key to filter on (e.g., `awsProduct`, `team`, `environment`). */ tag?: string; /** * The single tag value to match. Use this field for conditions like `=`, `!=`, `is`, `is not`, `like`. Do not use with `in` or `not in` conditions. */ value?: string; /** * A list of tag values to match. Use this field for `in` or `not in` conditions only. Do not use with single-value conditions. */ values?: string[]; } export interface CustomAllocationRuleStrategy { allocatedBies?: outputs.CustomAllocationRuleStrategyAllocatedBy[]; allocatedByFilters?: outputs.CustomAllocationRuleStrategyAllocatedByFilter[]; /** * List of tag keys used to allocate costs (e.g., `["team", "project"]`). Costs will be distributed across unique values of these tags. */ allocatedByTagKeys?: string[]; basedOnCosts?: outputs.CustomAllocationRuleStrategyBasedOnCost[]; basedOnTimeseries?: outputs.CustomAllocationRuleStrategyBasedOnTimeseries; evaluateGroupedByFilters?: outputs.CustomAllocationRuleStrategyEvaluateGroupedByFilter[]; /** * List of tag keys used to group costs before allocation. Costs are grouped by these tag values before applying the allocation strategy. */ evaluateGroupedByTagKeys?: string[]; /** * The granularity level for cost allocation. Valid values are `daily` or `monthly`. */ granularity?: string; /** * The allocation method. Valid values are `even`, `percent`, `proportional`, `proportionalTimeseries`. */ method?: string; } export interface CustomAllocationRuleStrategyAllocatedBy { allocatedTags?: outputs.CustomAllocationRuleStrategyAllocatedByAllocatedTag[]; /** * The percentage of costs to allocate to this target as a decimal (e.g., 0.33 for 33%). Used when `method` is `percent`. */ percentage?: number; } export interface CustomAllocationRuleStrategyAllocatedByAllocatedTag { /** * The tag key to allocate costs to (e.g., `team`, `environment`). */ key?: string; /** * The tag value to allocate costs to (e.g., `backend`, `production`). */ value?: string; } export interface CustomAllocationRuleStrategyAllocatedByFilter { /** * The condition to match. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition?: string; /** * The tag key to filter on for allocation targets. */ tag?: string; /** * The single tag value to match for allocation. Use with conditions like `=`, `!=`, `is`, `is not`, `like`. */ value?: string; /** * A list of tag values to match for allocation. Use with `in` or `not in` conditions. */ values?: string[]; } export interface CustomAllocationRuleStrategyBasedOnCost { /** * The condition to match. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition?: string; /** * The tag key to use as the basis for cost allocation calculations. */ tag?: string; /** * The single tag value to use for cost calculations. Use with conditions like `=`, `!=`, `is`, `is not`, `like`. */ value?: string; /** * A list of tag values to use for cost calculations. Use with `in` or `not in` conditions. */ values?: string[]; } export interface CustomAllocationRuleStrategyBasedOnTimeseries { /** * The timeseries query that determines the allocation proportions, encoded as a JSON object. Required when `method` is `proportionalTimeseries`. Uses Datadog's formulas-and-functions request format with `queries`, `formulas`, and `responseFormat` keys. Build it with `jsonencode()`. The set of supported `dataSource` values is defined by the API, not by this provider. */ json: string; } export interface CustomAllocationRuleStrategyEvaluateGroupedByFilter { /** * The condition to match. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition?: string; /** * The tag key to filter on when grouping costs for evaluation. */ tag?: string; /** * The single tag value to match when grouping. Use with conditions like `=`, `!=`, `is`, `is not`, `like`. */ value?: string; /** * A list of tag values to match when grouping. Use with `in` or `not in` conditions. */ values?: string[]; } export interface DashboardDefaultTimeframe { /** * A fixed timeframe applied when opening the dashboard. */ fixed?: outputs.DashboardDefaultTimeframeFixed; /** * A live timeframe applied when opening the dashboard. */ live?: outputs.DashboardDefaultTimeframeLive; } export interface DashboardDefaultTimeframeFixed { /** * Start time in milliseconds since epoch. */ from: number; /** * End time in milliseconds since epoch. */ to: number; } export interface DashboardDefaultTimeframeLive { /** * Unit of the live timeframe span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the live timeframe span. */ value: number; } export interface DashboardListDashItem { /** * The ID of the dashboard to add */ dashId: string; /** * The type of this dashboard. Valid values are `customTimeboard`, `customScreenboard`, `integrationScreenboard`, `integrationTimeboard`, `hostTimeboard`. */ type: string; } export interface DashboardTab { /** * The UUID of the tab. */ id: string; /** * The name of the tab. */ name: string; /** * List of widget references using @N format (1-indexed). */ widgetIds: string[]; } export interface DashboardTemplateVariable { /** * The list of values that the template variable drop-down is limited to. */ availableValues?: string[]; /** * The default value for the template variable on dashboard load. Cannot be used in conjunction with `defaults`. **Deprecated.** Use `defaults` instead. * * @deprecated Use `defaults` instead. */ default?: string; /** * One or many default values for template variables on load. If more than one default is specified, they will be unioned together with `OR`. Cannot be used in conjunction with `default`. */ defaults?: string[]; /** * The name of the variable. */ name: string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable dropdown. */ prefix?: string; /** * The type of variable. This is to differentiate between filter variables (interpolated in query) and group by variables (interpolated into group by). */ type?: string; } export interface DashboardTemplateVariablePreset { /** * The name of the preset. */ name?: string; /** * The template variable names and assumed values under the given preset */ templateVariables?: outputs.DashboardTemplateVariablePresetTemplateVariable[]; } export interface DashboardTemplateVariablePresetTemplateVariable { /** * The name of the template variable */ name?: string; /** * The value that should be assumed by the template variable in this preset. Cannot be used in conjunction with `values`. **Deprecated.** Use `values` instead. * * @deprecated Use `values` instead. */ value?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. Cannot be used in conjunction with `value`. */ values?: string[]; } export interface DashboardV2DefaultTimeframe { /** * A fixed timeframe applied when opening the dashboard. */ fixed?: outputs.DashboardV2DefaultTimeframeFixed; /** * A live timeframe applied when opening the dashboard. */ live?: outputs.DashboardV2DefaultTimeframeLive; } export interface DashboardV2DefaultTimeframeFixed { /** * Start time in milliseconds since epoch. */ from: number; /** * End time in milliseconds since epoch. */ to: number; } export interface DashboardV2DefaultTimeframeLive { /** * Unit of the live timeframe span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the live timeframe span. */ value: number; } export interface DashboardV2Tab { /** * The UUID of the tab. */ id: string; /** * The name of the tab. */ name: string; /** * List of widget references using @N format (1-indexed). */ widgetIds: string[]; } export interface DashboardV2TemplateVariable { /** * The list of values that the template variable drop-down is limited to. */ availableValues?: string[]; /** * The default value for the template variable on dashboard load. Cannot be used in conjunction with `defaults`. **Deprecated.** Use `defaults` instead. * * @deprecated Use `defaults` instead. */ default?: string; /** * One or many default values for template variables on load. If more than one default is specified, they will be unioned together with `OR`. Cannot be used in conjunction with `default`. */ defaults?: string[]; /** * The name of the variable. */ name: string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable dropdown. */ prefix?: string; /** * The type of variable. This is to differentiate between filter variables (interpolated in query) and group by variables (interpolated into group by). */ type?: string; } export interface DashboardV2TemplateVariablePreset { /** * The name of the preset. */ name?: string; /** * The template variable names and assumed values under the given preset */ templateVariables?: outputs.DashboardV2TemplateVariablePresetTemplateVariable[]; } export interface DashboardV2TemplateVariablePresetTemplateVariable { /** * The name of the template variable */ name?: string; /** * The value that should be assumed by the template variable in this preset. Cannot be used in conjunction with `values`. **Deprecated.** Use `values` instead. * * @deprecated Use `values` instead. */ value?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. Cannot be used in conjunction with `value`. */ values?: string[]; } export interface DashboardV2Widget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.DashboardV2WidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.DashboardV2WidgetAlertValueDefinition; /** * The definition for a Bar Chart widget. */ barChartDefinition?: outputs.DashboardV2WidgetBarChartDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.DashboardV2WidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.DashboardV2WidgetCheckStatusDefinition; /** * The definition for a Cohort retention-grid widget. */ cohortDefinition?: outputs.DashboardV2WidgetCohortDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.DashboardV2WidgetDistributionDefinition; /** * The definition for an App Builder embedded app widget. */ embeddedAppDefinition?: outputs.DashboardV2WidgetEmbeddedAppDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.DashboardV2WidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.DashboardV2WidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.DashboardV2WidgetFreeTextDefinition; /** * The definition for a Funnel widget. */ funnelDefinition?: outputs.DashboardV2WidgetFunnelDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.DashboardV2WidgetGeomapDefinition; /** * The definition for a Group widget. */ groupDefinition?: outputs.DashboardV2WidgetGroupDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.DashboardV2WidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.DashboardV2WidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.DashboardV2WidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.DashboardV2WidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.DashboardV2WidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.DashboardV2WidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.DashboardV2WidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.DashboardV2WidgetNoteDefinition; /** * The definition for a Point Plot widget. */ pointPlotDefinition?: outputs.DashboardV2WidgetPointPlotDefinition; /** * The definition for a Powerpack widget. */ powerpackDefinition?: outputs.DashboardV2WidgetPowerpackDefinition; /** * The definition for a Product Analytics user journey funnel widget. */ productAnalyticsFunnelDefinition?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.DashboardV2WidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.DashboardV2WidgetQueryValueDefinition; /** * The definition for a Retention Curve widget. */ retentionCurveDefinition?: outputs.DashboardV2WidgetRetentionCurveDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.DashboardV2WidgetRunWorkflowDefinition; /** * The definition for a Sankey diagram widget. */ sankeyDefinition?: outputs.DashboardV2WidgetSankeyDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.DashboardV2WidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.DashboardV2WidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.DashboardV2WidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.DashboardV2WidgetSloListDefinition; /** * The definition for a Split Graph widget. */ splitGraphDefinition?: outputs.DashboardV2WidgetSplitGraphDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.DashboardV2WidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.DashboardV2WidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.DashboardV2WidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.DashboardV2WidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.DashboardV2WidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.DashboardV2WidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.DashboardV2WidgetWidgetLayout; /** * The definition for a Wildcard (custom visualization) widget using Vega or Vega-Lite specifications. */ wildcardDefinition?: outputs.DashboardV2WidgetWildcardDefinition; } export interface DashboardV2WidgetAlertGraphDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetAlertGraphDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Whether to display the Alert Graph as a timeseries or a top list. Valid values are `timeseries`, `toplist`. */ vizType: string; } export interface DashboardV2WidgetAlertGraphDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetAlertGraphDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetAlertGraphDefinitionTimeLive; } export interface DashboardV2WidgetAlertGraphDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetAlertGraphDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetAlertValueDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The precision to use when displaying the value. Use `*` for maximum precision. */ precision?: number; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetAlertValueDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The unit for the value displayed in the widget. */ unit?: string; } export interface DashboardV2WidgetAlertValueDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetAlertValueDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetAlertValueDefinitionTimeLive; } export interface DashboardV2WidgetAlertValueDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetAlertValueDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardV2WidgetApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardV2WidgetApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetApmQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetApmQueryGroupBySortQuery; } export interface DashboardV2WidgetApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardV2WidgetBarChartDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetBarChartDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. */ request?: outputs.DashboardV2WidgetBarChartDefinitionRequest; /** * Style customization for the bar chart widget. */ style?: outputs.DashboardV2WidgetBarChartDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetBarChartDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetBarChartDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetBarChartDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. */ conditionalFormats?: outputs.DashboardV2WidgetBarChartDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetBarChartDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetBarChartDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardV2WidgetBarChartDefinitionRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardV2WidgetBarChartDefinitionRequestStyle; } export interface DashboardV2WidgetBarChartDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetBarChartDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetBarChartDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetBarChartDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetBarChartDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetBarChartDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetBarChartDefinitionRequestSortOrderBy[]; } export interface DashboardV2WidgetBarChartDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetBarChartDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetBarChartDefinitionRequestSortOrderByGroupSort; } export interface DashboardV2WidgetBarChartDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetBarChartDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetBarChartDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetBarChartDefinitionStyle { /** * Bar chart display options. */ display?: outputs.DashboardV2WidgetBarChartDefinitionStyleDisplay; /** * Color palette for the bar chart. */ palette?: string; /** * Scaling definition for the bar chart. Valid values are `absolute`, `relative`. */ scaling?: string; } export interface DashboardV2WidgetBarChartDefinitionStyleDisplay { /** * Flat display mode with no stacking. */ flat?: outputs.DashboardV2WidgetBarChartDefinitionStyleDisplayFlat; /** * Stacked display mode. */ stacked?: outputs.DashboardV2WidgetBarChartDefinitionStyleDisplayStacked; } export interface DashboardV2WidgetBarChartDefinitionStyleDisplayFlat { } export interface DashboardV2WidgetBarChartDefinitionStyleDisplayStacked { /** * Legend display behavior for stacked bars. Valid values are `automatic`, `inline`, `none`. */ legend?: string; } export interface DashboardV2WidgetBarChartDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetBarChartDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetBarChartDefinitionTimeLive; } export interface DashboardV2WidgetBarChartDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetBarChartDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetChangeDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetChangeDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.DashboardV2WidgetChangeDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetChangeDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetChangeDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetChangeDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * Whether to show absolute or relative change. Valid values are `absolute`, `relative`. */ changeType?: string; /** * Choose from when to compare current data to. Valid values are `hourBefore`, `dayBefore`, `weekBefore`, `monthBefore`. */ compareTo?: string; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetChangeDefinitionRequestFormula[]; /** * A Boolean indicating whether an increase in the value is good (displayed in green) or not (displayed in red). */ increaseGood?: boolean; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * What to order by. Valid values are `change`, `name`, `present`, `past`. */ orderBy?: string; /** * Widget sorting method. Valid values are `asc`, `desc`. */ orderDir?: string; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetChangeDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetChangeDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * If set to `true`, displays the current value. */ showPresent?: boolean; } export interface DashboardV2WidgetChangeDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetChangeDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetChangeDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetChangeDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetChangeDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetChangeDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetChangeDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetChangeDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetChangeDefinitionTimeLive; } export interface DashboardV2WidgetChangeDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetChangeDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetCheckStatusDefinition { /** * Name of the check to use in the widget. */ check: string; /** * The description of the widget. */ description?: string; /** * Group reporting a single check. */ group?: string; /** * When `grouping = "cluster"`, indicates a list of tags to use for grouping. */ groupBies?: string[]; /** * The kind of grouping to use. Valid values are `check`, `cluster`. */ grouping: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A list of tags used to filter the groups reporting a cluster check. */ tags?: string[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetCheckStatusDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetCheckStatusDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetCheckStatusDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetCheckStatusDefinitionTimeLive; } export interface DashboardV2WidgetCheckStatusDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetCheckStatusDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardV2WidgetCohortDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Cohort retention-grid requests. */ requests: outputs.DashboardV2WidgetCohortDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetCohortDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetCohortDefinitionRequest { /** * Retention query displayed by the cohort grid. */ query: outputs.DashboardV2WidgetCohortDefinitionRequestQuery; /** * Request type for the retention grid widget. Valid values are `retentionGrid`. */ requestType: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardV2WidgetCohortDefinitionRequestQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Filters for the retention query. */ filters?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryFilters; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryGroupBy[]; /** * Name of the retention query. */ name?: string; /** * Search configuration for the retention query. */ search: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearch; } export interface DashboardV2WidgetCohortDefinitionRequestQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardV2WidgetCohortDefinitionRequestQueryFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardV2WidgetCohortDefinitionRequestQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardV2WidgetCohortDefinitionRequestQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteria; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeInterval; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaTimeInterval; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardV2WidgetCohortDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetCohortDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetCohortDefinitionTimeLive; } export interface DashboardV2WidgetCohortDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetCohortDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetDistributionDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `distributionDefinition` block. */ markers?: outputs.DashboardV2WidgetDistributionDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.DashboardV2WidgetDistributionDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetDistributionDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.DashboardV2WidgetDistributionDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.DashboardV2WidgetDistributionDefinitionYaxis; } export interface DashboardV2WidgetDistributionDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardV2WidgetDistributionDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * The APM stats query to use in the widget. */ apmStatsQuery?: outputs.DashboardV2WidgetDistributionDefinitionRequestApmStatsQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormula[]; /** * Singular query block for histogram-mode distribution requests. */ histogramQuery?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetDistributionDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetDistributionDefinitionRequestQuery[]; /** * Set to 'histogram' for distribution-of-point-values requests. Valid values are `histogram`. */ requestType?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardV2WidgetDistributionDefinitionRequestStyle; } export interface DashboardV2WidgetDistributionDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.DashboardV2WidgetDistributionDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface DashboardV2WidgetDistributionDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetDistributionDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQuery { /** * APM metrics query for histogram-mode distribution. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * APM resource stats query for histogram-mode distribution. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * Event query for histogram-mode distribution. */ eventQuery?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQuery; /** * Metric query for histogram-mode distribution. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBySort; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestHistogramQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetDistributionDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetDistributionDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetDistributionDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetDistributionDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetDistributionDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetDistributionDefinitionTimeLive; } export interface DashboardV2WidgetDistributionDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetDistributionDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetDistributionDefinitionXaxis { /** * True includes zero. */ includeZero?: boolean; /** * Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. */ max?: string; /** * Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. */ min?: string; /** * Number of value buckets to target, also known as the resolution of the value bins. */ numBuckets?: number; /** * Specifies the scale type. Possible values are `linear`. */ scale?: string; } export interface DashboardV2WidgetDistributionDefinitionYaxis { /** * True includes zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. */ max?: string; /** * Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. */ min?: string; /** * Specifies the scale type. Possible values are `linear` or `log`. */ scale?: string; } export interface DashboardV2WidgetEmbeddedAppDefinition { /** * UUID of the App Builder app to embed. Exactly one of `appId` or `templateId` must be provided. */ appId?: string; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetEmbeddedAppDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A nested block describing an input passed to the embedded app. Multiple `input` blocks are allowed. */ inputs?: outputs.DashboardV2WidgetEmbeddedAppDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * ID of the built-in app template to embed. Exactly one of `appId` or `templateId` must be provided. */ templateId?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetEmbeddedAppDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetEmbeddedAppDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetEmbeddedAppDefinitionInput { /** * Name of the app input. */ name: string; /** * JSON-encoded value of the app input. Use `jsonencode()` for strings, numbers, booleans, objects, and arrays. */ value: string; } export interface DashboardV2WidgetEmbeddedAppDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetEmbeddedAppDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetEmbeddedAppDefinitionTimeLive; } export interface DashboardV2WidgetEmbeddedAppDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetEmbeddedAppDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetEventStreamDefinition { /** * The description of the widget. */ description?: string; /** * Size to use to display an event. Valid values are `s`, `l`. */ eventSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the event stream with. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetEventStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetEventStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetEventStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetEventStreamDefinitionTimeLive; } export interface DashboardV2WidgetEventStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetEventStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetEventTimelineDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the event timeline with. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetEventTimelineDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetEventTimelineDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetEventTimelineDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetEventTimelineDefinitionTimeLive; } export interface DashboardV2WidgetEventTimelineDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetEventTimelineDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetFreeTextDefinition { /** * The background color of the text widget. */ backgroundColor?: string; /** * The color of the text in the widget. */ color?: string; /** * The description of the widget. */ description?: string; /** * The size of the text in the widget. */ fontSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The text to display in the widget. */ text: string; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetFreeTextDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetFreeTextDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetFreeTextDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetFreeTextDefinitionTimeLive; } export interface DashboardV2WidgetFreeTextDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetFreeTextDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetFunnelDefinition { /** * The description of the widget. */ description?: string; /** * Display mode for grouped funnel results. Valid values are `stacked`, `sideBySide`. */ groupedDisplay?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Only one `request` block is allowed. */ request?: outputs.DashboardV2WidgetFunnelDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetFunnelDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetFunnelDefinitionRequest { /** * The query for the funnel widget request. */ query: outputs.DashboardV2WidgetFunnelDefinitionRequestQuery; } export interface DashboardV2WidgetFunnelDefinitionRequestQuery { /** * The data source for funnel queries. Valid values are `rum`. */ dataSource: string; /** * The widget query. */ queryString: string; /** * The funnel steps. Multiple `step` blocks are allowed. */ steps?: outputs.DashboardV2WidgetFunnelDefinitionRequestQueryStep[]; } export interface DashboardV2WidgetFunnelDefinitionRequestQueryStep { /** * The facet of the step. */ facet: string; /** * The value of the step. */ value: string; } export interface DashboardV2WidgetFunnelDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetFunnelDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetFunnelDefinitionTimeLive; } export interface DashboardV2WidgetFunnelDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetFunnelDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetGeomapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetGeomapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.DashboardV2WidgetGeomapDefinitionRequest[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardV2WidgetGeomapDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetGeomapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view of the world that the map should render. */ view?: outputs.DashboardV2WidgetGeomapDefinitionView; } export interface DashboardV2WidgetGeomapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetGeomapDefinitionRequest { /** * List of formulas that operate on queries. */ formulas?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.DashboardV2WidgetGeomapDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; } export interface DashboardV2WidgetGeomapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetGeomapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetGeomapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetGeomapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetGeomapDefinitionStyle { /** * The color palette to apply to the widget. */ palette: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip: boolean; } export interface DashboardV2WidgetGeomapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetGeomapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetGeomapDefinitionTimeLive; } export interface DashboardV2WidgetGeomapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetGeomapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetGeomapDefinitionView { /** * The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`). */ focus: string; } export interface DashboardV2WidgetGroupDefinition { /** * The background color of the group title, options: `vividBlue`, `vividPurple`, `vividPink`, `vividOrange`, `vividYellow`, `vividGreen`, `blue`, `purple`, `pink`, `orange`, `yellow`, `green`, `gray` or `white` */ backgroundColor?: string; /** * The image URL to display as a banner for the group. */ bannerImg?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The layout type of the group. Valid values are `ordered`. */ layoutType: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show the title or not. Defaults to `true`. */ showTitle?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetGroupDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The list of widgets in this group. */ widgets?: outputs.DashboardV2WidgetGroupDefinitionWidget[]; } export interface DashboardV2WidgetGroupDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetGroupDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetGroupDefinitionTimeLive; } export interface DashboardV2WidgetGroupDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetGroupDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetGroupDefinitionWidget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.DashboardV2WidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.DashboardV2WidgetAlertValueDefinition; /** * The definition for a Bar Chart widget. */ barChartDefinition?: outputs.DashboardV2WidgetBarChartDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.DashboardV2WidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.DashboardV2WidgetCheckStatusDefinition; /** * The definition for a Cohort retention-grid widget. */ cohortDefinition?: outputs.DashboardV2WidgetCohortDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.DashboardV2WidgetDistributionDefinition; /** * The definition for an App Builder embedded app widget. */ embeddedAppDefinition?: outputs.DashboardV2WidgetEmbeddedAppDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.DashboardV2WidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.DashboardV2WidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.DashboardV2WidgetFreeTextDefinition; /** * The definition for a Funnel widget. */ funnelDefinition?: outputs.DashboardV2WidgetFunnelDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.DashboardV2WidgetGeomapDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.DashboardV2WidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.DashboardV2WidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.DashboardV2WidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.DashboardV2WidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.DashboardV2WidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.DashboardV2WidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.DashboardV2WidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.DashboardV2WidgetNoteDefinition; /** * The definition for a Point Plot widget. */ pointPlotDefinition?: outputs.DashboardV2WidgetPointPlotDefinition; /** * The definition for a Product Analytics user journey funnel widget. */ productAnalyticsFunnelDefinition?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.DashboardV2WidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.DashboardV2WidgetQueryValueDefinition; /** * The definition for a Retention Curve widget. */ retentionCurveDefinition?: outputs.DashboardV2WidgetRetentionCurveDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.DashboardV2WidgetRunWorkflowDefinition; /** * The definition for a Sankey diagram widget. */ sankeyDefinition?: outputs.DashboardV2WidgetSankeyDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.DashboardV2WidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.DashboardV2WidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.DashboardV2WidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.DashboardV2WidgetSloListDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.DashboardV2WidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.DashboardV2WidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.DashboardV2WidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.DashboardV2WidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.DashboardV2WidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.DashboardV2WidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.DashboardV2WidgetGroupDefinitionWidgetWidgetLayout; /** * The definition for a Wildcard (custom visualization) widget using Vega or Vega-Lite specifications. */ wildcardDefinition?: outputs.DashboardV2WidgetWildcardDefinition; } export interface DashboardV2WidgetGroupDefinitionWidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface DashboardV2WidgetHeatmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetHeatmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.DashboardV2WidgetHeatmapDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `heatmapDefinition` block. */ markers?: outputs.DashboardV2WidgetHeatmapDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below. */ requests?: outputs.DashboardV2WidgetHeatmapDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetHeatmapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.DashboardV2WidgetHeatmapDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.DashboardV2WidgetHeatmapDefinitionYaxis; } export interface DashboardV2WidgetHeatmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetHeatmapDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface DashboardV2WidgetHeatmapDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardV2WidgetHeatmapDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormula[]; /** * Histogram request for distribution of point values. */ histogramRequest?: outputs.DashboardV2WidgetHeatmapDefinitionRequestHistogramRequest; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetHeatmapDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardV2WidgetHeatmapDefinitionRequestStyle; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetHeatmapDefinitionRequestHistogramRequest { /** * Singular metric query for a histogram-mode heatmap request. */ histogramQuery: outputs.DashboardV2WidgetHeatmapDefinitionRequestHistogramRequestHistogramQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardV2WidgetHeatmapDefinitionRequestHistogramRequestStyle; } export interface DashboardV2WidgetHeatmapDefinitionRequestHistogramRequestHistogramQuery { /** * Metric query for distribution of point values. */ metricQuery: outputs.DashboardV2WidgetMetricQuery; } export interface DashboardV2WidgetHeatmapDefinitionRequestHistogramRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetHeatmapDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetHeatmapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetHeatmapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetHeatmapDefinitionTimeLive; } export interface DashboardV2WidgetHeatmapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetHeatmapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetHeatmapDefinitionXaxis { /** * Number of time buckets to target, also known as the resolution of the time bins. This is only applicable for distribution of points (group distributions use the roll-up modifier). */ numBuckets?: number; } export interface DashboardV2WidgetHeatmapDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetHostmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetHostmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The list of tag prefixes to group by. */ groups?: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A Boolean indicating whether to show the hosts that don't fit in a group. */ noGroupHosts?: boolean; /** * A Boolean indicating whether to show nodes with no metrics. */ noMetricHosts?: boolean; /** * The type of node used. Valid values are `host`, `container`. */ nodeType?: string; /** * Notes/description text for the host map widget. */ notes?: string; /** * A request using the legacy metric format, the infrastructure-backed format, or the DDSQL data-projection format. */ request?: outputs.DashboardV2WidgetHostmapDefinitionRequest; /** * The list of tags used to filter the map. */ scopes?: string[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardV2WidgetHostmapDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetHostmapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetHostmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetHostmapDefinitionRequest { /** * Optional child request for one level of hierarchical visualization. */ child?: outputs.DashboardV2WidgetHostmapDefinitionRequestChild; /** * Conditional formatting rules applied to fill values. */ conditionalFormats?: outputs.DashboardV2WidgetHostmapDefinitionRequestConditionalFormat[]; /** * Metric or event queries joined to the entity set. */ enrichments?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichment[]; /** * The query used to fill the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ fill?: outputs.DashboardV2WidgetHostmapDefinitionRequestFill; /** * Filter string for the entity set in tag format, such as `env:prod`. */ filter?: string; /** * Ordered grouping hierarchy for infrastructure entities. */ groupBies?: outputs.DashboardV2WidgetHostmapDefinitionRequestGroupBy[]; /** * Maximum number of rows to return from the DDSQL data-projection request. */ limit?: number; /** * Whether to hide entities that have no group assignment. */ noGroupHosts?: boolean; /** * Whether to hide entities that have no enrichment data. */ noMetricHosts?: boolean; /** * Infrastructure entity type to visualize. Valid values are `host`, `container`, `pod`, `cluster`. */ nodeType?: string; /** * Mapping from published-dataset columns to host map dimensions. */ projection?: outputs.DashboardV2WidgetHostmapDefinitionRequestProjection; /** * Published-dataset query used by the DDSQL data-projection request. */ query?: outputs.DashboardV2WidgetHostmapDefinitionRequestQuery; /** * Identifies an infrastructure-backed or DDSQL data-projection host map request. Valid values are `infrastructureHostmap`, `dataProjection`. */ requestType?: string; /** * The query used to size the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ size?: outputs.DashboardV2WidgetHostmapDefinitionRequestSize; /** * Style configuration for the infrastructure host map. */ style?: outputs.DashboardV2WidgetHostmapDefinitionRequestStyle; } export interface DashboardV2WidgetHostmapDefinitionRequestChild { /** * Conditional formatting rules applied to fill values. */ conditionalFormats?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildConditionalFormat[]; /** * Metric or event queries joined to the entity set. */ enrichments: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichment[]; /** * Filter string for the entity set in tag format, such as `env:prod`. */ filter?: string; /** * Ordered grouping hierarchy for infrastructure entities. */ groupBies?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildGroupBy[]; /** * Whether to hide entities that have no group assignment. */ noGroupHosts?: boolean; /** * Whether to hide entities that have no enrichment data. */ noMetricHosts?: boolean; /** * Infrastructure entity type to visualize. Valid values are `host`, `container`, `pod`, `cluster`. */ nodeType: string; /** * Identifies an infrastructure-backed host map request. Valid values are `infrastructureHostmap`. */ requestType: string; /** * Style configuration for the infrastructure host map. */ style?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildStyle; } export interface DashboardV2WidgetHostmapDefinitionRequestChildConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichment { /** * Formulas that operate on queries and drive visual dimensions. */ formulas: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormula[]; /** * Queries that can be returned directly or used in formulas. */ queries: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQuery[]; /** * Response format for the scalar formula request. Valid values are `scalar`. */ responseFormat: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormula { /** * Expression alias. */ alias?: string; /** * Visual dimension driven by the formula. Valid values are `node`, `fill`, `size`. */ dimension: string; /** * String expression built from queries, formulas, and functions. */ formulaExpression: string; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormat; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBySort; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildEnrichmentQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildGroupBy { /** * Column name from the entity table, such as `cloudProvider`, `tags`, or `labels`. */ column: string; /** * Key within the column for nested attribute types, such as `service` within `tags`. */ key?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestChildStyle { /** * Maximum value for the fill color scale. Omit to use automatic scaling. */ fillMax?: number; /** * Minimum value for the fill color scale. Omit to use automatic scaling. */ fillMin?: number; /** * Color palette name or alias. */ palette?: string; /** * Whether to invert the color palette. */ paletteFlip?: boolean; } export interface DashboardV2WidgetHostmapDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichment { /** * Formulas that operate on queries and drive visual dimensions. */ formulas: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormula[]; /** * Queries that can be returned directly or used in formulas. */ queries: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQuery[]; /** * Response format for the scalar formula request. Valid values are `scalar`. */ responseFormat: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormula { /** * Expression alias. */ alias?: string; /** * Visual dimension driven by the formula. Valid values are `node`, `fill`, `size`. */ dimension: string; /** * String expression built from queries, formulas, and functions. */ formulaExpression: string; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormat; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBySort; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetHostmapDefinitionRequestEnrichmentQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFill { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaStyle; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetHostmapDefinitionRequestFillProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBySort; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetHostmapDefinitionRequestFillQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestGroupBy { /** * Column name from the entity table, such as `cloudProvider`, `tags`, or `labels`. */ column: string; /** * Key within the column for nested attribute types, such as `service` within `tags`. */ key?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestProjection { /** * Column-to-dimension mappings for the host map projection. */ dimensions: outputs.DashboardV2WidgetHostmapDefinitionRequestProjectionDimension[]; /** * Type of the host map projection. Valid values are `hostmap`. */ type: string; } export interface DashboardV2WidgetHostmapDefinitionRequestProjectionDimension { /** * Alias used to label the column instead of its name. */ alias?: string; /** * Source column name from the dataset. */ column: string; /** * Visual dimension driven by the dataset column. Valid values are `node`, `fill`, `size`, `group`. */ dimension: string; /** * Number formatting options for the projected column. */ numberFormat?: outputs.DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormat; } export interface DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitScale; } export interface DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCustom; } export interface DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetHostmapDefinitionRequestQuery { /** * Identifies this as a published-dataset list query. Valid values are `dataset`. */ dataSource: string; /** * ID of the published dataset to query. */ datasetId: string; /** * Product page that published the dataset. Valid values are `ddsqlQuery`. */ datasetProvider: string; /** * Filter applied to the dataset rows using events-style search syntax. */ filter?: string; /** * Maximum number of rows to return from the dataset query. */ limit?: number; /** * Sort configuration for the dataset query. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestQuerySort; } export interface DashboardV2WidgetHostmapDefinitionRequestQuerySort { /** * List of fields to sort the dataset rows by, applied in order. */ fields: outputs.DashboardV2WidgetHostmapDefinitionRequestQuerySortField[]; } export interface DashboardV2WidgetHostmapDefinitionRequestQuerySortField { /** * Name of the field to sort on. */ name: string; /** * Sort direction for the field. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSize { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaStyle; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBySort; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetHostmapDefinitionRequestSizeQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetHostmapDefinitionRequestStyle { /** * Maximum value for the fill color scale. Omit to use automatic scaling. */ fillMax?: number; /** * Minimum value for the fill color scale. Omit to use automatic scaling. */ fillMin?: number; /** * Color palette name or alias. */ palette?: string; /** * Whether to invert the color palette. */ paletteFlip?: boolean; } export interface DashboardV2WidgetHostmapDefinitionStyle { /** * The max value to use to color the map. */ fillMax?: string; /** * The min value to use to color the map. */ fillMin?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip?: boolean; } export interface DashboardV2WidgetHostmapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetHostmapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetHostmapDefinitionTimeLive; } export interface DashboardV2WidgetHostmapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetHostmapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetIframeDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetIframeDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The URL to use as a data source for the widget. */ url: string; } export interface DashboardV2WidgetIframeDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetIframeDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetIframeDefinitionTimeLive; } export interface DashboardV2WidgetIframeDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetIframeDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetImageDefinition { /** * The description of the widget. */ description?: string; /** * Whether to display a background or not. Defaults to `true`. */ hasBackground?: boolean; /** * Whether to display a border or not. Defaults to `true`. */ hasBorder?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The horizontal alignment for the widget. Valid values are `center`, `left`, `right`. */ horizontalAlign?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The margins to use around the image. Note: `small` and `large` values are deprecated. Valid values are `sm`, `md`, `lg`, `small`, `large`. */ margin?: string; /** * The preferred method to adapt the dimensions of the image. The values are based on the image `object-fit` CSS properties. Note: `zoom`, `fit` and `center` values are deprecated. Valid values are `fill`, `contain`, `cover`, `none`, `scale-down`, `zoom`, `fit`, `center`. */ sizing?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetImageDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * URL of the image. */ url: string; /** * URL of the image in dark mode. */ urlDarkTheme?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface DashboardV2WidgetImageDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetImageDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetImageDefinitionTimeLive; } export interface DashboardV2WidgetImageDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetImageDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetListStreamDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the requests to use when displaying the widget. Multiple `request` blocks are allowed with the structure below. */ requests: outputs.DashboardV2WidgetListStreamDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetListStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetListStreamDefinitionRequest { /** * Widget columns. */ columns: outputs.DashboardV2WidgetListStreamDefinitionRequestColumn[]; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Updated list stream widget. */ query: outputs.DashboardV2WidgetListStreamDefinitionRequestQuery; /** * Widget response format. Valid values are `eventList`. */ responseFormat: string; } export interface DashboardV2WidgetListStreamDefinitionRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface DashboardV2WidgetListStreamDefinitionRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.DashboardV2WidgetListStreamDefinitionRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.DashboardV2WidgetListStreamDefinitionRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface DashboardV2WidgetListStreamDefinitionRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface DashboardV2WidgetListStreamDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetListStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetListStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetListStreamDefinitionTimeLive; } export interface DashboardV2WidgetListStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetListStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetLogQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetLogQueryGroupBySortQuery; } export interface DashboardV2WidgetLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetLogStreamDefinition { /** * Stringified list of columns to use, for example: `["column1","column2","column3"]`. */ columns?: string[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The number of log lines to display. Valid values are `inline`, `expanded-md`, `expanded-lg`. */ messageDisplay?: string; /** * Query to filter the log stream with. */ query?: string; /** * If the date column should be displayed. */ showDateColumn?: boolean; /** * If the message column should be displayed. */ showMessageColumn?: boolean; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.DashboardV2WidgetLogStreamDefinitionSort; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetLogStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetLogStreamDefinitionSort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetLogStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetLogStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetLogStreamDefinitionTimeLive; } export interface DashboardV2WidgetLogStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetLogStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetManageStatusDefinition { /** * Whether to colorize text or background. Valid values are `background`, `text`. */ colorPreference?: string; /** * The description of the widget. */ description?: string; /** * The display setting to use. Valid values are `counts`, `countsAndList`, `list`. */ displayFormat?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A Boolean indicating whether to hide empty categories. */ hideZeroCounts?: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the monitors with. */ query: string; /** * Whether to show the time that has elapsed since the monitor/group triggered. */ showLastTriggered?: boolean; /** * Whether to show the priorities column. */ showPriority?: boolean; /** * The method to sort the monitors. Valid values are `name`, `group`, `status`, `tags`, `triggered`, `group,asc`, `group,desc`, `name,asc`, `name,desc`, `status,asc`, `status,desc`, `tags,asc`, `tags,desc`, `triggered,asc`, `triggered,desc`, `priority,asc`, `priority,desc`. */ sort?: string; /** * The summary type to use. Valid values are `monitors`, `groups`, `combined`. */ summaryType?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetManageStatusDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetManageStatusDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetManageStatusDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetManageStatusDefinitionTimeLive; } export interface DashboardV2WidgetManageStatusDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetManageStatusDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardV2WidgetNoteDefinition { /** * The background color of the note. */ backgroundColor?: string; /** * The content of the note. */ content: string; /** * The description of the widget. */ description?: string; /** * The size of the text. */ fontSize?: string; /** * Whether to add padding or not. Defaults to `true`. */ hasPadding?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show a tick or not. */ showTick?: boolean; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * When `tick = true`, a string indicating on which side of the widget the tick should be displayed. Valid values are `bottom`, `left`, `right`, `top`. */ tickEdge?: string; /** * When `tick = true`, a string with a percent sign indicating the position of the tick, for example: `tickPos = "50%"` is centered alignment. */ tickPos?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetNoteDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface DashboardV2WidgetNoteDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetNoteDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetNoteDefinitionTimeLive; } export interface DashboardV2WidgetNoteDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetNoteDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetPointPlotDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetPointPlotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Legend configuration for the widget. */ legend?: outputs.DashboardV2WidgetPointPlotDefinitionLegend; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing a marker to use when displaying the widget. Multiple `marker` blocks are allowed. */ markers?: outputs.DashboardV2WidgetPointPlotDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. */ requests?: outputs.DashboardV2WidgetPointPlotDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetPointPlotDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.DashboardV2WidgetPointPlotDefinitionYaxis; } export interface DashboardV2WidgetPointPlotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetPointPlotDefinitionLegend { /** * Type of legend to show for the point plot widget. Valid values are `automatic`, `none`. */ type: string; } export interface DashboardV2WidgetPointPlotDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardV2WidgetPointPlotDefinitionRequest { /** * Maximum number of data points to return. */ limit?: number; /** * Projection configuration for the point plot request. */ projection: outputs.DashboardV2WidgetPointPlotDefinitionRequestProjection; /** * Query configuration for the point plot request. */ query: outputs.DashboardV2WidgetPointPlotDefinitionRequestQuery; /** * The type of data request. Must be `dataProjection`. Valid values are `dataProjection`. */ requestType: string; } export interface DashboardV2WidgetPointPlotDefinitionRequestProjection { /** * List of dimension mappings for the projection. */ dimensions: outputs.DashboardV2WidgetPointPlotDefinitionRequestProjectionDimension[]; /** * Additional columns to include in the projection. */ extraColumns?: string[]; /** * Type of the projection. Must be `pointPlot`. Valid values are `pointPlot`. */ type: string; } export interface DashboardV2WidgetPointPlotDefinitionRequestProjectionDimension { /** * Alias for the column. */ alias?: string; /** * Source column name from the dataset. */ column: string; /** * Dimension of the point plot. Valid values are `group`, `time`, `y`, `radius`. */ dimension: string; } export interface DashboardV2WidgetPointPlotDefinitionRequestQuery { /** * Data source for the query (for example, `logs`). */ dataSource: string; /** * List of indexes to query. */ indexes?: string[]; /** * The query string to filter events. */ queryString: string; /** * Storage location for the query. */ storage?: string; } export interface DashboardV2WidgetPointPlotDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetPointPlotDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetPointPlotDefinitionTimeLive; } export interface DashboardV2WidgetPointPlotDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetPointPlotDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetPointPlotDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetPowerpackDefinition { /** * The background color of the powerpack title. */ backgroundColor?: string; /** * URL of image to display as a banner for the powerpack. */ bannerImg?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * UUID of the associated powerpack. */ powerpackId: string; /** * Whether to show the title of the powerpack. */ showTitle?: boolean; /** * The list of template variables for this powerpack. */ templateVariables?: outputs.DashboardV2WidgetPowerpackDefinitionTemplateVariables; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetPowerpackDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetPowerpackDefinitionTemplateVariables { /** * Template variables controlled at the powerpack level. */ controlledByPowerpacks?: outputs.DashboardV2WidgetPowerpackDefinitionTemplateVariablesControlledByPowerpack[]; /** * Template variables controlled by the external resource, such as the dashboard this powerpack is on. */ controlledExternallies?: outputs.DashboardV2WidgetPowerpackDefinitionTemplateVariablesControlledExternally[]; } export interface DashboardV2WidgetPowerpackDefinitionTemplateVariablesControlledByPowerpack { /** * The name of the variable. */ name: string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable dropdown. */ prefix?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. */ values: string[]; } export interface DashboardV2WidgetPowerpackDefinitionTemplateVariablesControlledExternally { /** * The name of the variable. */ name: string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable dropdown. */ prefix?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. */ values: string[]; } export interface DashboardV2WidgetPowerpackDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetPowerpackDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetPowerpackDefinitionTimeLive; } export interface DashboardV2WidgetPowerpackDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetPowerpackDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryQuery; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardV2WidgetProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinition { /** * The description of the widget. */ description?: string; /** * Display mode for grouped funnel results. Valid values are `stacked`, `sideBySide`. */ groupedDisplay?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * User journey funnel requests. */ requests: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequest { /** * Segments to compare in the funnel. */ comparisonSegments?: string[]; /** * Comparison time configuration for the funnel. */ comparisonTime?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTime; /** * User journey query displayed by the funnel. */ query: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuery; /** * Request type for the Product Analytics funnel. Valid values are `userJourneyFunnel`. */ requestType: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTime { /** * Custom comparison timeframe. */ customTimeframe?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTimeCustomTimeframe; /** * Type of comparison duration. Valid values are `previousTimeframe`, `customTimeframe`, `previousDay`, `previousWeek`, `previousMonth`. */ type: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTimeCustomTimeframe { /** * Start of the custom comparison timeframe. */ from: number; /** * End of the custom comparison timeframe. */ to: number; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuery { /** * Compute configuration for the user journey funnel. */ compute?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryCompute; /** * Data source for Product Analytics funnel queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the user journey funnel. */ groupBies?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBy[]; /** * User journey search configuration. */ search: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearch; /** * Subquery identifier. */ subqueryId?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryCompute { /** * Aggregation type for the user journey funnel computation. Valid values are `cardinality`, `count`. */ aggregation: string; /** * Metric for the user journey funnel computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`. */ metric: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBy { /** * Facet to group the user journey funnel by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for the funnel groups. */ sort?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupByTarget; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBySort { /** * Aggregation used to sort the funnel groups. */ aggregation: string; /** * Metric to sort by. */ metric?: string; /** * Sort order for funnel groups. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetProductAnalyticsFunnelDefinitionTimeLive; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetProductAnalyticsFunnelDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetQueryTableDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetQueryTableDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Controls the display of the search bar. Valid values are `always`, `never`, `auto`. */ hasSearchBar?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardV2WidgetQueryTableDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetQueryTableDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetQueryTableDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The alias for the column name (defaults to metric name). */ alias?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * The APM stats query for table and distribution widgets. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmStatsQuery?: outputs.DashboardV2WidgetQueryTableDefinitionRequestApmStatsQuery; /** * A list of display modes for each table cell. Valid values are `number`, `bar`. */ cellDisplayModes?: string[]; /** * Conditional formats allow you to set the color of your widget content or background, depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetQueryTableDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormula[]; /** * For metric queries, the number of lines to show in the table. Only one request should have this property. */ limit?: number; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The sort order for the rows. Valid values are `asc`, `desc`. */ order?: string; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetQueryTableDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The controls for sorting the widget request. */ sort?: outputs.DashboardV2WidgetQueryTableDefinitionRequestSort; /** * Text formats define how to format text in table widget content. Multiple `textFormats` blocks are allowed using the structure below. This resource is in beta and is subject to change. */ textFormats?: outputs.DashboardV2WidgetQueryTableDefinitionRequestTextFormat[]; } export interface DashboardV2WidgetQueryTableDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.DashboardV2WidgetQueryTableDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetQueryTableDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetQueryTableDefinitionRequestSortOrderBy[]; } export interface DashboardV2WidgetQueryTableDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetQueryTableDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetQueryTableDefinitionRequestSortOrderByGroupSort; } export interface DashboardV2WidgetQueryTableDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestTextFormat { /** * The text format to apply to the items in a table widget column. */ textFormats?: outputs.DashboardV2WidgetQueryTableDefinitionRequestTextFormatTextFormat[]; } export interface DashboardV2WidgetQueryTableDefinitionRequestTextFormatTextFormat { /** * The custom color palette to apply to the background. */ customBgColor?: string; /** * The custom color palette to apply to the foreground text. */ customFgColor?: string; /** * Match rule for the table widget text format. */ match: outputs.DashboardV2WidgetQueryTableDefinitionRequestTextFormatTextFormatMatch; /** * The color palette to apply. Valid values are `whiteOnRed`, `whiteOnYellow`, `whiteOnGreen`, `blackOnLightRed`, `blackOnLightYellow`, `blackOnLightGreen`, `redOnWhite`, `yellowOnWhite`, `greenOnWhite`, `customBg`, `customText`. */ palette?: string; /** * Match rule for the table widget text format. */ replace?: outputs.DashboardV2WidgetQueryTableDefinitionRequestTextFormatTextFormatReplace; } export interface DashboardV2WidgetQueryTableDefinitionRequestTextFormatTextFormatMatch { /** * Match or compare option. Valid values are `is`, `isNot`, `contains`, `doesNotContain`, `startsWith`, `endsWith`. */ type: string; /** * Table Widget Match String. */ value: string; } export interface DashboardV2WidgetQueryTableDefinitionRequestTextFormatTextFormatReplace { /** * Text that will be replaced. Must be used with type `substring`. */ substring?: string; /** * Table widget text format replace all type. Valid values are `all`, `substring`. */ type: string; /** * Table Widget Match String. */ with: string; } export interface DashboardV2WidgetQueryTableDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetQueryTableDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetQueryTableDefinitionTimeLive; } export interface DashboardV2WidgetQueryTableDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetQueryTableDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetQueryValueDefinition { /** * A Boolean indicating whether to automatically scale the tile. */ autoscale?: boolean; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetQueryValueDefinitionCustomLink[]; /** * Display a unit of your choice on the widget. */ customUnit?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Number of decimals to show. If not defined, the widget uses the raw value. */ precision?: number; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardV2WidgetQueryValueDefinitionRequest[]; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetQueryValueDefinitionTime; /** * Set a timeseries on the widget background. */ timeseriesBackground?: outputs.DashboardV2WidgetQueryValueDefinitionTimeseriesBackground; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetQueryValueDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardV2WidgetQueryValueDefinitionRequestAuditQuery; /** * A change indicator that compares the current value to a historical period. */ comparison?: outputs.DashboardV2WidgetQueryValueDefinitionRequestComparison; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetQueryValueDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetQueryValueDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; } export interface DashboardV2WidgetQueryValueDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetQueryValueDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetQueryValueDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetQueryValueDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetQueryValueDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardV2WidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetQueryValueDefinitionRequestComparison { /** * Which direction of change is considered an improvement. Valid values are `increaseBetter`, `decreaseBetter`, `neutral`. Defaults to `"neutral"`. */ directionality?: string; /** * The comparison period. */ duration: outputs.DashboardV2WidgetQueryValueDefinitionRequestComparisonDuration; /** * How the delta is expressed. Valid values are `absolute`, `relative`, `both`. Defaults to `"absolute"`. */ type?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestComparisonDuration { /** * Fixed time range to compare against when `type` is `customTimeframe`. */ customTimeframe?: outputs.DashboardV2WidgetQueryValueDefinitionRequestComparisonDurationCustomTimeframe; /** * The comparison window type. Valid values are `previousTimeframe`, `customTimeframe`, `previousDay`, `previousWeek`, `previousMonth`. */ type: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestComparisonDurationCustomTimeframe { /** * Start time in milliseconds since epoch. */ from: number; /** * End time in milliseconds since epoch. */ to: number; } export interface DashboardV2WidgetQueryValueDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetQueryValueDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetQueryValueDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetQueryValueDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetQueryValueDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetQueryValueDefinitionTimeLive; } export interface DashboardV2WidgetQueryValueDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetQueryValueDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetQueryValueDefinitionTimeseriesBackground { /** * Whether the Timeseries is made using an area or bars. Valid values are `area`, `bars`. */ type: string; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.DashboardV2WidgetQueryValueDefinitionTimeseriesBackgroundYaxis; } export interface DashboardV2WidgetQueryValueDefinitionTimeseriesBackgroundYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetRetentionCurveDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Retention curve requests. */ requests: outputs.DashboardV2WidgetRetentionCurveDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetRetentionCurveDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequest { /** * Retention query displayed by the retention curve. */ query: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuery; /** * Request type for the retention curve widget. Valid values are `retentionCurve`. */ requestType: string; /** * Style configuration for the retention curve. */ style?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestStyle; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Filters for the retention query. */ filters?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryFilters; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryGroupBy[]; /** * Name of the retention query. */ name?: string; /** * Search configuration for the retention query. */ search: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearch; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteria; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeInterval; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaTimeInterval; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardV2WidgetRetentionCurveDefinitionRequestStyle { /** * Color palette for the retention curve. */ palette?: string; } export interface DashboardV2WidgetRetentionCurveDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetRetentionCurveDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetRetentionCurveDefinitionTimeLive; } export interface DashboardV2WidgetRetentionCurveDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetRetentionCurveDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardV2WidgetRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardV2WidgetRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardV2WidgetRetentionQuerySearch; } export interface DashboardV2WidgetRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardV2WidgetRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardV2WidgetRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardV2WidgetRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardV2WidgetRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardV2WidgetRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardV2WidgetRetentionQuerySearchReturnCriteria; } export interface DashboardV2WidgetRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardV2WidgetRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardV2WidgetRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardV2WidgetRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardV2WidgetRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardV2WidgetRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardV2WidgetRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardV2WidgetRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardV2WidgetRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardV2WidgetRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardV2WidgetRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardV2WidgetRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardV2WidgetRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardV2WidgetRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardV2WidgetRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardV2WidgetRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetRumQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetRumQueryGroupBySortQuery; } export interface DashboardV2WidgetRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetRunWorkflowDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetRunWorkflowDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Array of workflow inputs to map to dashboard template variables. */ inputs?: outputs.DashboardV2WidgetRunWorkflowDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetRunWorkflowDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Workflow ID */ workflowId: string; } export interface DashboardV2WidgetRunWorkflowDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetRunWorkflowDefinitionInput { /** * Name of the workflow input. */ name: string; /** * Dashboard template variable. Can be suffixed with `.value` or `.key`. */ value: string; } export interface DashboardV2WidgetRunWorkflowDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetRunWorkflowDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetRunWorkflowDefinitionTimeLive; } export interface DashboardV2WidgetRunWorkflowDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetRunWorkflowDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetSankeyDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. */ requests?: outputs.DashboardV2WidgetSankeyDefinitionRequest[]; /** * Whether to show links for the 'other' category. */ showOtherLinks?: boolean; /** * Whether to sort nodes in the Sankey diagram. */ sortNodes?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetSankeyDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetSankeyDefinitionRequest { /** * Network request for the Sankey widget. */ networkRequest?: outputs.DashboardV2WidgetSankeyDefinitionRequestNetworkRequest; /** * RUM request for the Sankey widget. */ rumRequest?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequest; } export interface DashboardV2WidgetSankeyDefinitionRequestNetworkRequest { /** * The query for the Sankey network request. */ query: outputs.DashboardV2WidgetSankeyDefinitionRequestNetworkRequestQuery; } export interface DashboardV2WidgetSankeyDefinitionRequestNetworkRequestQuery { /** * Compute aggregation configuration. */ compute?: outputs.DashboardV2WidgetSankeyDefinitionRequestNetworkRequestQueryCompute; /** * The data source for the Sankey network query. Valid values are `networkDeviceFlows`, `network`. */ dataSource: string; /** * Fields to group by. */ groupBies: string[]; /** * Maximum number of results. */ limit: number; /** * The mode for the Sankey network query. Valid values are `target`. */ mode?: string; /** * The search query string. */ queryString: string; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration. */ sort?: outputs.DashboardV2WidgetSankeyDefinitionRequestNetworkRequestQuerySort; } export interface DashboardV2WidgetSankeyDefinitionRequestNetworkRequestQueryCompute { /** * The aggregation method. */ aggregation: string; /** * The metric to aggregate. */ metric: string; } export interface DashboardV2WidgetSankeyDefinitionRequestNetworkRequestQuerySort { /** * Field to sort by. */ field?: string; /** * Sort direction. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequest { /** * The query for the Sankey RUM request. */ query: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQuery; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQuery { /** * Product Analytics and RUM audience filters. */ audienceFilters?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFilters; /** * The data source for the Sankey RUM query. Valid values are `rum`, `productAnalytics`. */ dataSource: string; /** * Entries per step. */ entriesPerStep?: number; /** * Join keys for the Sankey query. */ joinKeys?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryJoinKeys; /** * The mode for the Sankey RUM query. Valid values are `source`, `target`. */ mode: string; /** * Number of steps. */ numberOfSteps?: number; /** * Filter applied to occurrence counts when building a Product Analytics audience. */ occurrence?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryOccurrence; /** * The search query string. */ queryString: string; /** * Source field. */ source?: string; /** * Subquery ID. */ subqueryId?: string; /** * Target field. */ target?: string; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersUser[]; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardV2WidgetSankeyDefinitionRequestRumRequestQueryOccurrence { /** * The comparison operator used for the occurrence filter. */ operator?: string; /** * The threshold value to compare occurrence counts against. */ value?: string; } export interface DashboardV2WidgetSankeyDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetSankeyDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetSankeyDefinitionTimeLive; } export interface DashboardV2WidgetSankeyDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetSankeyDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetScatterplotDefinition { /** * List of groups used for colors. */ colorByGroups?: string[]; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetScatterplotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed using the structure below. */ request?: outputs.DashboardV2WidgetScatterplotDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetScatterplotDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.DashboardV2WidgetScatterplotDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.DashboardV2WidgetScatterplotDefinitionYaxis; } export interface DashboardV2WidgetScatterplotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequest { /** * Scatterplot request containing formulas and functions. */ scatterplotTables?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTable[]; /** * The query used for the X-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ x?: outputs.DashboardV2WidgetScatterplotDefinitionRequestX; /** * The query used for the Y-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ y?: outputs.DashboardV2WidgetScatterplotDefinitionRequestY; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTable { /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableFormula[]; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQuery[]; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableFormula { /** * An expression alias. */ alias?: string; /** * Dimension of the Scatterplot. Valid values are `x`, `y`, `radius`, `color`. */ dimension: string; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestX { /** * Aggregator used for the request. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaStyle; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetScatterplotDefinitionRequestXProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBySort; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestXQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestY { /** * Aggregator used for the request. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaStyle; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetScatterplotDefinitionRequestYProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBySort; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetScatterplotDefinitionRequestYQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetScatterplotDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetScatterplotDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetScatterplotDefinitionTimeLive; } export interface DashboardV2WidgetScatterplotDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetScatterplotDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetScatterplotDefinitionXaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetScatterplotDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetSecurityQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetSecurityQueryGroupBySortQuery; } export interface DashboardV2WidgetSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetServiceLevelObjectiveDefinition { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The description of the widget. */ description?: string; /** * The global time target of the widget. */ globalTimeTarget?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show the error budget or not. */ showErrorBudget?: boolean; /** * The ID of the service level objective used by the widget. */ sloId: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetServiceLevelObjectiveDefinitionTime; /** * A list of time windows to display in the widget. Valid values are `7d`, `30d`, `90d`, `weekToDate`, `previousWeek`, `monthToDate`, `previousMonth`, `globalTime`. */ timeWindows: string[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view mode for the widget. Valid values are `overall`, `component`, `both`. */ viewMode: string; /** * The type of view to use when displaying the widget. Only `detail` is supported. */ viewType: string; } export interface DashboardV2WidgetServiceLevelObjectiveDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetServiceLevelObjectiveDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetServiceLevelObjectiveDefinitionTimeLive; } export interface DashboardV2WidgetServiceLevelObjectiveDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetServiceLevelObjectiveDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetServicemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetServicemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The ID of the service to map. */ service: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetServicemapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetServicemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetServicemapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetServicemapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetServicemapDefinitionTimeLive; } export interface DashboardV2WidgetServicemapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetServicemapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetSloListDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed. */ requests: outputs.DashboardV2WidgetSloListDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetSloListDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetSloListDefinitionRequest { /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Updated SLO List widget. */ query: outputs.DashboardV2WidgetSloListDefinitionRequestQuery; /** * The request type for the SLO List request. Valid values are `sloList`. */ requestType: string; } export interface DashboardV2WidgetSloListDefinitionRequestQuery { /** * Maximum number of results to display in the table. Defaults to `100`. */ limit?: number; /** * Widget query. */ queryString: string; /** * The facet and order to sort the data, for example: `{"column": "status.sli", "order": "desc"}`. */ sorts?: outputs.DashboardV2WidgetSloListDefinitionRequestQuerySort[]; } export interface DashboardV2WidgetSloListDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSloListDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetSloListDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetSloListDefinitionTimeLive; } export interface DashboardV2WidgetSloListDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetSloListDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetSloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardV2WidgetSplitGraphDefinition { /** * The description of the widget. */ description?: string; /** * Normalize y axes across graphs. */ hasUniformYAxes?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Size of the individual graphs in the split. */ size: string; /** * The original widget we are splitting on. */ sourceWidgetDefinition?: outputs.DashboardV2WidgetSplitGraphDefinitionSourceWidgetDefinition; /** * Encapsulates all user choices about how to split a graph. */ splitConfig: outputs.DashboardV2WidgetSplitGraphDefinitionSplitConfig; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetSplitGraphDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetSplitGraphDefinitionSourceWidgetDefinition { /** * The definition for a Change widget. */ changeDefinition?: outputs.DashboardV2WidgetChangeDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.DashboardV2WidgetGeomapDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.DashboardV2WidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.DashboardV2WidgetQueryValueDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.DashboardV2WidgetScatterplotDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.DashboardV2WidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.DashboardV2WidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.DashboardV2WidgetToplistDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.DashboardV2WidgetTreemapDefinition; } export interface DashboardV2WidgetSplitGraphDefinitionSplitConfig { /** * Maximum number of graphs to display in the widget. */ limit?: number; /** * Controls the order in which graphs appear in the split. */ sort: outputs.DashboardV2WidgetSplitGraphDefinitionSplitConfigSort; /** * The property by which the graph splits */ splitDimensions: outputs.DashboardV2WidgetSplitGraphDefinitionSplitConfigSplitDimension[]; /** * Manual selection of tags making split graph widget static. */ staticSplits?: outputs.DashboardV2WidgetSplitGraphDefinitionSplitConfigStaticSplit[]; } export interface DashboardV2WidgetSplitGraphDefinitionSplitConfigSort { /** * Defines the metric and aggregation used as the sort value */ compute?: outputs.DashboardV2WidgetSplitGraphDefinitionSplitConfigSortCompute; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSplitGraphDefinitionSplitConfigSortCompute { /** * How to aggregate the sort metric for the purposes of ordering. */ aggregation?: string; /** * The metric to use for sorting graphs. */ metric: string; } export interface DashboardV2WidgetSplitGraphDefinitionSplitConfigSplitDimension { /** * The system interprets this attribute differently depending on the data source of the query being split. For metrics, it's a tag. For the events platform, it's an attribute or tag. */ oneGraphPer: string; } export interface DashboardV2WidgetSplitGraphDefinitionSplitConfigStaticSplit { /** * The split graph list contains a graph for each value of the split dimension. */ splitVectors: outputs.DashboardV2WidgetSplitGraphDefinitionSplitConfigStaticSplitSplitVector[]; } export interface DashboardV2WidgetSplitGraphDefinitionSplitConfigStaticSplitSplitVector { tagKey: string; tagValues: string[]; } export interface DashboardV2WidgetSplitGraphDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetSplitGraphDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetSplitGraphDefinitionTimeLive; } export interface DashboardV2WidgetSplitGraphDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetSplitGraphDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetSunburstDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetSunburstDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Whether or not to show the total value in the widget. */ hideTotal?: boolean; /** * Used to configure the inline legend. Cannot be used in conjunction with legend*table. */ legendInline?: outputs.DashboardV2WidgetSunburstDefinitionLegendInline; /** * Used to configure the table legend. Cannot be used in conjunction with legend*inline. */ legendTable?: outputs.DashboardV2WidgetSunburstDefinitionLegendTable; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed with the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.DashboardV2WidgetSunburstDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetSunburstDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetSunburstDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetSunburstDefinitionLegendInline { /** * Whether to hide the percentages of the groups. */ hidePercent?: boolean; /** * Whether to hide the values of the groups. */ hideValue?: boolean; /** * The type of legend (inline or automatic). */ type: string; } export interface DashboardV2WidgetSunburstDefinitionLegendTable { /** * The type of legend (table or none). */ type: string; } export interface DashboardV2WidgetSunburstDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestAuditQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ networkQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestNetworkQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetSunburstDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardV2WidgetSunburstDefinitionRequestSort; /** * Define style for the widget's request. */ style?: outputs.DashboardV2WidgetSunburstDefinitionRequestStyle; } export interface DashboardV2WidgetSunburstDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetSunburstDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetSunburstDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetSunburstDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardV2WidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSunburstDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetSunburstDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetSunburstDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetSunburstDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetSunburstDefinitionRequestNetworkQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetSunburstDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetSunburstDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery; } export interface DashboardV2WidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSunburstDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetSunburstDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetSunburstDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetSunburstDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetSunburstDefinitionRequestSortOrderBy[]; } export interface DashboardV2WidgetSunburstDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetSunburstDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetSunburstDefinitionRequestSortOrderByGroupSort; } export interface DashboardV2WidgetSunburstDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSunburstDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetSunburstDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetSunburstDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetSunburstDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetSunburstDefinitionTimeLive; } export interface DashboardV2WidgetSunburstDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetSunburstDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetTimeseriesDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetTimeseriesDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.DashboardV2WidgetTimeseriesDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A list of columns to display in the legend. Valid values are `value`, `avg`, `sum`, `min`, `max`. */ legendColumns?: string[]; /** * The layout of the legend displayed in the widget. Valid values are `auto`, `horizontal`, `vertical`. */ legendLayout?: string; /** * The size of the legend displayed in the widget. Valid values are `0`, `2`, `4`, `8`, `16`, `auto`. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `tileDef` block. */ markers?: outputs.DashboardV2WidgetTimeseriesDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `networkQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardV2WidgetTimeseriesDefinitionRequest[]; /** * A nested block describing the right Y-Axis Controls. See the `onRightYaxis` property for which request will use this axis. The structure of this block is described below. */ rightYaxis?: outputs.DashboardV2WidgetTimeseriesDefinitionRightYaxis; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetTimeseriesDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.DashboardV2WidgetTimeseriesDefinitionYaxis; } export interface DashboardV2WidgetTimeseriesDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetTimeseriesDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface DashboardV2WidgetTimeseriesDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestAuditQuery; /** * How to display the marker lines. Valid values are `area`, `bars`, `line`, `overlay`. */ displayType?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ eventQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestEventQuery; /** * List of formulas that operate on queries. */ formulas?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * Used to define expression aliases. Multiple `metadata` blocks are allowed using the structure below. */ metadatas?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestMetadata[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ networkQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestNetworkQuery; /** * A Boolean indicating whether the request uses the right or left Y-Axis. */ onRightYaxis?: boolean; /** * The process query to use in the widget. */ processQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestProcessQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ profileMetricsQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The style of the widget graph. Exactly one `style` block is allowed using the structure below. */ style?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestStyle; } export interface DashboardV2WidgetTimeseriesDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestEventQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestEventQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestEventQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestEventQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestEventQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestEventQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestEventQueryGroupBySortQuery; } export interface DashboardV2WidgetTimeseriesDefinitionRequestEventQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestEventQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestMetadata { /** * The expression alias. */ aliasName?: string; /** * The expression name. */ expression: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery; } export interface DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBySortQuery; } export interface DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRequestStyle { /** * Whether to display value labels on the timeseries. */ hasValueLabels?: boolean; /** * The type of lines displayed. Valid values are `dashed`, `dotted`, `solid`. */ lineType?: string; /** * The width of line displayed. Valid values are `normal`, `thick`, `thin`. */ lineWidth?: string; /** * How to order series in timeseries visualizations. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetTimeseriesDefinitionRightYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetTimeseriesDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetTimeseriesDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetTimeseriesDefinitionTimeLive; } export interface DashboardV2WidgetTimeseriesDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetTimeseriesDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetTimeseriesDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardV2WidgetToplistDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetToplistDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardV2WidgetToplistDefinitionRequest[]; /** * The style of the widget */ style?: outputs.DashboardV2WidgetToplistDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetToplistDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetToplistDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetToplistDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardV2WidgetToplistDefinitionRequestAuditQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetToplistDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetToplistDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetToplistDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetToplistDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardV2WidgetToplistDefinitionRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardV2WidgetToplistDefinitionRequestStyle; } export interface DashboardV2WidgetToplistDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardV2WidgetToplistDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardV2WidgetToplistDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardV2WidgetToplistDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardV2WidgetToplistDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetToplistDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardV2WidgetToplistDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardV2WidgetToplistDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetToplistDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardV2WidgetToplistDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetToplistDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetToplistDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetToplistDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetToplistDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetToplistDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetToplistDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetToplistDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetToplistDefinitionRequestSortOrderBy[]; } export interface DashboardV2WidgetToplistDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetToplistDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetToplistDefinitionRequestSortOrderByGroupSort; } export interface DashboardV2WidgetToplistDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetToplistDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetToplistDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetToplistDefinitionStyle { /** * The display mode for the top list widget. Use `stacked` or `flat` sub-block. */ display?: outputs.DashboardV2WidgetToplistDefinitionStyleDisplay; /** * The color palette for the widget. */ palette?: string; /** * The scaling mode for the widget. */ scaling?: string; } export interface DashboardV2WidgetToplistDefinitionStyleDisplay { /** * Flat display for the top list widget. */ flat: outputs.DashboardV2WidgetToplistDefinitionStyleDisplayFlat; /** * Stacked display for the top list widget. */ stacked: outputs.DashboardV2WidgetToplistDefinitionStyleDisplayStacked; /** * Legacy display type for the widget. Valid values are `stacked`, `flat`. **Deprecated.** Use the `stacked` or `flat` block instead. * * @deprecated Use the `stacked` or `flat` block instead. */ type?: string; } export interface DashboardV2WidgetToplistDefinitionStyleDisplayFlat { } export interface DashboardV2WidgetToplistDefinitionStyleDisplayStacked { /** * Legend behavior for the stacked top list. Valid values are `automatic`, `inline`, `none`. */ legend?: string; } export interface DashboardV2WidgetToplistDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetToplistDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetToplistDefinitionTimeLive; } export interface DashboardV2WidgetToplistDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetToplistDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetTopologyMapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetTopologyMapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (`query` and `requestType` are required within the request). */ requests?: outputs.DashboardV2WidgetTopologyMapDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetTopologyMapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetTopologyMapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetTopologyMapDefinitionRequest { /** * The query for a Topology request. */ query?: outputs.DashboardV2WidgetTopologyMapDefinitionRequestQuery; /** * The request type for the Topology request ('topology'). */ requestType: string; } export interface DashboardV2WidgetTopologyMapDefinitionRequestQuery { /** * The data source for the Topology request. Valid values are `serviceMap`, `dataStreams`. */ dataSource: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * A search string for filtering services. When set, this replaces the `service` field. */ queryString?: string; /** * Name of the service. Leave this empty and use `queryString` instead. */ service: string; } export interface DashboardV2WidgetTopologyMapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetTopologyMapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetTopologyMapDefinitionTimeLive; } export interface DashboardV2WidgetTopologyMapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetTopologyMapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetTraceServiceDefinition { /** * The description of the widget. */ description?: string; /** * The number of columns to display. Valid values are `oneColumn`, `twoColumn`, `threeColumn`. */ displayFormat?: string; /** * APM environment. */ env: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * APM service. */ service: string; /** * Whether to show the latency breakdown or not. */ showBreakdown?: boolean; /** * Whether to show the latency distribution or not. */ showDistribution?: boolean; /** * Whether to show the error metrics or not. */ showErrors?: boolean; /** * Whether to show the hits metrics or not */ showHits?: boolean; /** * Whether to show the latency metrics or not. */ showLatency?: boolean; /** * Whether to show the resource list or not. */ showResourceList?: boolean; /** * The size of the widget. Valid values are `small`, `medium`, `large`. */ sizeFormat?: string; /** * APM span name */ spanName: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetTraceServiceDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetTraceServiceDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetTraceServiceDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetTraceServiceDefinitionTimeLive; } export interface DashboardV2WidgetTraceServiceDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetTraceServiceDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetTreemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetTreemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. */ requests?: outputs.DashboardV2WidgetTreemapDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetTreemapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetTreemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetTreemapDefinitionRequest { /** * List of formulas that operate on queries. */ formulas?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormula[]; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.DashboardV2WidgetTreemapDefinitionRequestQuery[]; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardV2WidgetTreemapDefinitionRequestSort; /** * Define style for the widget's request. */ style?: outputs.DashboardV2WidgetTreemapDefinitionRequestStyle; } export interface DashboardV2WidgetTreemapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaStyle; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetTreemapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetTreemapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetTreemapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetTreemapDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetTreemapDefinitionRequestSortOrderBy[]; } export interface DashboardV2WidgetTreemapDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetTreemapDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetTreemapDefinitionRequestSortOrderByGroupSort; } export interface DashboardV2WidgetTreemapDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetTreemapDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetTreemapDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetTreemapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetTreemapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetTreemapDefinitionTimeLive; } export interface DashboardV2WidgetTreemapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetTreemapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardV2WidgetUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardV2WidgetUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardV2WidgetUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardV2WidgetUserJourneyQuerySearch; } export interface DashboardV2WidgetUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardV2WidgetUserJourneyQueryComputeTarget; } export interface DashboardV2WidgetUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardV2WidgetUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardV2WidgetUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardV2WidgetUserJourneyQueryGroupByTarget; } export interface DashboardV2WidgetUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardV2WidgetUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardV2WidgetUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardV2WidgetUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardV2WidgetUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardV2WidgetUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardV2WidgetUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardV2WidgetUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardV2WidgetUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardV2WidgetUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardV2WidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface DashboardV2WidgetWildcardDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardV2WidgetWildcardDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the data requests for the widget. */ requests?: outputs.DashboardV2WidgetWildcardDefinitionRequest[]; /** * The Vega or Vega-Lite specification for custom visualization rendering. */ specification?: outputs.DashboardV2WidgetWildcardDefinitionSpecification; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardV2WidgetWildcardDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardV2WidgetWildcardDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardV2WidgetWildcardDefinitionRequest { /** * Histogram-mode distribution request (request*type=histogram). */ histogramRequest?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequest; /** * List stream request (response*format=event*list). */ liststreamRequest?: outputs.DashboardV2WidgetWildcardDefinitionRequestListstreamRequest; /** * Timeseries-formula request (response*format=timeseries). */ timeseriesRequest?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequest; /** * Scalar-formula request (response*format=scalar). Set exactly one of treemap*request / timeseries*request / liststream*request / histogram*request. */ treemapRequest?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequest; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequest { /** * Singular query block for the histogram request. */ histogramQuery: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQuery; /** * Define request for the widget's style. */ style?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestStyle; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQuery { /** * APM metrics query for histogram-mode distribution. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * APM resource stats query for histogram-mode distribution. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * Event query for histogram-mode distribution. */ eventQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuery; /** * Metric query for histogram-mode distribution. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBySort; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetWildcardDefinitionRequestHistogramRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestListstreamRequest { /** * Widget columns for the list stream request. */ columns: outputs.DashboardV2WidgetWildcardDefinitionRequestListstreamRequestColumn[]; /** * List stream query for the widget request. */ query: outputs.DashboardV2WidgetWildcardDefinitionRequestListstreamRequestQuery; } export interface DashboardV2WidgetWildcardDefinitionRequestListstreamRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestListstreamRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.DashboardV2WidgetWildcardDefinitionRequestListstreamRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestListstreamRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestListstreamRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface DashboardV2WidgetWildcardDefinitionRequestListstreamRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * How the data points are displayed on the graph. */ displayType?: string; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The controls for sorting the widget. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestStyle; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaStyle; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderBy[]; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByGroupSort; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTimeseriesRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardV2WidgetSecurityQuery; /** * The controls for sorting the widget. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestStyle; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaStyle; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitScale; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCustom; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardV2WidgetUserJourneyQuery; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBySort; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderBy[]; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByGroupSort; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardV2WidgetWildcardDefinitionRequestTreemapRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardV2WidgetWildcardDefinitionSpecification { /** * The Vega or Vega-Lite specification as a JSON string. Use `jsonencode()` to encode the specification. */ contents: string; /** * The type of specification (Vega or Vega-Lite). Valid values are `vega`, `vega-lite`. */ type: string; } export interface DashboardV2WidgetWildcardDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardV2WidgetWildcardDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardV2WidgetWildcardDefinitionTimeLive; } export interface DashboardV2WidgetWildcardDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardV2WidgetWildcardDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.DashboardWidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.DashboardWidgetAlertValueDefinition; /** * The definition for a Bar Chart widget. */ barChartDefinition?: outputs.DashboardWidgetBarChartDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.DashboardWidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.DashboardWidgetCheckStatusDefinition; /** * The definition for a Cohort retention-grid widget. */ cohortDefinition?: outputs.DashboardWidgetCohortDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.DashboardWidgetDistributionDefinition; /** * The definition for an App Builder embedded app widget. */ embeddedAppDefinition?: outputs.DashboardWidgetEmbeddedAppDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.DashboardWidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.DashboardWidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.DashboardWidgetFreeTextDefinition; /** * The definition for a Funnel widget. */ funnelDefinition?: outputs.DashboardWidgetFunnelDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.DashboardWidgetGeomapDefinition; /** * The definition for a Group widget. */ groupDefinition?: outputs.DashboardWidgetGroupDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.DashboardWidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.DashboardWidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.DashboardWidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.DashboardWidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.DashboardWidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.DashboardWidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.DashboardWidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.DashboardWidgetNoteDefinition; /** * The definition for a Point Plot widget. */ pointPlotDefinition?: outputs.DashboardWidgetPointPlotDefinition; /** * The definition for a Powerpack widget. */ powerpackDefinition?: outputs.DashboardWidgetPowerpackDefinition; /** * The definition for a Product Analytics user journey funnel widget. */ productAnalyticsFunnelDefinition?: outputs.DashboardWidgetProductAnalyticsFunnelDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.DashboardWidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.DashboardWidgetQueryValueDefinition; /** * The definition for a Retention Curve widget. */ retentionCurveDefinition?: outputs.DashboardWidgetRetentionCurveDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.DashboardWidgetRunWorkflowDefinition; /** * The definition for a Sankey diagram widget. */ sankeyDefinition?: outputs.DashboardWidgetSankeyDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.DashboardWidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.DashboardWidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.DashboardWidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.DashboardWidgetSloListDefinition; /** * The definition for a Split Graph widget. */ splitGraphDefinition?: outputs.DashboardWidgetSplitGraphDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.DashboardWidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.DashboardWidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.DashboardWidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.DashboardWidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.DashboardWidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.DashboardWidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.DashboardWidgetWidgetLayout; /** * The definition for a Wildcard (custom visualization) widget using Vega or Vega-Lite specifications. */ wildcardDefinition?: outputs.DashboardWidgetWildcardDefinition; } export interface DashboardWidgetAlertGraphDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetAlertGraphDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Whether to display the Alert Graph as a timeseries or a top list. Valid values are `timeseries`, `toplist`. */ vizType: string; } export interface DashboardWidgetAlertGraphDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetAlertGraphDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetAlertGraphDefinitionTimeLive; } export interface DashboardWidgetAlertGraphDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetAlertGraphDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetAlertValueDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The precision to use when displaying the value. Use `*` for maximum precision. */ precision?: number; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetAlertValueDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The unit for the value displayed in the widget. */ unit?: string; } export interface DashboardWidgetAlertValueDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetAlertValueDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetAlertValueDefinitionTimeLive; } export interface DashboardWidgetAlertValueDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetAlertValueDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetApmQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetApmQueryGroupBySortQuery; } export interface DashboardWidgetApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetBarChartDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetBarChartDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. */ request?: outputs.DashboardWidgetBarChartDefinitionRequest; /** * Style customization for the bar chart widget. */ style?: outputs.DashboardWidgetBarChartDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetBarChartDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetBarChartDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetBarChartDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. */ conditionalFormats?: outputs.DashboardWidgetBarChartDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetBarChartDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetBarChartDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetBarChartDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardWidgetBarChartDefinitionRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardWidgetBarChartDefinitionRequestStyle; } export interface DashboardWidgetBarChartDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetBarChartDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaStyle; } export interface DashboardWidgetBarChartDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetBarChartDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetBarChartDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetBarChartDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetBarChartDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetBarChartDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetBarChartDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetBarChartDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetBarChartDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetBarChartDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetBarChartDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetBarChartDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetBarChartDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetBarChartDefinitionRequestSortOrderBy[]; } export interface DashboardWidgetBarChartDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetBarChartDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetBarChartDefinitionRequestSortOrderByGroupSort; } export interface DashboardWidgetBarChartDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetBarChartDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetBarChartDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetBarChartDefinitionStyle { /** * Bar chart display options. */ display?: outputs.DashboardWidgetBarChartDefinitionStyleDisplay; /** * Color palette for the bar chart. */ palette?: string; /** * Scaling definition for the bar chart. Valid values are `absolute`, `relative`. */ scaling?: string; } export interface DashboardWidgetBarChartDefinitionStyleDisplay { /** * Flat display mode with no stacking. */ flat?: outputs.DashboardWidgetBarChartDefinitionStyleDisplayFlat; /** * Stacked display mode. */ stacked?: outputs.DashboardWidgetBarChartDefinitionStyleDisplayStacked; } export interface DashboardWidgetBarChartDefinitionStyleDisplayFlat { } export interface DashboardWidgetBarChartDefinitionStyleDisplayStacked { /** * Legend display behavior for stacked bars. Valid values are `automatic`, `inline`, `none`. */ legend?: string; } export interface DashboardWidgetBarChartDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetBarChartDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetBarChartDefinitionTimeLive; } export interface DashboardWidgetBarChartDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetBarChartDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetChangeDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetChangeDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.DashboardWidgetChangeDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetChangeDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetChangeDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetChangeDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * Whether to show absolute or relative change. Valid values are `absolute`, `relative`. */ changeType?: string; /** * Choose from when to compare current data to. Valid values are `hourBefore`, `dayBefore`, `weekBefore`, `monthBefore`. */ compareTo?: string; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetChangeDefinitionRequestFormula[]; /** * A Boolean indicating whether an increase in the value is good (displayed in green) or not (displayed in red). */ increaseGood?: boolean; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * What to order by. Valid values are `change`, `name`, `present`, `past`. */ orderBy?: string; /** * Widget sorting method. Valid values are `asc`, `desc`. */ orderDir?: string; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetChangeDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetChangeDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * If set to `true`, displays the current value. */ showPresent?: boolean; } export interface DashboardWidgetChangeDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetChangeDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetChangeDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetChangeDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetChangeDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetChangeDefinitionRequestFormulaStyle; } export interface DashboardWidgetChangeDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetChangeDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetChangeDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetChangeDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetChangeDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetChangeDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetChangeDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetChangeDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetChangeDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetChangeDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetChangeDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetChangeDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetChangeDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetChangeDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetChangeDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetChangeDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetChangeDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetChangeDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetChangeDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetChangeDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetChangeDefinitionTimeLive; } export interface DashboardWidgetChangeDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetChangeDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetCheckStatusDefinition { /** * Name of the check to use in the widget. */ check: string; /** * The description of the widget. */ description?: string; /** * Group reporting a single check. */ group?: string; /** * When `grouping = "cluster"`, indicates a list of tags to use for grouping. */ groupBies?: string[]; /** * The kind of grouping to use. Valid values are `check`, `cluster`. */ grouping: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A list of tags used to filter the groups reporting a cluster check. */ tags?: string[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetCheckStatusDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetCheckStatusDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetCheckStatusDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetCheckStatusDefinitionTimeLive; } export interface DashboardWidgetCheckStatusDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetCheckStatusDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetCohortDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Cohort retention-grid requests. */ requests: outputs.DashboardWidgetCohortDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetCohortDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetCohortDefinitionRequest { /** * Retention query displayed by the cohort grid. */ query: outputs.DashboardWidgetCohortDefinitionRequestQuery; /** * Request type for the retention grid widget. Valid values are `retentionGrid`. */ requestType: string; } export interface DashboardWidgetCohortDefinitionRequestQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetCohortDefinitionRequestQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Filters for the retention query. */ filters?: outputs.DashboardWidgetCohortDefinitionRequestQueryFilters; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetCohortDefinitionRequestQueryGroupBy[]; /** * Name of the retention query. */ name?: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetCohortDefinitionRequestQuerySearch; } export interface DashboardWidgetCohortDefinitionRequestQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetCohortDefinitionRequestQueryFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFiltersUser[]; } export interface DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetCohortDefinitionRequestQueryFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetCohortDefinitionRequestQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetCohortDefinitionRequestQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetCohortDefinitionRequestQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteria; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetCohortDefinitionRequestQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetCohortDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetCohortDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetCohortDefinitionTimeLive; } export interface DashboardWidgetCohortDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetCohortDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetDistributionDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `distributionDefinition` block. */ markers?: outputs.DashboardWidgetDistributionDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.DashboardWidgetDistributionDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetDistributionDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.DashboardWidgetDistributionDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.DashboardWidgetDistributionDefinitionYaxis; } export interface DashboardWidgetDistributionDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardWidgetDistributionDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * The APM stats query to use in the widget. */ apmStatsQuery?: outputs.DashboardWidgetDistributionDefinitionRequestApmStatsQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetDistributionDefinitionRequestFormula[]; /** * Singular query block for histogram-mode distribution requests. */ histogramQuery?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetDistributionDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetDistributionDefinitionRequestQuery[]; /** * Set to 'histogram' for distribution-of-point-values requests. Valid values are `histogram`. */ requestType?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardWidgetDistributionDefinitionRequestStyle; } export interface DashboardWidgetDistributionDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.DashboardWidgetDistributionDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface DashboardWidgetDistributionDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaStyle; } export interface DashboardWidgetDistributionDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetDistributionDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetDistributionDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetDistributionDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetDistributionDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQuery { /** * APM metrics query for histogram-mode distribution. */ apmMetricsQuery?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryApmMetricsQuery; /** * APM resource stats query for histogram-mode distribution. */ apmResourceStatsQuery?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryApmResourceStatsQuery; /** * Event query for histogram-mode distribution. */ eventQuery?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQuery; /** * Metric query for histogram-mode distribution. */ metricQuery?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryMetricQuery; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBySort; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetDistributionDefinitionRequestHistogramQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetDistributionDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetDistributionDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetDistributionDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetDistributionDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetDistributionDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetDistributionDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetDistributionDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetDistributionDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetDistributionDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetDistributionDefinitionTimeLive; } export interface DashboardWidgetDistributionDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetDistributionDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetDistributionDefinitionXaxis { /** * True includes zero. */ includeZero?: boolean; /** * Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. */ max?: string; /** * Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. */ min?: string; /** * Number of value buckets to target, also known as the resolution of the value bins. */ numBuckets?: number; /** * Specifies the scale type. Possible values are `linear`. */ scale?: string; } export interface DashboardWidgetDistributionDefinitionYaxis { /** * True includes zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. */ max?: string; /** * Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. */ min?: string; /** * Specifies the scale type. Possible values are `linear` or `log`. */ scale?: string; } export interface DashboardWidgetEmbeddedAppDefinition { /** * UUID of the App Builder app to embed. Exactly one of `appId` or `templateId` must be provided. */ appId?: string; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetEmbeddedAppDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A nested block describing an input passed to the embedded app. Multiple `input` blocks are allowed. */ inputs?: outputs.DashboardWidgetEmbeddedAppDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * ID of the built-in app template to embed. Exactly one of `appId` or `templateId` must be provided. */ templateId?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetEmbeddedAppDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetEmbeddedAppDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetEmbeddedAppDefinitionInput { /** * Name of the app input. */ name: string; /** * JSON-encoded value of the app input. Use `jsonencode()` for strings, numbers, booleans, objects, and arrays. */ value: string; } export interface DashboardWidgetEmbeddedAppDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetEmbeddedAppDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetEmbeddedAppDefinitionTimeLive; } export interface DashboardWidgetEmbeddedAppDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetEmbeddedAppDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetEventStreamDefinition { /** * The description of the widget. */ description?: string; /** * Size to use to display an event. Valid values are `s`, `l`. */ eventSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the event stream with. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetEventStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetEventStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetEventStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetEventStreamDefinitionTimeLive; } export interface DashboardWidgetEventStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetEventStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetEventTimelineDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the event timeline with. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetEventTimelineDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetEventTimelineDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetEventTimelineDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetEventTimelineDefinitionTimeLive; } export interface DashboardWidgetEventTimelineDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetEventTimelineDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetFreeTextDefinition { /** * The background color of the text widget. */ backgroundColor?: string; /** * The color of the text in the widget. */ color?: string; /** * The description of the widget. */ description?: string; /** * The size of the text in the widget. */ fontSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The text to display in the widget. */ text: string; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetFreeTextDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetFreeTextDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetFreeTextDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetFreeTextDefinitionTimeLive; } export interface DashboardWidgetFreeTextDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetFreeTextDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetFunnelDefinition { /** * The description of the widget. */ description?: string; /** * Display mode for grouped funnel results. Valid values are `stacked`, `sideBySide`. */ groupedDisplay?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Only one `request` block is allowed. */ request?: outputs.DashboardWidgetFunnelDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetFunnelDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetFunnelDefinitionRequest { /** * The query for the funnel widget request. */ query: outputs.DashboardWidgetFunnelDefinitionRequestQuery; } export interface DashboardWidgetFunnelDefinitionRequestQuery { /** * The data source for funnel queries. Valid values are `rum`. */ dataSource: string; /** * The widget query. */ queryString: string; /** * The funnel steps. Multiple `step` blocks are allowed. */ steps?: outputs.DashboardWidgetFunnelDefinitionRequestQueryStep[]; } export interface DashboardWidgetFunnelDefinitionRequestQueryStep { /** * The facet of the step. */ facet: string; /** * The value of the step. */ value: string; } export interface DashboardWidgetFunnelDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetFunnelDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetFunnelDefinitionTimeLive; } export interface DashboardWidgetFunnelDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetFunnelDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetGeomapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetGeomapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.DashboardWidgetGeomapDefinitionRequest[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardWidgetGeomapDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetGeomapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view of the world that the map should render. */ view?: outputs.DashboardWidgetGeomapDefinitionView; } export interface DashboardWidgetGeomapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetGeomapDefinitionRequest { /** * List of formulas that operate on queries. */ formulas?: outputs.DashboardWidgetGeomapDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.DashboardWidgetGeomapDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; } export interface DashboardWidgetGeomapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaStyle; } export interface DashboardWidgetGeomapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetGeomapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetGeomapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetGeomapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetGeomapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetGeomapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetGeomapDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetGeomapDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetGeomapDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetGeomapDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetGeomapDefinitionStyle { /** * The color palette to apply to the widget. */ palette: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip: boolean; } export interface DashboardWidgetGeomapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetGeomapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetGeomapDefinitionTimeLive; } export interface DashboardWidgetGeomapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetGeomapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetGeomapDefinitionView { /** * The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`). */ focus: string; } export interface DashboardWidgetGroupDefinition { /** * The background color of the group title, options: `vividBlue`, `vividPurple`, `vividPink`, `vividOrange`, `vividYellow`, `vividGreen`, `blue`, `purple`, `pink`, `orange`, `yellow`, `green`, `gray` or `white` */ backgroundColor?: string; /** * The image URL to display as a banner for the group. */ bannerImg?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The layout type of the group. Valid values are `ordered`. */ layoutType: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show the title or not. Defaults to `true`. */ showTitle?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetGroupDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The list of widgets in this group. */ widgets?: outputs.DashboardWidgetGroupDefinitionWidget[]; } export interface DashboardWidgetGroupDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetGroupDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetGroupDefinitionTimeLive; } export interface DashboardWidgetGroupDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetGroupDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetGroupDefinitionWidget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.DashboardWidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.DashboardWidgetAlertValueDefinition; /** * The definition for a Bar Chart widget. */ barChartDefinition?: outputs.DashboardWidgetBarChartDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.DashboardWidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.DashboardWidgetCheckStatusDefinition; /** * The definition for a Cohort retention-grid widget. */ cohortDefinition?: outputs.DashboardWidgetCohortDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.DashboardWidgetDistributionDefinition; /** * The definition for an App Builder embedded app widget. */ embeddedAppDefinition?: outputs.DashboardWidgetEmbeddedAppDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.DashboardWidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.DashboardWidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.DashboardWidgetFreeTextDefinition; /** * The definition for a Funnel widget. */ funnelDefinition?: outputs.DashboardWidgetFunnelDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.DashboardWidgetGeomapDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.DashboardWidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.DashboardWidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.DashboardWidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.DashboardWidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.DashboardWidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.DashboardWidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.DashboardWidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.DashboardWidgetNoteDefinition; /** * The definition for a Point Plot widget. */ pointPlotDefinition?: outputs.DashboardWidgetPointPlotDefinition; /** * The definition for a Product Analytics user journey funnel widget. */ productAnalyticsFunnelDefinition?: outputs.DashboardWidgetProductAnalyticsFunnelDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.DashboardWidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.DashboardWidgetQueryValueDefinition; /** * The definition for a Retention Curve widget. */ retentionCurveDefinition?: outputs.DashboardWidgetRetentionCurveDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.DashboardWidgetRunWorkflowDefinition; /** * The definition for a Sankey diagram widget. */ sankeyDefinition?: outputs.DashboardWidgetSankeyDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.DashboardWidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.DashboardWidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.DashboardWidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.DashboardWidgetSloListDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.DashboardWidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.DashboardWidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.DashboardWidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.DashboardWidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.DashboardWidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.DashboardWidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.DashboardWidgetGroupDefinitionWidgetWidgetLayout; /** * The definition for a Wildcard (custom visualization) widget using Vega or Vega-Lite specifications. */ wildcardDefinition?: outputs.DashboardWidgetWildcardDefinition; } export interface DashboardWidgetGroupDefinitionWidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface DashboardWidgetHeatmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetHeatmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.DashboardWidgetHeatmapDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `heatmapDefinition` block. */ markers?: outputs.DashboardWidgetHeatmapDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below. */ requests?: outputs.DashboardWidgetHeatmapDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetHeatmapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.DashboardWidgetHeatmapDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.DashboardWidgetHeatmapDefinitionYaxis; } export interface DashboardWidgetHeatmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetHeatmapDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface DashboardWidgetHeatmapDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardWidgetHeatmapDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetHeatmapDefinitionRequestFormula[]; /** * Histogram request for distribution of point values. */ histogramRequest?: outputs.DashboardWidgetHeatmapDefinitionRequestHistogramRequest; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetHeatmapDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardWidgetHeatmapDefinitionRequestStyle; } export interface DashboardWidgetHeatmapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaStyle; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetHeatmapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetHeatmapDefinitionRequestHistogramRequest { /** * Singular metric query for a histogram-mode heatmap request. */ histogramQuery: outputs.DashboardWidgetHeatmapDefinitionRequestHistogramRequestHistogramQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardWidgetHeatmapDefinitionRequestHistogramRequestStyle; } export interface DashboardWidgetHeatmapDefinitionRequestHistogramRequestHistogramQuery { /** * Metric query for distribution of point values. */ metricQuery: outputs.DashboardWidgetHeatmapDefinitionRequestHistogramRequestHistogramQueryMetricQuery; } export interface DashboardWidgetHeatmapDefinitionRequestHistogramRequestHistogramQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetHeatmapDefinitionRequestHistogramRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetHeatmapDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetHeatmapDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetHeatmapDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetHeatmapDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHeatmapDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetHeatmapDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetHeatmapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetHeatmapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetHeatmapDefinitionTimeLive; } export interface DashboardWidgetHeatmapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetHeatmapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetHeatmapDefinitionXaxis { /** * Number of time buckets to target, also known as the resolution of the time bins. This is only applicable for distribution of points (group distributions use the roll-up modifier). */ numBuckets?: number; } export interface DashboardWidgetHeatmapDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetHostmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetHostmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The list of tag prefixes to group by. */ groups?: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A Boolean indicating whether to show the hosts that don't fit in a group. */ noGroupHosts?: boolean; /** * A Boolean indicating whether to show nodes with no metrics. */ noMetricHosts?: boolean; /** * The type of node used. Valid values are `host`, `container`. */ nodeType?: string; /** * Notes/description text for the host map widget. */ notes?: string; /** * A request using the legacy metric format, the infrastructure-backed format, or the DDSQL data-projection format. */ request?: outputs.DashboardWidgetHostmapDefinitionRequest; /** * The list of tags used to filter the map. */ scopes?: string[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.DashboardWidgetHostmapDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetHostmapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetHostmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetHostmapDefinitionRequest { /** * Optional child request for one level of hierarchical visualization. */ child?: outputs.DashboardWidgetHostmapDefinitionRequestChild; /** * Conditional formatting rules applied to fill values. */ conditionalFormats?: outputs.DashboardWidgetHostmapDefinitionRequestConditionalFormat[]; /** * Metric or event queries joined to the entity set. */ enrichments?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichment[]; /** * The query used to fill the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ fills?: outputs.DashboardWidgetHostmapDefinitionRequestFill[]; /** * Filter string for the entity set in tag format, such as `env:prod`. */ filter?: string; /** * Ordered grouping hierarchy for infrastructure entities. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestGroupBy[]; /** * Maximum number of rows to return from the DDSQL data-projection request. */ limit?: number; /** * Whether to hide entities that have no group assignment. */ noGroupHosts?: boolean; /** * Whether to hide entities that have no enrichment data. */ noMetricHosts?: boolean; /** * Infrastructure entity type to visualize. Valid values are `host`, `container`, `pod`, `cluster`. */ nodeType?: string; /** * Mapping from published-dataset columns to host map dimensions. */ projection?: outputs.DashboardWidgetHostmapDefinitionRequestProjection; /** * Published-dataset query used by the DDSQL data-projection request. */ query?: outputs.DashboardWidgetHostmapDefinitionRequestQuery; /** * Identifies an infrastructure-backed or DDSQL data-projection host map request. Valid values are `infrastructureHostmap`, `dataProjection`. */ requestType?: string; /** * The query used to size the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ sizes?: outputs.DashboardWidgetHostmapDefinitionRequestSize[]; /** * Style configuration for the infrastructure host map. */ style?: outputs.DashboardWidgetHostmapDefinitionRequestStyle; } export interface DashboardWidgetHostmapDefinitionRequestChild { /** * Conditional formatting rules applied to fill values. */ conditionalFormats?: outputs.DashboardWidgetHostmapDefinitionRequestChildConditionalFormat[]; /** * Metric or event queries joined to the entity set. */ enrichments: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichment[]; /** * Filter string for the entity set in tag format, such as `env:prod`. */ filter?: string; /** * Ordered grouping hierarchy for infrastructure entities. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestChildGroupBy[]; /** * Whether to hide entities that have no group assignment. */ noGroupHosts?: boolean; /** * Whether to hide entities that have no enrichment data. */ noMetricHosts?: boolean; /** * Infrastructure entity type to visualize. Valid values are `host`, `container`, `pod`, `cluster`. */ nodeType: string; /** * Identifies an infrastructure-backed host map request. Valid values are `infrastructureHostmap`. */ requestType: string; /** * Style configuration for the infrastructure host map. */ style?: outputs.DashboardWidgetHostmapDefinitionRequestChildStyle; } export interface DashboardWidgetHostmapDefinitionRequestChildConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichment { /** * Formulas that operate on queries and drive visual dimensions. */ formulas: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormula[]; /** * Queries that can be returned directly or used in formulas. */ queries: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQuery[]; /** * Response format for the scalar formula request. Valid values are `scalar`. */ responseFormat: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormula { /** * Expression alias. */ alias?: string; /** * Visual dimension driven by the formula. Valid values are `node`, `fill`, `size`. */ dimension: string; /** * String expression built from queries, formulas, and functions. */ formulaExpression: string; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormat; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitScale; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCustom; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuery; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildEnrichmentQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetHostmapDefinitionRequestChildGroupBy { /** * Column name from the entity table, such as `cloudProvider`, `tags`, or `labels`. */ column: string; /** * Key within the column for nested attribute types, such as `service` within `tags`. */ key?: string; } export interface DashboardWidgetHostmapDefinitionRequestChildStyle { /** * Maximum value for the fill color scale. Omit to use automatic scaling. */ fillMax?: number; /** * Minimum value for the fill color scale. Omit to use automatic scaling. */ fillMin?: number; /** * Color palette name or alias. */ palette?: string; /** * Whether to invert the color palette. */ paletteFlip?: boolean; } export interface DashboardWidgetHostmapDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestEnrichment { /** * Formulas that operate on queries and drive visual dimensions. */ formulas: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentFormula[]; /** * Queries that can be returned directly or used in formulas. */ queries: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQuery[]; /** * Response format for the scalar formula request. Valid values are `scalar`. */ responseFormat: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentFormula { /** * Expression alias. */ alias?: string; /** * Visual dimension driven by the formula. Valid values are `node`, `fill`, `size`. */ dimension: string; /** * String expression built from queries, formulas, and functions. */ formulaExpression: string; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormat; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitScale; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCustom; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuery; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestEnrichmentQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetHostmapDefinitionRequestFill { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetHostmapDefinitionRequestFillQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; } export interface DashboardWidgetHostmapDefinitionRequestFillFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaStyle; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitScale; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCustom; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetHostmapDefinitionRequestFillFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetHostmapDefinitionRequestFillProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuery; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestFillQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestFillQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetHostmapDefinitionRequestGroupBy { /** * Column name from the entity table, such as `cloudProvider`, `tags`, or `labels`. */ column: string; /** * Key within the column for nested attribute types, such as `service` within `tags`. */ key?: string; } export interface DashboardWidgetHostmapDefinitionRequestProjection { /** * Column-to-dimension mappings for the host map projection. */ dimensions: outputs.DashboardWidgetHostmapDefinitionRequestProjectionDimension[]; /** * Type of the host map projection. Valid values are `hostmap`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestProjectionDimension { /** * Alias used to label the column instead of its name. */ alias?: string; /** * Source column name from the dataset. */ column: string; /** * Visual dimension driven by the dataset column. Valid values are `node`, `fill`, `size`, `group`. */ dimension: string; /** * Number formatting options for the projected column. */ numberFormat?: outputs.DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormat; } export interface DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitScale; } export interface DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCustom; } export interface DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetHostmapDefinitionRequestQuery { /** * Identifies this as a published-dataset list query. Valid values are `dataset`. */ dataSource: string; /** * ID of the published dataset to query. */ datasetId: string; /** * Product page that published the dataset. Valid values are `ddsqlQuery`. */ datasetProvider: string; /** * Filter applied to the dataset rows using events-style search syntax. */ filter?: string; /** * Maximum number of rows to return from the dataset query. */ limit?: number; /** * Sort configuration for the dataset query. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestQuerySort; } export interface DashboardWidgetHostmapDefinitionRequestQuerySort { /** * List of fields to sort the dataset rows by, applied in order. */ fields: outputs.DashboardWidgetHostmapDefinitionRequestQuerySortField[]; } export interface DashboardWidgetHostmapDefinitionRequestQuerySortField { /** * Name of the field to sort on. */ name: string; /** * Sort direction for the field. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetHostmapDefinitionRequestSize { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaStyle; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitScale; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCustom; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetHostmapDefinitionRequestSizeProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuery; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetHostmapDefinitionRequestSizeQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearch; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetHostmapDefinitionRequestSizeQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetHostmapDefinitionRequestStyle { /** * Maximum value for the fill color scale. Omit to use automatic scaling. */ fillMax?: number; /** * Minimum value for the fill color scale. Omit to use automatic scaling. */ fillMin?: number; /** * Color palette name or alias. */ palette?: string; /** * Whether to invert the color palette. */ paletteFlip?: boolean; } export interface DashboardWidgetHostmapDefinitionStyle { /** * The max value to use to color the map. */ fillMax?: string; /** * The min value to use to color the map. */ fillMin?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip?: boolean; } export interface DashboardWidgetHostmapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetHostmapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetHostmapDefinitionTimeLive; } export interface DashboardWidgetHostmapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetHostmapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetIframeDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetIframeDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The URL to use as a data source for the widget. */ url: string; } export interface DashboardWidgetIframeDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetIframeDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetIframeDefinitionTimeLive; } export interface DashboardWidgetIframeDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetIframeDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetImageDefinition { /** * The description of the widget. */ description?: string; /** * Whether to display a background or not. Defaults to `true`. */ hasBackground?: boolean; /** * Whether to display a border or not. Defaults to `true`. */ hasBorder?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The horizontal alignment for the widget. Valid values are `center`, `left`, `right`. */ horizontalAlign?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The margins to use around the image. Note: `small` and `large` values are deprecated. Valid values are `sm`, `md`, `lg`, `small`, `large`. */ margin?: string; /** * The preferred method to adapt the dimensions of the image. The values are based on the image `object-fit` CSS properties. Note: `zoom`, `fit` and `center` values are deprecated. Valid values are `fill`, `contain`, `cover`, `none`, `scale-down`, `zoom`, `fit`, `center`. */ sizing?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetImageDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * URL of the image. */ url: string; /** * URL of the image in dark mode. */ urlDarkTheme?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface DashboardWidgetImageDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetImageDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetImageDefinitionTimeLive; } export interface DashboardWidgetImageDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetImageDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetListStreamDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the requests to use when displaying the widget. Multiple `request` blocks are allowed with the structure below. */ requests: outputs.DashboardWidgetListStreamDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetListStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetListStreamDefinitionRequest { /** * Widget columns. */ columns: outputs.DashboardWidgetListStreamDefinitionRequestColumn[]; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Updated list stream widget. */ query: outputs.DashboardWidgetListStreamDefinitionRequestQuery; /** * Widget response format. Valid values are `eventList`. */ responseFormat: string; } export interface DashboardWidgetListStreamDefinitionRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface DashboardWidgetListStreamDefinitionRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.DashboardWidgetListStreamDefinitionRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.DashboardWidgetListStreamDefinitionRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface DashboardWidgetListStreamDefinitionRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface DashboardWidgetListStreamDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetListStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetListStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetListStreamDefinitionTimeLive; } export interface DashboardWidgetListStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetListStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetLogQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetLogQueryGroupBySortQuery; } export interface DashboardWidgetLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetLogStreamDefinition { /** * Stringified list of columns to use, for example: `["column1","column2","column3"]`. */ columns?: string[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The number of log lines to display. Valid values are `inline`, `expanded-md`, `expanded-lg`. */ messageDisplay?: string; /** * Query to filter the log stream with. */ query?: string; /** * If the date column should be displayed. */ showDateColumn?: boolean; /** * If the message column should be displayed. */ showMessageColumn?: boolean; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.DashboardWidgetLogStreamDefinitionSort; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetLogStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetLogStreamDefinitionSort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetLogStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetLogStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetLogStreamDefinitionTimeLive; } export interface DashboardWidgetLogStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetLogStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetManageStatusDefinition { /** * Whether to colorize text or background. Valid values are `background`, `text`. */ colorPreference?: string; /** * The description of the widget. */ description?: string; /** * The display setting to use. Valid values are `counts`, `countsAndList`, `list`. */ displayFormat?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A Boolean indicating whether to hide empty categories. */ hideZeroCounts?: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the monitors with. */ query: string; /** * Whether to show the time that has elapsed since the monitor/group triggered. */ showLastTriggered?: boolean; /** * Whether to show the priorities column. */ showPriority?: boolean; /** * The method to sort the monitors. Valid values are `name`, `group`, `status`, `tags`, `triggered`, `group,asc`, `group,desc`, `name,asc`, `name,desc`, `status,asc`, `status,desc`, `tags,asc`, `tags,desc`, `triggered,asc`, `triggered,desc`, `priority,asc`, `priority,desc`. */ sort?: string; /** * The summary type to use. Valid values are `monitors`, `groups`, `combined`. */ summaryType?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetManageStatusDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetManageStatusDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetManageStatusDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetManageStatusDefinitionTimeLive; } export interface DashboardWidgetManageStatusDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetManageStatusDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetNoteDefinition { /** * The background color of the note. */ backgroundColor?: string; /** * The content of the note. */ content: string; /** * The description of the widget. */ description?: string; /** * The size of the text. */ fontSize?: string; /** * Whether to add padding or not. Defaults to `true`. */ hasPadding?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show a tick or not. */ showTick?: boolean; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * When `tick = true`, a string indicating on which side of the widget the tick should be displayed. Valid values are `bottom`, `left`, `right`, `top`. */ tickEdge?: string; /** * When `tick = true`, a string with a percent sign indicating the position of the tick, for example: `tickPos = "50%"` is centered alignment. */ tickPos?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetNoteDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface DashboardWidgetNoteDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetNoteDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetNoteDefinitionTimeLive; } export interface DashboardWidgetNoteDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetNoteDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetPointPlotDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetPointPlotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Legend configuration for the widget. */ legend?: outputs.DashboardWidgetPointPlotDefinitionLegend; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing a marker to use when displaying the widget. Multiple `marker` blocks are allowed. */ markers?: outputs.DashboardWidgetPointPlotDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. */ requests?: outputs.DashboardWidgetPointPlotDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetPointPlotDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.DashboardWidgetPointPlotDefinitionYaxis; } export interface DashboardWidgetPointPlotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetPointPlotDefinitionLegend { /** * Type of legend to show for the point plot widget. Valid values are `automatic`, `none`. */ type: string; } export interface DashboardWidgetPointPlotDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardWidgetPointPlotDefinitionRequest { /** * Maximum number of data points to return. */ limit?: number; /** * Projection configuration for the point plot request. */ projection: outputs.DashboardWidgetPointPlotDefinitionRequestProjection; /** * Query configuration for the point plot request. */ query: outputs.DashboardWidgetPointPlotDefinitionRequestQuery; /** * The type of data request. Must be `dataProjection`. Valid values are `dataProjection`. */ requestType: string; } export interface DashboardWidgetPointPlotDefinitionRequestProjection { /** * List of dimension mappings for the projection. */ dimensions: outputs.DashboardWidgetPointPlotDefinitionRequestProjectionDimension[]; /** * Additional columns to include in the projection. */ extraColumns?: string[]; /** * Type of the projection. Must be `pointPlot`. Valid values are `pointPlot`. */ type: string; } export interface DashboardWidgetPointPlotDefinitionRequestProjectionDimension { /** * Alias for the column. */ alias?: string; /** * Source column name from the dataset. */ column: string; /** * Dimension of the point plot. Valid values are `group`, `time`, `y`, `radius`. */ dimension: string; } export interface DashboardWidgetPointPlotDefinitionRequestQuery { /** * Data source for the query (for example, `logs`). */ dataSource: string; /** * List of indexes to query. */ indexes?: string[]; /** * The query string to filter events. */ queryString: string; /** * Storage location for the query. */ storage?: string; } export interface DashboardWidgetPointPlotDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetPointPlotDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetPointPlotDefinitionTimeLive; } export interface DashboardWidgetPointPlotDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetPointPlotDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetPointPlotDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetPowerpackDefinition { /** * The background color of the powerpack title. */ backgroundColor?: string; /** * URL of image to display as a banner for the powerpack. */ bannerImg?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * UUID of the associated powerpack. */ powerpackId: string; /** * Whether to show the title of the powerpack. */ showTitle?: boolean; /** * The list of template variables for this powerpack. */ templateVariables?: outputs.DashboardWidgetPowerpackDefinitionTemplateVariables; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetPowerpackDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetPowerpackDefinitionTemplateVariables { /** * Template variables controlled at the powerpack level. */ controlledByPowerpacks?: outputs.DashboardWidgetPowerpackDefinitionTemplateVariablesControlledByPowerpack[]; /** * Template variables controlled by the external resource, such as the dashboard this powerpack is on. */ controlledExternallies?: outputs.DashboardWidgetPowerpackDefinitionTemplateVariablesControlledExternally[]; } export interface DashboardWidgetPowerpackDefinitionTemplateVariablesControlledByPowerpack { /** * The name of the variable. */ name: string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable dropdown. */ prefix?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. */ values: string[]; } export interface DashboardWidgetPowerpackDefinitionTemplateVariablesControlledExternally { /** * The name of the variable. */ name: string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable dropdown. */ prefix?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. */ values: string[]; } export interface DashboardWidgetPowerpackDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetPowerpackDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetPowerpackDefinitionTimeLive; } export interface DashboardWidgetPowerpackDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetPowerpackDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetProductAnalyticsFunnelDefinition { /** * The description of the widget. */ description?: string; /** * Display mode for grouped funnel results. Valid values are `stacked`, `sideBySide`. */ groupedDisplay?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * User journey funnel requests. */ requests: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequest { /** * Segments to compare in the funnel. */ comparisonSegments?: string[]; /** * Comparison time configuration for the funnel. */ comparisonTime?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestComparisonTime; /** * User journey query displayed by the funnel. */ query: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuery; /** * Request type for the Product Analytics funnel. Valid values are `userJourneyFunnel`. */ requestType: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestComparisonTime { /** * Custom comparison timeframe. */ customTimeframe?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestComparisonTimeCustomTimeframe; /** * Type of comparison duration. Valid values are `previousTimeframe`, `customTimeframe`, `previousDay`, `previousWeek`, `previousMonth`. */ type: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestComparisonTimeCustomTimeframe { /** * Start of the custom comparison timeframe. */ from: number; /** * End of the custom comparison timeframe. */ to: number; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuery { /** * Compute configuration for the user journey funnel. */ compute?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryCompute; /** * Data source for Product Analytics funnel queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the user journey funnel. */ groupBies?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBy[]; /** * User journey search configuration. */ search: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearch; /** * Subquery identifier. */ subqueryId?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryCompute { /** * Aggregation type for the user journey funnel computation. Valid values are `cardinality`, `count`. */ aggregation: string; /** * Metric for the user journey funnel computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`. */ metric: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBy { /** * Facet to group the user journey funnel by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for the funnel groups. */ sort?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryGroupByTarget; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBySort { /** * Aggregation used to sort the funnel groups. */ aggregation: string; /** * Metric to sort by. */ metric?: string; /** * Sort order for funnel groups. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionRequestQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetProductAnalyticsFunnelDefinitionTimeLive; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetProductAnalyticsFunnelDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetQueryTableDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetQueryTableDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Controls the display of the search bar. Valid values are `always`, `never`, `auto`. */ hasSearchBar?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardWidgetQueryTableDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetQueryTableDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetQueryTableDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetQueryTableDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The alias for the column name (defaults to metric name). */ alias?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * The APM stats query for table and distribution widgets. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmStatsQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestApmStatsQuery; /** * A list of display modes for each table cell. Valid values are `number`, `bar`. */ cellDisplayModes?: string[]; /** * Conditional formats allow you to set the color of your widget content or background, depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetQueryTableDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetQueryTableDefinitionRequestFormula[]; /** * For metric queries, the number of lines to show in the table. Only one request should have this property. */ limit?: number; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The sort order for the rows. Valid values are `asc`, `desc`. */ order?: string; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetQueryTableDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The controls for sorting the widget request. */ sort?: outputs.DashboardWidgetQueryTableDefinitionRequestSort; /** * Text formats define how to format text in table widget content. Multiple `textFormats` blocks are allowed using the structure below. This resource is in beta and is subject to change. */ textFormats?: outputs.DashboardWidgetQueryTableDefinitionRequestTextFormat[]; } export interface DashboardWidgetQueryTableDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.DashboardWidgetQueryTableDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface DashboardWidgetQueryTableDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetQueryTableDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaStyle; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetQueryTableDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetQueryTableDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetQueryTableDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetQueryTableDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetQueryTableDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetQueryTableDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetQueryTableDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetQueryTableDefinitionRequestSortOrderBy[]; } export interface DashboardWidgetQueryTableDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetQueryTableDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetQueryTableDefinitionRequestSortOrderByGroupSort; } export interface DashboardWidgetQueryTableDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetQueryTableDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetQueryTableDefinitionRequestTextFormat { /** * The text format to apply to the items in a table widget column. */ textFormats?: outputs.DashboardWidgetQueryTableDefinitionRequestTextFormatTextFormat[]; } export interface DashboardWidgetQueryTableDefinitionRequestTextFormatTextFormat { /** * The custom color palette to apply to the background. */ customBgColor?: string; /** * The custom color palette to apply to the foreground text. */ customFgColor?: string; /** * Match rule for the table widget text format. */ match: outputs.DashboardWidgetQueryTableDefinitionRequestTextFormatTextFormatMatch; /** * The color palette to apply. Valid values are `whiteOnRed`, `whiteOnYellow`, `whiteOnGreen`, `blackOnLightRed`, `blackOnLightYellow`, `blackOnLightGreen`, `redOnWhite`, `yellowOnWhite`, `greenOnWhite`, `customBg`, `customText`. */ palette?: string; /** * Match rule for the table widget text format. */ replace?: outputs.DashboardWidgetQueryTableDefinitionRequestTextFormatTextFormatReplace; } export interface DashboardWidgetQueryTableDefinitionRequestTextFormatTextFormatMatch { /** * Match or compare option. Valid values are `is`, `isNot`, `contains`, `doesNotContain`, `startsWith`, `endsWith`. */ type: string; /** * Table Widget Match String. */ value: string; } export interface DashboardWidgetQueryTableDefinitionRequestTextFormatTextFormatReplace { /** * Text that will be replaced. Must be used with type `substring`. */ substring?: string; /** * Table widget text format replace all type. Valid values are `all`, `substring`. */ type: string; /** * Table Widget Match String. */ with: string; } export interface DashboardWidgetQueryTableDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetQueryTableDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetQueryTableDefinitionTimeLive; } export interface DashboardWidgetQueryTableDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetQueryTableDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetQueryValueDefinition { /** * A Boolean indicating whether to automatically scale the tile. */ autoscale?: boolean; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetQueryValueDefinitionCustomLink[]; /** * Display a unit of your choice on the widget. */ customUnit?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Number of decimals to show. If not defined, the widget uses the raw value. */ precision?: number; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardWidgetQueryValueDefinitionRequest[]; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetQueryValueDefinitionTime; /** * Set a timeseries on the widget background. */ timeseriesBackground?: outputs.DashboardWidgetQueryValueDefinitionTimeseriesBackground; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetQueryValueDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetQueryValueDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestAuditQuery; /** * A change indicator that compares the current value to a historical period. */ comparison?: outputs.DashboardWidgetQueryValueDefinitionRequestComparison; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetQueryValueDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetQueryValueDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetQueryValueDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; } export interface DashboardWidgetQueryValueDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetQueryValueDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetQueryValueDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetQueryValueDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetQueryValueDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardWidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetQueryValueDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetQueryValueDefinitionRequestComparison { /** * Which direction of change is considered an improvement. Valid values are `increaseBetter`, `decreaseBetter`, `neutral`. Defaults to `"neutral"`. */ directionality?: string; /** * The comparison period. */ duration: outputs.DashboardWidgetQueryValueDefinitionRequestComparisonDuration; /** * How the delta is expressed. Valid values are `absolute`, `relative`, `both`. Defaults to `"absolute"`. */ type?: string; } export interface DashboardWidgetQueryValueDefinitionRequestComparisonDuration { /** * Fixed time range to compare against when `type` is `customTimeframe`. */ customTimeframe?: outputs.DashboardWidgetQueryValueDefinitionRequestComparisonDurationCustomTimeframe; /** * The comparison window type. Valid values are `previousTimeframe`, `customTimeframe`, `previousDay`, `previousWeek`, `previousMonth`. */ type: string; } export interface DashboardWidgetQueryValueDefinitionRequestComparisonDurationCustomTimeframe { /** * Start time in milliseconds since epoch. */ from: number; /** * End time in milliseconds since epoch. */ to: number; } export interface DashboardWidgetQueryValueDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetQueryValueDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaStyle; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetQueryValueDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetQueryValueDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetQueryValueDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetQueryValueDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetQueryValueDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetQueryValueDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetQueryValueDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetQueryValueDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetQueryValueDefinitionTimeLive; } export interface DashboardWidgetQueryValueDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetQueryValueDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetQueryValueDefinitionTimeseriesBackground { /** * Whether the Timeseries is made using an area or bars. Valid values are `area`, `bars`. */ type: string; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.DashboardWidgetQueryValueDefinitionTimeseriesBackgroundYaxis; } export interface DashboardWidgetQueryValueDefinitionTimeseriesBackgroundYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetRetentionCurveDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Retention curve requests. */ requests: outputs.DashboardWidgetRetentionCurveDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetRetentionCurveDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequest { /** * Retention query displayed by the retention curve. */ query: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuery; /** * Request type for the retention curve widget. Valid values are `retentionCurve`. */ requestType: string; /** * Style configuration for the retention curve. */ style?: outputs.DashboardWidgetRetentionCurveDefinitionRequestStyle; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Filters for the retention query. */ filters?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryFilters; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryGroupBy[]; /** * Name of the retention query. */ name?: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearch; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersUser[]; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteria; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetRetentionCurveDefinitionRequestStyle { /** * Color palette for the retention curve. */ palette?: string; } export interface DashboardWidgetRetentionCurveDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetRetentionCurveDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetRetentionCurveDefinitionTimeLive; } export interface DashboardWidgetRetentionCurveDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetRetentionCurveDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetRumQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetRumQueryGroupBySortQuery; } export interface DashboardWidgetRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetRunWorkflowDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetRunWorkflowDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Array of workflow inputs to map to dashboard template variables. */ inputs?: outputs.DashboardWidgetRunWorkflowDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetRunWorkflowDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Workflow ID */ workflowId: string; } export interface DashboardWidgetRunWorkflowDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetRunWorkflowDefinitionInput { /** * Name of the workflow input. */ name: string; /** * Dashboard template variable. Can be suffixed with `.value` or `.key`. */ value: string; } export interface DashboardWidgetRunWorkflowDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetRunWorkflowDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetRunWorkflowDefinitionTimeLive; } export interface DashboardWidgetRunWorkflowDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetRunWorkflowDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetSankeyDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. */ requests?: outputs.DashboardWidgetSankeyDefinitionRequest[]; /** * Whether to show links for the 'other' category. */ showOtherLinks?: boolean; /** * Whether to sort nodes in the Sankey diagram. */ sortNodes?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetSankeyDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetSankeyDefinitionRequest { /** * Network request for the Sankey widget. */ networkRequest?: outputs.DashboardWidgetSankeyDefinitionRequestNetworkRequest; /** * RUM request for the Sankey widget. */ rumRequest?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequest; } export interface DashboardWidgetSankeyDefinitionRequestNetworkRequest { /** * The query for the Sankey network request. */ query: outputs.DashboardWidgetSankeyDefinitionRequestNetworkRequestQuery; } export interface DashboardWidgetSankeyDefinitionRequestNetworkRequestQuery { /** * Compute aggregation configuration. */ compute?: outputs.DashboardWidgetSankeyDefinitionRequestNetworkRequestQueryCompute; /** * The data source for the Sankey network query. Valid values are `networkDeviceFlows`, `network`. */ dataSource: string; /** * Fields to group by. */ groupBies: string[]; /** * Maximum number of results. */ limit: number; /** * The mode for the Sankey network query. Valid values are `target`. */ mode?: string; /** * The search query string. */ queryString: string; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration. */ sort?: outputs.DashboardWidgetSankeyDefinitionRequestNetworkRequestQuerySort; } export interface DashboardWidgetSankeyDefinitionRequestNetworkRequestQueryCompute { /** * The aggregation method. */ aggregation: string; /** * The metric to aggregate. */ metric: string; } export interface DashboardWidgetSankeyDefinitionRequestNetworkRequestQuerySort { /** * Field to sort by. */ field?: string; /** * Sort direction. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetSankeyDefinitionRequestRumRequest { /** * The query for the Sankey RUM request. */ query: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQuery; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQuery { /** * Product Analytics and RUM audience filters. */ audienceFilters?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFilters; /** * The data source for the Sankey RUM query. Valid values are `rum`, `productAnalytics`. */ dataSource: string; /** * Entries per step. */ entriesPerStep?: number; /** * Join keys for the Sankey query. */ joinKeys?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQueryJoinKeys; /** * The mode for the Sankey RUM query. Valid values are `source`, `target`. */ mode: string; /** * Number of steps. */ numberOfSteps?: number; /** * Filter applied to occurrence counts when building a Product Analytics audience. */ occurrence?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQueryOccurrence; /** * The search query string. */ queryString: string; /** * Source field. */ source?: string; /** * Subquery ID. */ subqueryId?: string; /** * Target field. */ target?: string; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersUser[]; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQueryJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetSankeyDefinitionRequestRumRequestQueryOccurrence { /** * The comparison operator used for the occurrence filter. */ operator?: string; /** * The threshold value to compare occurrence counts against. */ value?: string; } export interface DashboardWidgetSankeyDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetSankeyDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetSankeyDefinitionTimeLive; } export interface DashboardWidgetSankeyDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetSankeyDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetScatterplotDefinition { /** * List of groups used for colors. */ colorByGroups?: string[]; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetScatterplotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed using the structure below. */ request?: outputs.DashboardWidgetScatterplotDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetScatterplotDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.DashboardWidgetScatterplotDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.DashboardWidgetScatterplotDefinitionYaxis; } export interface DashboardWidgetScatterplotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetScatterplotDefinitionRequest { /** * Scatterplot request containing formulas and functions. */ scatterplotTables?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTable[]; /** * The query used for the X-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ xes?: outputs.DashboardWidgetScatterplotDefinitionRequestX[]; /** * The query used for the Y-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ ys?: outputs.DashboardWidgetScatterplotDefinitionRequestY[]; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTable { /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableFormula[]; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQuery[]; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableFormula { /** * An expression alias. */ alias?: string; /** * Dimension of the Scatterplot. Valid values are `x`, `y`, `radius`, `color`. */ dimension: string; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuery; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestScatterplotTableQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetScatterplotDefinitionRequestX { /** * Aggregator used for the request. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetScatterplotDefinitionRequestXQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; } export interface DashboardWidgetScatterplotDefinitionRequestXFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaStyle; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitScale; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCustom; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetScatterplotDefinitionRequestXFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetScatterplotDefinitionRequestXProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuery; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupBySort; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetScatterplotDefinitionRequestXQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestXQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetScatterplotDefinitionRequestY { /** * Aggregator used for the request. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetScatterplotDefinitionRequestYQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; } export interface DashboardWidgetScatterplotDefinitionRequestYFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaStyle; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitScale; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCustom; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetScatterplotDefinitionRequestYFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetScatterplotDefinitionRequestYProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuery; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupBySort; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetScatterplotDefinitionRequestYQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearch; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetScatterplotDefinitionRequestYQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetScatterplotDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetScatterplotDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetScatterplotDefinitionTimeLive; } export interface DashboardWidgetScatterplotDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetScatterplotDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetScatterplotDefinitionXaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetScatterplotDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetSecurityQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetSecurityQueryGroupBySortQuery; } export interface DashboardWidgetSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetServiceLevelObjectiveDefinition { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The description of the widget. */ description?: string; /** * The global time target of the widget. */ globalTimeTarget?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show the error budget or not. */ showErrorBudget?: boolean; /** * The ID of the service level objective used by the widget. */ sloId: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetServiceLevelObjectiveDefinitionTime; /** * A list of time windows to display in the widget. Valid values are `7d`, `30d`, `90d`, `weekToDate`, `previousWeek`, `monthToDate`, `previousMonth`, `globalTime`. */ timeWindows: string[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view mode for the widget. Valid values are `overall`, `component`, `both`. */ viewMode: string; /** * The type of view to use when displaying the widget. Only `detail` is supported. */ viewType: string; } export interface DashboardWidgetServiceLevelObjectiveDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetServiceLevelObjectiveDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetServiceLevelObjectiveDefinitionTimeLive; } export interface DashboardWidgetServiceLevelObjectiveDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetServiceLevelObjectiveDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetServicemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetServicemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The ID of the service to map. */ service: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetServicemapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetServicemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetServicemapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetServicemapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetServicemapDefinitionTimeLive; } export interface DashboardWidgetServicemapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetServicemapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetSloListDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed. */ request: outputs.DashboardWidgetSloListDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetSloListDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetSloListDefinitionRequest { /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Updated SLO List widget. */ query: outputs.DashboardWidgetSloListDefinitionRequestQuery; /** * The request type for the SLO List request. Valid values are `sloList`. */ requestType: string; } export interface DashboardWidgetSloListDefinitionRequestQuery { /** * Maximum number of results to display in the table. Defaults to `100`. */ limit?: number; /** * Widget query. */ queryString: string; /** * The facet and order to sort the data, for example: `{"column": "status.sli", "order": "desc"}`. */ sort?: outputs.DashboardWidgetSloListDefinitionRequestQuerySort; } export interface DashboardWidgetSloListDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSloListDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetSloListDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetSloListDefinitionTimeLive; } export interface DashboardWidgetSloListDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetSloListDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetSplitGraphDefinition { /** * The description of the widget. */ description?: string; /** * Normalize y axes across graphs. */ hasUniformYAxes?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Size of the individual graphs in the split. */ size: string; /** * The original widget we are splitting on. */ sourceWidgetDefinition?: outputs.DashboardWidgetSplitGraphDefinitionSourceWidgetDefinition; /** * Encapsulates all user choices about how to split a graph. */ splitConfig: outputs.DashboardWidgetSplitGraphDefinitionSplitConfig; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetSplitGraphDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetSplitGraphDefinitionSourceWidgetDefinition { /** * The definition for a Change widget. */ changeDefinition?: outputs.DashboardWidgetChangeDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.DashboardWidgetGeomapDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.DashboardWidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.DashboardWidgetQueryValueDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.DashboardWidgetScatterplotDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.DashboardWidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.DashboardWidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.DashboardWidgetToplistDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.DashboardWidgetTreemapDefinition; } export interface DashboardWidgetSplitGraphDefinitionSplitConfig { /** * Maximum number of graphs to display in the widget. */ limit?: number; /** * Controls the order in which graphs appear in the split. */ sort: outputs.DashboardWidgetSplitGraphDefinitionSplitConfigSort; /** * The property by which the graph splits */ splitDimensions: outputs.DashboardWidgetSplitGraphDefinitionSplitConfigSplitDimensions; /** * Manual selection of tags making split graph widget static. */ staticSplits?: outputs.DashboardWidgetSplitGraphDefinitionSplitConfigStaticSplit[]; } export interface DashboardWidgetSplitGraphDefinitionSplitConfigSort { /** * Defines the metric and aggregation used as the sort value */ compute?: outputs.DashboardWidgetSplitGraphDefinitionSplitConfigSortCompute; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSplitGraphDefinitionSplitConfigSortCompute { /** * How to aggregate the sort metric for the purposes of ordering. */ aggregation?: string; /** * The metric to use for sorting graphs. */ metric: string; } export interface DashboardWidgetSplitGraphDefinitionSplitConfigSplitDimensions { /** * The system interprets this attribute differently depending on the data source of the query being split. For metrics, it's a tag. For the events platform, it's an attribute or tag. */ oneGraphPer: string; } export interface DashboardWidgetSplitGraphDefinitionSplitConfigStaticSplit { /** * The split graph list contains a graph for each value of the split dimension. */ splitVectors: outputs.DashboardWidgetSplitGraphDefinitionSplitConfigStaticSplitSplitVector[]; } export interface DashboardWidgetSplitGraphDefinitionSplitConfigStaticSplitSplitVector { tagKey: string; tagValues: string[]; } export interface DashboardWidgetSplitGraphDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetSplitGraphDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetSplitGraphDefinitionTimeLive; } export interface DashboardWidgetSplitGraphDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetSplitGraphDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetSunburstDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetSunburstDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Whether or not to show the total value in the widget. */ hideTotal?: boolean; /** * Used to configure the inline legend. Cannot be used in conjunction with legend*table. */ legendInline?: outputs.DashboardWidgetSunburstDefinitionLegendInline; /** * Used to configure the table legend. Cannot be used in conjunction with legend*inline. */ legendTable?: outputs.DashboardWidgetSunburstDefinitionLegendTable; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed with the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.DashboardWidgetSunburstDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetSunburstDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetSunburstDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetSunburstDefinitionLegendInline { /** * Whether to hide the percentages of the groups. */ hidePercent?: boolean; /** * Whether to hide the values of the groups. */ hideValue?: boolean; /** * The type of legend (inline or automatic). */ type: string; } export interface DashboardWidgetSunburstDefinitionLegendTable { /** * The type of legend (table or none). */ type: string; } export interface DashboardWidgetSunburstDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardWidgetSunburstDefinitionRequestAuditQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetSunburstDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ networkQuery?: outputs.DashboardWidgetSunburstDefinitionRequestNetworkQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetSunburstDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetSunburstDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardWidgetSunburstDefinitionRequestSort; /** * Define style for the widget's request. */ style?: outputs.DashboardWidgetSunburstDefinitionRequestStyle; } export interface DashboardWidgetSunburstDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetSunburstDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetSunburstDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetSunburstDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetSunburstDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetSunburstDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardWidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSunburstDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetSunburstDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaStyle; } export interface DashboardWidgetSunburstDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetSunburstDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetSunburstDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetSunburstDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetSunburstDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetSunburstDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetSunburstDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetSunburstDefinitionRequestNetworkQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetSunburstDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetSunburstDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetSunburstDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery; } export interface DashboardWidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSunburstDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetSunburstDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetSunburstDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetSunburstDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetSunburstDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetSunburstDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetSunburstDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetSunburstDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetSunburstDefinitionRequestSortOrderBy[]; } export interface DashboardWidgetSunburstDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetSunburstDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetSunburstDefinitionRequestSortOrderByGroupSort; } export interface DashboardWidgetSunburstDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSunburstDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetSunburstDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetSunburstDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetSunburstDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetSunburstDefinitionTimeLive; } export interface DashboardWidgetSunburstDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetSunburstDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetTimeseriesDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetTimeseriesDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.DashboardWidgetTimeseriesDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A list of columns to display in the legend. Valid values are `value`, `avg`, `sum`, `min`, `max`. */ legendColumns?: string[]; /** * The layout of the legend displayed in the widget. Valid values are `auto`, `horizontal`, `vertical`. */ legendLayout?: string; /** * The size of the legend displayed in the widget. Valid values are `0`, `2`, `4`, `8`, `16`, `auto`. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `tileDef` block. */ markers?: outputs.DashboardWidgetTimeseriesDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `networkQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardWidgetTimeseriesDefinitionRequest[]; /** * A nested block describing the right Y-Axis Controls. See the `onRightYaxis` property for which request will use this axis. The structure of this block is described below. */ rightYaxis?: outputs.DashboardWidgetTimeseriesDefinitionRightYaxis; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetTimeseriesDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.DashboardWidgetTimeseriesDefinitionYaxis; } export interface DashboardWidgetTimeseriesDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetTimeseriesDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface DashboardWidgetTimeseriesDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface DashboardWidgetTimeseriesDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestAuditQuery; /** * How to display the marker lines. Valid values are `area`, `bars`, `line`, `overlay`. */ displayType?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ eventQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestEventQuery; /** * List of formulas that operate on queries. */ formulas?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * Used to define expression aliases. Multiple `metadata` blocks are allowed using the structure below. */ metadatas?: outputs.DashboardWidgetTimeseriesDefinitionRequestMetadata[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ networkQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestNetworkQuery; /** * A Boolean indicating whether the request uses the right or left Y-Axis. */ onRightYaxis?: boolean; /** * The process query to use in the widget. */ processQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestProcessQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ profileMetricsQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.DashboardWidgetTimeseriesDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The style of the widget graph. Exactly one `style` block is allowed using the structure below. */ style?: outputs.DashboardWidgetTimeseriesDefinitionRequestStyle; } export interface DashboardWidgetTimeseriesDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetTimeseriesDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardWidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetTimeseriesDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestEventQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestEventQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestEventQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetTimeseriesDefinitionRequestEventQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestEventQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestEventQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestEventQueryGroupBySortQuery; } export interface DashboardWidgetTimeseriesDefinitionRequestEventQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetTimeseriesDefinitionRequestEventQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaStyle; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetTimeseriesDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestMetadata { /** * The expression alias. */ aliasName?: string; /** * The expression name. */ expression: string; } export interface DashboardWidgetTimeseriesDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestNetworkQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery; } export interface DashboardWidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBySortQuery; } export interface DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetTimeseriesDefinitionRequestProfileMetricsQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetTimeseriesDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetTimeseriesDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetTimeseriesDefinitionRequestStyle { /** * Whether to display value labels on the timeseries. */ hasValueLabels?: boolean; /** * The type of lines displayed. Valid values are `dashed`, `dotted`, `solid`. */ lineType?: string; /** * The width of line displayed. Valid values are `normal`, `thick`, `thin`. */ lineWidth?: string; /** * How to order series in timeseries visualizations. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetTimeseriesDefinitionRightYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetTimeseriesDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetTimeseriesDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetTimeseriesDefinitionTimeLive; } export interface DashboardWidgetTimeseriesDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetTimeseriesDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetTimeseriesDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface DashboardWidgetToplistDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetToplistDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.DashboardWidgetToplistDefinitionRequest[]; /** * The style of the widget */ styles?: outputs.DashboardWidgetToplistDefinitionStyle[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetToplistDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetToplistDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetToplistDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.DashboardWidgetToplistDefinitionRequestAuditQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetToplistDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetToplistDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetToplistDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetToplistDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardWidgetToplistDefinitionRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardWidgetToplistDefinitionRequestStyle; } export interface DashboardWidgetToplistDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.DashboardWidgetToplistDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.DashboardWidgetToplistDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.DashboardWidgetToplistDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface DashboardWidgetToplistDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetToplistDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.DashboardWidgetToplistDefinitionRequestAuditQueryGroupBySortQuery; } export interface DashboardWidgetToplistDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetToplistDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface DashboardWidgetToplistDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetToplistDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetToplistDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetToplistDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetToplistDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetToplistDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetToplistDefinitionRequestFormulaStyle; } export interface DashboardWidgetToplistDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetToplistDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetToplistDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetToplistDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetToplistDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetToplistDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetToplistDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetToplistDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetToplistDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetToplistDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetToplistDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetToplistDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetToplistDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetToplistDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetToplistDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetToplistDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetToplistDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetToplistDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetToplistDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetToplistDefinitionRequestSortOrderBy[]; } export interface DashboardWidgetToplistDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetToplistDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetToplistDefinitionRequestSortOrderByGroupSort; } export interface DashboardWidgetToplistDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetToplistDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetToplistDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetToplistDefinitionStyle { /** * The display mode for the top list widget. Use `stacked` or `flat` sub-block. */ displays?: outputs.DashboardWidgetToplistDefinitionStyleDisplay[]; /** * The color palette for the widget. */ palette?: string; /** * The scaling mode for the widget. */ scaling?: string; } export interface DashboardWidgetToplistDefinitionStyleDisplay { /** * Flat display for the top list widget. */ flat: outputs.DashboardWidgetToplistDefinitionStyleDisplayFlat; /** * Stacked display for the top list widget. */ stacked: outputs.DashboardWidgetToplistDefinitionStyleDisplayStacked; /** * Legacy display type for the widget. Valid values are `stacked`, `flat`. **Deprecated.** Use the `stacked` or `flat` block instead. * * @deprecated Use the `stacked` or `flat` block instead. */ type?: string; } export interface DashboardWidgetToplistDefinitionStyleDisplayFlat { } export interface DashboardWidgetToplistDefinitionStyleDisplayStacked { /** * Legend behavior for the stacked top list. Valid values are `automatic`, `inline`, `none`. */ legend?: string; } export interface DashboardWidgetToplistDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetToplistDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetToplistDefinitionTimeLive; } export interface DashboardWidgetToplistDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetToplistDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetTopologyMapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetTopologyMapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (`query` and `requestType` are required within the request). */ requests?: outputs.DashboardWidgetTopologyMapDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetTopologyMapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetTopologyMapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetTopologyMapDefinitionRequest { /** * The query for a Topology request. */ queries?: outputs.DashboardWidgetTopologyMapDefinitionRequestQuery[]; /** * The request type for the Topology request ('topology'). */ requestType: string; } export interface DashboardWidgetTopologyMapDefinitionRequestQuery { /** * The data source for the Topology request. Valid values are `serviceMap`, `dataStreams`. */ dataSource: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * A search string for filtering services. When set, this replaces the `service` field. */ queryString?: string; /** * Name of the service. Leave this empty and use `queryString` instead. */ service: string; } export interface DashboardWidgetTopologyMapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetTopologyMapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetTopologyMapDefinitionTimeLive; } export interface DashboardWidgetTopologyMapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetTopologyMapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetTraceServiceDefinition { /** * The description of the widget. */ description?: string; /** * The number of columns to display. Valid values are `oneColumn`, `twoColumn`, `threeColumn`. */ displayFormat?: string; /** * APM environment. */ env: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * APM service. */ service: string; /** * Whether to show the latency breakdown or not. */ showBreakdown?: boolean; /** * Whether to show the latency distribution or not. */ showDistribution?: boolean; /** * Whether to show the error metrics or not. */ showErrors?: boolean; /** * Whether to show the hits metrics or not */ showHits?: boolean; /** * Whether to show the latency metrics or not. */ showLatency?: boolean; /** * Whether to show the resource list or not. */ showResourceList?: boolean; /** * The size of the widget. Valid values are `small`, `medium`, `large`. */ sizeFormat?: string; /** * APM span name */ spanName: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetTraceServiceDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetTraceServiceDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetTraceServiceDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetTraceServiceDefinitionTimeLive; } export interface DashboardWidgetTraceServiceDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetTraceServiceDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetTreemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetTreemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. */ requests?: outputs.DashboardWidgetTreemapDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetTreemapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetTreemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetTreemapDefinitionRequest { /** * List of formulas that operate on queries. */ formulas?: outputs.DashboardWidgetTreemapDefinitionRequestFormula[]; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.DashboardWidgetTreemapDefinitionRequestQuery[]; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.DashboardWidgetTreemapDefinitionRequestSort; /** * Define style for the widget's request. */ style?: outputs.DashboardWidgetTreemapDefinitionRequestStyle; } export interface DashboardWidgetTreemapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaStyle; } export interface DashboardWidgetTreemapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetTreemapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetTreemapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetTreemapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetTreemapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetTreemapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuery; } export interface DashboardWidgetTreemapDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetTreemapDefinitionRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearch; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetTreemapDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetTreemapDefinitionRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetTreemapDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetTreemapDefinitionRequestSortOrderBy[]; } export interface DashboardWidgetTreemapDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetTreemapDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetTreemapDefinitionRequestSortOrderByGroupSort; } export interface DashboardWidgetTreemapDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetTreemapDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetTreemapDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetTreemapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetTreemapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetTreemapDefinitionTimeLive; } export interface DashboardWidgetTreemapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetTreemapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DashboardWidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface DashboardWidgetWildcardDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.DashboardWidgetWildcardDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the data requests for the widget. */ requests?: outputs.DashboardWidgetWildcardDefinitionRequest[]; /** * The Vega or Vega-Lite specification for custom visualization rendering. */ specification?: outputs.DashboardWidgetWildcardDefinitionSpecification; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.DashboardWidgetWildcardDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface DashboardWidgetWildcardDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface DashboardWidgetWildcardDefinitionRequest { /** * Histogram-mode distribution request (request*type=histogram). */ histogramRequest?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequest; /** * List stream request (response*format=event*list). */ liststreamRequest?: outputs.DashboardWidgetWildcardDefinitionRequestListstreamRequest; /** * Timeseries-formula request (response*format=timeseries). */ timeseriesRequest?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequest; /** * Scalar-formula request (response*format=scalar). Set exactly one of treemap*request / timeseries*request / liststream*request / histogram*request. */ treemapRequest?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequest; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequest { /** * Singular query block for the histogram request. */ histogramQuery: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQuery; /** * Define request for the widget's style. */ style?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestStyle; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQuery { /** * APM metrics query for histogram-mode distribution. */ apmMetricsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryApmMetricsQuery; /** * APM resource stats query for histogram-mode distribution. */ apmResourceStatsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryApmResourceStatsQuery; /** * Event query for histogram-mode distribution. */ eventQuery?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuery; /** * Metric query for histogram-mode distribution. */ metricQuery?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryMetricQuery; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBySort; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestHistogramQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetWildcardDefinitionRequestHistogramRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetWildcardDefinitionRequestListstreamRequest { /** * Widget columns for the list stream request. */ columns: outputs.DashboardWidgetWildcardDefinitionRequestListstreamRequestColumn[]; /** * List stream query for the widget request. */ query: outputs.DashboardWidgetWildcardDefinitionRequestListstreamRequestQuery; } export interface DashboardWidgetWildcardDefinitionRequestListstreamRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface DashboardWidgetWildcardDefinitionRequestListstreamRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestListstreamRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestListstreamRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface DashboardWidgetWildcardDefinitionRequestListstreamRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface DashboardWidgetWildcardDefinitionRequestListstreamRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * How the data points are displayed on the graph. */ displayType?: string; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The controls for sorting the widget. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestStyle; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaStyle; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuery; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSortOrderBy[]; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByGroupSort; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetWildcardDefinitionRequestTimeseriesRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.DashboardWidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.DashboardWidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.DashboardWidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.DashboardWidgetSecurityQuery; /** * The controls for sorting the widget. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestSort; /** * Define request for the widget's style. */ style?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestStyle; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaStyle; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitScale; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCustom; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQuerySloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuery; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQuery { /** * The compute options. */ computes: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBySort; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFieldsSort; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryQuery; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryComputeRollup; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryGroupBySort; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteria; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearch; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryComputeTarget; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryGroupByTarget; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestQueryUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestSortOrderBy[]; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.DashboardWidgetWildcardDefinitionRequestTreemapRequestSortOrderByGroupSort; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface DashboardWidgetWildcardDefinitionRequestTreemapRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface DashboardWidgetWildcardDefinitionSpecification { /** * The Vega or Vega-Lite specification as a JSON string. Use `jsonencode()` to encode the specification. */ contents: string; /** * The type of specification (Vega or Vega-Lite). Valid values are `vega`, `vega-lite`. */ type: string; } export interface DashboardWidgetWildcardDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.DashboardWidgetWildcardDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.DashboardWidgetWildcardDefinitionTimeLive; } export interface DashboardWidgetWildcardDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface DashboardWidgetWildcardDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface DatasetProductFilter { /** * A list of tag-based filters used to restrict access to the product type. Each filter is formatted as `@tag.key:value`. */ filters: string[]; /** * The product type of the dataset. Supported types: `apm`, `rum`, `metrics` (Custom Metrics), `logs`, `sdRepoinfo`, `errorTracking`, `cloudCost`, and `mlObs`. */ product: string; } export interface DeploymentGateRule { /** * Whether the rule is in dry run mode. */ dryRun: boolean; /** * The rule ID. */ id: string; /** * The rule name. Must be unique within the deployment gate. */ name: string; /** * Options for the deployment rule. */ options?: outputs.DeploymentGateRuleOptions; /** * The rule type (e.g., 'faulty*deployment*detection', 'monitor'). */ type: string; } export interface DeploymentGateRuleOptions { /** * Resources to include in faulty deployment detection. Mutually exclusive with excluded_resources. */ allowedResources?: string[]; /** * The duration for the rule. */ duration?: number; /** * Resources to exclude from faulty deployment detection. Mutually exclusive with allowed_resources. */ excludedResources?: string[]; /** * Fail if a matching monitor group is in NO DATA state (API default: true). */ failOnNoData?: boolean; /** * Fail if no monitor groups are found (API default: false). */ failOnNoGroupsFound?: boolean; /** * Specific monitors to evaluate. Mutually exclusive with query. */ monitorIds?: outputs.DeploymentGateRuleOptionsMonitorId[]; /** * A query that selects the monitors to evaluate. Mutually exclusive with monitor_ids. */ query?: string; /** * Seconds to wait after deployment starts before evaluating monitors (API default: 0). */ warmup?: number; } export interface DeploymentGateRuleOptionsMonitorId { /** * Exact group names to evaluate; an empty list evaluates all groups. */ groups: string[]; /** * The monitor's decimal ID. */ id: string; } export interface DerivedMetricDefinition { /** * The formula that combines the queries into the value of the derived metric. */ formula: string; /** * The list of queries referenced by the formula. */ queries: outputs.DerivedMetricDefinitionQuery[]; } export interface DerivedMetricDefinitionQuery { /** * The data source that the query is run against. */ dataSource: string; /** * The name used to reference this query from the formula. */ name: string; /** * The query string executed against the data source. */ query: string; } export interface DowntimeRecurrence { /** * How often to repeat as an integer. For example to repeat every 3 days, select a `type` of `days` and a `period` of `3`. */ period?: number; /** * The RRULE standard for defining recurring events. For example, to have a recurring event on the first day of each month, use `FREQ=MONTHLY;INTERVAL=1`. Most common rrule options from the iCalendar Spec are supported. Attributes specifying the duration in RRULE are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). Only applicable when `type` is `rrule`. */ rrule?: string; /** * One of `days`, `weeks`, `months`, `years`, or `rrule`. */ type: string; /** * The date at which the recurrence should end as a POSIX timestamp. `untilOccurrences` and `untilDate` are mutually exclusive. */ untilDate?: number; /** * How many times the downtime will be rescheduled. `untilOccurrences` and `untilDate` are mutually exclusive. */ untilOccurrences?: number; /** * A list of week days to repeat on. Choose from: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. Only applicable when `type` is `weeks`. First letter must be capitalized. */ weekDays?: string[]; } export interface DowntimeScheduleMonitorIdentifier { /** * ID of the monitor to prevent notifications. */ monitorId?: number; /** * A list of monitor tags. For example, tags that are applied directly to monitors, not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. The resulting downtime applies to monitors that match **all** provided monitor tags. Setting `monitorTags` to `[*]` configures the downtime to mute all monitors for the given scope. */ monitorTags?: string[]; } export interface DowntimeScheduleOneTimeSchedule { /** * ISO-8601 Datetime to end the downtime. Must include a UTC offset of zero. If not provided, the downtime never ends. */ end?: string; /** * ISO-8601 Datetime to start the downtime. Must include a UTC offset of zero. If not provided, the downtime starts the moment it is created. */ start: string; } export interface DowntimeScheduleRecurringSchedule { recurrences?: outputs.DowntimeScheduleRecurringScheduleRecurrence[]; /** * The timezone in which to schedule the downtime. */ timezone: string; } export interface DowntimeScheduleRecurringScheduleRecurrence { /** * The length of the downtime. Must begin with an integer and end with one of 'm', 'h', d', or 'w'. */ duration: string; /** * The `RRULE` standard for defining recurring events. For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api). */ rrule: string; /** * ISO-8601 Datetime to start the downtime. Must not include a UTC offset. If not provided, the downtime starts the moment it is created. */ start: string; } export interface FleetScheduleRule { /** * Days when the schedule may run. Valid values are `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, and `Sun`. */ daysOfWeeks: string[]; /** * Duration of the maintenance window in minutes. Value must be at least 1. */ maintenanceWindowDuration: number; /** * Start of the maintenance window in 24-hour `HH:MM` format. Must use HH:MM format. */ startMaintenanceWindow: string; /** * IANA time zone used to interpret the maintenance window, for example `America/New_York` or `UTC`. */ timezone: string; } export interface GetActionConnectionAnthropic { /** * Configuration for Anthropic API key authentication */ apiKey?: outputs.GetActionConnectionAnthropicApiKey; } export interface GetActionConnectionAnthropicApiKey { /** * Anthropic API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionAnthropicApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionAnthropicApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionAsana { /** * Configuration for Asana access token authentication */ accessToken?: outputs.GetActionConnectionAsanaAccessToken; } export interface GetActionConnectionAsanaAccessToken { /** * Asana access token */ accessToken: string; /** * AWS Secrets Manager reference for this field. */ accessTokenAwsSecretsManager?: outputs.GetActionConnectionAsanaAccessTokenAccessTokenAwsSecretsManager; } export interface GetActionConnectionAsanaAccessTokenAccessTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionAws { /** * Configuration for an assume role AWS connection */ assumeRole?: outputs.GetActionConnectionAwsAssumeRole; } export interface GetActionConnectionAwsAssumeRole { /** * AWS account that the connection is created for */ accountId: string; /** * External ID that specifies which connection can be used to assume the role */ externalId: string; /** * AWS account that will assume the role */ principalId: string; /** * Role to assume */ role: string; } export interface GetActionConnectionAzure { /** * Configuration for Azure tenant authentication */ tenant?: outputs.GetActionConnectionAzureTenant; } export interface GetActionConnectionAzureTenant { /** * Azure application client ID */ appClientId: string; /** * Azure application client secret */ clientSecret: string; /** * Custom scope requested when acquiring an OAuth 2 access token */ customScopes: string; /** * Azure Active Directory tenant ID */ tenantId: string; } export interface GetActionConnectionCircleCi { /** * Configuration for CircleCI API key authentication */ apiKey?: outputs.GetActionConnectionCircleCiApiKey; } export interface GetActionConnectionCircleCiApiKey { /** * CircleCI API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionCircleCiApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionCircleCiApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionClickup { /** * Configuration for ClickUp API key authentication */ apiKey?: outputs.GetActionConnectionClickupApiKey; } export interface GetActionConnectionClickupApiKey { /** * ClickUp API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionClickupApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionClickupApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionCloudflare { /** * Configuration for Cloudflare API token authentication */ apiToken?: outputs.GetActionConnectionCloudflareApiToken; /** * Configuration for Cloudflare global API token authentication */ globalApiToken?: outputs.GetActionConnectionCloudflareGlobalApiToken; } export interface GetActionConnectionCloudflareApiToken { /** * Cloudflare API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionCloudflareApiTokenApiTokenAwsSecretsManager; } export interface GetActionConnectionCloudflareApiTokenApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionCloudflareGlobalApiToken { /** * Email address associated with the Cloudflare account */ authEmail: string; /** * AWS Secrets Manager reference for this field. */ authEmailAwsSecretsManager?: outputs.GetActionConnectionCloudflareGlobalApiTokenAuthEmailAwsSecretsManager; /** * Cloudflare global API key */ globalApiKey: string; /** * AWS Secrets Manager reference for this field. */ globalApiKeyAwsSecretsManager?: outputs.GetActionConnectionCloudflareGlobalApiTokenGlobalApiKeyAwsSecretsManager; } export interface GetActionConnectionCloudflareGlobalApiTokenAuthEmailAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionCloudflareGlobalApiTokenGlobalApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionConfigCat { /** * Configuration for ConfigCat SDK key authentication */ sdkKey?: outputs.GetActionConnectionConfigCatSdkKey; } export interface GetActionConnectionConfigCatSdkKey { /** * ConfigCat Public Management API password */ apiPassword: string; /** * AWS Secrets Manager reference for this field. */ apiPasswordAwsSecretsManager?: outputs.GetActionConnectionConfigCatSdkKeyApiPasswordAwsSecretsManager; /** * ConfigCat Public Management API username */ apiUsername: string; /** * AWS Secrets Manager reference for this field. */ apiUsernameAwsSecretsManager?: outputs.GetActionConnectionConfigCatSdkKeyApiUsernameAwsSecretsManager; /** * ConfigCat SDK key */ sdkKey: string; /** * AWS Secrets Manager reference for this field. */ sdkKeyAwsSecretsManager?: outputs.GetActionConnectionConfigCatSdkKeySdkKeyAwsSecretsManager; } export interface GetActionConnectionConfigCatSdkKeyApiPasswordAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionConfigCatSdkKeyApiUsernameAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionConfigCatSdkKeySdkKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionDatadog { /** * Configuration for Datadog API and application key authentication */ apiKey?: outputs.GetActionConnectionDatadogApiKey; } export interface GetActionConnectionDatadogApiKey { /** * Datadog API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionDatadogApiKeyApiKeyAwsSecretsManager; /** * Datadog application key */ appKey: string; /** * AWS Secrets Manager reference for this field. */ appKeyAwsSecretsManager?: outputs.GetActionConnectionDatadogApiKeyAppKeyAwsSecretsManager; /** * Datadog site data center */ datacenter: string; /** * AWS Secrets Manager reference for this field. */ datacenterAwsSecretsManager?: outputs.GetActionConnectionDatadogApiKeyDatacenterAwsSecretsManager; /** * Custom subdomain used for URLs generated with this connection */ subdomain: string; /** * AWS Secrets Manager reference for this field. */ subdomainAwsSecretsManager?: outputs.GetActionConnectionDatadogApiKeySubdomainAwsSecretsManager; } export interface GetActionConnectionDatadogApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionDatadogApiKeyAppKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionDatadogApiKeyDatacenterAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionDatadogApiKeySubdomainAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionExternalSecretsManager { /** * ID of the AWS connection used to retrieve secrets. */ connectionId: string; /** * AWS region containing the secrets. */ region: string; } export interface GetActionConnectionFastly { /** * Configuration for Fastly API key authentication */ apiKey?: outputs.GetActionConnectionFastlyApiKey; } export interface GetActionConnectionFastlyApiKey { /** * Fastly API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionFastlyApiKeyApiKeyAwsSecretsManager; } export interface GetActionConnectionFastlyApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionFreshservice { /** * Configuration for Freshservice API key authentication */ apiKey?: outputs.GetActionConnectionFreshserviceApiKey; } export interface GetActionConnectionFreshserviceApiKey { /** * Freshservice API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionFreshserviceApiKeyApiKeyAwsSecretsManager; /** * Freshservice domain */ domain: string; /** * AWS Secrets Manager reference for this field. */ domainAwsSecretsManager?: outputs.GetActionConnectionFreshserviceApiKeyDomainAwsSecretsManager; } export interface GetActionConnectionFreshserviceApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionFreshserviceApiKeyDomainAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionGcp { /** * Configuration for Google Cloud service account authentication */ serviceAccount?: outputs.GetActionConnectionGcpServiceAccount; } export interface GetActionConnectionGcpServiceAccount { /** * Google Cloud service account private key */ privateKey: string; /** * AWS Secrets Manager reference for this field. */ privateKeyAwsSecretsManager?: outputs.GetActionConnectionGcpServiceAccountPrivateKeyAwsSecretsManager; /** * Google Cloud service account email */ serviceAccountEmail: string; /** * AWS Secrets Manager reference for this field. */ serviceAccountEmailAwsSecretsManager?: outputs.GetActionConnectionGcpServiceAccountServiceAccountEmailAwsSecretsManager; } export interface GetActionConnectionGcpServiceAccountPrivateKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionGcpServiceAccountServiceAccountEmailAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionGemini { /** * Configuration for Gemini API key authentication */ apiKey?: outputs.GetActionConnectionGeminiApiKey; } export interface GetActionConnectionGeminiApiKey { /** * Gemini API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionGeminiApiKeyApiKeyAwsSecretsManager; } export interface GetActionConnectionGeminiApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionGitlab { /** * Configuration for GitLab API key authentication */ apiKey?: outputs.GetActionConnectionGitlabApiKey; } export interface GetActionConnectionGitlabApiKey { /** * GitLab API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionGitlabApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionGitlabApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionGreyNoise { /** * Configuration for GreyNoise API key authentication */ apiKey?: outputs.GetActionConnectionGreyNoiseApiKey; } export interface GetActionConnectionGreyNoiseApiKey { /** * GreyNoise API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionGreyNoiseApiKeyApiKeyAwsSecretsManager; } export interface GetActionConnectionGreyNoiseApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionHttp { /** * Base HTTP url for the integration */ baseUrl: string; /** * Configuration for an HTTP connection that uses token auth */ tokenAuth?: outputs.GetActionConnectionHttpTokenAuth; } export interface GetActionConnectionHttpTokenAuth { /** * Body for HTTP authentication */ body?: outputs.GetActionConnectionHttpTokenAuthBody; /** * Header for HTTP authentication */ headers?: outputs.GetActionConnectionHttpTokenAuthHeader[]; /** * Token for HTTP authentication */ tokens?: outputs.GetActionConnectionHttpTokenAuthToken[]; /** * URL parameter for HTTP authentication */ urlParameters?: outputs.GetActionConnectionHttpTokenAuthUrlParameter[]; } export interface GetActionConnectionHttpTokenAuthBody { /** * Serialized body content */ content: string; /** * Content type of the body */ contentType: string; } export interface GetActionConnectionHttpTokenAuthHeader { /** * Header name */ name: string; value: string; } export interface GetActionConnectionHttpTokenAuthToken { /** * Token name */ name: string; /** * Token type */ type: string; /** * Token value */ value: string; /** * AWS Secrets Manager reference for this field. */ valueAwsSecretsManager?: outputs.GetActionConnectionHttpTokenAuthTokenValueAwsSecretsManager; } export interface GetActionConnectionHttpTokenAuthTokenValueAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionHttpTokenAuthUrlParameter { /** * URL parameter name */ name: string; /** * URL parameter value */ value: string; } export interface GetActionConnectionLaunchDarkly { /** * Configuration for LaunchDarkly API key authentication */ apiKey?: outputs.GetActionConnectionLaunchDarklyApiKey; } export interface GetActionConnectionLaunchDarklyApiKey { /** * LaunchDarkly API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionLaunchDarklyApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionLaunchDarklyApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionNotion { /** * Configuration for Notion API key authentication */ apiKey?: outputs.GetActionConnectionNotionApiKey; } export interface GetActionConnectionNotionApiKey { /** * Notion API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionNotionApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionNotionApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionOkta { /** * Configuration for Okta API token authentication */ apiToken?: outputs.GetActionConnectionOktaApiToken; } export interface GetActionConnectionOktaApiToken { /** * Okta API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionOktaApiTokenApiTokenAwsSecretsManager; /** * Okta domain */ domain: string; /** * AWS Secrets Manager reference for this field. */ domainAwsSecretsManager?: outputs.GetActionConnectionOktaApiTokenDomainAwsSecretsManager; } export interface GetActionConnectionOktaApiTokenApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionOktaApiTokenDomainAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionOpenai { /** * Configuration for OpenAI API key authentication */ apiKey?: outputs.GetActionConnectionOpenaiApiKey; } export interface GetActionConnectionOpenaiApiKey { /** * OpenAI API token */ apiToken: string; /** * AWS Secrets Manager reference for this field. */ apiTokenAwsSecretsManager?: outputs.GetActionConnectionOpenaiApiKeyApiTokenAwsSecretsManager; } export interface GetActionConnectionOpenaiApiKeyApiTokenAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionServiceNow { /** * Configuration for ServiceNow basic authentication */ basicAuth?: outputs.GetActionConnectionServiceNowBasicAuth; } export interface GetActionConnectionServiceNowBasicAuth { /** * ServiceNow instance */ instance: string; /** * AWS Secrets Manager reference for this field. */ instanceAwsSecretsManager?: outputs.GetActionConnectionServiceNowBasicAuthInstanceAwsSecretsManager; /** * ServiceNow password */ password: string; /** * AWS Secrets Manager reference for this field. */ passwordAwsSecretsManager?: outputs.GetActionConnectionServiceNowBasicAuthPasswordAwsSecretsManager; /** * ServiceNow username */ username: string; /** * AWS Secrets Manager reference for this field. */ usernameAwsSecretsManager?: outputs.GetActionConnectionServiceNowBasicAuthUsernameAwsSecretsManager; } export interface GetActionConnectionServiceNowBasicAuthInstanceAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionServiceNowBasicAuthPasswordAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionServiceNowBasicAuthUsernameAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionSplit { /** * Configuration for Split API key authentication */ apiKey?: outputs.GetActionConnectionSplitApiKey; } export interface GetActionConnectionSplitApiKey { /** * Split API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionSplitApiKeyApiKeyAwsSecretsManager; } export interface GetActionConnectionSplitApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionStatsig { /** * Configuration for Statsig API key authentication */ apiKey?: outputs.GetActionConnectionStatsigApiKey; } export interface GetActionConnectionStatsigApiKey { /** * Statsig API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionStatsigApiKeyApiKeyAwsSecretsManager; } export interface GetActionConnectionStatsigApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetActionConnectionVirusTotal { /** * Configuration for VirusTotal API key authentication */ apiKey?: outputs.GetActionConnectionVirusTotalApiKey; } export interface GetActionConnectionVirusTotalApiKey { /** * VirusTotal API key */ apiKey: string; /** * AWS Secrets Manager reference for this field. */ apiKeyAwsSecretsManager?: outputs.GetActionConnectionVirusTotalApiKeyApiKeyAwsSecretsManager; } export interface GetActionConnectionVirusTotalApiKeyApiKeyAwsSecretsManager { /** * Top-level JSON key to extract. Omit to use the entire secret string. */ key: string; /** * Name or ARN of the secret. */ secretId: string; /** * Secret version ID. Can't be used with `versionStage`. If neither is set, the current version is used. */ versionId: string; /** * Secret version staging label. Can't be used with `versionId`. If neither is set, the current version is used. */ versionStage: string; } export interface GetAwsCurConfigAccountFilters { /** * List of AWS account IDs excluded from cost analysis. */ excludedAccounts: string[]; /** * Whether new member accounts are automatically included in cost analysis. */ includeNewAccounts: boolean; /** * List of AWS account IDs included in cost analysis. */ includedAccounts: string[]; } export interface GetAzureUcConfigActualBillConfig { /** * The name of the configured Azure Export. */ exportName: string; /** * The path where the Azure Export is saved. */ exportPath: string; /** * The name of the storage account where the Azure Export is saved. */ storageAccount: string; /** * The name of the storage container where the Azure Export is saved. */ storageContainer: string; } export interface GetAzureUcConfigAmortizedBillConfig { /** * The name of the configured Azure Export. */ exportName: string; /** * The path where the Azure Export is saved. */ exportPath: string; /** * The name of the storage account where the Azure Export is saved. */ storageAccount: string; /** * The name of the storage container where the Azure Export is saved. */ storageContainer: string; } export interface GetCloudWorkloadSecurityAgentRulesAgentRule { /** * The description of the Agent rule. */ description: string; /** * Whether the Agent rule is enabled. */ enabled: boolean; /** * The SECL expression of the Agent rule. */ expression: string; /** * The id of the Agent rule. */ id: string; /** * The name of the Agent rule. */ name: string; } export interface GetCostBudgetBudgetLine { /** * Map of month (YYYYMM as string) to budget amount. */ amounts: { [key: string]: number; }; /** * Child tag filters for hierarchical budgets (second tag in 'by' clause). */ childTagFilters?: outputs.GetCostBudgetBudgetLineChildTagFilter[]; /** * Parent tag filters for hierarchical budgets (first tag in 'by' clause). */ parentTagFilters?: outputs.GetCostBudgetBudgetLineParentTagFilter[]; /** * Tag filters for non-hierarchical budgets (single tag or no tags). */ tagFilters?: outputs.GetCostBudgetBudgetLineTagFilter[]; } export interface GetCostBudgetBudgetLineChildTagFilter { tagKey: string; tagValue: string; } export interface GetCostBudgetBudgetLineParentTagFilter { tagKey: string; tagValue: string; } export interface GetCostBudgetBudgetLineTagFilter { tagKey: string; tagValue: string; } export interface GetCostBudgetEntry { amount: number; month: number; tagFilters?: outputs.GetCostBudgetEntryTagFilter[]; } export interface GetCostBudgetEntryTagFilter { tagKey: string; tagValue: string; } export interface GetCostCustomForecastEntry { /** * The forecast override amount for the month. */ amount: number; /** * The month the entry applies to, in `YYYYMM` format. */ month: number; /** * Tag filters that scope this entry to a specific budget entry tag combination. */ tagFilters?: outputs.GetCostCustomForecastEntryTagFilter[]; } export interface GetCostCustomForecastEntryTagFilter { tagKey: string; tagValue: string; } export interface GetCsmThreatsAgentRulesAgentRule { actions: outputs.GetCsmThreatsAgentRulesAgentRuleAction[]; description: string; enabled: boolean; expression: string; id: string; name: string; productTags: string[]; } export interface GetCsmThreatsAgentRulesAgentRuleAction { hash: outputs.GetCsmThreatsAgentRulesAgentRuleActionHash; set: outputs.GetCsmThreatsAgentRulesAgentRuleActionSet; } export interface GetCsmThreatsAgentRulesAgentRuleActionHash { field: string; } export interface GetCsmThreatsAgentRulesAgentRuleActionSet { append: boolean; defaultValue: string; expression: string; field: string; inherited: boolean; name: string; scope: string; size: number; ttl: number; value: string; } export interface GetCsmThreatsPoliciesPolicy { description: string; enabled: boolean; hostTagsLists: string[][]; id: string; name: string; tags: string[]; } export interface GetCustomAllocationRuleCostsToAllocate { /** * The condition used to match tags. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition: string; /** * The tag key used in the filter. */ tag: string; /** * The tag value used in the filter (for single-value conditions). */ value: string; /** * The list of tag values used in the filter (for multi-value conditions like `in` or `notIn`). */ values: string[]; } export interface GetCustomAllocationRuleStrategy { allocatedBies?: outputs.GetCustomAllocationRuleStrategyAllocatedBy[]; allocatedByFilters?: outputs.GetCustomAllocationRuleStrategyAllocatedByFilter[]; /** * List of tag keys used to allocate costs. */ allocatedByTagKeys: string[]; basedOnCosts?: outputs.GetCustomAllocationRuleStrategyBasedOnCost[]; basedOnTimeseries?: outputs.GetCustomAllocationRuleStrategyBasedOnTimeseries; evaluateGroupedByFilters?: outputs.GetCustomAllocationRuleStrategyEvaluateGroupedByFilter[]; /** * List of tag keys used to group costs before allocation. */ evaluateGroupedByTagKeys: string[]; /** * The granularity level for cost allocation (`daily` or `monthly`). */ granularity: string; /** * The allocation method. Valid values are `even`, `proportional`, `proportionalTimeseries`, or `percent`. */ method: string; } export interface GetCustomAllocationRuleStrategyAllocatedBy { allocatedTags?: outputs.GetCustomAllocationRuleStrategyAllocatedByAllocatedTag[]; /** * The percentage of costs allocated to this target as a decimal (e.g., 0.33 for 33%). */ percentage: number; } export interface GetCustomAllocationRuleStrategyAllocatedByAllocatedTag { /** * The tag key for cost allocation. */ key: string; /** * The tag value used in the filter (for single-value conditions). */ value: string; } export interface GetCustomAllocationRuleStrategyAllocatedByFilter { /** * The condition used to match tags. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition: string; /** * The tag key used in the filter. */ tag: string; /** * The tag value used in the filter (for single-value conditions). */ value: string; /** * The list of tag values used in the filter (for multi-value conditions like `in` or `notIn`). */ values: string[]; } export interface GetCustomAllocationRuleStrategyBasedOnCost { /** * The condition used to match tags. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition: string; /** * The tag key used in the filter. */ tag: string; /** * The tag value used in the filter (for single-value conditions). */ value: string; /** * The list of tag values used in the filter (for multi-value conditions like `in` or `notIn`). */ values: string[]; } export interface GetCustomAllocationRuleStrategyBasedOnTimeseries { /** * The timeseries query that determines the allocation proportions, encoded as a JSON object. Set when `method` is `proportionalTimeseries`. */ json: string; } export interface GetCustomAllocationRuleStrategyEvaluateGroupedByFilter { /** * The condition used to match tags. Valid values are `=`, `!=`, `is`, `is not`, `like`, `in`, `not in`. */ condition: string; /** * The tag key used in the filter. */ tag: string; /** * The tag value used in the filter (for single-value conditions). */ value: string; /** * The list of tag values used in the filter (for multi-value conditions like `in` or `notIn`). */ values: string[]; } export interface GetFleetScheduleNotificationRule { /** * Notification handles, such as Slack channels or PagerDuty integrations. */ handles: string[]; /** * Tags associated with the notification rule. */ tags: string[]; } export interface GetFleetScheduleRule { /** * Days when the schedule may run. */ daysOfWeeks: string[]; /** * Interval between schedule runs in weeks. */ interval: number; /** * Duration of the maintenance window in minutes. */ maintenanceWindowDuration: number; /** * Start of the maintenance window in canonical 24-hour `HH:MM` format. */ startMaintenanceWindow: string; /** * IANA time zone used to interpret the maintenance window. */ timezone: string; } export interface GetFleetSchedulesSchedule { /** * RFC 3339 timestamp when the schedule was created. */ createdAt: string; /** * User handle of the person who created the schedule. */ createdBy: string; /** * Unique identifier of the Fleet Automation schedule. */ id: string; /** * Whether this is the organization's default schedule. */ isDefault: boolean; /** * Human-readable name of the schedule. */ name: string; /** * RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed. */ nextRun: string; /** * Notification configuration attached to the schedule, when available. */ notificationRule: outputs.GetFleetSchedulesScheduleNotificationRule; /** * Datadog host query used to select the Agent upgrade targets. */ query: string; /** * Recurrence and maintenance-window configuration for the schedule. */ rule: outputs.GetFleetSchedulesScheduleRule; /** * Whether the schedule is `active` or `inactive`. */ status: string; /** * RFC 3339 timestamp when the schedule was last updated. */ updatedAt: string; /** * User handle of the person who last updated the schedule. */ updatedBy: string; /** * Number of major Agent versions behind the latest version targeted by the schedule. */ versionToLatest: number; } export interface GetFleetSchedulesScheduleNotificationRule { /** * Notification handles, such as Slack channels or PagerDuty integrations. */ handles: string[]; /** * Tags associated with the notification rule. */ tags: string[]; } export interface GetFleetSchedulesScheduleRule { /** * Days when the schedule may run. */ daysOfWeeks: string[]; /** * Interval between schedule runs in weeks. */ interval: number; /** * Duration of the maintenance window in minutes. */ maintenanceWindowDuration: number; /** * Start of the maintenance window in canonical 24-hour `HH:MM` format. */ startMaintenanceWindow: string; /** * IANA time zone used to interpret the maintenance window. */ timezone: string; } export interface GetHostsHostList { aliases: string[]; apps: string[]; awsName: string; hostName: string; id: number; isMuted: boolean; lastReportedTime: number; meta: outputs.GetHostsHostListMeta; metrics: outputs.GetHostsHostListMetrics; muteTimeout: number; name: string; sources: string[]; tagsBySource: { [key: string]: string[]; }; up: boolean; } export interface GetHostsHostListMeta { agentVersion: string; cpuCores: number; gohai: string; machine: string; platform: string; processor: string; pythonVersion: string; socketFqdn: string; socketHostname: string; } export interface GetHostsHostListMetrics { cpu: number; iowait: number; load: number; } export interface GetIncidentNotificationRuleCondition { /** * The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported. */ field: string; /** * The value(s) to compare against. */ values: string[]; } export interface GetIncidentTypeConfiguration { /** * Whether incidents of this type can be deleted. */ allowIncidentDeletion: boolean; /** * Whether users can manually run a workflow from an incident of this type. */ allowWorkflows: boolean; /** * An optional message shown to users when they declare an incident of this type. */ createMessage: string; /** * Whether responders can edit incident timestamps for incidents of this type. */ editableTimestamps: boolean; /** * Whether responders can create private incidents of this type. */ privateIncidents: boolean; /** * Whether the private toggle is enabled by default in the incident creation modal for this type. */ privateIncidentsByDefault: boolean; /** * The source used to derive the incident slug. When set to `servicenow`, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed. */ slugSource: string; /** * Whether test incidents of this type can be created. */ testIncidents: boolean; } export interface GetLogsIndexesLogsIndex { /** * The number of log events you can send in this index per day before you are rate-limited. */ dailyLimit: number; /** * Object containing options to override the default daily limit reset time. */ dailyLimitResets: outputs.GetLogsIndexesLogsIndexDailyLimitReset[]; /** * The percentage threshold of the daily quota at which a Datadog warning event is generated. */ dailyLimitWarningThresholdPercentage: number; /** * List of exclusion filters. */ exclusionFilters: outputs.GetLogsIndexesLogsIndexExclusionFilter[]; /** * Logs filter */ filters: outputs.GetLogsIndexesLogsIndexFilter[]; /** * The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. */ flexRetentionDays: number; /** * The name of the index. */ name: string; /** * The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. */ retentionDays: number; /** * A list of tags for this index. Tags are in `key:value` format. */ tags: string[]; } export interface GetLogsIndexesLogsIndexDailyLimitReset { /** * String in `HH:00` format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). */ resetTime: string; /** * String in `(-|+)HH:00` format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive). */ resetUtcOffset: string; } export interface GetLogsIndexesLogsIndexExclusionFilter { filters?: outputs.GetLogsIndexesLogsIndexExclusionFilterFilter[]; /** * A boolean stating if the exclusion is active or not. */ isEnabled: boolean; /** * The name of the exclusion filter. */ name: string; } export interface GetLogsIndexesLogsIndexExclusionFilterFilter { /** * Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter. */ query: string; /** * The attribute to use for sampling logs for this exclusion filter. */ sampleAttribute: string; /** * The fraction of logs excluded by the exclusion filter, when active. */ sampleRate: number; } export interface GetLogsIndexesLogsIndexFilter { /** * Logs filter criteria. Only logs matching this filter criteria are considered for this index. */ query: string; } export interface GetLogsPipelinesLogsPipeline { /** * Description of the pipeline */ description: string; /** * Pipelines filter */ filters: outputs.GetLogsPipelinesLogsPipelineFilter[]; /** * ID of the pipeline */ id: string; /** * Whether or not the pipeline is enabled. */ isEnabled: boolean; /** * Whether or not the pipeline can be edited. */ isReadOnly: boolean; /** * The name of the pipeline. */ name: string; /** * Tags of the pipeline */ tags: string[]; /** * Whether or not the pipeline can be edited. */ type: string; } export interface GetLogsPipelinesLogsPipelineFilter { /** * Pipeline filter criteria. */ query: string; } export interface GetMetricActiveTagsAndAggregationsActiveAggregation { space: string; time: string; } export interface GetMonitorConfigPoliciesMonitorConfigPolicy { /** * Config for a downtime duration policy. Only set if `policyType` is `downtime`. */ downtimePolicy: outputs.GetMonitorConfigPoliciesMonitorConfigPolicyDowntimePolicy; /** * ID of the monitor config policy */ id: string; /** * The monitor config policy type */ policyType: string; /** * Config for a tag policy. Only set if `policyType` is `tag`. */ tagPolicy: outputs.GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy; } export interface GetMonitorConfigPoliciesMonitorConfigPolicyDowntimePolicy { /** * The maximum allowed downtime duration, in milliseconds */ maxDurationMs: number; } export interface GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy { /** * The key of the tag */ tagKey: string; /** * If a tag key is required for monitor creation */ tagKeyRequired: boolean; /** * Valid values for the tag */ validTagValues: string[]; } export interface GetMonitorMonitorThreshold { critical: string; criticalRecovery: string; ok: string; unknown: string; warning: string; warningRecovery: string; } export interface GetMonitorMonitorThresholdWindow { recoveryWindow: string; triggerWindow: string; } export interface GetMonitorSchedulingOption { /** * Configuration options for the custom schedules. If `start` is omitted, the monitor creation time will be used. */ customSchedules: outputs.GetMonitorSchedulingOptionCustomSchedule[]; /** * Configuration options for the evaluation window. If `hourStarts` is set, no other fields may be set. Otherwise, `dayStarts` and `monthStarts` must be set together. */ evaluationWindows: outputs.GetMonitorSchedulingOptionEvaluationWindow[]; } export interface GetMonitorSchedulingOptionCustomSchedule { /** * A list of recurrence definitions. Length must be 1. */ recurrences: outputs.GetMonitorSchedulingOptionCustomScheduleRecurrence[]; } export interface GetMonitorSchedulingOptionCustomScheduleRecurrence { /** * Must be a valid rrule. See api docs for supported fields */ rrule: string; /** * Time to start recurrence cycle. Similar to DTSTART. Expected format 'YYYY-MM-DDThh:mm:ss' */ start: string; /** * 'tz database' format. ex: 'America/New_York' or UTC */ timezone: string; } export interface GetMonitorSchedulingOptionEvaluationWindow { /** * The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in `HH:mm` format. */ dayStarts: string; /** * The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59. */ hourStarts: number; /** * The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1. */ monthStarts: number; /** * The timezone for the cumulative evaluation window start time. */ timezone: string; } export interface GetMonitorsMonitor { /** * ID of the monitor */ id: number; /** * Name of the monitor */ name: string; /** * Type of the monitor. */ type: string; } export interface GetOrgGroupMembershipsMembership { id: string; orgGroupId: string; orgName: string; orgSite: string; orgUuid: string; } export interface GetOrgGroupPoliciesPolicy { content: string; enforcementTier: string; id: string; orgGroupId: string; policyName: string; policyType: string; } export interface GetOrgGroupPolicyOverridesOverride { content: string; id: string; orgGroupId: string; orgSite: string; orgUuid: string; policyId: string; } export interface GetOrgGroupsGroup { id: string; name: string; ownerOrgSite: string; ownerOrgUuid: string; } export interface GetOrganizationSettingsSetting { /** * Whether or not the organization users can share widgets outside of Datadog. */ privateWidgetShare: boolean; /** * The access role of the user. Options are `st` (standard user), `adm` (admin user), or `ro` (read-only user). Allowed enum values: `st`, `adm`, `ro`, `ERROR`. */ samlAutocreateAccessRole: string; /** * List of domains where the SAML automated user creation is enabled. */ samlAutocreateUsersDomains?: outputs.GetOrganizationSettingsSettingSamlAutocreateUsersDomain[]; /** * Whether or not SAML can be enabled for this organization. */ samlCanBeEnabled: boolean; /** * Identity provider endpoint for SAML authentication. */ samlIdpEndpoint: string; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ samlIdpInitiatedLogins?: outputs.GetOrganizationSettingsSettingSamlIdpInitiatedLogin[]; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ samlIdpMetadataUploaded: boolean; /** * URL for SAML logging. */ samlLoginUrl: string; /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. */ samlStrictModes?: outputs.GetOrganizationSettingsSettingSamlStrictMode[]; /** * SAML properties. */ samls?: outputs.GetOrganizationSettingsSettingSaml[]; } export interface GetOrganizationSettingsSettingSaml { /** * Whether or not SAML is enabled for this organization. */ enabled: boolean; } export interface GetOrganizationSettingsSettingSamlAutocreateUsersDomain { /** * List of domains where the SAML automated user creation is enabled. */ domains: string[]; /** * Whether or not the automated user creation based on SAML domain is enabled. */ enabled: boolean; } export interface GetOrganizationSettingsSettingSamlIdpInitiatedLogin { /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ enabled: boolean; } export interface GetOrganizationSettingsSettingSamlStrictMode { /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. */ enabled: boolean; } export interface GetReferenceTableFileMetadata { /** * Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure). */ accessDetails?: outputs.GetReferenceTableFileMetadataAccessDetails; /** * Error message from the last sync attempt, if any. */ errorMessage: string; /** * The number of rows that failed to sync. */ errorRowCount: number; /** * The type of error that occurred during file processing. Only present for cloud storage sources. */ errorType: string; /** * Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure). */ syncEnabled: boolean; } export interface GetReferenceTableFileMetadataAccessDetails { /** * AWS S3 access configuration. */ awsDetail?: outputs.GetReferenceTableFileMetadataAccessDetailsAwsDetail; /** * Azure Blob Storage access configuration. */ azureDetail?: outputs.GetReferenceTableFileMetadataAccessDetailsAzureDetail; /** * Google Cloud Storage access configuration. */ gcpDetail?: outputs.GetReferenceTableFileMetadataAccessDetailsGcpDetail; } export interface GetReferenceTableFileMetadataAccessDetailsAwsDetail { /** * The ID of the AWS account. */ awsAccountId: string; /** * The name of the AWS S3 bucket. */ awsBucketName: string; /** * The relative file path from the AWS S3 bucket root to the CSV file. */ filePath: string; } export interface GetReferenceTableFileMetadataAccessDetailsAzureDetail { /** * The Azure client ID (application ID). */ azureClientId: string; /** * The name of the Azure container. */ azureContainerName: string; /** * The name of the Azure storage account. */ azureStorageAccountName: string; /** * The ID of the Azure tenant. */ azureTenantId: string; /** * The relative file path from the Azure container root to the CSV file. */ filePath: string; } export interface GetReferenceTableFileMetadataAccessDetailsGcpDetail { /** * The relative file path from the GCS bucket root to the CSV file. */ filePath: string; /** * The name of the GCP bucket. */ gcpBucketName: string; /** * The ID of the GCP project. */ gcpProjectId: string; /** * The email of the GCP service account used to access the bucket. */ gcpServiceAccountEmail: string; } export interface GetReferenceTableRowsRow { /** * The primary key value of the row. */ id: string; /** * Map of field names to row values. Non-null values are returned as strings. API `null` values are represented as Terraform `null`. Empty strings are returned as `""`. */ values: { [key: string]: string; }; } export interface GetReferenceTableSchema { /** * List of fields in the table schema. */ fields?: outputs.GetReferenceTableSchemaField[]; /** * List of field names that serve as primary keys for the table. */ primaryKeys: string[]; } export interface GetReferenceTableSchemaField { /** * The name of the field. */ name: string; /** * The data type of the field (e.g., STRING, INT32). */ type: string; } export interface GetRolePermissionsPermission { name: string; permissionId: string; } export interface GetRoleUsersRoleUser { roleId: string; userId: string; } export interface GetRolesRole { /** * ID of the Datadog role */ id: string; /** * Name of the Datadog role */ name: string; /** * Number of users that have this role. */ userCount: number; } export interface GetRumRetentionFiltersRetentionFilter { enabled: boolean; eventType: string; id: string; name: string; query: string; sampleRate: number; } export interface GetSecurityMonitoringCriticalAssetsCriticalAsset { description: string; enabled: boolean; id: string; query: string; ruleQuery: string; severity: string; tags: string[]; } export interface GetSecurityMonitoringFiltersFilter { /** * Exclusion filters to exclude some logs from the security filter. */ exclusionFilters?: outputs.GetSecurityMonitoringFiltersFilterExclusionFilter[]; /** * The filtered data type. */ filteredDataType?: string; /** * Whether the security filter is enabled. */ isEnabled: boolean; /** * The name of the security filter. */ name: string; /** * The query of the security filter. */ query: string; /** * The version of the security filter. */ version: number; } export interface GetSecurityMonitoringFiltersFilterExclusionFilter { /** * Exclusion filter name. */ name: string; /** * Exclusion filter query. Logs that match this query are excluded from the security filter. */ query: string; } export interface GetSecurityMonitoringRulesRule { /** * One or more calculated fields. Available only for scheduled rules (in other words, when `schedulingOptions` is defined). */ calculatedFields?: outputs.GetSecurityMonitoringRulesRuleCalculatedField[]; /** * Cases for generating signals. */ cases?: outputs.GetSecurityMonitoringRulesRuleCase[]; /** * Whether the rule is enabled. */ enabled?: boolean; /** * Additional queries to filter matched events before they are processed. **Note**: This field is deprecated for log detection, signal correlation, and workload security rules. */ filters?: outputs.GetSecurityMonitoringRulesRuleFilter[]; /** * Additional grouping to perform on top of the query grouping. */ groupSignalsBies?: string[]; /** * Whether the notifications include the triggering group-by values in their title. */ hasExtendedTitle?: boolean; /** * Message for generated signals. */ message: string; /** * The name of the rule. */ name: string; /** * Options on rules. */ options?: outputs.GetSecurityMonitoringRulesRuleOptions; /** * Queries for selecting logs which are part of the rule. */ queries?: outputs.GetSecurityMonitoringRulesRuleQuery[]; /** * Reference tables for filtering query results. */ referenceTables?: outputs.GetSecurityMonitoringRulesRuleReferenceTable[]; /** * Options for scheduled rules. When this field is present, the rule runs based on the schedule. When absent, it runs in real time on ingested logs. */ schedulingOptions?: outputs.GetSecurityMonitoringRulesRuleSchedulingOptions; /** * Queries for selecting logs which are part of the rule. */ signalQueries?: outputs.GetSecurityMonitoringRulesRuleSignalQuery[]; /** * Tags for generated signals. Note: if default tags are present at provider level, they will be added to this resource. */ tags: string[]; /** * Cases for generating signals for third-party rules. Only required and accepted for third-party rules */ thirdPartyCases?: outputs.GetSecurityMonitoringRulesRuleThirdPartyCase[]; /** * The rule type. */ type?: string; } export interface GetSecurityMonitoringRulesRuleCalculatedField { /** * Expression. */ expression: string; /** * Field name. */ name: string; } export interface GetSecurityMonitoringRulesRuleCase { /** * Action to perform when the case trigger */ actions?: outputs.GetSecurityMonitoringRulesRuleCaseAction[]; /** * A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries. */ condition?: string; /** * Name of the case. */ name?: string; /** * Notification targets for each rule case. */ notifications?: string[]; /** * Severity of the Security Signal. */ status: string; } export interface GetSecurityMonitoringRulesRuleCaseAction { /** * Options for the action. */ options?: outputs.GetSecurityMonitoringRulesRuleCaseActionOptions; /** * Type of action to perform when the case triggers. */ type: string; } export interface GetSecurityMonitoringRulesRuleCaseActionOptions { /** * Duration of the action in seconds. */ duration?: number; } export interface GetSecurityMonitoringRulesRuleFilter { /** * The type of filtering action. */ action: string; /** * Query for selecting logs to apply the filtering action. */ query: string; } export interface GetSecurityMonitoringRulesRuleOptions { /** * Options for rules using the anomaly detection method. */ anomalyDetectionOptions?: outputs.GetSecurityMonitoringRulesRuleOptionsAnomalyDetectionOptions; /** * If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce noise. The decrement is applied when the environment tag of the signal starts with `staging`, `test`, or `dev`. Only available when the rule type is `logDetection`. */ decreaseCriticalityBasedOnEnv?: boolean; /** * The detection method. */ detectionMethod?: string; /** * A time window is specified to match when at least one of the cases matches true. This is a sliding window and evaluates in real time. */ evaluationWindow?: number; /** * Options for rules using the impossible travel detection method. */ impossibleTravelOptions?: outputs.GetSecurityMonitoringRulesRuleOptionsImpossibleTravelOptions; /** * Once a signal is generated, the signal will remain “open” if a case is matched at least once within this keep alive window (in seconds). */ keepAlive?: number; /** * A signal will “close” regardless of the query being matched once the time exceeds the maximum duration (in seconds). This time is calculated from the first seen timestamp. */ maxSignalDuration?: number; /** * New value rules specific options. */ newValueOptions?: outputs.GetSecurityMonitoringRulesRuleOptionsNewValueOptions; /** * Options for rules using the sequence detection method. */ sequenceDetectionOptions?: outputs.GetSecurityMonitoringRulesRuleOptionsSequenceDetectionOptions; /** * Options for rules using the third-party detection method. */ thirdPartyRuleOptions?: outputs.GetSecurityMonitoringRulesRuleOptionsThirdPartyRuleOptions; } export interface GetSecurityMonitoringRulesRuleOptionsAnomalyDetectionOptions { /** * Duration in seconds of the time buckets used to aggregate events matched by the rule. Valid values are 300, 600, 900, 1800, 3600, 10800. */ bucketDuration?: number; /** * An optional parameter that sets how permissive anomaly detection is. Higher values require higher deviations before triggering a signal. Valid values are 1, 2, 3, 4, 5. */ detectionTolerance?: number; /** * When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time. */ instantaneousBaseline?: boolean; /** * Learning duration in hours. Anomaly detection waits for at least this amount of historical data before it starts evaluating. Valid values are 1, 6, 12, 24, 48, 168, 336. */ learningDuration?: number; /** * An optional override baseline to apply while the rule is in the learning period. Must be greater than or equal to 0. */ learningPeriodBaseline?: number; } export interface GetSecurityMonitoringRulesRuleOptionsImpossibleTravelOptions { /** * If true, signals are suppressed for the first 24 hours. During that time, Datadog learns the user's regular access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access. */ baselineUserLocations?: boolean; /** * The duration in days during which Datadog learns a user's access locations before generating signals. Only applicable when `baselineUserLocations` is `true`. Defaults to `1` if unset. */ baselineUserLocationsDuration: number; } export interface GetSecurityMonitoringRulesRuleOptionsNewValueOptions { /** * The duration in days after which a learned value is forgotten. Accepted values are between 1 and 30. */ forgetAfter: number; /** * When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time. */ instantaneousBaseline?: boolean; /** * The duration in days during which values are learned, and after which signals will be generated for values that weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. Accepted values are between 0 and 30. */ learningDuration?: number; /** * The learning method used to determine when signals should be generated for values that weren't learned. */ learningMethod?: string; /** * A number of occurrences after which signals are generated for values that weren't learned. */ learningThreshold?: number; } export interface GetSecurityMonitoringRulesRuleOptionsSequenceDetectionOptions { /** * Edges of the step graph. */ stepTransitions?: outputs.GetSecurityMonitoringRulesRuleOptionsSequenceDetectionOptionsStepTransition[]; /** * Sequence steps. */ steps?: outputs.GetSecurityMonitoringRulesRuleOptionsSequenceDetectionOptionsStep[]; } export interface GetSecurityMonitoringRulesRuleOptionsSequenceDetectionOptionsStep { /** * Condition for the step to match. */ condition: string; /** * Evaluation window for the step. */ evaluationWindow?: number; /** * Unique name of the step. */ name: string; } export interface GetSecurityMonitoringRulesRuleOptionsSequenceDetectionOptionsStepTransition { /** * Child step name. */ child: string; /** * Maximum time allowed to transition from parent to child. */ evaluationWindow?: number; /** * Parent step name. */ parent: string; } export interface GetSecurityMonitoringRulesRuleOptionsThirdPartyRuleOptions { /** * Notification targets for the default rule case, when none of the third-party cases match. */ defaultNotifications?: string[]; /** * Severity of the default rule case, when none of the third-party cases match. */ defaultStatus: string; /** * Queries to be combined with third-party case queries. Each of them can have different group by fields, to aggregate differently based on the type of alert. */ rootQueries: outputs.GetSecurityMonitoringRulesRuleOptionsThirdPartyRuleOptionsRootQuery[]; /** * A template for the signal title; if omitted, the title is generated based on the case name. */ signalTitleTemplate?: string; } export interface GetSecurityMonitoringRulesRuleOptionsThirdPartyRuleOptionsRootQuery { /** * Fields to group by. If empty, each log triggers a signal. */ groupByFields?: string[]; /** * Query to filter logs. */ query: string; } export interface GetSecurityMonitoringRulesRuleQuery { /** * **Deprecated**. It won't be applied anymore. * * @deprecated `agentRule` has been deprecated in favor of new Agent Rule resource. */ agentRules?: outputs.GetSecurityMonitoringRulesRuleQueryAgentRule[]; /** * The aggregation type. For Signal Correlation rules, it must be event_count. */ aggregation?: string; /** * Source of events. */ dataSource?: string; /** * Field for which the cardinality is measured. Sent as an array. */ distinctFields?: string[]; /** * Fields to group by. */ groupByFields?: string[]; /** * When false, events without a group-by value are ignored by the rule. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values. */ hasOptionalGroupByFields?: boolean; /** * List of indexes to run the query on when the data source is `logs`. Supports only one element. Used only for scheduled rules (in other words, when `schedulingOptions` is defined). */ indexes?: string[]; /** * The target field to aggregate over when using the `sum`, `max`, or `geoData` aggregations. * * @deprecated Configure `metrics` instead. This attribute will be removed in the next major version of the provider. */ metric?: string; /** * Group of target fields to aggregate over when using the `sum`, `max`, `geoData`, or `newValue` aggregations. The `sum`, `max`, and `geoData` aggregations only accept one value in this list, whereas the `newValue` aggregation accepts up to five values. */ metrics: string[]; /** * Name of the query. Not compatible with `newValue` aggregations. */ name?: string; /** * Query to run on logs. */ query: string; } export interface GetSecurityMonitoringRulesRuleQueryAgentRule { /** * **Deprecated**. It won't be applied anymore. */ agentRuleId: string; /** * **Deprecated**. It won't be applied anymore. */ expression: string; } export interface GetSecurityMonitoringRulesRuleReferenceTable { /** * Whether to include or exclude logs that match the reference table. */ checkPresence: boolean; /** * The name of the column in the reference table. */ columnName: string; /** * The field in the log that should be matched against the reference table. */ logFieldPath: string; /** * The name of the query to filter. */ ruleQueryName: string; /** * The name of the reference table. */ tableName: string; } export interface GetSecurityMonitoringRulesRuleSchedulingOptions { /** * Schedule for the rule queries, written in RRULE syntax. See [RFC](https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html) for syntax reference. */ rrule: string; /** * Start date for the schedule, in ISO 8601 format without timezone. */ start: string; /** * Time zone of the start date, in the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format. */ timezone: string; } export interface GetSecurityMonitoringRulesRuleSignalQuery { /** * The aggregation type. For Signal Correlation rules, it must be event_count. */ aggregation?: string; /** * Fields to correlate by. */ correlatedByFields?: string[]; /** * Index of the rule query used to retrieve the correlated field. An empty string applies correlation on the non-projected per query attributes of the rule. */ correlatedQueryIndex?: string; /** * Default Rule ID of the signal to correlate. This value is READ-ONLY. */ defaultRuleId?: string; /** * Name of the query. Not compatible with `newValue` aggregations. */ name?: string; /** * Rule ID of the signal to correlate. */ ruleId: string; } export interface GetSecurityMonitoringRulesRuleThirdPartyCase { /** * Name of the case. */ name?: string; /** * Notification targets for each rule case. */ notifications?: string[]; /** * A query to associate a third-party event to this case. */ query?: string; /** * Severity of the Security Signal. */ status: string; } export interface GetSecurityMonitoringSuppressionsSuppression { dataExclusionQuery: string; description: string; enabled: boolean; expirationDate: string; id: string; name: string; ruleQuery: string; startDate: string; suppressionQuery: string; tags: string[]; } export interface GetServiceLevelObjectiveQuery { /** * The sum of the `total` events. */ denominator: string; /** * The sum of all the `good` events. */ numerator: string; } export interface GetServiceLevelObjectivesSlo { /** * ID of the Datadog service level objective */ id: string; /** * Name of the Datadog service level objective */ name: string; /** * The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API [documentation page](https://docs.datadoghq.com/api/v1/service-level-objectives/#create-a-slo-object). Available options to choose from are: `metric` and `monitor`. */ type: string; } export interface GetSoftwareCatalogEntity { displayName: string; id: string; kind: string; name: string; namespace: string; owner: string; tags: string[]; } export interface GetStatusPageComponentComponent { /** * The ID of the sub-component. */ id: string; /** * The name of the sub-component. */ name: string; /** * The position of the sub-component within the group. */ position: number; /** * The current status of the sub-component. */ status: string; /** * The type of the sub-component. */ type: string; } export interface GetStatusPageComponentsComponent { groupId: string; id: string; name: string; position: number; type: string; } export interface GetStatusPageDegradationTemplateComponentsAffected { /** * The ID of the affected component. */ id: string; /** * The name of the affected component. */ name: string; /** * The pre-filled status for this component. */ status: string; } export interface GetStatusPageDegradationTemplateUpdate { /** * The pre-filled message for this update. */ message: string; /** * The pre-filled degradation status for this update. */ status: string; } export interface GetStatusPageDegradationTemplatesDegradationTemplate { degradationTitle: string; id: string; name: string; } export interface GetStatusPageMaintenanceTemplatesMaintenanceTemplate { id: string; maintenanceTitle: string; name: string; } export interface GetStatusPagesStatusPage { /** * The subdomain prefix used to build the status page's URL. */ domainPrefix: string; /** * Whether the status page is published. */ enabled: boolean; /** * The ID of the status page. */ id: string; /** * The name of the status page. */ name: string; /** * The URL of the status page. */ pageUrl: string; /** * Whether the RSS feed is enabled for the status page. */ rssFeedEnabled: boolean; /** * The type of the status page. */ type: string; /** * The layout of components on the status page. Possible values are: list, grid. */ visualizationLayout: string; /** * How component statuses are visualized on the page. */ visualizationType: string; } export interface GetSyntheticsTestMobileOptionsList { /** * Whether the application crashing is considered a failure. */ allowApplicationCrash: boolean; /** * Restriction policy bindings for the Synthetic mobile test. */ bindings: outputs.GetSyntheticsTestMobileOptionsListBinding[]; /** * CI/CD options for a Synthetic test. */ cis: outputs.GetSyntheticsTestMobileOptionsListCi[]; /** * Default timeout for steps in the test (in seconds). */ defaultStepTimeout: number; /** * Array with the different device IDs used to run the test. */ deviceIds: string[]; /** * Whether to disable automatically accepting alerts during the test. */ disableAutoAcceptAlert: boolean; /** * Minimum amount of time in failure required to trigger an alert (in seconds). */ minFailureDuration: number; /** * Mobile application to run the test against. */ mobileApplications: outputs.GetSyntheticsTestMobileOptionsListMobileApplication[]; /** * The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. */ monitorName: string; /** * Object containing the options for a Synthetic test as a monitor (for example, renotification). */ monitorOptions: outputs.GetSyntheticsTestMobileOptionsListMonitorOption[]; /** * Integer from 1 (high) to 5 (low) indicating alert severity. */ monitorPriority: number; /** * Prevents saving screenshots of the steps. */ noScreenshot: boolean; /** * A list of role identifiers pulled from the Roles API to restrict read and write access. Included for parity with the `datadog.SyntheticsTest` resource. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles: string[]; /** * Object describing the retry strategy to apply to a Synthetic test. */ retries: outputs.GetSyntheticsTestMobileOptionsListRetry[]; /** * Object containing timeframes and timezone used for advanced scheduling. */ schedulings: outputs.GetSyntheticsTestMobileOptionsListScheduling[]; /** * How often the test should run (in seconds). */ tickEvery: number; } export interface GetSyntheticsTestMobileOptionsListBinding { /** * List of principals for the binding. */ principals: string[]; /** * The relation restriction for the binding. */ relation: string; } export interface GetSyntheticsTestMobileOptionsListCi { /** * Execution rule for a Synthetics test. */ executionRule: string; } export interface GetSyntheticsTestMobileOptionsListMobileApplication { /** * The ID of the mobile application. */ applicationId: string; /** * The reference ID of the mobile application. */ referenceId: string; /** * The reference type of the mobile application. */ referenceType: string; } export interface GetSyntheticsTestMobileOptionsListMonitorOption { /** * A message to include with a re-notification. */ escalationMessage: string; /** * The name of the preset for the notification for the monitor. */ notificationPresetName: string; /** * Specify a renotification frequency in minutes. */ renotifyInterval: number; /** * The number of times a monitor renotifies. It can only be set if `renotifyInterval` is set. */ renotifyOccurrences: number; } export interface GetSyntheticsTestMobileOptionsListRetry { /** * Number of retries needed to consider a location as failed before sending a notification alert. */ count: number; /** * Interval between a failed test and the next retry in milliseconds. */ interval: number; } export interface GetSyntheticsTestMobileOptionsListScheduling { /** * Array containing objects describing the scheduling pattern to apply to each day. */ timeframes: outputs.GetSyntheticsTestMobileOptionsListSchedulingTimeframe[]; /** * Timezone in which the timeframe is based. */ timezone: string; } export interface GetSyntheticsTestMobileOptionsListSchedulingTimeframe { /** * Number representing the day of the week. */ day: number; /** * The hour of the day on which scheduling starts. */ from: string; /** * The hour of the day on which scheduling ends. */ to: string; } export interface GetSyntheticsTestOptionsList { /** * For SSL tests, whether or not the test should allow self signed certificates. */ acceptSelfSigned: boolean; /** * Allows loading insecure content for a request in an API test or in a multistep API test step. */ allowInsecure: boolean; /** * Whether Bits AI automatically investigates alerts from the test monitor. */ bitsAiAutoInvestigate: boolean; /** * Blocked URL patterns. Requests made to URLs matching any of the patterns listed here will be blocked. */ blockedRequestPatterns: string[]; /** * Capture HTTP request/response headers and bodies for Fetch/XHR calls made during browser tests. */ captureNetworkPayloads: boolean; /** * For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP. */ checkCertificateRevocation: boolean; /** * CI/CD options for a Synthetic test. */ cis: outputs.GetSyntheticsTestOptionsListCi[]; /** * For SSL tests, whether or not the test should disable fetching intermediate certificates from AIA. */ disableAiaIntermediateFetching: boolean; /** * Disable Cross-Origin Resource Sharing for browser tests. */ disableCors: boolean; /** * Disable Content Security Policy for browser tests. */ disableCsp: boolean; /** * Determines whether or not the API HTTP test should follow redirects. */ followRedirects: boolean; /** * HTTP version to use for an HTTP request in an API test or step. */ httpVersion: string; /** * Ignore server certificate error for SSL tests. */ ignoreCertificateValidation: boolean; /** * Ignore server certificate error for browser tests. */ ignoreServerCertificateError: boolean; /** * Timeout before declaring the initial step as failed (in seconds) for browser tests. */ initialNavigationTimeout: number; /** * Minimum amount of time in failure required to trigger an alert (in seconds). */ minFailureDuration: number; /** * Minimum number of locations in failure required to trigger an alert. */ minLocationFailed: number; /** * The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. */ monitorName: string; /** * Object containing the options for a Synthetic test as a monitor (for example, renotification). */ monitorOptions: outputs.GetSyntheticsTestOptionsListMonitorOption[]; /** * Integer from 1 (high) to 5 (low) indicating alert severity. */ monitorPriority: number; /** * Prevents saving screenshots of the steps. */ noScreenshot: boolean; /** * A list of role identifiers pulled from the Roles API to restrict read and write access. Included for parity with the `datadog.SyntheticsTest` resource. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles: string[]; /** * Object describing the retry strategy to apply to a Synthetic test. */ retries: outputs.GetSyntheticsTestOptionsListRetry[]; /** * The RUM data collection settings for the Synthetic browser test. */ rumSettings: outputs.GetSyntheticsTestOptionsListRumSetting[]; /** * Object containing timeframes and timezone used for advanced scheduling. */ schedulings: outputs.GetSyntheticsTestOptionsListScheduling[]; /** * How often the test should run (in seconds). */ tickEvery: number; } export interface GetSyntheticsTestOptionsListCi { /** * Execution rule for a Synthetics test. */ executionRule: string; } export interface GetSyntheticsTestOptionsListMonitorOption { /** * A message to include with a re-notification. */ escalationMessage: string; /** * The name of the preset for the notification for the monitor. */ notificationPresetName: string; /** * Specify a renotification frequency in minutes. */ renotifyInterval: number; /** * The number of times a monitor renotifies. It can only be set if `renotifyInterval` is set. */ renotifyOccurrences: number; } export interface GetSyntheticsTestOptionsListRetry { /** * Number of retries needed to consider a location as failed before sending a notification alert. */ count: number; /** * Interval between a failed test and the next retry in milliseconds. */ interval: number; } export interface GetSyntheticsTestOptionsListRumSetting { /** * RUM application ID used to collect RUM data for the browser test. */ applicationId: string; /** * RUM application API key ID used to collect RUM data for the browser test. */ clientTokenId: number; /** * Determines whether RUM data is collected during test runs. */ isEnabled: boolean; } export interface GetSyntheticsTestOptionsListScheduling { /** * Array containing objects describing the scheduling pattern to apply to each day. */ timeframes: outputs.GetSyntheticsTestOptionsListSchedulingTimeframe[]; /** * Timezone in which the timeframe is based. */ timezone: string; } export interface GetSyntheticsTestOptionsListSchedulingTimeframe { /** * Number representing the day of the week. */ day: number; /** * The hour of the day on which scheduling starts. */ from: string; /** * The hour of the day on which scheduling ends. */ to: string; } export interface GetTagPipelineRulesetRule { /** * Whether the rule is enabled. */ enabled: boolean; /** * The mapping configuration for the rule. */ mapping?: outputs.GetTagPipelineRulesetRuleMapping; /** * Rule metadata key-value pairs. */ metadata: { [key: string]: string; }; /** * The name of the rule. */ name: string; /** * The query configuration for the rule. */ query?: outputs.GetTagPipelineRulesetRuleQuery; /** * The reference table configuration for the rule. */ referenceTable?: outputs.GetTagPipelineRulesetRuleReferenceTable; } export interface GetTagPipelineRulesetRuleMapping { /** * The destination key for the mapping. */ destinationKey: string; /** * Whether to apply the mapping only if the destination key doesn't exist. * * @deprecated Use `ifTagExists` instead. This field will be removed in a future release. */ ifNotExists: boolean; /** * Behavior when the tag already exists. Valid values: `append` (append to the existing tag value), `replace` (replace existing tag value), `doNotApply` (never apply if tag already exists). Valid values are `append`, `replace`, `doNotApply`. */ ifTagExists: string; /** * The source keys for the mapping. */ sourceKeys: string[]; } export interface GetTagPipelineRulesetRuleQuery { /** * The addition configuration for the query. */ addition?: outputs.GetTagPipelineRulesetRuleQueryAddition; /** * Whether the query matching is case insensitive. */ caseInsensitivity: boolean; /** * Whether to apply the query only if the key doesn't exist. * * @deprecated Use `ifTagExists` instead. This field will be removed in a future release. */ ifNotExists: boolean; /** * Behavior when the tag already exists. Valid values: `append` (append to the existing tag value), `replace` (replace existing tag value), `doNotApply` (never apply if tag already exists). Valid values are `append`, `replace`, `doNotApply`. */ ifTagExists: string; /** * The query string. */ query: string; } export interface GetTagPipelineRulesetRuleQueryAddition { /** * The key to add. */ key: string; /** * The value to add. */ value: string; } export interface GetTagPipelineRulesetRuleReferenceTable { /** * Whether the reference table lookup is case insensitive. */ caseInsensitivity: boolean; /** * The field pairs for the reference table. */ fieldPairs?: outputs.GetTagPipelineRulesetRuleReferenceTableFieldPair[]; /** * Whether to apply the reference table only if the key doesn't exist. * * @deprecated Use `ifTagExists` instead. This field will be removed in a future release. */ ifNotExists: boolean; /** * Behavior when the tag already exists. Valid values: `append` (append to the existing tag value), `replace` (replace existing tag value), `doNotApply` (never apply if tag already exists). Valid values are `append`, `replace`, `doNotApply`. */ ifTagExists: string; /** * The source keys for the reference table lookup. */ sourceKeys: string[]; /** * The name of the reference table. */ tableName: string; } export interface GetTagPipelineRulesetRuleReferenceTableFieldPair { /** * The input column name. */ inputColumn: string; /** * The output key name. */ outputKey: string; } export interface GetTeamMembershipsTeamMembership { id: string; role: string; teamId: string; userId: string; } export interface GetTeamNotificationRuleEmail { /** * Flag indicating whether email notifications should be sent */ enabled: boolean; /** * Email address notifications are sent to instead of all team members */ recipientEmail: string; } export interface GetTeamNotificationRuleMsTeams { /** * MS Teams connector name */ connectorName: string; } export interface GetTeamNotificationRulePagerduty { /** * PagerDuty service name */ serviceName: string; } export interface GetTeamNotificationRuleServicenow { /** * ServiceNow template handle names */ templates: string[]; } export interface GetTeamNotificationRuleSlack { /** * Slack channel for notifications */ channel: string; /** * Slack workspace for notifications */ workspace: string; } export interface GetTeamNotificationRulesNotificationRule { /** * The email notification settings. */ email?: outputs.GetTeamNotificationRulesNotificationRuleEmail; /** * The ID of the notification rule. */ id: string; /** * The MS Teams notification settings. */ msTeams?: outputs.GetTeamNotificationRulesNotificationRuleMsTeams; /** * The PagerDuty notification settings. */ pagerduty?: outputs.GetTeamNotificationRulesNotificationRulePagerduty; /** * The ServiceNow notification settings. */ servicenow?: outputs.GetTeamNotificationRulesNotificationRuleServicenow; /** * The Slack notification settings. */ slack?: outputs.GetTeamNotificationRulesNotificationRuleSlack; } export interface GetTeamNotificationRulesNotificationRuleEmail { /** * Flag indicating whether email notifications should be sent. */ enabled: boolean; /** * Email address notifications are sent to instead of all team members. */ recipientEmail: string; } export interface GetTeamNotificationRulesNotificationRuleMsTeams { /** * MS Teams connector name. */ connectorName: string; } export interface GetTeamNotificationRulesNotificationRulePagerduty { /** * PagerDuty service name. */ serviceName: string; } export interface GetTeamNotificationRulesNotificationRuleServicenow { /** * ServiceNow template handle names. */ templates: string[]; } export interface GetTeamNotificationRulesNotificationRuleSlack { /** * Slack channel for notifications. */ channel: string; /** * Slack workspace for notifications. */ workspace: string; } export interface GetTeamsTeam { /** * Free-form markdown description/content for the team's homepage. */ description: string; /** * The team's handle. */ handle: string; /** * The team's identifier. */ id: string; /** * The number of links belonging to the team. */ linkCount: number; /** * The name of the team. */ name: string; /** * A brief summary of the team, derived from the `description`. */ summary: string; /** * The number of users belonging to the team. */ userCount: number; } export interface GetUsersUser { createdAt: string; disabled: boolean; email: string; handle: string; icon: string; id: string; mfaEnabled: boolean; modifiedAt: string; name: string; serviceAccount: boolean; status: string; title: string; verified: boolean; } export interface GetWorkflowAutomationRunAs { /** * Service account identifier when the workflow runs as a service account. */ id: string; /** * Type of identity used to run the workflow. `owner` uses the workflow owner, `initiator` uses the user who starts the execution, and `serviceAccount` uses the account specified by `id`. */ type: string; } export interface GithubOidcIdentityMappingClaimMatchers { /** * Regular expression matched against the `actor` claim of the GitHub Actions OIDC token. String length must be at least 1. */ actor?: string; /** * Regular expression matched against the `actorId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ actorId?: string; /** * Regular expression matched against the `enterprise` claim of the GitHub Actions OIDC token. String length must be at least 1. */ enterprise?: string; /** * Regular expression matched against the `enterpriseId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ enterpriseId?: string; /** * Regular expression matched against the `environment` claim of the GitHub Actions OIDC token. String length must be at least 1. */ environment?: string; /** * Regular expression matched against the `eventName` claim of the GitHub Actions OIDC token. String length must be at least 1. */ eventName?: string; /** * Regular expression matched against the `jobWorkflowRef` claim of the GitHub Actions OIDC token. String length must be at least 1. */ jobWorkflowRef?: string; /** * Regular expression matched against the `ref` claim of the GitHub Actions OIDC token. String length must be at least 1. */ ref?: string; /** * Regular expression matched against the `refType` claim of the GitHub Actions OIDC token. String length must be at least 1. */ refType?: string; /** * Regular expression matched against the `repository` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repository?: string; /** * Regular expression matched against the `repositoryId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryId?: string; /** * Regular expression matched against the `repositoryOwner` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryOwner?: string; /** * Regular expression matched against the `repositoryOwnerId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryOwnerId?: string; /** * Regular expression matched against the `repositoryVisibility` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryVisibility?: string; /** * Regular expression matched against the `runnerEnvironment` claim of the GitHub Actions OIDC token. String length must be at least 1. */ runnerEnvironment?: string; /** * Regular expression matched against the required `sub` claim of the GitHub Actions OIDC token. It must start with the literal `repo:/` prefix; the owner cannot be a regex. String length must be at least 1. */ sub: string; /** * Regular expression matched against the `workflow` claim of the GitHub Actions OIDC token. String length must be at least 1. */ workflow?: string; /** * Regular expression matched against the `workflowRef` claim of the GitHub Actions OIDC token. String length must be at least 1. */ workflowRef?: string; } export interface GithubOidcIntakeMappingClaimMatchers { /** * Regular expression matched against the `actor` claim of the GitHub Actions OIDC token. String length must be at least 1. */ actor?: string; /** * Regular expression matched against the `actorId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ actorId?: string; /** * Regular expression matched against the `enterprise` claim of the GitHub Actions OIDC token. String length must be at least 1. */ enterprise?: string; /** * Regular expression matched against the `enterpriseId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ enterpriseId?: string; /** * Regular expression matched against the `environment` claim of the GitHub Actions OIDC token. String length must be at least 1. */ environment?: string; /** * Regular expression matched against the `eventName` claim of the GitHub Actions OIDC token. String length must be at least 1. */ eventName?: string; /** * Regular expression matched against the `jobWorkflowRef` claim of the GitHub Actions OIDC token. String length must be at least 1. */ jobWorkflowRef?: string; /** * Regular expression matched against the `ref` claim of the GitHub Actions OIDC token. String length must be at least 1. */ ref?: string; /** * Regular expression matched against the `refType` claim of the GitHub Actions OIDC token. String length must be at least 1. */ refType?: string; /** * Regular expression matched against the `repository` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repository?: string; /** * Regular expression matched against the `repositoryId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryId?: string; /** * Regular expression matched against the `repositoryOwner` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryOwner?: string; /** * Regular expression matched against the `repositoryOwnerId` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryOwnerId?: string; /** * Regular expression matched against the `repositoryVisibility` claim of the GitHub Actions OIDC token. String length must be at least 1. */ repositoryVisibility?: string; /** * Regular expression matched against the `runnerEnvironment` claim of the GitHub Actions OIDC token. String length must be at least 1. */ runnerEnvironment?: string; /** * Regular expression matched against the required `sub` claim of the GitHub Actions OIDC token. It must start with the literal `repo:/` prefix; the owner cannot be a regex. String length must be at least 1. */ sub: string; /** * Regular expression matched against the `workflow` claim of the GitHub Actions OIDC token. String length must be at least 1. */ workflow?: string; /** * Regular expression matched against the `workflowRef` claim of the GitHub Actions OIDC token. String length must be at least 1. */ workflowRef?: string; } export interface GovernanceControlNotificationSetting { /** * Whether notifications are enabled for this event type. */ enabled: boolean; /** * The event type the notification settings apply to, such as `newDetection`. */ eventType: string; /** * The destinations that receive notifications for this event type. */ targets: outputs.GovernanceControlNotificationSettingTarget[]; } export interface GovernanceControlNotificationSettingTarget { /** * The handle of the notification target. */ handle: string; /** * The type of notification target: `email`, `slack`, `atMention`, or `case`. */ type: string; } export interface IncidentNotificationRuleCondition { /** * The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported. */ field: string; /** * The value(s) to compare against. Multiple values are ORed together. */ values: string[]; } export interface IncidentPostmortemTemplateConfluencePostmortemSettings { /** * The ID of the Confluence account, a Datadog connected-account UUID (e.g. `3f9b1c2a-8d4e-4a11-9c2f-0b7e5d6a1f23`). */ accountId?: string; /** * The ID of the parent Confluence page under which postmortems are created: a numeric page ID (e.g. `393217`), not a page path. */ parentId?: string; /** * The Confluence space key (e.g. `ENG`), not a numeric space ID. */ spaceId?: string; } export interface IncidentPostmortemTemplateGoogleDocsPostmortemSettings { /** * The ID of the Google Drive account, a Datadog connected-account UUID (e.g. `a1b2c3d4-e5f6-4789-8abc-1234567890ab`). */ accountId?: string; /** * The Google Drive folder ID where postmortems are created, taken from the folder URL (e.g. `1eCqLAKQqRHt49J2aqQLGUcnPMzGHkt2B`). */ parentFolderId?: string; } export interface IncidentTypeConfiguration { /** * Whether incidents of this type can be deleted. Defaults to `false`. */ allowIncidentDeletion: boolean; /** * Whether users can manually run a workflow from an incident of this type. Defaults to `true`. */ allowWorkflows: boolean; /** * An optional message shown to users when they declare an incident of this type. Defaults to an empty string. */ createMessage: string; /** * Whether responders can edit incident timestamps for incidents of this type. Defaults to `false`. */ editableTimestamps: boolean; /** * Whether responders can create private incidents of this type. Defaults to `false`. */ privateIncidents: boolean; /** * Whether the private toggle is enabled by default in the incident creation modal for this type. Defaults to `false`. */ privateIncidentsByDefault: boolean; /** * The source used to derive the incident slug. When set to `servicenow`, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed. Defaults to `default`. Valid values are `default`, `servicenow`. */ slugSource: string; /** * Whether test incidents of this type can be created. Defaults to `true`. */ testIncidents: boolean; } export interface IncidentUserDefinedFieldMetadata { /** * The category of the autocomplete source. */ category: string; /** * The query parameter used to limit the number of autocomplete results. */ searchLimitParam: string; /** * Additional query parameters to include in the search URL. */ searchParams: { [key: string]: string; }; /** * The query parameter used to pass typed input to the search URL. */ searchQueryParam: string; /** * The JSON path to the results in the response body. */ searchResultPath: string; /** * The URL used to populate autocomplete options. */ searchUrl: string; } export interface IncidentUserDefinedFieldValidValue { /** * A detailed description of the valid value. */ description: string; /** * The human-readable display name for this value. */ displayName: string; /** * A short description of the valid value. */ shortDescription: string; /** * The identifier that is stored when this option is selected. */ value: string; } export interface IncidentUserDefinedRolePolicy { /** * Whether this role can only be assigned to one responder at a time. Defaults to `false`. */ isSingle: boolean; } export interface IpAllowlistEntry { /** * IP address or range of addresses. String must be a valid CIDR block or IP address. */ cidrBlock: string; /** * Note accompanying IP address. */ note?: string; } export interface LogsArchiveAzureArchive { /** * Your client id. */ clientId: string; /** * The container where the archive is stored. */ container: string; /** * The path where the archive is stored. */ path?: string; /** * The associated storage account. */ storageAccount: string; /** * Your tenant id. */ tenantId: string; } export interface LogsArchiveGcsArchive { /** * Name of your GCS bucket. */ bucket: string; /** * Your client email. */ clientEmail: string; /** * Path where the archive is stored. */ path?: string; /** * Your project id. */ projectId?: string; } export interface LogsArchiveS3Archive { /** * Your AWS access key id, used as an alternative to `accountId`/`roleName`. */ accessKeyId?: string; /** * Your AWS account id. Required with `roleName`; mutually exclusive with `accessKeyId`. */ accountId?: string; /** * Name of your s3 bucket. */ bucket: string; /** * The AWS KMS encryption key. */ encryptionKey?: string; /** * The type of encryption on your archive. Valid values are `NO_OVERRIDE`, `SSE_S3`, `SSE_KMS`. Defaults to `"NO_OVERRIDE"`. */ encryptionType?: string; /** * Path where the archive is stored. */ path?: string; /** * Your AWS role name. Required with `accountId`; mutually exclusive with `accessKeyId`. */ roleName?: string; /** * The AWS S3 storage class used to upload the logs. Valid values are `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`. Defaults to `"STANDARD"`. */ storageClass?: string; } export interface LogsCustomDestinationElasticsearchDestination { /** * Basic access authentication. */ basicAuth?: outputs.LogsCustomDestinationElasticsearchDestinationBasicAuth; /** * The destination for which logs will be forwarded to. Must have HTTPS scheme. Forwarding back to Datadog is not allowed. */ endpoint: string; /** * Name of the Elasticsearch index (must follow [Elasticsearch's criteria](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-create-index.html#indices-create-api-path-params)). */ indexName: string; /** * Date pattern with US locale and UTC timezone to be appended to the index name after adding '-' * (that is, '${index_name}-${indexPattern}'). * You can customize the index rotation naming pattern by choosing one of these options: * - Hourly: 'yyyy-MM-dd-HH' (as an example, it would render: '2022-10-19-09') * - Daily: 'yyyy-MM-dd' (as an example, it would render: '2022-10-19') * - Weekly: 'yyyy-'W'ww' (as an example, it would render: '2022-W42') * - Monthly: 'yyyy-MM' (as an example, it would render: '2022-10') * If this field is missing or is blank, it means that the index name will always be the same * (that is, no rotation). */ indexRotation?: string; } export interface LogsCustomDestinationElasticsearchDestinationBasicAuth { /** * The password of the authentication. This field is not returned by the API. */ password: string; /** * The username of the authentication. This field is not returned by the API. */ username: string; } export interface LogsCustomDestinationHttpDestination { /** * Basic access authentication. */ basicAuth?: outputs.LogsCustomDestinationHttpDestinationBasicAuth; /** * Custom header access authentication. */ customHeaderAuth?: outputs.LogsCustomDestinationHttpDestinationCustomHeaderAuth; /** * The destination for which logs will be forwarded to. Must have HTTPS scheme. Forwarding back to Datadog is not allowed. */ endpoint: string; } export interface LogsCustomDestinationHttpDestinationBasicAuth { /** * The password of the authentication. This field is not returned by the API. */ password: string; /** * The username of the authentication. This field is not returned by the API. */ username: string; } export interface LogsCustomDestinationHttpDestinationCustomHeaderAuth { /** * The header name of the authentication. */ headerName: string; /** * The header value of the authentication. This field is not returned by the API. */ headerValue: string; } export interface LogsCustomDestinationMicrosoftSentinelDestination { /** * Client ID from the Datadog Azure Integration. */ clientId: string; /** * Azure Data Collection Endpoint. */ dataCollectionEndpoint: string; /** * Azure Data Collection Rule ID. */ dataCollectionRuleId: string; /** * Azure stream name. */ streamName: string; /** * Tenant ID from the Datadog Azure Integration. */ tenantId: string; } export interface LogsCustomDestinationSplunkDestination { /** * Access token of the Splunk HTTP Event Collector. This field is not returned by the API. */ accessToken: string; /** * The destination for which logs will be forwarded to. Must have HTTPS scheme. Forwarding back to Datadog is not allowed. */ endpoint: string; /** * The Splunk source type for forwarded events. Omitting `sourcetype` when you create a custom destination leaves `sourcetype` unconfigured, and events are forwarded to Splunk with `_json` as the source type. When updating a custom destination, omitting `sourcetype` preserves the previously set value; if none was set, the `sourcetype` field stays unconfigured and events are forwarded with `_json` (same as when creating a custom destination). Setting `value = null` omits the `sourcetype` field in the forwarded events entirely. */ sourcetype?: outputs.LogsCustomDestinationSplunkDestinationSourcetype; } export interface LogsCustomDestinationSplunkDestinationSourcetype { /** * The source type string. Set to `null` to omit the sourcetype from forwarded events. */ value?: string; } export interface LogsCustomPipelineFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessor { /** * Arithmetic Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#arithmetic-processor) */ arithmeticProcessor?: outputs.LogsCustomPipelineProcessorArithmeticProcessor; /** * Array-Map Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#array-map-processor) */ arrayMapProcessor?: outputs.LogsCustomPipelineProcessorArrayMapProcessor; /** * Array Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#array-processor) */ arrayProcessor?: outputs.LogsCustomPipelineProcessorArrayProcessor; /** * Attribute Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#remapper) */ attributeRemapper?: outputs.LogsCustomPipelineProcessorAttributeRemapper; /** * Category Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#category-processor) */ categoryProcessor?: outputs.LogsCustomPipelineProcessorCategoryProcessor; /** * Date Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#log-date-remapper) */ dateRemapper?: outputs.LogsCustomPipelineProcessorDateRemapper; /** * Decoder Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#decoder-processor) */ decoderProcessor?: outputs.LogsCustomPipelineProcessorDecoderProcessor; /** * Exclude Attribute Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#exclude-attribute-processor) */ excludeAttributeProcessor?: outputs.LogsCustomPipelineProcessorExcludeAttributeProcessor; /** * Date GeoIP Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#geoip-parser) */ geoIpParser?: outputs.LogsCustomPipelineProcessorGeoIpParser; /** * Grok Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#grok-parser) */ grokParser?: outputs.LogsCustomPipelineProcessorGrokParser; /** * Lookup Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#lookup-processor) */ lookupProcessor?: outputs.LogsCustomPipelineProcessorLookupProcessor; /** * Message Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#log-message-remapper) */ messageRemapper?: outputs.LogsCustomPipelineProcessorMessageRemapper; pipeline?: outputs.LogsCustomPipelineProcessorPipeline; /** * Reference Table Lookup Processor. Reference Tables are in public beta. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#lookup-processor) */ referenceTableLookupProcessor?: outputs.LogsCustomPipelineProcessorReferenceTableLookupProcessor; /** * Schema Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#schema-processor) */ schemaProcessor?: outputs.LogsCustomPipelineProcessorSchemaProcessor; /** * Service Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#service-remapper) */ serviceRemapper?: outputs.LogsCustomPipelineProcessorServiceRemapper; /** * Span ID Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#span-remapper) */ spanIdRemapper?: outputs.LogsCustomPipelineProcessorSpanIdRemapper; /** * Status Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#log-status-remapper) */ statusRemapper?: outputs.LogsCustomPipelineProcessorStatusRemapper; /** * String Builder Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#string-builder-processor) */ stringBuilderProcessor?: outputs.LogsCustomPipelineProcessorStringBuilderProcessor; /** * Trace ID Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#trace-remapper) */ traceIdRemapper?: outputs.LogsCustomPipelineProcessorTraceIdRemapper; /** * URL Parser Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#url-parser) */ urlParser?: outputs.LogsCustomPipelineProcessorUrlParser; /** * User-Agent Parser Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#user-agent-parser) */ userAgentParser?: outputs.LogsCustomPipelineProcessorUserAgentParser; } export interface LogsCustomPipelineProcessorArithmeticProcessor { /** * Arithmetic operation between one or more log attributes. */ expression: string; /** * Boolean value to enable your pipeline. */ isEnabled?: boolean; /** * If true, it replaces all missing attributes of expression by 0, false skips the operation if an attribute is missing. */ isReplaceMissing?: boolean; /** * Your pipeline name. */ name?: string; /** * Name of the attribute that contains the result of the arithmetic operation. */ target: string; } export interface LogsCustomPipelineProcessorArrayMapProcessor { /** * If the processor is enabled. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * Remove or preserve the source array after processing. Defaults to `true`. */ preserveSource?: boolean; /** * Sub-processors applied to each element. Allowed types: attribute*remapper, string*builder*processor, arithmetic*processor, category*processor. */ processors: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessor[]; /** * Attribute path of the source array. */ source: string; /** * Attribute path of the output array. */ target: string; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessor { /** * Array-map arithmetic sub-processor. */ arithmeticProcessor?: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessorArithmeticProcessor; /** * Array-map attribute remapper sub-processor. */ attributeRemapper?: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessorAttributeRemapper; /** * Array-map category sub-processor. */ categoryProcessor?: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessorCategoryProcessor; /** * Array-map string builder sub-processor. */ stringBuilderProcessor?: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessorStringBuilderProcessor; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessorArithmeticProcessor { /** * Arithmetic formula. */ expression: string; /** * Replace missing attributes with `0`. */ isReplaceMissing?: boolean; /** * Name of the sub-processor. */ name?: string; /** * Target attribute path for the result. */ target: string; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessorAttributeRemapper { /** * Name of the sub-processor. */ name?: string; /** * Override the target element if already set. */ overrideOnConflict?: boolean; /** * Remove or preserve the remapped source element. Defaults to `false`. */ preserveSource?: boolean; /** * List of source attributes. */ sources: string[]; /** * Target attribute path. */ target: string; /** * If the target type is an attribute, cast the value to a new type (auto, string, integer, double). */ targetFormat?: string; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessorCategoryProcessor { /** * List of filters to match or exclude a log. */ categories: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategory[]; /** * Name of the sub-processor. */ name?: string; /** * Target attribute path for the category value. */ target: string; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategory { filter: outputs.LogsCustomPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategoryFilter; /** * Name of the category. */ name: string; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategoryFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorArrayMapProcessorProcessorStringBuilderProcessor { /** * Replace missing attributes with an empty string. */ isReplaceMissing?: boolean; /** * Name of the sub-processor. */ name?: string; /** * Target attribute path for the result. */ target: string; /** * Formula with one or more attributes and raw text. */ template: string; } export interface LogsCustomPipelineProcessorArrayProcessor { /** * Boolean value to enable your processor. */ isEnabled?: boolean; /** * Your processor name. */ name?: string; /** * Operation to perform on the array. */ operation: outputs.LogsCustomPipelineProcessorArrayProcessorOperation; } export interface LogsCustomPipelineProcessorArrayProcessorOperation { /** * Operation that appends a value to a target array attribute. */ append?: outputs.LogsCustomPipelineProcessorArrayProcessorOperationAppend; /** * Operation that extracts key-value pairs from a source array and stores the result in the target attribute. */ keyValue?: outputs.LogsCustomPipelineProcessorArrayProcessorOperationKeyValue; /** * Operation that computes the length of a source array and stores the result in a target attribute. */ length?: outputs.LogsCustomPipelineProcessorArrayProcessorOperationLength; /** * Operation that finds an object in a source array using a filter, and then extracts a value from that found object and puts that value into the target attribute. */ select?: outputs.LogsCustomPipelineProcessorArrayProcessorOperationSelect; } export interface LogsCustomPipelineProcessorArrayProcessorOperationAppend { /** * Remove or preserve the remapped source element. Defaults to `true`. */ preserveSource?: boolean; /** * Attribute path containing the value to append. */ source: string; /** * Attribute path of the array to append to. */ target: string; } export interface LogsCustomPipelineProcessorArrayProcessorOperationKeyValue { /** * Key of the attribute in each array element that holds the name to use for the extracted attribute. */ keyToExtract: string; /** * Whether to override the target element if it's already set. Defaults to `false`. */ overrideOnConflict?: boolean; /** * Attribute path of the array to extract key-value pairs from. */ source: string; /** * Attribute that receives the extracted key-value pairs. If not specified, the extracted attributes are added at the root level of the log. */ target?: string; /** * Key of the attribute in each array element that holds the value to use for the extracted attribute. */ valueToExtract: string; } export interface LogsCustomPipelineProcessorArrayProcessorOperationLength { /** * Attribute path of the array to compute the length of. */ source: string; /** * Attribute that receives the computed length. */ target: string; } export interface LogsCustomPipelineProcessorArrayProcessorOperationSelect { /** * Filter expression (e.g. key1:value1 OR key2:value2) used to find the matching element. */ filter: string; /** * Attribute path of the array to search into. */ source: string; /** * Attribute that receives the extracted value. */ target: string; /** * Attribute key from the matching object that should be extracted. */ valueToExtract: string; } export interface LogsCustomPipelineProcessorAttributeRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor */ name?: string; /** * Override the target element if already set. */ overrideOnConflict?: boolean; /** * Remove or preserve the remapped source element. */ preserveSource?: boolean; /** * Defines where the sources are from (log `attribute` or `tag`). */ sourceType: string; /** * List of source attributes or tags. */ sources: string[]; /** * Final attribute or tag name to remap the sources. */ target: string; /** * If the `targetType` of the remapper is `attribute`, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. If the `targetType` is `tag`, this parameter may not be specified. */ targetFormat?: string; /** * Defines if the target is a log `attribute` or `tag`. */ targetType: string; } export interface LogsCustomPipelineProcessorCategoryProcessor { /** * List of filters to match or exclude a log with their corresponding name to assign a custom value to the log. */ categories: outputs.LogsCustomPipelineProcessorCategoryProcessorCategory[]; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the category */ name?: string; /** * Name of the target attribute whose value is defined by the matching category. */ target: string; } export interface LogsCustomPipelineProcessorCategoryProcessorCategory { filter: outputs.LogsCustomPipelineProcessorCategoryProcessorCategoryFilter; name: string; } export interface LogsCustomPipelineProcessorCategoryProcessorCategoryFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorDateRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorDecoderProcessor { /** * Encoding type: base64 or base16 */ binaryToTextEncoding: string; /** * Input representation: utf-8 or integer */ inputRepresentation: string; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * Encoded message */ source: string; /** * Decoded message */ target: string; } export interface LogsCustomPipelineProcessorExcludeAttributeProcessor { /** * Name of the log attribute to remove from the log event. */ attributeToExclude: string; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; } export interface LogsCustomPipelineProcessorGeoIpParser { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; /** * Name of the parent attribute that contains all the extracted details from the sources. */ target: string; } export interface LogsCustomPipelineProcessorGrokParser { grok: outputs.LogsCustomPipelineProcessorGrokParserGrok; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor */ name?: string; /** * List of sample logs for this parser. It can save up to 5 samples. Each sample takes up to 5000 characters. */ samples?: string[]; /** * Name of the log attribute to parse. */ source: string; } export interface LogsCustomPipelineProcessorGrokParserGrok { /** * Match rules for your grok parser. */ matchRules: string; /** * Support rules for your grok parser. */ supportRules: string; } export interface LogsCustomPipelineProcessorLookupProcessor { /** * Default lookup value to use if there is no entry in the lookup table for the value of the source attribute. */ defaultLookup?: string; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * List of entries of the lookup table using `key,value` format. */ lookupTables: string[]; /** * Name of the processor */ name?: string; /** * Name of the source attribute used to do the lookup. */ source: string; /** * Name of the attribute that contains the result of the lookup. */ target: string; } export interface LogsCustomPipelineProcessorMessageRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipeline { description?: string; filters: outputs.LogsCustomPipelineProcessorPipelineFilter[]; isEnabled?: boolean; name: string; processors?: outputs.LogsCustomPipelineProcessorPipelineProcessor[]; tags: string[]; } export interface LogsCustomPipelineProcessorPipelineFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorPipelineProcessor { /** * Arithmetic Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#arithmetic-processor) */ arithmeticProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorArithmeticProcessor; /** * Array-Map Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#array-map-processor) */ arrayMapProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessor; /** * Array Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#array-processor) */ arrayProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayProcessor; /** * Attribute Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#remapper) */ attributeRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorAttributeRemapper; /** * Category Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#category-processor) */ categoryProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorCategoryProcessor; /** * Date Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#log-date-remapper) */ dateRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorDateRemapper; /** * Decoder Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#decoder-processor) */ decoderProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorDecoderProcessor; /** * Exclude Attribute Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#exclude-attribute-processor) */ excludeAttributeProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorExcludeAttributeProcessor; /** * Date GeoIP Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#geoip-parser) */ geoIpParser?: outputs.LogsCustomPipelineProcessorPipelineProcessorGeoIpParser; /** * Grok Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#grok-parser) */ grokParser?: outputs.LogsCustomPipelineProcessorPipelineProcessorGrokParser; /** * Lookup Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#lookup-processor) */ lookupProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorLookupProcessor; /** * Message Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#log-message-remapper) */ messageRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorMessageRemapper; /** * Reference Table Lookup Processor. Reference Tables are in public beta. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#lookup-processor) */ referenceTableLookupProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorReferenceTableLookupProcessor; /** * Schema Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#schema-processor) */ schemaProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessor; /** * Service Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#service-remapper) */ serviceRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorServiceRemapper; /** * Span ID Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#span-remapper) */ spanIdRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorSpanIdRemapper; /** * Status Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#log-status-remapper) */ statusRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorStatusRemapper; /** * String Builder Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#string-builder-processor) */ stringBuilderProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorStringBuilderProcessor; /** * Trace ID Remapper Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#trace-remapper) */ traceIdRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorTraceIdRemapper; /** * URL Parser Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#url-parser) */ urlParser?: outputs.LogsCustomPipelineProcessorPipelineProcessorUrlParser; /** * User-Agent Parser Processor. More information can be found in the [official docs](https://docs.datadoghq.com/logs/processing/processors/?tab=ui#user-agent-parser) */ userAgentParser?: outputs.LogsCustomPipelineProcessorPipelineProcessorUserAgentParser; } export interface LogsCustomPipelineProcessorPipelineProcessorArithmeticProcessor { /** * Arithmetic operation between one or more log attributes. */ expression: string; /** * Boolean value to enable your pipeline. */ isEnabled?: boolean; /** * If true, it replaces all missing attributes of expression by 0, false skips the operation if an attribute is missing. */ isReplaceMissing?: boolean; /** * Your pipeline name. */ name?: string; /** * Name of the attribute that contains the result of the arithmetic operation. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessor { /** * If the processor is enabled. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * Remove or preserve the source array after processing. Defaults to `true`. */ preserveSource?: boolean; /** * Sub-processors applied to each element. Allowed types: attribute*remapper, string*builder*processor, arithmetic*processor, category*processor. */ processors: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessor[]; /** * Attribute path of the source array. */ source: string; /** * Attribute path of the output array. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessor { /** * Array-map arithmetic sub-processor. */ arithmeticProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorArithmeticProcessor; /** * Array-map attribute remapper sub-processor. */ attributeRemapper?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorAttributeRemapper; /** * Array-map category sub-processor. */ categoryProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorCategoryProcessor; /** * Array-map string builder sub-processor. */ stringBuilderProcessor?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorStringBuilderProcessor; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorArithmeticProcessor { /** * Arithmetic formula. */ expression: string; /** * Replace missing attributes with `0`. */ isReplaceMissing?: boolean; /** * Name of the sub-processor. */ name?: string; /** * Target attribute path for the result. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorAttributeRemapper { /** * Name of the sub-processor. */ name?: string; /** * Override the target element if already set. */ overrideOnConflict?: boolean; /** * Remove or preserve the remapped source element. Defaults to `false`. */ preserveSource?: boolean; /** * List of source attributes. */ sources: string[]; /** * Target attribute path. */ target: string; /** * If the target type is an attribute, cast the value to a new type (auto, string, integer, double). */ targetFormat?: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorCategoryProcessor { /** * List of filters to match or exclude a log. */ categories: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategory[]; /** * Name of the sub-processor. */ name?: string; /** * Target attribute path for the category value. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategory { filter: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategoryFilter; /** * Name of the category. */ name: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorCategoryProcessorCategoryFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayMapProcessorProcessorStringBuilderProcessor { /** * Replace missing attributes with an empty string. */ isReplaceMissing?: boolean; /** * Name of the sub-processor. */ name?: string; /** * Target attribute path for the result. */ target: string; /** * Formula with one or more attributes and raw text. */ template: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayProcessor { /** * Boolean value to enable your processor. */ isEnabled?: boolean; /** * Your processor name. */ name?: string; /** * Operation to perform on the array. */ operation: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperation; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperation { /** * Operation that appends a value to a target array attribute. */ append?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationAppend; /** * Operation that extracts key-value pairs from a source array and stores the result in the target attribute. */ keyValue?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationKeyValue; /** * Operation that computes the length of a source array and stores the result in a target attribute. */ length?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationLength; /** * Operation that finds an object in a source array using a filter, and then extracts a value from that found object and puts that value into the target attribute. */ select?: outputs.LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationSelect; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationAppend { /** * Remove or preserve the remapped source element. Defaults to `true`. */ preserveSource?: boolean; /** * Attribute path containing the value to append. */ source: string; /** * Attribute path of the array to append to. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationKeyValue { /** * Key of the attribute in each array element that holds the name to use for the extracted attribute. */ keyToExtract: string; /** * Whether to override the target element if it's already set. Defaults to `false`. */ overrideOnConflict?: boolean; /** * Attribute path of the array to extract key-value pairs from. */ source: string; /** * Attribute that receives the extracted key-value pairs. If not specified, the extracted attributes are added at the root level of the log. */ target?: string; /** * Key of the attribute in each array element that holds the value to use for the extracted attribute. */ valueToExtract: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationLength { /** * Attribute path of the array to compute the length of. */ source: string; /** * Attribute that receives the computed length. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorArrayProcessorOperationSelect { /** * Filter expression (e.g. key1:value1 OR key2:value2) used to find the matching element. */ filter: string; /** * Attribute path of the array to search into. */ source: string; /** * Attribute that receives the extracted value. */ target: string; /** * Attribute key from the matching object that should be extracted. */ valueToExtract: string; } export interface LogsCustomPipelineProcessorPipelineProcessorAttributeRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor */ name?: string; /** * Override the target element if already set. */ overrideOnConflict?: boolean; /** * Remove or preserve the remapped source element. */ preserveSource?: boolean; /** * Defines where the sources are from (log `attribute` or `tag`). */ sourceType: string; /** * List of source attributes or tags. */ sources: string[]; /** * Final attribute or tag name to remap the sources. */ target: string; /** * If the `targetType` of the remapper is `attribute`, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. If the `targetType` is `tag`, this parameter may not be specified. */ targetFormat?: string; /** * Defines if the target is a log `attribute` or `tag`. */ targetType: string; } export interface LogsCustomPipelineProcessorPipelineProcessorCategoryProcessor { /** * List of filters to match or exclude a log with their corresponding name to assign a custom value to the log. */ categories: outputs.LogsCustomPipelineProcessorPipelineProcessorCategoryProcessorCategory[]; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the category */ name?: string; /** * Name of the target attribute whose value is defined by the matching category. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorCategoryProcessorCategory { filter: outputs.LogsCustomPipelineProcessorPipelineProcessorCategoryProcessorCategoryFilter; name: string; } export interface LogsCustomPipelineProcessorPipelineProcessorCategoryProcessorCategoryFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorPipelineProcessorDateRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipelineProcessorDecoderProcessor { /** * Encoding type: base64 or base16 */ binaryToTextEncoding: string; /** * Input representation: utf-8 or integer */ inputRepresentation: string; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * Encoded message */ source: string; /** * Decoded message */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorExcludeAttributeProcessor { /** * Name of the log attribute to remove from the log event. */ attributeToExclude: string; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; } export interface LogsCustomPipelineProcessorPipelineProcessorGeoIpParser { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; /** * Name of the parent attribute that contains all the extracted details from the sources. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorGrokParser { grok: outputs.LogsCustomPipelineProcessorPipelineProcessorGrokParserGrok; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor */ name?: string; /** * List of sample logs for this parser. It can save up to 5 samples. Each sample takes up to 5000 characters. */ samples?: string[]; /** * Name of the log attribute to parse. */ source: string; } export interface LogsCustomPipelineProcessorPipelineProcessorGrokParserGrok { /** * Match rules for your grok parser. */ matchRules: string; /** * Support rules for your grok parser. */ supportRules: string; } export interface LogsCustomPipelineProcessorPipelineProcessorLookupProcessor { /** * Default lookup value to use if there is no entry in the lookup table for the value of the source attribute. */ defaultLookup?: string; /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * List of entries of the lookup table using `key,value` format. */ lookupTables: string[]; /** * Name of the processor */ name?: string; /** * Name of the source attribute used to do the lookup. */ source: string; /** * Name of the attribute that contains the result of the lookup. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorMessageRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipelineProcessorReferenceTableLookupProcessor { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the Reference Table for the source attribute and their associated target attribute values. */ lookupEnrichmentTable: string; /** * Name of the processor */ name?: string; /** * Name of the source attribute used to do the lookup. */ source: string; /** * Name of the attribute that contains the result of the lookup. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessor { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Array of mappers for the schema processor. */ mappers: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapper[]; /** * The name of the processor. */ name?: string; /** * Configuration of the schema data to use. */ schema: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorSchema; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapper { /** * Mapper that categorizes log events into enum fields. In the case of OCSF, they can be used to map sibling fields which are composed of an ID and a name. */ schemaCategoryMappers?: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapper[]; /** * Mapper that maps source log fields to their correct fields. */ schemaRemappers?: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaRemapper[]; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapper { /** * Object describing the logs filter with corresponding category ID. */ categories: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategory[]; /** * Used to override hardcoded category values with a value pulled from a source attribute on the log. */ fallback?: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperFallback; /** * Name of the logs schema category mapper. */ name: string; /** * Name of the target attributes which value is defined by the matching. */ targets: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperTargets; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategory { filter: outputs.LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategoryFilter; /** * ID to inject into the category. */ id: number; /** * Value to assign to target schema field. */ name: string; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategoryFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperFallback { /** * Fallback sources used to populate value of field. */ sources?: { [key: string]: string; }; /** * Values that define when the fallback is used. */ values?: { [key: string]: string; }; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperTargets { /** * ID of the field to map log attributes to */ id?: string; /** * Name of the field to map log attributes to. */ name?: string; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorMapperSchemaRemapper { /** * Name of the logs schema remapper. */ name: string; /** * Override or not the target element if already set. */ overrideOnConflict?: boolean; /** * Remove or preserve the remapped source element. */ preserveSource?: boolean; /** * Array of source attributes. */ sources: string[]; /** * Target field to map log source field to */ target: string; /** * If the `targetType` of the remapper is `attribute`, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. If the `targetType` is `tag`, this parameter may not be specified. */ targetFormat?: string; } export interface LogsCustomPipelineProcessorPipelineProcessorSchemaProcessorSchema { /** * Class name of the schema to use. */ className: string; /** * Class UID of the schema to use. */ classUid: number; /** * Optional list of extensions to modify the schema. */ extensions?: string[]; /** * Optional list of profiles to modify the schema. */ profiles?: string[]; /** * Type of schema to use. */ schemaType: string; /** * Version of the schema to use. */ version: string; } export interface LogsCustomPipelineProcessorPipelineProcessorServiceRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipelineProcessorSpanIdRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipelineProcessorStatusRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipelineProcessorStringBuilderProcessor { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * If it replaces all missing attributes of template by an empty string. */ isReplaceMissing?: boolean; /** * The name of the processor. */ name?: string; /** * The name of the attribute that contains the result of the template. */ target: string; /** * The formula with one or more attributes and raw text. */ template: string; } export interface LogsCustomPipelineProcessorPipelineProcessorTraceIdRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorPipelineProcessorUrlParser { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor */ name?: string; /** * Normalize the ending slashes or not. */ normalizeEndingSlashes?: boolean; /** * List of source attributes. */ sources: string[]; /** * Name of the parent attribute that contains all the extracted details from the sources. */ target: string; } export interface LogsCustomPipelineProcessorPipelineProcessorUserAgentParser { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * If the source attribute is URL encoded or not. */ isEncoded?: boolean; /** * Name of the processor */ name?: string; /** * List of source attributes. */ sources: string[]; /** * Name of the parent attribute that contains all the extracted details from the sources. */ target: string; } export interface LogsCustomPipelineProcessorReferenceTableLookupProcessor { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the Reference Table for the source attribute and their associated target attribute values. */ lookupEnrichmentTable: string; /** * Name of the processor */ name?: string; /** * Name of the source attribute used to do the lookup. */ source: string; /** * Name of the attribute that contains the result of the lookup. */ target: string; } export interface LogsCustomPipelineProcessorSchemaProcessor { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Array of mappers for the schema processor. */ mappers: outputs.LogsCustomPipelineProcessorSchemaProcessorMapper[]; /** * The name of the processor. */ name?: string; /** * Configuration of the schema data to use. */ schema: outputs.LogsCustomPipelineProcessorSchemaProcessorSchema; } export interface LogsCustomPipelineProcessorSchemaProcessorMapper { /** * Mapper that categorizes log events into enum fields. In the case of OCSF, they can be used to map sibling fields which are composed of an ID and a name. */ schemaCategoryMappers?: outputs.LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapper[]; /** * Mapper that maps source log fields to their correct fields. */ schemaRemappers?: outputs.LogsCustomPipelineProcessorSchemaProcessorMapperSchemaRemapper[]; } export interface LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapper { /** * Object describing the logs filter with corresponding category ID. */ categories: outputs.LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategory[]; /** * Used to override hardcoded category values with a value pulled from a source attribute on the log. */ fallback?: outputs.LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperFallback; /** * Name of the logs schema category mapper. */ name: string; /** * Name of the target attributes which value is defined by the matching. */ targets: outputs.LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperTargets; } export interface LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategory { filter: outputs.LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategoryFilter; /** * ID to inject into the category. */ id: number; /** * Value to assign to target schema field. */ name: string; } export interface LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperCategoryFilter { /** * Filter criteria of the category. */ query: string; } export interface LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperFallback { /** * Fallback sources used to populate value of field. */ sources?: { [key: string]: string; }; /** * Values that define when the fallback is used. */ values?: { [key: string]: string; }; } export interface LogsCustomPipelineProcessorSchemaProcessorMapperSchemaCategoryMapperTargets { /** * ID of the field to map log attributes to */ id?: string; /** * Name of the field to map log attributes to. */ name?: string; } export interface LogsCustomPipelineProcessorSchemaProcessorMapperSchemaRemapper { /** * Name of the logs schema remapper. */ name: string; /** * Override or not the target element if already set. */ overrideOnConflict?: boolean; /** * Remove or preserve the remapped source element. */ preserveSource?: boolean; /** * Array of source attributes. */ sources: string[]; /** * Target field to map log source field to */ target: string; /** * If the `targetType` of the remapper is `attribute`, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. If the `targetType` is `tag`, this parameter may not be specified. */ targetFormat?: string; } export interface LogsCustomPipelineProcessorSchemaProcessorSchema { /** * Class name of the schema to use. */ className: string; /** * Class UID of the schema to use. */ classUid: number; /** * Optional list of extensions to modify the schema. */ extensions?: string[]; /** * Optional list of profiles to modify the schema. */ profiles?: string[]; /** * Type of schema to use. */ schemaType: string; /** * Version of the schema to use. */ version: string; } export interface LogsCustomPipelineProcessorServiceRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorSpanIdRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorStatusRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorStringBuilderProcessor { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * If it replaces all missing attributes of template by an empty string. */ isReplaceMissing?: boolean; /** * The name of the processor. */ name?: string; /** * The name of the attribute that contains the result of the template. */ target: string; /** * The formula with one or more attributes and raw text. */ template: string; } export interface LogsCustomPipelineProcessorTraceIdRemapper { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor. */ name?: string; /** * List of source attributes. */ sources: string[]; } export interface LogsCustomPipelineProcessorUrlParser { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * Name of the processor */ name?: string; /** * Normalize the ending slashes or not. */ normalizeEndingSlashes?: boolean; /** * List of source attributes. */ sources: string[]; /** * Name of the parent attribute that contains all the extracted details from the sources. */ target: string; } export interface LogsCustomPipelineProcessorUserAgentParser { /** * If the processor is enabled or not. */ isEnabled?: boolean; /** * If the source attribute is URL encoded or not. */ isEncoded?: boolean; /** * Name of the processor */ name?: string; /** * List of source attributes. */ sources: string[]; /** * Name of the parent attribute that contains all the extracted details from the sources. */ target: string; } export interface LogsIndexDailyLimitReset { /** * String in `HH:00` format representing the time of day the daily limit should be reset. The hours must be between 00 and 23 (inclusive). */ resetTime: string; /** * String in `(-|+)HH:00` format representing the UTC offset to apply to the given reset time. The hours must be between -12 and +14 (inclusive). */ resetUtcOffset: string; } export interface LogsIndexExclusionFilter { filters?: outputs.LogsIndexExclusionFilterFilter[]; /** * A boolean stating if the exclusion is active or not. */ isEnabled?: boolean; /** * The name of the exclusion filter. */ name?: string; } export interface LogsIndexExclusionFilterFilter { /** * Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter. */ query?: string; /** * The log attribute used as the sampling key. When present, logs sharing the same value are excluded or kept together at the configured sample rate (a single attribute path, e.g. `@lambda.request_id`). */ sampleAttribute?: string; /** * The fraction of logs excluded by the exclusion filter, when active. */ sampleRate?: number; } export interface LogsIndexFilter { /** * Logs filter criteria. Only logs matching this filter criteria are considered for this index. */ query: string; } export interface LogsMetricCompute { /** * The type of aggregation to use. This field can't be updated after creation. Valid values are `count`, `distribution`. */ aggregationType: string; /** * Toggle to include/exclude percentiles for a distribution metric. Defaults to false. Can only be applied to metrics that have an `aggregationType` of distribution. */ includePercentiles?: boolean; /** * The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). This field can't be updated after creation. */ path?: string; } export interface LogsMetricFilter { /** * The search query - following the log search syntax. */ query: string; } export interface LogsMetricGroupBy { /** * The path to the value the log-based metric will be aggregated over. */ path: string; /** * Name of the tag that gets created. */ tagName: string; } export interface MetricTagConfigurationAggregation { /** * A space aggregation for use in query. Valid values are `avg`, `max`, `min`, `sum`. */ space: string; /** * A time aggregation for use in query. Valid values are `avg`, `count`, `max`, `min`, `sum`. */ time: string; } export interface MonitorAsset { /** * Type of asset the entity represents on a monitor. Valid values are `runbook`. */ category: string; /** * Name for the monitor asset. */ name: string; /** * Identifier of the internal Datadog resource that this asset represents. */ resourceKey?: string; /** * Type of internal Datadog resource associated with a monitor asset. Valid values are `notebook`. */ resourceType?: string; /** * URL for the asset. */ url: string; } export interface MonitorConfigPolicyDowntimePolicy { /** * The maximum allowed downtime duration, in milliseconds */ maxDurationMs: number; } export interface MonitorConfigPolicyTagPolicy { /** * The key of the tag */ tagKey: string; /** * If a tag key is required for monitor creation */ tagKeyRequired: boolean; /** * Valid values for the tag */ validTagValues: string[]; } export interface MonitorMonitorThresholdWindows { /** * Describes how long an anomalous metric must be normal before the alert recovers. */ recoveryWindow?: string; /** * Describes how long a metric must be anomalous before an alert triggers. */ triggerWindow?: string; } export interface MonitorMonitorThresholds { /** * The monitor `CRITICAL` threshold. Must be a number. */ critical?: string; /** * Query evaluated as a dynamic `CRITICAL` threshold. Only supported on metric monitors with a formula query and `options['variables']`. Cannot be combined with static thresholds. This field is in preview. */ criticalQuery?: string; /** * The monitor `CRITICAL` recovery threshold. Must be a number. */ criticalRecovery?: string; /** * Query evaluated as a dynamic `CRITICAL` recovery threshold. Only supported on metric monitors with a formula query and `options['variables']`. Cannot be combined with static thresholds. This field is in preview. */ criticalRecoveryQuery?: string; /** * The monitor `OK` threshold. Only supported in monitor type `service check`. Must be a number. */ ok?: string; /** * The monitor `UNKNOWN` threshold. Only supported in monitor type `service check`. Must be a number. */ unknown?: string; /** * The monitor `WARNING` threshold. Must be a number. */ warning?: string; /** * The monitor `WARNING` recovery threshold. Must be a number. */ warningRecovery?: string; } export interface MonitorNotificationRuleBundleConfig { /** * Duration of the bundling period */ duration?: number; } export interface MonitorNotificationRuleConditionalRecipients { /** * Conditions of the notification rule. */ conditions?: outputs.MonitorNotificationRuleConditionalRecipientsCondition[]; /** * If none of the `conditions` applied, `fallbackRecipients` will get notified. */ fallbackRecipients?: string[]; } export interface MonitorNotificationRuleConditionalRecipientsCondition { /** * A list of recipients to notify. Uses the same format as the monitor message field. Must not start with an '@'. */ recipients: string[]; /** * Defines the condition under which the recipients are notified. Supported formats: Monitor status condition using `transition_type:` (for example `transition_type:is_alert`) or a single tag `key:value pair` (for example `env:prod`). */ scope: string; } export interface MonitorNotificationRuleFilter { /** * A scope expression composed of `key:value` pairs (such as `env:prod`) with boolean operators (AND, OR, NOT) and parentheses for grouping. */ scope?: string; /** * A list of tag key:value pairs (e.g. team:product). All tags must match (AND semantics). */ tags?: string[]; } export interface MonitorNotificationRuleRuleOptions { /** * Whether notifications from this rule are threaded. When `true`, follow-up notifications for the same monitor alert are posted in Slack as replies to the first notification. Cannot be `true` when `bundleConfig` is set. */ isThreaded: boolean; } export interface MonitorSchedulingOptions { /** * Configuration options for the custom schedules. If `start` is omitted, the monitor creation time will be used. */ customSchedule?: outputs.MonitorSchedulingOptionsCustomSchedule; /** * Configuration options for the evaluation window. If `hourStarts` is set, no other fields may be set. Otherwise, `dayStarts` and `monthStarts` must be set together. */ evaluationWindow?: outputs.MonitorSchedulingOptionsEvaluationWindow; } export interface MonitorSchedulingOptionsCustomSchedule { /** * A list of recurrence definitions. Length must be 1. */ recurrence: outputs.MonitorSchedulingOptionsCustomScheduleRecurrence; } export interface MonitorSchedulingOptionsCustomScheduleRecurrence { /** * Must be a valid `rrule`. See API docs for supported fields */ rrule: string; /** * Time to start recurrence cycle. Similar to DTSTART. Expected format 'YYYY-MM-DDThh:mm:ss' */ start?: string; /** * 'tz database' format. Example: `America/New_York` or `UTC` */ timezone: string; } export interface MonitorSchedulingOptionsEvaluationWindow { /** * The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in `HH:mm` format. */ dayStarts?: string; /** * The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59. */ hourStarts?: number; /** * The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1. */ monthStarts?: number; /** * The timezone for the cumulative evaluation window start time. */ timezone?: string; } export interface MonitorVariables { /** * Aggregate-augmented composite query variables (reference table augment joined to a metrics or events base query). */ aggregateAugmentedQueries?: outputs.MonitorVariablesAggregateAugmentedQuery[]; /** * Aggregate-filtered composite query variables (filter base query results using a reference table or events filter query). */ aggregateFilteredQueries?: outputs.MonitorVariablesAggregateFilteredQuery[]; /** * The Cloud Cost query using formulas and functions. */ cloudCostQueries?: outputs.MonitorVariablesCloudCostQuery[]; /** * The Data Jobs query using formulas and functions. */ dataJobsQueries?: outputs.MonitorVariablesDataJobsQuery[]; /** * The Data Quality query using formulas and functions. */ dataQualityQueries?: outputs.MonitorVariablesDataQualityQuery[]; /** * A timeseries formula and functions events query. */ eventQueries?: outputs.MonitorVariablesEventQuery[]; /** * A metrics query for use in formulas in metric monitors. For cost monitors, use `cloudCostQuery` instead, which requires an aggregator. */ metricQueries?: outputs.MonitorVariablesMetricQuery[]; } export interface MonitorVariablesAggregateAugmentedQuery { /** * Events augment query. Do not set `augmentReferenceTable` in the same block. */ augmentEventQuery?: outputs.MonitorVariablesAggregateAugmentedQueryAugmentEventQuery; /** * Reference table augment query. Do not set `augmentEventQuery` in the same block. */ augmentReferenceTable?: outputs.MonitorVariablesAggregateAugmentedQueryAugmentReferenceTable; /** * Events base query. Do not set `baseMetricsQuery` in the same block. */ baseEventQuery?: outputs.MonitorVariablesAggregateAugmentedQueryBaseEventQuery; /** * Metrics base query. Do not set `baseEventQuery` in the same block. */ baseMetricsQuery?: outputs.MonitorVariablesAggregateAugmentedQueryBaseMetricsQuery; /** * Compute aggregations for the aggregate-augmented query. */ computes: outputs.MonitorVariablesAggregateAugmentedQueryCompute[]; /** * The data source for aggregate-augmented composite queries. Must be `aggregateAugmentedQuery`. Valid values are `aggregateAugmentedQuery`. */ dataSource: string; /** * Group by options for the aggregate-augmented query. At least one block is required. */ groupBies: outputs.MonitorVariablesAggregateAugmentedQueryGroupBy[]; /** * Join condition between augment and base queries. */ joinCondition: outputs.MonitorVariablesAggregateAugmentedQueryJoinCondition; /** * Name of the query for use in formulas. */ name?: string; } export interface MonitorVariablesAggregateAugmentedQueryAugmentEventQuery { /** * The compute options. */ computes: outputs.MonitorVariablesAggregateAugmentedQueryAugmentEventQueryCompute[]; /** * The data source for event platform-based queries. Valid values are `rum`, `ciPipelines`, `ciTests`, `audit`, `events`, `logs`, `spans`, `databaseQueries`, `network`, `networkPath`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.MonitorVariablesAggregateAugmentedQueryAugmentEventQueryGroupBy[]; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search: outputs.MonitorVariablesAggregateAugmentedQueryAugmentEventQuerySearch; } export interface MonitorVariablesAggregateAugmentedQueryAugmentEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined for a query. */ name?: string; } export interface MonitorVariablesAggregateAugmentedQueryAugmentEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.MonitorVariablesAggregateAugmentedQueryAugmentEventQueryGroupBySort; /** * For composite aggregate-augmented queries, identifies which sub-query this group-by facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesAggregateAugmentedQueryAugmentEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesAggregateAugmentedQueryAugmentEventQuerySearch { /** * The events search string. */ query: string; } export interface MonitorVariablesAggregateAugmentedQueryAugmentReferenceTable { /** * Columns to retrieve from the reference table. */ columns?: outputs.MonitorVariablesAggregateAugmentedQueryAugmentReferenceTableColumn[]; /** * Must be `referenceTable`. Valid values are `referenceTable`. */ dataSource: string; /** * Name of the augment sub-query. */ name?: string; /** * Optional filter expression for the reference table query. */ queryFilter?: string; /** * Name of the reference table. */ tableName: string; } export interface MonitorVariablesAggregateAugmentedQueryAugmentReferenceTableColumn { /** * Optional alias for the column. */ alias?: string; /** * Reference table column name. */ name: string; } export interface MonitorVariablesAggregateAugmentedQueryBaseEventQuery { /** * The compute options. */ computes: outputs.MonitorVariablesAggregateAugmentedQueryBaseEventQueryCompute[]; /** * The data source for event platform-based queries. Valid values are `rum`, `ciPipelines`, `ciTests`, `audit`, `events`, `logs`, `spans`, `databaseQueries`, `network`, `networkPath`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.MonitorVariablesAggregateAugmentedQueryBaseEventQueryGroupBy[]; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search: outputs.MonitorVariablesAggregateAugmentedQueryBaseEventQuerySearch; } export interface MonitorVariablesAggregateAugmentedQueryBaseEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined for a query. */ name?: string; } export interface MonitorVariablesAggregateAugmentedQueryBaseEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.MonitorVariablesAggregateAugmentedQueryBaseEventQueryGroupBySort; /** * For composite aggregate-augmented queries, identifies which sub-query this group-by facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesAggregateAugmentedQueryBaseEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesAggregateAugmentedQueryBaseEventQuerySearch { /** * The events search string. */ query: string; } export interface MonitorVariablesAggregateAugmentedQueryBaseMetricsQuery { /** * The aggregation method for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `mean`, `area`, `l2norm`, `percentile`, `stddev`, `countUnique`. */ aggregator?: string; /** * The data source for metrics queries. Valid values are `metrics`, `cloudCost`, `datadogUsage`. */ dataSource: string; /** * The name of the query for use in formulas. */ name?: string; /** * The metrics query definition. */ query: string; } export interface MonitorVariablesAggregateAugmentedQueryCompute { /** * The aggregation methods for compute steps. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined. */ name?: string; } export interface MonitorVariablesAggregateAugmentedQueryGroupBy { /** * The facet to group by. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * Sort options for group by. */ sort?: outputs.MonitorVariablesAggregateAugmentedQueryGroupBySort; /** * Identifies which sub-query this facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesAggregateAugmentedQueryGroupBySort { /** * The aggregation methods for sorting. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesAggregateAugmentedQueryJoinCondition { /** * Attribute from the augment query to join on. */ augmentAttribute: string; /** * Attribute from the base query to join on. */ baseAttribute: string; /** * Join type (for example `inner`). Valid values are `inner`, `left`. */ joinType: string; } export interface MonitorVariablesAggregateFilteredQuery { /** * Events base query. Do not set `baseMetricsQuery` in the same block. */ baseEventQuery?: outputs.MonitorVariablesAggregateFilteredQueryBaseEventQuery; /** * Metrics base query. Do not set `baseEventQuery` in the same block. */ baseMetricsQuery?: outputs.MonitorVariablesAggregateFilteredQueryBaseMetricsQuery; /** * Optional compute aggregations for the aggregate-filtered query. */ computes?: outputs.MonitorVariablesAggregateFilteredQueryCompute[]; /** * The data source for aggregate-filtered composite queries. Must be `aggregateFilteredQuery`. Valid values are `aggregateFilteredQuery`. */ dataSource: string; /** * Events filter query. Do not set `filterReferenceTable` in the same block. */ filterEventQuery?: outputs.MonitorVariablesAggregateFilteredQueryFilterEventQuery; /** * Reference table filter query. Do not set `filterEventQuery` in the same block. */ filterReferenceTable?: outputs.MonitorVariablesAggregateFilteredQueryFilterReferenceTable; /** * Filter conditions mapping base query attributes to filter query attributes. */ filters: outputs.MonitorVariablesAggregateFilteredQueryFilter[]; /** * Optional group by options for the aggregate-filtered query. */ groupBies?: outputs.MonitorVariablesAggregateFilteredQueryGroupBy[]; /** * Name of the query for use in formulas. */ name?: string; } export interface MonitorVariablesAggregateFilteredQueryBaseEventQuery { /** * The compute options. */ computes: outputs.MonitorVariablesAggregateFilteredQueryBaseEventQueryCompute[]; /** * The data source for event platform-based queries. Valid values are `rum`, `ciPipelines`, `ciTests`, `audit`, `events`, `logs`, `spans`, `databaseQueries`, `network`, `networkPath`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.MonitorVariablesAggregateFilteredQueryBaseEventQueryGroupBy[]; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search: outputs.MonitorVariablesAggregateFilteredQueryBaseEventQuerySearch; } export interface MonitorVariablesAggregateFilteredQueryBaseEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined for a query. */ name?: string; } export interface MonitorVariablesAggregateFilteredQueryBaseEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.MonitorVariablesAggregateFilteredQueryBaseEventQueryGroupBySort; /** * For composite aggregate-augmented queries, identifies which sub-query this group-by facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesAggregateFilteredQueryBaseEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesAggregateFilteredQueryBaseEventQuerySearch { /** * The events search string. */ query: string; } export interface MonitorVariablesAggregateFilteredQueryBaseMetricsQuery { /** * The aggregation method for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `mean`, `area`, `l2norm`, `percentile`, `stddev`, `countUnique`. */ aggregator?: string; /** * The data source for metrics queries. Valid values are `metrics`, `cloudCost`, `datadogUsage`. */ dataSource: string; /** * The name of the query for use in formulas. */ name?: string; /** * The metrics query definition. */ query: string; } export interface MonitorVariablesAggregateFilteredQueryCompute { /** * The aggregation methods for compute steps. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined. */ name?: string; } export interface MonitorVariablesAggregateFilteredQueryFilter { /** * Attribute from the base query to filter on. */ baseAttribute: string; /** * When true, exclude matching records instead of including them. */ exclude?: boolean; /** * Attribute from the filter query to match against. */ filterAttribute: string; } export interface MonitorVariablesAggregateFilteredQueryFilterEventQuery { /** * The compute options. */ computes: outputs.MonitorVariablesAggregateFilteredQueryFilterEventQueryCompute[]; /** * The data source for event platform-based queries. Valid values are `rum`, `ciPipelines`, `ciTests`, `audit`, `events`, `logs`, `spans`, `databaseQueries`, `network`, `networkPath`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.MonitorVariablesAggregateFilteredQueryFilterEventQueryGroupBy[]; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search: outputs.MonitorVariablesAggregateFilteredQueryFilterEventQuerySearch; } export interface MonitorVariablesAggregateFilteredQueryFilterEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined for a query. */ name?: string; } export interface MonitorVariablesAggregateFilteredQueryFilterEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.MonitorVariablesAggregateFilteredQueryFilterEventQueryGroupBySort; /** * For composite aggregate-augmented queries, identifies which sub-query this group-by facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesAggregateFilteredQueryFilterEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesAggregateFilteredQueryFilterEventQuerySearch { /** * The events search string. */ query: string; } export interface MonitorVariablesAggregateFilteredQueryFilterReferenceTable { /** * Columns to retrieve from the reference table. */ columns?: outputs.MonitorVariablesAggregateFilteredQueryFilterReferenceTableColumn[]; /** * Must be `referenceTable`. Valid values are `referenceTable`. */ dataSource: string; /** * Name of the filter sub-query. */ name?: string; /** * Optional filter expression for the reference table query. */ queryFilter?: string; /** * Name of the reference table. */ tableName: string; } export interface MonitorVariablesAggregateFilteredQueryFilterReferenceTableColumn { /** * Optional alias for the column. */ alias?: string; /** * Reference table column name. */ name: string; } export interface MonitorVariablesAggregateFilteredQueryGroupBy { /** * The facet to group by. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * Sort options for group by. */ sort?: outputs.MonitorVariablesAggregateFilteredQueryGroupBySort; /** * Identifies which sub-query this facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesAggregateFilteredQueryGroupBySort { /** * The aggregation methods for sorting. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `sum`, `max`, `min`, `last`, `area`, `l2norm`, `percentile`, `stddev`. */ aggregator: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`, `datadogUsage`, `metrics`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface MonitorVariablesDataJobsQuery { /** * The type of job being monitored. Valid values include `databricks.job`, `spark.application`, `airflow.dag`, `dbt.job`, `glue.job`. Custom job types are supported with the `custom.ol.` prefix. */ jobType: string; /** * Filter expression used to select the jobs to monitor. */ jobsQuery: string; /** * Name of the query for use in formulas. Must be `runQuery`. */ name: string; /** * Query dialect for data jobs queries. Currently only `metric` is supported. */ queryDialect: string; } export interface MonitorVariablesDataQualityQuery { /** * The data source for data quality queries. Valid value is `dataQualityMetrics`. Valid values are `dataQualityMetrics`. */ dataSource: string; /** * Filter expression used to match on data entities. Uses AAstra query syntax. */ filter: string; /** * Optional grouping fields for aggregation. */ groupBies?: string[]; /** * The measure to query. Common values include `bytes`, `cardinality`, `custom`, `freshness`, `max`, `mean`, `min`, `nullness`, `percentNegative`, `percentZero`, `rowCount`, `stddev`, `sum`, `uniqueness`. Additional values may be supported. */ measure: string; /** * Monitor configuration options for data quality queries. */ monitorOptions?: outputs.MonitorVariablesDataQualityQueryMonitorOptions; /** * The name of the query for use in formulas. */ name: string; /** * Schema version for the data quality query. */ schemaVersion?: string; /** * Optional scoping expression to further filter metrics. */ scope?: string; } export interface MonitorVariablesDataQualityQueryMonitorOptions { /** * Crontab expression to override the default schedule. */ crontabOverride?: string; /** * Custom SQL query for the monitor. */ customSql?: string; /** * Custom WHERE clause for the query. */ customWhere?: string; /** * Columns to group results by. */ groupByColumns?: string[]; /** * Tuning options for the anomaly detection model used by the monitor. */ modelConfiguration?: outputs.MonitorVariablesDataQualityQueryMonitorOptionsModelConfiguration; /** * Override for the model type. Valid values are `freshness`, `percentage`, `any`. */ modelTypeOverride?: string; /** * Sensitivity of the anomaly detection model, expressed as a multiplier on the width of the predicted bounds. Higher values widen the bounds and produce fewer alerts; lower values tighten them and produce more alerts. Defaults to `3.0`. */ sensitivity?: number; /** * Compare the same measure across two data entities and alert on the difference between them. */ sourceToTargetConfig?: outputs.MonitorVariablesDataQualityQueryMonitorOptionsSourceToTargetConfig; } export interface MonitorVariablesDataQualityQueryMonitorOptionsModelConfiguration { /** * Number of days after which an open alert is automatically resolved. When unset, alerts stay open until the measure returns within bounds. */ autoResolveDays?: number; /** * Whether to alert when the measure stops changing entirely. Defaults to `true`. Defaults to `true`. */ enableFlatlineDetection?: boolean; /** * Function applied to the measure before it is compared against the predicted bounds. Valid values are `DIFF`, `DIFF_PERCENT`. */ function?: string; /** * Minimum distance between the predicted value and the lower bound. Widening the lower bound to at least this size suppresses alerts on small downward deviations. When unset, no minimum is enforced. */ minLowerBoundSize?: number; /** * Minimum distance between the predicted value and the upper bound. Widening the upper bound to at least this size suppresses alerts on small upward deviations. When unset, no minimum is enforced. */ minUpperBoundSize?: number; /** * Restricts which predicted bound the monitor alerts on. When unset, the monitor alerts on both. Valid values are `UPPER_ONLY`, `LOWER_ONLY`. */ modelBoundsOverride?: string; } export interface MonitorVariablesDataQualityQueryMonitorOptionsSourceToTargetConfig { /** * How the difference between the source and target measures is computed. Valid values are `absolute`, `diffPercent`. */ diffType: string; /** * Type of the data entities being compared. */ entityType: string; /** * Measure configuration for the source entity. */ source: outputs.MonitorVariablesDataQualityQueryMonitorOptionsSourceToTargetConfigSource; /** * Measure configuration for the target entity. */ target: outputs.MonitorVariablesDataQualityQueryMonitorOptionsSourceToTargetConfigTarget; } export interface MonitorVariablesDataQualityQueryMonitorOptionsSourceToTargetConfigSource { /** * Custom SQL query used to compute the measure for this entity. */ customSql?: string; /** * Custom WHERE clause applied when computing the measure for this entity. */ customWhere?: string; /** * Identifier of the data entity to measure. */ entityId: string; /** * Type of the data entity to measure. */ entityType: string; /** * Columns to group results by when computing the measure for this entity. */ groupByColumns?: string[]; } export interface MonitorVariablesDataQualityQueryMonitorOptionsSourceToTargetConfigTarget { /** * Custom SQL query used to compute the measure for this entity. */ customSql?: string; /** * Custom WHERE clause applied when computing the measure for this entity. */ customWhere?: string; /** * Identifier of the data entity to measure. */ entityId: string; /** * Type of the data entity to measure. */ entityType: string; /** * Columns to group results by when computing the measure for this entity. */ groupByColumns?: string[]; } export interface MonitorVariablesEventQuery { /** * The compute options. */ computes: outputs.MonitorVariablesEventQueryCompute[]; /** * The data source for event platform-based queries. Valid values are `rum`, `ciPipelines`, `ciTests`, `audit`, `events`, `logs`, `spans`, `databaseQueries`, `network`, `networkPath`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.MonitorVariablesEventQueryGroupBy[]; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search: outputs.MonitorVariablesEventQuerySearch; } export interface MonitorVariablesEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; /** * The name assigned to this aggregation when multiple aggregations are defined for a query. */ name?: string; } export interface MonitorVariablesEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.MonitorVariablesEventQueryGroupBySort; /** * For composite aggregate-augmented queries, identifies which sub-query this group-by facet refers to (for example `filterQuery`). */ source?: string; } export interface MonitorVariablesEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface MonitorVariablesEventQuerySearch { /** * The events search string. */ query: string; } export interface MonitorVariablesMetricQuery { /** * The data source for metrics queries. Valid values are `metrics`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; } export interface ObservabilityPipelineConfig { /** * List of destinations. */ destinations?: outputs.ObservabilityPipelineConfigDestination[]; /** * The type of data being ingested. Defaults to `logs` if not specified. Valid values are `logs`, `metrics`, `traces`. */ pipelineType: string; /** * A processor group containing common configuration and nested processors. */ processorGroups?: outputs.ObservabilityPipelineConfigProcessorGroup[]; /** * List of sources. */ sources?: outputs.ObservabilityPipelineConfigSource[]; /** * Set to `true` to continue using the legacy search syntax while migrating filter queries. After migrating all queries to the new syntax, set to `false`. The legacy syntax is deprecated and will eventually be removed. Requires Observability Pipelines Worker 2.11 or later. Only applies to `logs` pipelines. This field is ignored for `metrics` pipelines. See https://docs.datadoghq.com/observability*pipelines/guide/upgrade*your*filter*queries*to*the*new*search_syntax/ for more information. */ useLegacySearchSyntax: boolean; } export interface ObservabilityPipelineConfigDestination { /** * The `amazonOpensearch` destination writes logs to Amazon OpenSearch. */ amazonOpensearches?: outputs.ObservabilityPipelineConfigDestinationAmazonOpensearch[]; /** * The `amazonS3Generic` destination sends your logs to an Amazon S3 bucket. */ amazonS3Generic?: outputs.ObservabilityPipelineConfigDestinationAmazonS3Generic; /** * The `amazonS3` destination sends your logs in Datadog-rehydratable format to an Amazon S3 bucket for archiving. */ amazonS3s?: outputs.ObservabilityPipelineConfigDestinationAmazonS3[]; /** * The `amazonSecurityLake` destination sends your logs to Amazon Security Lake. */ amazonSecurityLakes?: outputs.ObservabilityPipelineConfigDestinationAmazonSecurityLake[]; /** * The `azureDataExplorer` destination sends log events to an Azure Data Explorer table. */ azureDataExplorer?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorer; /** * The `azureStorage` destination forwards logs to an Azure Blob Storage container. */ azureStorages?: outputs.ObservabilityPipelineConfigDestinationAzureStorage[]; /** * The `clickhouse` destination forwards logs to a ClickHouse server via HTTP. */ clickhouse?: outputs.ObservabilityPipelineConfigDestinationClickhouse; /** * The `cloudPrem` destination sends logs to Datadog CloudPrem. */ cloudPrem?: outputs.ObservabilityPipelineConfigDestinationCloudPrem; /** * The `crowdstrikeNextGenSiem` destination forwards logs to CrowdStrike Next Gen SIEM. */ crowdstrikeNextGenSiems?: outputs.ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiem[]; /** * The `databricksZerobus` destination sends logs to Databricks via the Zerobus ingestion API. */ databricksZerobuses?: outputs.ObservabilityPipelineConfigDestinationDatabricksZerobus[]; /** * The `datadogLogs` destination forwards logs to Datadog Log Management. */ datadogLogs?: outputs.ObservabilityPipelineConfigDestinationDatadogLog[]; /** * The `datadog.getMetrics` destination forwards metrics to Datadog. */ datadogMetrics?: outputs.ObservabilityPipelineConfigDestinationDatadogMetric[]; /** * The `datadogTraces` destination forwards traces to Datadog. */ datadogTraces?: outputs.ObservabilityPipelineConfigDestinationDatadogTraces; /** * The `elasticsearch` destination writes logs or metrics to an Elasticsearch cluster. */ elasticsearches?: outputs.ObservabilityPipelineConfigDestinationElasticsearch[]; /** * The `googleCloudStorage` destination stores logs in a Google Cloud Storage (GCS) bucket. */ googleCloudStorages?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorage[]; /** * The `googlePubsub` destination publishes logs to a Google Cloud Pub/Sub topic. */ googlePubsubs?: outputs.ObservabilityPipelineConfigDestinationGooglePubsub[]; /** * The `googleChronicle` destination sends logs to Google SecOps. */ googleSecops?: outputs.ObservabilityPipelineConfigDestinationGoogleSecop[]; /** * The `httpClient` destination sends data to an HTTP endpoint. */ httpClients?: outputs.ObservabilityPipelineConfigDestinationHttpClient[]; /** * The unique identifier for this destination. */ id: string; /** * A list of component IDs whose output is used as the `input` for this component. */ inputs: string[]; /** * The `kafka` destination sends logs to Apache Kafka topics. */ kafka?: outputs.ObservabilityPipelineConfigDestinationKafka; /** * The `microsoftSentinel` destination forwards logs to Microsoft Sentinel. */ microsoftSentinels?: outputs.ObservabilityPipelineConfigDestinationMicrosoftSentinel[]; /** * The `newRelic` destination sends logs to the New Relic platform. */ newRelics?: outputs.ObservabilityPipelineConfigDestinationNewRelic[]; /** * The `opensearch` destination writes logs to an OpenSearch cluster. */ opensearches?: outputs.ObservabilityPipelineConfigDestinationOpensearch[]; /** * The `opentelemetry` destination forwards metrics or traces using the OpenTelemetry Protocol (OTLP) over HTTP. */ opentelemetry?: outputs.ObservabilityPipelineConfigDestinationOpentelemetry; /** * The `prometheusRemoteWrite` destination sends metrics to a Prometheus Remote Write compatible endpoint. */ prometheusRemoteWrite?: outputs.ObservabilityPipelineConfigDestinationPrometheusRemoteWrite; /** * The `rsyslog` destination forwards logs to an external `rsyslog` server over TCP or UDP using the syslog protocol. */ rsyslogs?: outputs.ObservabilityPipelineConfigDestinationRsyslog[]; /** * The `sentinelOne` destination sends logs to SentinelOne. */ sentinelOnes?: outputs.ObservabilityPipelineConfigDestinationSentinelOne[]; /** * The `socket` destination sends logs over TCP or UDP to a remote server. */ sockets?: outputs.ObservabilityPipelineConfigDestinationSocket[]; /** * The `splunkHecMetrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC). */ splunkHecMetrics?: outputs.ObservabilityPipelineConfigDestinationSplunkHecMetrics; /** * The `splunkHec` destination forwards logs to Splunk using the HTTP Event Collector (HEC). */ splunkHecs?: outputs.ObservabilityPipelineConfigDestinationSplunkHec[]; /** * The `sumoLogic` destination forwards logs to Sumo Logic. */ sumoLogics?: outputs.ObservabilityPipelineConfigDestinationSumoLogic[]; /** * The `syslogNg` destination forwards logs to an external `syslog-ng` server over TCP or UDP using the syslog protocol. */ syslogNgs?: outputs.ObservabilityPipelineConfigDestinationSyslogNg[]; } export interface ObservabilityPipelineConfigDestinationAmazonOpensearch { /** * Authentication settings for the Amazon OpenSearch destination. */ auth?: outputs.ObservabilityPipelineConfigDestinationAmazonOpensearchAuth; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationAmazonOpensearchBuffer; /** * The index or datastream to write logs to. */ bulkIndex?: string; /** * Configuration options for writing to Amazon OpenSearch Data Streams instead of a fixed index. */ dataStream?: outputs.ObservabilityPipelineConfigDestinationAmazonOpensearchDataStream; /** * Name of the environment variable or secret that holds the Amazon OpenSearch endpoint URL. */ endpointUrlKey?: string; } export interface ObservabilityPipelineConfigDestinationAmazonOpensearchAuth { /** * ARN of the role to assume. */ assumeRole?: string; /** * AWS region override (if applicable). */ awsRegion?: string; /** * External ID for assumed role. */ externalId?: string; /** * Name of the environment variable or secret that holds the Amazon OpenSearch password (used when `strategy` is `basic`). */ passwordKey?: string; /** * Session name for assumed role. */ sessionName?: string; /** * The authentication strategy to use (e.g. aws or basic). */ strategy: string; /** * Name of the environment variable or secret that holds the Amazon OpenSearch username (used when `strategy` is `basic`). */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationAmazonOpensearchBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationAmazonOpensearchBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationAmazonOpensearchBufferMemory; } export interface ObservabilityPipelineConfigDestinationAmazonOpensearchBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonOpensearchBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonOpensearchDataStream { /** * The data stream dataset for your logs. This groups logs by their source or application. */ dataset?: string; /** * The data stream type for your logs. This determines how logs are categorized within the data stream. */ dtype?: string; /** * The data stream namespace for your logs. This separates logs into different environments or domains. */ namespace?: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3 { /** * AWS authentication credentials used for accessing AWS services. If omitted, the system's default credentials are used (for example, the IAM role and environment variables). */ auth?: outputs.ObservabilityPipelineConfigDestinationAmazonS3Auth; /** * S3 bucket name. */ bucket: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationAmazonS3Buffer; /** * Compression configuration for archived logs. When omitted, the worker default (gzip) is used. */ compression?: outputs.ObservabilityPipelineConfigDestinationAmazonS3Compression; /** * Prefix for object keys. */ keyPrefix: string; /** * AWS region of the S3 bucket. */ region: string; /** * The server-side encryption algorithm used when storing objects in S3. Valid values: `aws:kms`, `AES256`. Valid values are `aws:kms`, `AES256`. */ serverSideEncryption?: string; /** * ID of the AWS KMS key to use for SSE-KMS encryption. Only applies when `serverSideEncryption` is `aws:kms`. */ ssekmsKeyId?: string; /** * S3 storage class. Valid values are `STANDARD`, `REDUCED_REDUNDANCY`, `INTELLIGENT_TIERING`, `STANDARD_IA`, `EXPRESS_ONEZONE`, `ONEZONE_IA`, `GLACIER`, `GLACIER_IR`, `DEEP_ARCHIVE`. */ storageClass: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3Auth { /** * The Amazon Resource Name (ARN) of the role to assume. */ assumeRole?: string; /** * A unique identifier for cross-account role assumption. */ externalId?: string; /** * A session identifier used for logging and tracing the assumed role session. */ sessionName?: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3Buffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationAmazonS3BufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationAmazonS3BufferMemory; } export interface ObservabilityPipelineConfigDestinationAmazonS3BufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3BufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3Compression { /** * Compression algorithm. One of `gzip` or `zstd`. Valid values are `gzip`, `zstd`. */ algorithm: string; /** * Compression level. Applies to `gzip` (1-9) and `zstd` (1-21). */ level: number; } export interface ObservabilityPipelineConfigDestinationAmazonS3Generic { /** * AWS authentication credentials used for accessing AWS services. If omitted, the system's default credentials are used (for example, the IAM role and environment variables). */ auth?: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericAuth; /** * Event batching settings. */ batchSettings?: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericBatchSettings; /** * S3 bucket name. */ bucket: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericBuffer; /** * Compression configuration. */ compression: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericCompression; /** * Encoding format for the destination. */ encoding: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericEncoding; /** * Optional prefix for object keys. */ keyPrefix?: string; /** * AWS region of the S3 bucket. */ region: string; /** * The server-side encryption algorithm used when storing objects in S3. Valid values: `aws:kms`, `AES256`. Valid values are `aws:kms`, `AES256`. */ serverSideEncryption?: string; /** * ID of the AWS KMS key to use for SSE-KMS encryption. Only applies when `serverSideEncryption` is `aws:kms`. */ ssekmsKeyId?: string; /** * S3 storage class. Valid values are `STANDARD`, `REDUCED_REDUNDANCY`, `INTELLIGENT_TIERING`, `STANDARD_IA`, `EXPRESS_ONEZONE`, `ONEZONE_IA`, `GLACIER`, `GLACIER_IR`, `DEEP_ARCHIVE`. */ storageClass: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericAuth { /** * The Amazon Resource Name (ARN) of the role to assume. */ assumeRole?: string; /** * A unique identifier for cross-account role assumption. */ externalId?: string; /** * A session identifier used for logging and tracing the assumed role session. */ sessionName?: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericBatchSettings { /** * Maximum batch size in bytes. */ batchSize?: number; /** * Maximum number of seconds to wait before flushing the batch. */ timeoutSecs?: number; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationAmazonS3GenericBufferMemory; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericCompression { /** * Compression algorithm. Valid values are `gzip`, `zstd`, `snappy`. */ algorithm: string; /** * Compression level. */ level?: number; } export interface ObservabilityPipelineConfigDestinationAmazonS3GenericEncoding { /** * The encoding type. Valid values are `json`, `parquet`. */ type: string; } export interface ObservabilityPipelineConfigDestinationAmazonSecurityLake { /** * AWS authentication credentials used for accessing AWS services. If omitted, the system's default credentials are used (for example, the IAM role and environment variables). */ auth?: outputs.ObservabilityPipelineConfigDestinationAmazonSecurityLakeAuth; /** * Name of the Amazon S3 bucket in Security Lake (3-63 characters). */ bucket: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationAmazonSecurityLakeBuffer; /** * Custom source name for the logs in Security Lake. */ customSourceName: string; /** * AWS region of the Security Lake bucket. */ region: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationAmazonSecurityLakeTls; } export interface ObservabilityPipelineConfigDestinationAmazonSecurityLakeAuth { /** * The Amazon Resource Name (ARN) of the role to assume. */ assumeRole?: string; /** * A unique identifier for cross-account role assumption. */ externalId?: string; /** * A session identifier used for logging and tracing the assumed role session. */ sessionName?: string; } export interface ObservabilityPipelineConfigDestinationAmazonSecurityLakeBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationAmazonSecurityLakeBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationAmazonSecurityLakeBufferMemory; } export interface ObservabilityPipelineConfigDestinationAmazonSecurityLakeBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonSecurityLakeBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAmazonSecurityLakeTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorer { /** * Authentication configuration for Azure Data Explorer. Exactly one of `azureCli`, `clientSecret`, `clientCertificate`, `managedIdentity`, `managedIdentityClientAssertion`, or `workloadIdentity` must be specified. */ auth: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuth; /** * Event batching settings for Azure Data Explorer ingestion. */ batch?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerBatch; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerBuffer; /** * Compression configuration for ingested data. Only `gzip` is supported. */ compression?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerCompression; /** * The name of the Azure Data Explorer database to ingest into. Supports template syntax. */ database: string; /** * Name of the environment variable or secret that holds the Azure Data Explorer ingestion endpoint URL. Defaults to `DESTINATION_AZURE_DATA_EXPLORER_INGESTION_ENDPOINT`. */ ingestionEndpointKey?: string; /** * The name of a pre-created ingestion mapping on the table used to map incoming events to columns. Supports template syntax. */ mappingReference?: string; /** * The name of the Azure Data Explorer table to ingest into. Supports template syntax. */ table: string; /** * The OAuth scope requested when acquiring an access token for Azure Data Explorer. Defaults to `https://kusto.kusto.windows.net/.default`. */ tokenScope?: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuth { /** * Authenticate using the Azure CLI credentials available in the environment. */ azureCli?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuthAzureCli; /** * Authenticate using a Microsoft Entra application client certificate. */ clientCertificate?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuthClientCertificate; /** * Authenticate using a Microsoft Entra application client secret. */ clientSecret?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuthClientSecret; /** * Authenticate using an Azure managed identity. */ managedIdentity?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuthManagedIdentity; /** * Authenticate using a managed identity as a client assertion for a Microsoft Entra application. */ managedIdentityClientAssertion?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuthManagedIdentityClientAssertion; /** * Authenticate using Azure Workload Identity (for example, on Kubernetes). */ workloadIdentity?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerAuthWorkloadIdentity; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuthAzureCli { } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuthClientCertificate { /** * The Microsoft Entra application (client) ID. */ azureClientId: string; /** * The Microsoft Entra tenant ID. */ azureTenantId: string; /** * Name of the environment variable or secret that holds the password for the client certificate. */ certificatePasswordKey?: string; /** * Path to the `.pfx` client certificate file on the Worker. */ certificatePath: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuthClientSecret { /** * The Microsoft Entra application (client) ID. */ azureClientId: string; /** * Name of the environment variable or secret that holds the Microsoft Entra application client secret. */ azureClientSecretKey: string; /** * The Microsoft Entra tenant ID. */ azureTenantId: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuthManagedIdentity { /** * The ID of the user-assigned managed identity. If omitted, the system-assigned managed identity is used. */ userAssignedManagedIdentityId?: string; /** * The type of the user-assigned managed identity ID. Valid values are `clientId`, `objectId`, and `resourceId`. Valid values are `clientId`, `objectId`, `resourceId`. */ userAssignedManagedIdentityIdType?: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuthManagedIdentityClientAssertion { /** * The client ID of the Microsoft Entra application that trusts the managed identity. */ clientAssertionClientId: string; /** * The tenant ID of the Microsoft Entra application that trusts the managed identity. */ clientAssertionTenantId: string; /** * The ID of the user-assigned managed identity. If omitted, the system-assigned managed identity is used. */ userAssignedManagedIdentityId?: string; /** * The type of the user-assigned managed identity ID. Valid values are `clientId`, `objectId`, and `resourceId`. Valid values are `clientId`, `objectId`, `resourceId`. */ userAssignedManagedIdentityIdType?: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerAuthWorkloadIdentity { /** * The client ID of the Microsoft Entra application. If omitted, it is read from the environment. */ clientId?: string; /** * The Microsoft Entra tenant ID. If omitted, it is read from the environment. */ tenantId?: string; /** * Path to the federated token file. If omitted, it is read from the environment. */ tokenFilePath?: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerBatch { /** * Maximum batch size in bytes. Value must be between 1 and 4000000. */ maxBytes?: number; /** * Maximum number of events per batch before it is flushed. Value must be at least 1. */ maxEvents?: number; /** * Maximum number of seconds to wait before flushing a partial batch. Value must be at least 1. */ timeoutSecs?: number; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationAzureDataExplorerBufferMemory; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAzureDataExplorerCompression { /** * Compression algorithm. Must be `gzip`. Valid values are `gzip`. */ algorithm: string; /** * Gzip compression level (1-9). Value must be between 1 and 9. */ level: number; } export interface ObservabilityPipelineConfigDestinationAzureStorage { /** * Optional prefix for blobs written to the container. */ blobPrefix?: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationAzureStorageBuffer; /** * Compression configuration for archived logs. When omitted, the worker default (gzip) is used. */ compression?: outputs.ObservabilityPipelineConfigDestinationAzureStorageCompression; /** * Name of the environment variable or secret that holds the Azure Storage connection string. */ connectionStringKey?: string; /** * The name of the Azure Blob Storage container to store logs in. */ containerName: string; } export interface ObservabilityPipelineConfigDestinationAzureStorageBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationAzureStorageBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationAzureStorageBufferMemory; } export interface ObservabilityPipelineConfigDestinationAzureStorageBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAzureStorageBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationAzureStorageCompression { /** * Compression algorithm. One of `gzip` or `zstd`. Valid values are `gzip`, `zstd`. */ algorithm: string; /** * Compression level. Applies to `gzip` (1-9) and `zstd` (1-21). */ level: number; } export interface ObservabilityPipelineConfigDestinationClickhouse { /** * Authentication strategy for ClickHouse HTTP requests. Only `basic` strategy is supported. */ auth?: outputs.ObservabilityPipelineConfigDestinationClickhouseAuth; /** * Batching configuration for ClickHouse inserts. */ batch?: outputs.ObservabilityPipelineConfigDestinationClickhouseBatch; /** * Batch encoding configuration. Required when `format` is `arrowStream`. */ batchEncoding?: outputs.ObservabilityPipelineConfigDestinationClickhouseBatchEncoding; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationClickhouseBuffer; /** * Compression for outbound HTTP requests. Use `algorithm = "gzip"` or `algorithm = "none"`. */ compression?: outputs.ObservabilityPipelineConfigDestinationClickhouseCompression; /** * Optional name of the ClickHouse database to write to. When omitted, the user's default database is used. */ database?: string; /** * If `true`, enables flexible DateTime parsing on the server side. */ dateTimeBestEffort?: boolean; /** * Name of the environment variable or secret that holds the ClickHouse HTTP endpoint URL. Defaults to `DESTINATION_CLICKHOUSE_ENDPOINT_URL`. */ endpointUrlKey?: string; /** * Insert format for events. `jsonEachRow` maps event fields to columns by name. `jsonAsObject` and `jsonAsString` insert each event into a single JSON or String column. `arrowStream` batches events with Apache Arrow IPC streaming and requires `batchEncoding`. Valid values are `jsonEachRow`, `jsonAsObject`, `jsonAsString`, `arrowStream`. */ format?: string; /** * If `true`, fields not present in the target table schema are dropped instead of causing insert errors. When unset, the ClickHouse server's own `inputFormatSkipUnknownFields` setting applies. */ skipUnknownFields?: boolean; /** * Target ClickHouse table name. */ table: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationClickhouseTls; } export interface ObservabilityPipelineConfigDestinationClickhouseAuth { /** * Name of the environment variable or secret that holds the ClickHouse password. Defaults to `DESTINATION_CLICKHOUSE_PASSWORD`. */ passwordKey?: string; /** * Authentication strategy. Must be `basic`. Valid values are `basic`. */ strategy: string; /** * Name of the environment variable or secret that holds the ClickHouse username. Defaults to `DESTINATION_CLICKHOUSE_USERNAME`. */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationClickhouseBatch { /** * Maximum number of events per batch. Value must be at least 1. */ maxEvents?: number; /** * Maximum time in seconds before a partial batch is flushed. Value must be between 1 and 65535. */ timeoutSecs?: number; } export interface ObservabilityPipelineConfigDestinationClickhouseBatchEncoding { /** * If `true`, allows null values for non-nullable fields in the ClickHouse schema. Defaults to `false`. */ allowNullableFields?: boolean; /** * Batch encoding codec. Must be `arrowStream`. Valid values are `arrowStream`. */ codec: string; } export interface ObservabilityPipelineConfigDestinationClickhouseBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationClickhouseBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationClickhouseBufferMemory; } export interface ObservabilityPipelineConfigDestinationClickhouseBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationClickhouseBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationClickhouseCompression { /** * Compression algorithm. Valid values are `gzip` and `none`. Valid values are `gzip`, `none`. */ algorithm: string; /** * Compression level (1–9). Only valid when `algorithm` is `gzip`. Value must be between 1 and 9. */ level?: number; } export interface ObservabilityPipelineConfigDestinationClickhouseTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationCloudPrem { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationCloudPremBuffer; /** * Name of the environment variable or secret that holds the endpoint URL. */ endpointUrlKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationCloudPremTls; } export interface ObservabilityPipelineConfigDestinationCloudPremBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationCloudPremBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationCloudPremBufferMemory; } export interface ObservabilityPipelineConfigDestinationCloudPremBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationCloudPremBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationCloudPremTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. */ serverName?: string; } export interface ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiem { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemBuffer; /** * Compression configuration for log events. */ compression?: outputs.ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemCompression; /** * Encoding format for log events. Valid values are `json`, `rawMessage`. */ encoding: string; /** * Name of the environment variable or secret that holds the endpoint URL. */ endpointUrlKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemTls; /** * Name of the environment variable or secret that holds the authentication token. */ tokenKey?: string; } export interface ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemBufferMemory; } export interface ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemCompression { /** * Compression algorithm for log events. */ algorithm: string; /** * Compression level. */ level?: number; } export interface ObservabilityPipelineConfigDestinationCrowdstrikeNextGenSiemTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationDatabricksZerobus { /** * OAuth client credentials used to authenticate with Databricks. */ auths?: outputs.ObservabilityPipelineConfigDestinationDatabricksZerobusAuth[]; /** * The name of the secret or environment variable holding the Databricks Zerobus ingestion endpoint URL. */ ingestionEndpointKey?: string; /** * The name of the Databricks table to ingest logs into. */ tableName: string; /** * The name of the secret or environment variable holding the Databricks Unity Catalog endpoint URL. */ unityCatalogEndpointKey?: string; } export interface ObservabilityPipelineConfigDestinationDatabricksZerobusAuth { /** * The OAuth client ID used to authenticate with Databricks. */ clientId: string; /** * The name of the secret or environment variable holding the OAuth client secret. Defaults to `DESTINATION_DATABRICKS_ZEROBUS_OAUTH_CLIENT_SECRET`. */ clientSecretKey?: string; } export interface ObservabilityPipelineConfigDestinationDatadogLog { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationDatadogLogBuffer; /** * A list of routing rules that forward matching logs to Datadog using dedicated API keys. */ routes?: outputs.ObservabilityPipelineConfigDestinationDatadogLogRoute[]; } export interface ObservabilityPipelineConfigDestinationDatadogLogBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationDatadogLogBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationDatadogLogBufferMemory; } export interface ObservabilityPipelineConfigDestinationDatadogLogBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogLogBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogLogRoute { /** * Name of the environment variable or secret that stores the Datadog API key used by this route. */ apiKeyKey: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationDatadogLogRouteBuffer; /** * A Datadog search query that determines which logs are forwarded using this route. */ include: string; /** * Unique identifier for this route within the destination. */ routeId: string; /** * Datadog site where matching logs are sent (for example, `us1`). */ site: string; } export interface ObservabilityPipelineConfigDestinationDatadogLogRouteBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationDatadogLogRouteBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationDatadogLogRouteBufferMemory; } export interface ObservabilityPipelineConfigDestinationDatadogLogRouteBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogLogRouteBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogMetric { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationDatadogMetricBuffer; } export interface ObservabilityPipelineConfigDestinationDatadogMetricBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationDatadogMetricBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationDatadogMetricBufferMemory; } export interface ObservabilityPipelineConfigDestinationDatadogMetricBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogMetricBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogTraces { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationDatadogTracesBuffer; } export interface ObservabilityPipelineConfigDestinationDatadogTracesBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationDatadogTracesBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationDatadogTracesBufferMemory; } export interface ObservabilityPipelineConfigDestinationDatadogTracesBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationDatadogTracesBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationElasticsearch { /** * The Elasticsearch API version to use. Set to `auto` to auto-detect. Valid values are `auto`, `v6`, `v7`, `v8`. */ apiVersion?: string; /** * Authentication settings for the Elasticsearch destination. */ auth?: outputs.ObservabilityPipelineConfigDestinationElasticsearchAuth; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationElasticsearchBuffer; /** * The name of the index to write events to in Elasticsearch. */ bulkIndex?: string; /** * Compression configuration for the Elasticsearch destination. */ compression?: outputs.ObservabilityPipelineConfigDestinationElasticsearchCompression; /** * Configuration options for writing to Elasticsearch Data Streams instead of a fixed index. */ dataStream?: outputs.ObservabilityPipelineConfigDestinationElasticsearchDataStream; /** * Name of the environment variable or secret that holds the Elasticsearch endpoint URL. */ endpointUrlKey?: string; /** * The name of the field used as the document ID in Elasticsearch. */ idKey?: string; /** * The name of an Elasticsearch ingest pipeline to apply to events before indexing. */ pipeline?: string; /** * When `true`, retries failed partial bulk requests when some events in a batch fail while others succeed. */ requestRetryPartial?: boolean; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationElasticsearchTls; } export interface ObservabilityPipelineConfigDestinationElasticsearchAuth { /** * Name of the environment variable or secret that holds the Elasticsearch password (used when `strategy` is `basic`). */ passwordKey?: string; /** * The authentication strategy to use. Valid values are `basic`, `aws`. */ strategy: string; /** * Name of the environment variable or secret that holds the Elasticsearch username (used when `strategy` is `basic`). */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationElasticsearchBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationElasticsearchBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationElasticsearchBufferMemory; } export interface ObservabilityPipelineConfigDestinationElasticsearchBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationElasticsearchBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationElasticsearchCompression { /** * The compression algorithm applied when sending data to Elasticsearch. Valid values are `none`, `gzip`, `zlib`, `zstd`, `snappy`. */ algorithm: string; /** * The compression level. Only applicable for `gzip`, `zlib`, and `zstd` algorithms. */ level?: number; } export interface ObservabilityPipelineConfigDestinationElasticsearchDataStream { /** * When `true`, automatically routes events to the appropriate data stream based on the event content. */ autoRouting?: boolean; /** * The data stream dataset. This groups events by their source or application. */ dataset?: string; /** * The data stream type. This determines how events are categorized within the data stream. */ dtype?: string; /** * The data stream namespace. This separates events into different environments or domains. */ namespace?: string; /** * When `true`, synchronizes data stream fields with the Elasticsearch index mapping. */ syncFields?: boolean; } export interface ObservabilityPipelineConfigDestinationElasticsearchTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorage { /** * Access control list setting for objects written to the bucket. */ acl?: string; /** * Google Cloud credentials used to authenticate with Google Cloud services. */ auth?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorageAuth; /** * Name of the GCS bucket. */ bucket: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorageBuffer; /** * Compression configuration for archived logs. When omitted, the worker default (gzip) is used. */ compression?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorageCompression; /** * Optional prefix for object keys within the GCS bucket. */ keyPrefix?: string; /** * Custom metadata key-value pairs added to each object. */ metadatas?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorageMetadata[]; /** * Storage class used for objects stored in GCS. */ storageClass: string; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorageAuth { /** * Path to the Google Cloud service account key file. */ credentialsFile: string; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorageBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorageBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationGoogleCloudStorageBufferMemory; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorageBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorageBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorageCompression { /** * Compression algorithm. One of `gzip` or `zstd`. Valid values are `gzip`, `zstd`. */ algorithm: string; /** * Compression level. Applies to `gzip` (1-9) and `zstd` (1-21). */ level: number; } export interface ObservabilityPipelineConfigDestinationGoogleCloudStorageMetadata { /** * The metadata key. */ name: string; /** * The metadata value. */ value: string; } export interface ObservabilityPipelineConfigDestinationGooglePubsub { /** * Google Cloud credentials used to authenticate with Google Cloud services. */ auth?: outputs.ObservabilityPipelineConfigDestinationGooglePubsubAuth; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationGooglePubsubBuffer; /** * Encoding format for log events. Valid values: `json`, `rawMessage`. */ encoding: string; /** * Name of the environment variable or secret that holds the Google Cloud Pub/Sub endpoint URL. */ endpointUrlKey?: string; /** * The Google Cloud project ID that owns the Pub/Sub topic. */ project: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationGooglePubsubTls; /** * The Pub/Sub topic name to publish logs to. */ topic: string; } export interface ObservabilityPipelineConfigDestinationGooglePubsubAuth { /** * Path to the Google Cloud service account key file. */ credentialsFile: string; } export interface ObservabilityPipelineConfigDestinationGooglePubsubBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationGooglePubsubBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationGooglePubsubBufferMemory; } export interface ObservabilityPipelineConfigDestinationGooglePubsubBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationGooglePubsubBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationGooglePubsubTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationGoogleSecop { /** * Google Cloud credentials used to authenticate with Google Cloud services. */ auth?: outputs.ObservabilityPipelineConfigDestinationGoogleSecopAuth; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationGoogleSecopBuffer; /** * The Google SecOps customer ID. */ customerId: string; /** * The encoding format for the logs sent to Google SecOps. Valid values are `json`, `rawMessage`. */ encoding: string; /** * Name of the environment variable or secret that holds the Google Chronicle endpoint URL. */ endpointUrlKey?: string; /** * The log type metadata associated with the Google SecOps destination. */ logType: string; } export interface ObservabilityPipelineConfigDestinationGoogleSecopAuth { /** * Path to the Google Cloud service account key file. */ credentialsFile: string; } export interface ObservabilityPipelineConfigDestinationGoogleSecopBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationGoogleSecopBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationGoogleSecopBufferMemory; } export interface ObservabilityPipelineConfigDestinationGoogleSecopBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationGoogleSecopBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationHttpClient { /** * HTTP authentication strategy. Valid values are `none`, `basic`, `bearer`, `custom`. */ authStrategy?: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationHttpClientBuffer; /** * Compression configuration for HTTP requests. */ compression?: outputs.ObservabilityPipelineConfigDestinationHttpClientCompression; /** * Name of the environment variable or secret that holds the custom authentication header value. Used with the `custom` auth strategy. */ customKey?: string; /** * Encoding format for events. Valid values are `json`. */ encoding: string; /** * Name of the environment variable or secret that holds the password. */ passwordKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationHttpClientTls; /** * Name of the environment variable or secret that holds the authentication token. */ tokenKey?: string; /** * Name of the environment variable or secret that holds the request URI. */ uriKey?: string; /** * Name of the environment variable or secret that holds the username. */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationHttpClientBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationHttpClientBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationHttpClientBufferMemory; } export interface ObservabilityPipelineConfigDestinationHttpClientBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationHttpClientBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationHttpClientCompression { /** * Compression algorithm. Valid values are `gzip`. */ algorithm: string; } export interface ObservabilityPipelineConfigDestinationHttpClientTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. */ serverName?: string; } export interface ObservabilityPipelineConfigDestinationKafka { /** * Name of the environment variable or secret that holds the Kafka bootstrap servers. */ bootstrapServersKey?: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationKafkaBuffer; /** * Compression codec for Kafka messages. Valid values are `none`, `gzip`, `snappy`, `lz4`, `zstd`. */ compression?: string; /** * Encoding format for log events. Valid values are `json`, `rawMessage`. */ encoding: string; /** * The field name to use for Kafka message headers. */ headersKey?: string; /** * The field name to use as the Kafka message key. */ keyField?: string; /** * Optional list of advanced Kafka producer configuration options, defined as key-value pairs. */ librdkafkaOptions?: outputs.ObservabilityPipelineConfigDestinationKafkaLibrdkafkaOption[]; /** * Maximum time in milliseconds to wait for message delivery confirmation. */ messageTimeoutMs?: number; /** * Duration in seconds for the rate limit window. */ rateLimitDurationSecs?: number; /** * Maximum number of messages allowed per rate limit duration. */ rateLimitNum?: number; /** * Specifies the SASL mechanism for authenticating with a Kafka cluster. */ sasl?: outputs.ObservabilityPipelineConfigDestinationKafkaSasl; /** * Socket timeout in milliseconds for network requests. */ socketTimeoutMs?: number; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationKafkaTls; /** * The Kafka topic name to publish logs to. */ topic: string; } export interface ObservabilityPipelineConfigDestinationKafkaBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationKafkaBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationKafkaBufferMemory; } export interface ObservabilityPipelineConfigDestinationKafkaBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationKafkaBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationKafkaLibrdkafkaOption { /** * The name of the librdkafka configuration option. */ name: string; /** * The value of the librdkafka configuration option. */ value: string; } export interface ObservabilityPipelineConfigDestinationKafkaSasl { /** * SASL authentication mechanism. Valid values are `PLAIN`, `SCRAM-SHA-256`, `SCRAM-SHA-512`. */ mechanism: string; /** * Name of the environment variable or secret that holds the SASL password. */ passwordKey?: string; /** * Name of the environment variable or secret that holds the SASL username. */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationKafkaTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationMicrosoftSentinel { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationMicrosoftSentinelBuffer; /** * Azure AD client ID used for authentication. */ clientId: string; /** * Name of the environment variable or secret that holds the Azure AD client secret. */ clientSecretKey?: string; /** * Name of the environment variable or secret that holds the Data Collection Endpoint (DCE) URI. */ dceUriKey?: string; /** * The immutable ID of the Data Collection Rule (DCR). */ dcrImmutableId: string; /** * The name of the Log Analytics table where logs will be sent. */ table: string; /** * Azure AD tenant ID. */ tenantId: string; } export interface ObservabilityPipelineConfigDestinationMicrosoftSentinelBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationMicrosoftSentinelBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationMicrosoftSentinelBufferMemory; } export interface ObservabilityPipelineConfigDestinationMicrosoftSentinelBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationMicrosoftSentinelBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationNewRelic { /** * Name of the environment variable or secret that holds the New Relic account ID. */ accountIdKey?: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationNewRelicBuffer; /** * Name of the environment variable or secret that holds the New Relic license key. */ licenseKeyKey?: string; /** * The New Relic region. */ region: string; } export interface ObservabilityPipelineConfigDestinationNewRelicBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationNewRelicBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationNewRelicBufferMemory; } export interface ObservabilityPipelineConfigDestinationNewRelicBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationNewRelicBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationOpensearch { /** * Authentication settings for the OpenSearch destination. */ auth?: outputs.ObservabilityPipelineConfigDestinationOpensearchAuth; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationOpensearchBuffer; /** * The index or datastream to write logs to. */ bulkIndex?: string; /** * Configuration options for writing to OpenSearch Data Streams instead of a fixed index. */ dataStream?: outputs.ObservabilityPipelineConfigDestinationOpensearchDataStream; /** * Name of the environment variable or secret that holds the OpenSearch endpoint URL. */ endpointUrlKey?: string; } export interface ObservabilityPipelineConfigDestinationOpensearchAuth { /** * Name of the environment variable or secret that holds the OpenSearch password (used when `strategy` is `basic`). */ passwordKey?: string; /** * The authentication strategy to use. Valid values are `basic`, `aws`. */ strategy: string; /** * Name of the environment variable or secret that holds the OpenSearch username (used when `strategy` is `basic`). */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationOpensearchBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationOpensearchBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationOpensearchBufferMemory; } export interface ObservabilityPipelineConfigDestinationOpensearchBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationOpensearchBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationOpensearchDataStream { /** * The data stream dataset for your logs. This groups logs by their source or application. */ dataset?: string; /** * The data stream type for your logs. This determines how logs are categorized within the data stream. */ dtype?: string; /** * The data stream namespace for your logs. This separates logs into different environments or domains. */ namespace?: string; } export interface ObservabilityPipelineConfigDestinationOpentelemetry { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationOpentelemetryBuffer; /** * Environment variable name containing the URI of the OTLP HTTP endpoint to send metrics or traces to. */ httpClientUriKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationOpentelemetryTls; } export interface ObservabilityPipelineConfigDestinationOpentelemetryBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationOpentelemetryBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationOpentelemetryBufferMemory; } export interface ObservabilityPipelineConfigDestinationOpentelemetryBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationOpentelemetryBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationOpentelemetryTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationPrometheusRemoteWrite { /** * The authentication strategy to use for outgoing Prometheus Remote Write requests. Valid values are `none`, `basic`, `bearer`. */ authStrategy?: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationPrometheusRemoteWriteBuffer; /** * The default namespace to prefix onto metric names that don't already have one. */ defaultNamespace?: string; /** * Name of the environment variable or secret that holds the Prometheus Remote Write endpoint URL. */ endpointUrlKey?: string; /** * Name of the environment variable or secret that holds the password. Used when `authStrategy` is `basic`. */ passwordKey?: string; /** * The tenant ID to include with outgoing requests. Used by multi-tenant Prometheus Remote Write receivers. */ tenantId?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationPrometheusRemoteWriteTls; /** * Name of the environment variable or secret that holds the bearer token. Used when `authStrategy` is `bearer`. */ tokenKey?: string; /** * Name of the environment variable or secret that holds the username. Used when `authStrategy` is `basic`. */ usernameKey?: string; } export interface ObservabilityPipelineConfigDestinationPrometheusRemoteWriteBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationPrometheusRemoteWriteBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationPrometheusRemoteWriteBufferMemory; } export interface ObservabilityPipelineConfigDestinationPrometheusRemoteWriteBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationPrometheusRemoteWriteBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationPrometheusRemoteWriteTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. */ serverName?: string; } export interface ObservabilityPipelineConfigDestinationRsyslog { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationRsyslogBuffer; /** * Name of the environment variable or secret that holds the rsyslog endpoint URL. */ endpointUrlKey?: string; /** * Optional socket keepalive duration in milliseconds. */ keepalive?: number; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationRsyslogTls; } export interface ObservabilityPipelineConfigDestinationRsyslogBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationRsyslogBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationRsyslogBufferMemory; } export interface ObservabilityPipelineConfigDestinationRsyslogBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationRsyslogBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationRsyslogTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationSentinelOne { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationSentinelOneBuffer; /** * The SentinelOne region to send logs to. */ region: string; /** * Name of the environment variable or secret that holds the SentinelOne API token. */ tokenKey?: string; } export interface ObservabilityPipelineConfigDestinationSentinelOneBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationSentinelOneBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationSentinelOneBufferMemory; } export interface ObservabilityPipelineConfigDestinationSentinelOneBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSentinelOneBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSocket { /** * Name of the environment variable or secret that holds the socket address (host:port). */ addressKey?: string; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationSocketBuffer; /** * Encoding format for log events. Valid values are `json`, `rawMessage`. */ encoding: string; /** * Defines the framing method for outgoing messages. */ framing: outputs.ObservabilityPipelineConfigDestinationSocketFraming; /** * The protocol used to send logs. Valid values are `tcp`, `udp`. */ mode: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationSocketTls; } export interface ObservabilityPipelineConfigDestinationSocketBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationSocketBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationSocketBufferMemory; } export interface ObservabilityPipelineConfigDestinationSocketBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSocketBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSocketFraming { /** * Used when `method` is `characterDelimited`. Specifies the delimiter character. */ characterDelimited?: outputs.ObservabilityPipelineConfigDestinationSocketFramingCharacterDelimited; /** * The framing method. Valid values are `newlineDelimited`, `bytes`, `characterDelimited`. */ method: string; } export interface ObservabilityPipelineConfigDestinationSocketFramingCharacterDelimited { /** * A single ASCII character used as a delimiter. */ delimiter: string; } export interface ObservabilityPipelineConfigDestinationSocketTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. */ serverName?: string; } export interface ObservabilityPipelineConfigDestinationSplunkHec { /** * If `true`, Splunk tries to extract timestamps from incoming log events. If `false`, Splunk assigns the time the event was received. Only applies when `endpointTarget` is `event`; cannot be `true` when `endpointTarget` is `raw`. */ autoExtractTimestamp?: boolean; /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationSplunkHecBuffer; /** * Encoding format for log events. Valid values are `json`, `rawMessage`. */ encoding: string; /** * The Splunk HEC endpoint to send events to. Use `event` to send structured events to the `/event` endpoint, or `raw` to send the raw message to the `/raw` endpoint. Valid values are `event`, `raw`. */ endpointTarget?: string; /** * Name of the environment variable or secret that holds the Splunk HEC endpoint URL. */ endpointUrlKey?: string; /** * Optional name of the Splunk index where logs are written. */ index?: string; /** * List of log field names to send as indexed fields to Splunk HEC. Available only when `encoding` is `json`. */ indexedFields?: string[]; /** * The Splunk sourcetype to assign to log events. */ sourcetype?: string; /** * Name of the environment variable or secret that holds the Splunk HEC token. */ tokenKey?: string; /** * Controls how the Splunk HEC token is supplied. Use `custom` to provide a token via `tokenKey`, or `fromSource` to forward the token received from an upstream Splunk HEC source. Valid values are `custom`, `fromSource`. */ tokenStrategy?: string; } export interface ObservabilityPipelineConfigDestinationSplunkHecBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationSplunkHecBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationSplunkHecBufferMemory; } export interface ObservabilityPipelineConfigDestinationSplunkHecBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSplunkHecBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSplunkHecMetrics { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsBuffer; /** * Compression algorithm applied when sending metrics to Splunk HEC. Valid values are `none`, `gzip`. */ compression?: string; /** * Optional default namespace for metrics sent to Splunk HEC. */ defaultNamespace?: string; /** * Name of the environment variable or secret that holds the Splunk HEC endpoint URL. */ endpointUrlKey?: string; /** * Optional name of the Splunk index where metrics are written. */ index?: string; /** * The Splunk source field value for metric events. */ source?: string; /** * The Splunk sourcetype to assign to metric events. */ sourcetype?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsTls; /** * Name of the environment variable or secret that holds the Splunk HEC token. */ tokenKey?: string; } export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferMemory; } export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigDestinationSumoLogic { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationSumoLogicBuffer; /** * The output encoding format. */ encoding?: string; /** * Name of the environment variable or secret that holds the Sumo Logic endpoint URL. */ endpointUrlKey?: string; /** * A list of custom headers to include in the request to Sumo Logic. */ headerCustomFields?: outputs.ObservabilityPipelineConfigDestinationSumoLogicHeaderCustomField[]; /** * Optional override for the host name header. */ headerHostName?: string; /** * Optional override for the source category header. */ headerSourceCategory?: string; /** * Optional override for the source name header. */ headerSourceName?: string; } export interface ObservabilityPipelineConfigDestinationSumoLogicBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationSumoLogicBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationSumoLogicBufferMemory; } export interface ObservabilityPipelineConfigDestinationSumoLogicBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSumoLogicBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSumoLogicHeaderCustomField { /** * The header field name. */ name?: string; /** * The header field value. */ value?: string; } export interface ObservabilityPipelineConfigDestinationSyslogNg { /** * Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified. */ buffer?: outputs.ObservabilityPipelineConfigDestinationSyslogNgBuffer; /** * Name of the environment variable or secret that holds the syslog-ng endpoint URL. */ endpointUrlKey?: string; /** * Optional socket keepalive duration in milliseconds. */ keepalive?: number; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigDestinationSyslogNgTls; } export interface ObservabilityPipelineConfigDestinationSyslogNgBuffer { /** * Options for configuring a disk buffer. Cannot be used with `memory`. */ disk?: outputs.ObservabilityPipelineConfigDestinationSyslogNgBufferDisk; /** * Options for configuring a memory buffer. Cannot be used with `disk`. */ memory?: outputs.ObservabilityPipelineConfigDestinationSyslogNgBufferMemory; } export interface ObservabilityPipelineConfigDestinationSyslogNgBufferDisk { /** * Maximum size of the disk buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSyslogNgBufferMemory { /** * Maximum events for the memory buffer. */ maxEvents?: number; /** * Maximum size of the memory buffer (in bytes). */ maxSize?: number; /** * Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`. */ whenFull: string; } export interface ObservabilityPipelineConfigDestinationSyslogNgTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. */ serverName?: string; } export interface ObservabilityPipelineConfigProcessorGroup { /** * A human-friendly name of the processor group. */ displayName?: string; /** * Whether this processor group is enabled. */ enabled: boolean; /** * The unique ID of the processor group. */ id: string; /** * A Datadog search query used to determine which logs this processor group targets. */ include: string; /** * A list of component IDs whose output is used as the input for this processor group. */ inputs: string[]; /** * The processor contained in this group. */ processors?: outputs.ObservabilityPipelineConfigProcessorGroupProcessor[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessor { /** * The `addEnvVars` processor adds environment variable values to log events. */ addEnvVars?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddEnvVars; /** * The `addFields` processor adds static key-value fields to logs. */ addFields?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddFields; /** * The `addHostname` processor adds the hostname to log events. */ addHostname?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddHostname; /** * The `addMetricTags` processor adds static tags to metrics. */ addMetricTags?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddMetricTags; /** * The `aggregate` processor combines metrics that share the same name and tags into a single metric over a configurable interval. */ aggregate?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAggregate; /** * The `customProcessor` processor transforms events using Vector Remap Language (VRL) scripts with advanced filtering capabilities. */ customProcessor?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorCustomProcessor; datadogTags?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorDatadogTags; /** * The `dedupe` processor removes duplicate fields in log events. */ dedupe?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorDedupe; /** * A human-friendly name for this processor. */ displayName?: string; /** * Whether this processor is enabled. */ enabled: boolean; /** * The `enrichmentTable` processor enriches logs using a static CSV file or GeoIP database. */ enrichmentTable?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTable; /** * The `filter` processor allows conditional processing of logs based on a Datadog search query. Logs that match the `include` query are passed through; others are discarded. */ filter?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorFilter; /** * The `generateDatadogMetrics` processor creates custom metrics from logs. Metrics can be counters, gauges, or distributions and optionally grouped by log fields. * * @deprecated This processor is deprecated, use `generateMetrics` instead. */ generateDatadogMetrics?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorGenerateDatadogMetrics; /** * The `generateMetrics` processor creates custom metrics from logs. Metrics can be counters, gauges, or distributions and optionally grouped by log fields. There must be a destination whose `inputs` reference this processor with the `.metrics` suffix to route the generated metrics. All destination types normally supported for `metrics` pipelines are also supported as metrics destinations in `logs` pipelines. */ generateMetrics?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorGenerateMetrics; /** * The unique identifier for this processor. */ id: string; /** * A Datadog search query used to determine which logs this processor targets. */ include: string; /** * Configures the `enrichmentTable` processor for `metrics` pipelines. The processor enriches metrics with tags from a static CSV file or a Datadog reference table. It looks up a row using the metric name or a metric tag value. It then adds each column of the matching row as a metric tag, overwriting any existing tag with the same key. Exactly one of `file` or `referenceTable` must be configured. */ metricEnrichmentTable?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTable; /** * The `metricTags` processor filters metrics based on their tags using Datadog tag key patterns. */ metricTags?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricTags; /** * The `ocsfMapper` processor transforms logs into the OCSF schema using predefined library mappings or custom mapping configuration. */ ocsfMapper?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapper; /** * The `parseGrok` processor extracts structured fields from unstructured log messages using Grok patterns. */ parseGrok?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrok; /** * The `parseJson` processor extracts JSON from a specified field and flattens it into the event. This is useful when logs contain embedded JSON as a string. */ parseJson?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseJson; /** * The `parseXml` processor parses XML from a specified field and extracts it into the event. */ parseXml?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseXml; /** * The `quota` processor measures logging traffic for logs that match a specified filter. When the configured daily quota is met, the processor can drop or alert. */ quota?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorQuota; /** * The `reduce` processor aggregates and merges logs based on matching keys and merge strategies. */ reduce?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorReduce; /** * The `removeFields` processor deletes specified fields from logs. */ removeFields?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorRemoveFields; /** * The `renameFields` processor changes field names. */ renameFields?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorRenameFields; /** * The `renameMetricTags` processor changes the keys of tags on metrics. */ renameMetricTags?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorRenameMetricTags; /** * The `sample` processor allows probabilistic sampling of logs at a fixed rate. */ sample?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSample; /** * The `sensitiveDataScanner` processor detects and optionally redacts sensitive data in log events. */ sensitiveDataScanner?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScanner; /** * The `spikeProtection` processor learns the normal log volume and detects spikes, optionally dropping or rerouting the excess events. */ spikeProtection?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtection; /** * The `splitArray` processor splits array fields into separate events based on configured rules. */ splitArray?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSplitArray; /** * The `tagCardinalityLimit` processor caps the number of distinct tag value combinations on metrics, dropping tags or events once the limit is exceeded. */ tagCardinalityLimit?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimit; /** * The `throttle` processor limits the number of events that pass through over a given time window. */ throttle?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorThrottle; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddEnvVars { /** * A list of environment variable mappings to apply to log fields. */ variables?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddEnvVarsVariable[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddEnvVarsVariable { /** * The target field in the log event. */ field: string; /** * The name of the environment variable to read. */ name: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddFields { /** * A list of static fields (key-value pairs) that is added to each log event processed by this component. */ fields: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddFieldsField[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddFieldsField { /** * The field name to add. */ name: string; /** * The value to assign to the field. */ value: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddHostname { } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddMetricTags { /** * A list of static tags to add to each metric. Up to 15 tags may be defined. */ tags: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAddMetricTagsTag[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAddMetricTagsTag { /** * The tag name. */ name: string; /** * The tag value. */ value: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAggregate { /** * Configures how metrics are assigned to aggregation windows. When omitted, metrics are grouped using system time. */ aggregationTiming?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorAggregateAggregationTiming; /** * The interval, in seconds, over which metrics are aggregated. Must be between 1 and 60. Value must be between 1 and 60. */ intervalSecs: number; /** * The aggregation mode. One of `auto`, `sum`, `latest`, `count`, `max`, `min`, `mean`. Valid values are `auto`, `sum`, `latest`, `count`, `max`, `min`, `mean`. */ mode: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorAggregateAggregationTiming { /** * Grace period, in seconds, for late-arriving metrics when using event time. Defaults to 10 seconds when omitted. Value must be between 0 and 3600. */ allowedLatenessSecs?: number; /** * Determines whether metrics are assigned to aggregation windows based on when they are processed (`systemTime`) or their timestamps (`eventTime`). Valid values are `systemTime`, `eventTime`. */ type: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorCustomProcessor { /** * Array of VRL remap configurations. Each remap defines a transformation rule with its own filter and VRL script. */ remaps: outputs.ObservabilityPipelineConfigProcessorGroupProcessorCustomProcessorRemap[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorCustomProcessorRemap { /** * Whether to drop events that cause errors during transformation. */ dropOnError: boolean; /** * Whether this remap rule is enabled. */ enabled: boolean; /** * A Datadog search query used to filter events for this specific remap rule. */ include: string; /** * A descriptive name for this remap rule. */ name: string; /** * The VRL script source code that defines the transformation logic. */ source: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorDatadogTags { /** * Valid values are `include`, `exclude`. */ action: string; keys: string[]; /** * Valid values are `filter`. */ mode: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorDedupe { /** * A list of log field paths to check for duplicates. */ fields: string[]; /** * The deduplication mode to apply to the fields. */ mode: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTable { /** * Defines a static enrichment table loaded from a CSV file. */ file?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFile; /** * Uses a GeoIP database to enrich logs based on an IP field. */ geoip?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableGeoip; /** * Uses a Datadog reference table to enrich logs. */ referenceTable?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableReferenceTable; /** * Path where enrichment results should be stored in the log. */ target: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFile { encoding: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFileEncoding; /** * Key fields used to look up enrichment values. */ keys?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFileKey[]; /** * Path to the CSV file. */ path?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFileEncoding { /** * The `encoding` `delimiter`. */ delimiter: string; /** * The `encoding` `includesHeaders`. */ includesHeaders?: boolean; /** * File encoding format. */ type: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFileKey { /** * The `items` `column`. */ column?: string; /** * The comparison method (e.g. equals). */ comparison?: string; /** * Specifies the source of the key value for enrichment table lookups. Set exactly one of `stringPath`, `event`, `vrl`, or `secret`. */ field?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFileKeyField; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableFileKeyField { /** * The path to the field in the log event to use as the lookup key. */ event?: string; /** * The name of the secret containing the lookup key value. */ secret?: string; /** * A plain field path in the log event (for example, `log.user.id`). */ stringPath?: string; /** * A VRL expression that returns the value to use as the lookup key. */ vrl?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableGeoip { /** * Path to the IP field in the log. */ keyField?: string; /** * Locale used to resolve geographical names. */ locale?: string; /** * Path to the GeoIP database file. */ path?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorEnrichmentTableReferenceTable { /** * Name of the environment variable or secret that holds the Datadog application key for the reference table. */ appKeyKey?: string; /** * List of column names to include from the reference table. If not provided, all columns are included. */ columns?: string[]; /** * Path to the field in the log event to match against the reference table. */ keyField: string; /** * The unique identifier of the reference table. */ tableId: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorFilter { } export interface ObservabilityPipelineConfigProcessorGroupProcessorGenerateDatadogMetrics { /** * Configuration for generating individual metrics. */ metrics?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorGenerateDatadogMetricsMetric[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorGenerateDatadogMetricsMetric { /** * Optional fields used to group the metric series. */ groupBies?: string[]; /** * Datadog filter query to match logs for metric generation. */ include: string; /** * Type of metric to create. */ metricType: string; /** * Name of the custom metric to be created. */ name: string; /** * Specifies how the value of the generated metric is computed. */ value: outputs.ObservabilityPipelineConfigProcessorGroupProcessorGenerateDatadogMetricsMetricValue; } export interface ObservabilityPipelineConfigProcessorGroupProcessorGenerateDatadogMetricsMetricValue { /** * Name of the log field containing the numeric value to increment the metric by (used only for `incrementByField`). */ field?: string; /** * Metric value strategy: `incrementByOne` or `incrementByField`. */ strategy: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorGenerateMetrics { /** * [Recommended] Indicates whether generated metrics are automatically aggregated and enriched with the `workerUuid` tag before being sent to the metric destination. */ enabledMetricAggregation?: boolean; /** * Configuration for generating individual metrics. */ metrics?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorGenerateMetricsMetric[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorGenerateMetricsMetric { /** * Optional fields used to group the metric series. */ groupBies?: string[]; /** * Datadog filter query to match logs for metric generation. */ include: string; /** * Type of metric to create. */ metricType: string; /** * Name of the custom metric to be created. */ name: string; /** * Specifies how the value of the generated metric is computed. */ value: outputs.ObservabilityPipelineConfigProcessorGroupProcessorGenerateMetricsMetricValue; } export interface ObservabilityPipelineConfigProcessorGroupProcessorGenerateMetricsMetricValue { /** * Name of the log field containing the numeric value to increment the metric by (used only for `incrementByField`). */ field?: string; /** * Metric value strategy: `incrementByOne` or `incrementByField`. */ strategy: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTable { /** * Defines a static enrichment table loaded from a CSV file for metric enrichment. */ file?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFile; /** * Uses a Datadog reference table to enrich metrics. */ referenceTable?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableReferenceTable; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFile { /** * File encoding format. */ encoding: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFileEncoding; /** * Defines how to map a metric lookup value to a CSV column during enrichment table lookups. */ key: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFileKey; /** * Path to the CSV file. */ path: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFileEncoding { /** * The single character that separates columns in the file. */ delimiter: string; /** * Whether the first row of the file contains column headers. */ includesHeaders: boolean; /** * The encoding format of the file. The value should always be `csv`. */ type: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFileKey { /** * The CSV column name or index to match against the lookup value. */ column: string; /** * Specifies the source of the key value used for metric enrichment table lookups. The lookup key can be either the metric name or a metric tag. */ source: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFileKeySource; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableFileKeySource { /** * The Datadog tag key used as the lookup key. Required when `type` is `tag`. */ name?: string; /** * The lookup source type. Use `metricName` to look up the metric name, or `tag` to look up the value of the metric tag set in `name`. Valid values are `metricName`, `tag`. */ type: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableReferenceTable { /** * The name of the environment variable or secret that holds the Datadog application key used to access the reference table. */ appKeyKey?: string; /** * A list of column names to include from the reference table. If not provided, all columns are included. */ columns?: string[]; /** * Defines the metric lookup value used as the reference-table row ID. */ key: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableReferenceTableKey; /** * The unique identifier of the reference table. */ tableId: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableReferenceTableKey { /** * Specifies the source of the key value used for metric enrichment table lookups. The lookup key can be either the metric name or a metric tag. */ source: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableReferenceTableKeySource; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricEnrichmentTableReferenceTableKeySource { /** * The Datadog tag key used as the lookup key. Required when `type` is `tag`. */ name?: string; /** * The lookup source type. Use `metricName` to look up the metric name, or `tag` to look up the value of the metric tag set in `name`. Valid values are `metricName`, `tag`. */ type: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricTags { /** * A list of rules for filtering metric tags. */ rules: outputs.ObservabilityPipelineConfigProcessorGroupProcessorMetricTagsRule[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorMetricTagsRule { /** * The action to take on tags with matching keys. Valid values are `include`, `exclude`. */ action: string; /** * A Datadog search query used to determine which metrics this rule targets. */ include: string; /** * A list of tag keys to include or exclude. */ keys: string[]; /** * The processing mode for tag filtering. Valid values are `filter`. */ mode: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapper { /** * Whether to keep an event that does not match any of the mapping filters. */ keepUnmatched?: boolean; /** * List of OCSF mapping entries. Each entry uses either a library mapping or a custom mapping. */ mappings?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMapping[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMapping { /** * Custom OCSF mapping configuration for transforming logs. */ customMapping?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMapping; /** * Search query for selecting which logs the mapping applies to. */ include: string; /** * Predefined library mapping for log transformation. Use this or custom_mapping, not both. */ libraryMapping?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMapping { /** * A list of field mapping rules for transforming log fields to OCSF schema fields. */ mappings?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMapping[]; /** * Metadata for the custom OCSF mapping. */ metadata: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMetadata; /** * The version of the custom mapping configuration. */ version: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMapping { /** * The default value to use if the source field is missing or empty. */ default?: string; /** * The destination OCSF field path. */ dest: string; /** * Lookup table configuration for mapping source values to destination values. */ lookup?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMappingLookup; /** * The source field path from the log event. */ source?: string; /** * Multiple source field paths for combined mapping. */ sources?: string[]; /** * A static value to use for the destination field. */ value?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMappingLookup { /** * The default value to use if no lookup match is found. */ default?: string; /** * A list of lookup table entries for value transformation. */ tables?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMappingLookupTable[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMappingLookupTable { /** * The substring to match in the source value. */ contains?: string; /** * The exact value to match in the source. */ equals?: string; /** * The source field to match against. */ equalsSource?: string; /** * A regex pattern to match in the source value. */ matches?: string; /** * A regex pattern that must not match the source value. */ notMatches?: string; /** * The value to use when a match is found. */ value?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorOcsfMapperMappingCustomMappingMetadata { /** * The OCSF event class name. */ class: string; /** * A list of OCSF profiles to apply. */ profiles?: string[]; /** * The OCSF schema version. */ version: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrok { /** * If set to `true`, disables the default Grok rules provided by Datadog. Defaults to `false`. */ disableLibraryRules: boolean; /** * The log field to parse with the Grok rules. Defaults to `"message"`. */ field: string; /** * A Grok parsing rule that targets logs matching a Datadog search query. */ includeRules?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrokIncludeRule[]; /** * The list of Grok parsing rules. If multiple parsing rules are provided, they are evaluated in order. The first successful match is applied. */ rules?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrokRule[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrokIncludeRule { /** * A Datadog search query used to determine which logs this Grok rule targets. */ include: string; /** * A list of Grok parsing rules that define how to extract fields. Each rule must contain a name and a valid Grok pattern. */ matchRules: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrokIncludeRuleMatchRule[]; /** * A list of helper Grok rules that can be referenced by the parsing rules. */ supportRules?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrokIncludeRuleSupportRule[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrokIncludeRuleMatchRule { /** * The name of the rule. */ name: string; /** * The definition of the Grok rule. */ rule: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrokIncludeRuleSupportRule { /** * The name of the helper Grok rule. */ name: string; /** * The definition of the helper Grok rule. */ rule: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrokRule { /** * A list of Grok parsing rules that define how to extract fields. Each rule must contain a name and a valid Grok pattern. */ matchRules: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrokRuleMatchRule[]; /** * The value of the source field in log events which should be processed by the Grok rules. */ source: string; /** * A list of helper Grok rules that can be referenced by the parsing rules. */ supportRules?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorParseGrokRuleSupportRule[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrokRuleMatchRule { /** * The name of the rule. */ name: string; /** * The definition of the Grok rule. */ rule: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseGrokRuleSupportRule { /** * The name of the helper Grok rule. */ name: string; /** * The definition of the helper Grok rule. */ rule: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseJson { /** * The field to parse. */ field: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorParseXml { /** * Whether to always store text inside an object using the text key even when no attributes exist. */ alwaysUseTextKey?: boolean; /** * The prefix to use for XML attributes in the parsed output. If the field is left empty, the original attribute key is used. */ attrPrefix?: string; /** * The path to the log field on which you want to parse XML. */ field: string; /** * Whether to include XML attributes in the parsed output. */ includeAttr?: boolean; /** * Whether to parse boolean values from strings. */ parseBool?: boolean; /** * Whether to parse null values. */ parseNull?: boolean; /** * Whether to parse numeric values from strings. */ parseNumber?: boolean; /** * The key name to use for the text node when XML attributes are appended. */ textKey?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorQuota { /** * Whether to drop events exceeding the limit. */ dropEvents?: boolean; /** * Whether to ignore when partition fields are missing. */ ignoreWhenMissingPartitions?: boolean; limit: outputs.ObservabilityPipelineConfigProcessorGroupProcessorQuotaLimit; /** * The name of the quota. */ name: string; /** * The action to take when the quota is exceeded: `drop`, `noAction`, or `overflowRouting`. When `overflowRouting` is used, there must be a destination whose `inputs` reference this processor with the `.overflow_events` suffix to route the overflowing events. Only the following destination types support overflow inputs: `amazonS3Generic`, `amazonS3`, `googleCloudStorage`, and `azureStorage`. */ overflowAction?: string; /** * The overrides for field-specific quotas. */ overrides?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorQuotaOverride[]; /** * List of partition fields. */ partitionFields?: string[]; /** * The action to take when the max number of buckets is exceeded: `drop`, `noAction`, or `overflowRouting`. */ tooManyBucketsAction?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorQuotaLimit { /** * Whether to enforce by 'bytes' or 'events'. Valid values are `bytes`, `events`. */ enforce: string; /** * The daily quota limit. */ limit: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorQuotaOverride { /** * Fields that trigger this override. */ fields?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorQuotaOverrideField[]; limit: outputs.ObservabilityPipelineConfigProcessorGroupProcessorQuotaOverrideLimit; } export interface ObservabilityPipelineConfigProcessorGroupProcessorQuotaOverrideField { /** * The field name. */ name: string; /** * The field value. */ value: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorQuotaOverrideLimit { /** * Whether to enforce by 'bytes' or 'events'. Valid values are `bytes`, `events`. */ enforce: string; /** * The daily quota limit. */ limit: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorReduce { /** * A list of fields used to group log events for merging. */ groupBies: string[]; /** * List of merge strategies defining how values from grouped events should be combined. */ mergeStrategies: outputs.ObservabilityPipelineConfigProcessorGroupProcessorReduceMergeStrategy[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorReduceMergeStrategy { /** * The field path in the log event. */ path: string; /** * The merge strategy to apply. */ strategy: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorRemoveFields { /** * List of fields to remove from the events. */ fields: string[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorRenameFields { /** * List of fields to rename. */ fields: outputs.ObservabilityPipelineConfigProcessorGroupProcessorRenameFieldsField[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorRenameFieldsField { /** * Destination field name. */ destination: string; /** * Whether to keep the original field. */ preserveSource: boolean; /** * Source field to rename. */ source: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorRenameMetricTags { /** * A list of rename rules. Up to 15 tags may be defined. */ tags: outputs.ObservabilityPipelineConfigProcessorGroupProcessorRenameMetricTagsTag[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorRenameMetricTagsTag { /** * The new tag key to assign in place of the original. */ renameTo: string; /** * The original tag key on the metric event. */ tag: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSample { /** * Optional list of fields to group events by. Each group is sampled independently. */ groupBies?: string[]; /** * The percentage of logs to sample. */ percentage: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScanner { /** * A list of rules for identifying and acting on sensitive data patterns. */ rules?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRule[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRule { /** * Keyword-based proximity matching for sensitive data. */ keywordOptions?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleKeywordOptions; /** * A name identifying the rule. */ name: string; /** * The action to take when a sensitive value is found. */ onMatch: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatch; /** * Pattern detection configuration for identifying sensitive data using either a custom regex or a library reference. */ pattern: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRulePattern; /** * Field-level targeting options that determine where the scanner should operate. */ scope: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleScope; /** * Tags assigned to this rule for filtering and classification. */ tags?: string[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleKeywordOptions { /** * A list of keywords to match near the sensitive pattern. */ keywords?: string[]; /** * Maximum number of tokens between a keyword and a sensitive value match. */ proximity?: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatch { /** * Hashes the matched value. */ hash?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatchHash; /** * Redacts part of the matched value (e.g., keep last 4 characters). */ partialRedact?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatchPartialRedact; /** * Redacts the matched value. Exactly one of `redact`, `hash`, or `partialRedact` must be specified. */ redact?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatchRedact; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatchHash { } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatchPartialRedact { /** * Number of characters to keep. */ characters?: number; /** * Direction from which to keep characters: `first` or `last`. */ direction?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleOnMatchRedact { /** * Replacement string for redacted values (e.g., `***`). */ replace?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRulePattern { /** * Pattern detection using a custom regular expression. Exactly one of `custom` or `library` must be specified. */ custom?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRulePatternCustom; /** * Pattern detection using a predefined pattern from the Sensitive Data Scanner library. For Terraform setup (standard pattern data source and library rules), see the Sensitive Data Scanner processor documentation. */ library?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRulePatternLibrary; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRulePatternCustom { /** * Human-readable description providing context about a sensitive data scanner rule. */ description?: string; /** * A regular expression used to detect sensitive values. Must be a valid regex. */ rule?: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRulePatternLibrary { /** * Human-readable description providing context about a sensitive data scanner rule. */ description?: string; /** * Identifier for a predefined pattern from the sensitive data scanner pattern library. */ id?: string; /** * Whether to augment the pattern with recommended keywords (optional). */ useRecommendedKeywords?: boolean; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleScope { /** * Scan all fields. */ all?: boolean; /** * Explicitly exclude these fields from scanning. */ exclude?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleScopeExclude; /** * Explicitly include these fields for scanning. Exactly one of `include`, `exclude`, or `all` must be specified. */ include?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleScopeInclude; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleScopeExclude { /** * The fields to exclude from scanning. */ fields?: string[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSensitiveDataScannerRuleScopeInclude { /** * The fields to include in scanning. */ fields?: string[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtection { /** * The action to take when an event is missing one of the `partitionFields`. One of `ignore`, `defaultBucket`. Valid values are `ignore`, `defaultBucket`. Defaults to `"ignore"`. */ actionWhenMissingPartitions: string; /** * The minimum volume, in bytes, that must be observed within 24 hours before spike protection can activate. Defaults to 100 GiB. */ minimalThreshold?: number; /** * A list of per-partition overrides for the minimal threshold, identified by matching field values. Requires `partitionFields` to be set. */ minimalThresholdOverrides?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtectionMinimalThresholdOverride[]; /** * Name of the spike protection rule. */ name: string; /** * A list of fields used to segment log traffic. Volume is learned and evaluated independently for each unique combination of these field values. A maximum of five fields is supported. */ partitionFields?: string[]; /** * The action to take when a spike is detected. One of `drop`, `noAction`, `overflowRouting`. When `overflowRouting` is used, there must be a destination whose `inputs` reference this processor with the `.overflow_events` suffix to route the overflowing events. Valid values are `drop`, `noAction`, `overflowRouting`. */ spikeAction: string; /** * The number of standard deviations above the learned mean volume that must be exceeded before a spike is detected. Defaults to `5`. */ spikeThreshold?: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtectionMinimalThresholdOverride { /** * The set of field matchers that identifies the partition this override applies to. Every field name listed must also appear in `partitionFields`. */ fields: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtectionMinimalThresholdOverrideField[]; /** * The minimal threshold to apply to the matching partition. */ minimalThreshold: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtectionMinimalThresholdOverrideMinimalThreshold; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtectionMinimalThresholdOverrideField { /** * The field name. */ name: string; /** * The field value. */ value: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSpikeProtectionMinimalThresholdOverrideMinimalThreshold { /** * The minimum volume, in bytes, that must be observed within 24 hours before spike protection can activate for the matching partition. Used only when `type` is `threshold`. */ bytes?: number; /** * The minimal threshold type. One of `threshold`, `alwaysKeep`. `alwaysKeep` exempts the matching partition from spike protection. Valid values are `threshold`, `alwaysKeep`. */ type: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSplitArray { /** * A list of array split configurations. */ arrays: outputs.ObservabilityPipelineConfigProcessorGroupProcessorSplitArrayArray[]; } export interface ObservabilityPipelineConfigProcessorGroupProcessorSplitArrayArray { /** * The path to the array field to split. */ field: string; /** * A Datadog search query used to determine which logs this array split operation targets. */ include: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimit { /** * The default action to take when the cardinality limit is exceeded. One of `dropTag`, `dropEvent`. Valid values are `dropTag`, `dropEvent`. */ limitExceededAction: string; /** * Per-metric cardinality overrides that take precedence over the default `valueLimit`. */ perMetricLimits?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimitPerMetricLimit[]; /** * Controls whether the processor uses exact or probabilistic tag tracking. */ trackingMode: outputs.ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimitTrackingMode; /** * The default maximum number of distinct tag value combinations allowed per metric. Between 0 and 1000000. Value must be between 0 and 1000000. */ valueLimit: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimitPerMetricLimit { /** * The action to take on this metric when the limit is exceeded. Required when `overrideType` is `limitOverride`; must be omitted when `overrideType` is `excluded`. Valid values are `dropTag`, `dropEvent`. */ limitExceededAction?: string; /** * The metric name this override applies to. */ metricName: string; /** * How the per-metric override is applied. One of `limitOverride`, `excluded`. Valid values are `limitOverride`, `excluded`. */ overrideType: string; /** * Per-tag cardinality overrides that apply within this metric. Must be omitted when `overrideType` is `excluded`. */ perTagLimits?: outputs.ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimitPerMetricLimitPerTagLimit[]; /** * The cardinality cap for this metric. Required when `overrideType` is `limitOverride`; must be omitted when `overrideType` is `excluded`. Value must be between 0 and 1000000. */ valueLimit?: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimitPerMetricLimitPerTagLimit { /** * How the per-tag override is applied. One of `limitOverride`, `excluded`. Valid values are `limitOverride`, `excluded`. */ overrideType: string; /** * The tag key this override applies to. */ tagKey: string; /** * The cardinality cap for this tag. Required when `overrideType` is `limitOverride`; must be omitted when `overrideType` is `excluded`. Value must be between 0 and 1000000. */ valueLimit?: number; } export interface ObservabilityPipelineConfigProcessorGroupProcessorTagCardinalityLimitTrackingMode { /** * The cardinality tracking algorithm to use. One of `exactFingerprint`, `probabilistic`. Valid values are `exactFingerprint`, `probabilistic`. */ mode: string; } export interface ObservabilityPipelineConfigProcessorGroupProcessorThrottle { /** * Optional list of fields used to group events before applying throttling. */ groupBies?: string[]; /** * The number of events to allow before throttling is applied. */ threshold: number; /** * The time window in seconds over which the threshold applies. */ window: number; } export interface ObservabilityPipelineConfigSource { /** * The `amazonDataFirehose` source ingests logs from AWS Data Firehose. */ amazonDataFirehoses?: outputs.ObservabilityPipelineConfigSourceAmazonDataFirehose[]; /** * The `amazonS3` source ingests logs from an Amazon S3 bucket. It supports AWS authentication, TLS encryption, and configurable compression. */ amazonS3s?: outputs.ObservabilityPipelineConfigSourceAmazonS3[]; /** * The `datadogAgent` source collects logs from the Datadog Agent. */ datadogAgents?: outputs.ObservabilityPipelineConfigSourceDatadogAgent[]; /** * The `fluentBit` source ingests logs from Fluent Bit. */ fluentBits?: outputs.ObservabilityPipelineConfigSourceFluentBit[]; /** * The `fluentd` source ingests logs from a Fluentd-compatible service. */ fluentds?: outputs.ObservabilityPipelineConfigSourceFluentd[]; /** * The `googlePubsub` source ingests logs from a Google Cloud Pub/Sub subscription. */ googlePubsubs?: outputs.ObservabilityPipelineConfigSourceGooglePubsub[]; /** * The `httpClient` source scrapes logs from HTTP endpoints at regular intervals. */ httpClients?: outputs.ObservabilityPipelineConfigSourceHttpClient[]; /** * The `httpServer` source collects logs over HTTP POST from external services. */ httpServers?: outputs.ObservabilityPipelineConfigSourceHttpServer[]; /** * The unique identifier for this source. */ id: string; /** * The `kafka` source ingests data from Apache Kafka topics. */ kafkas?: outputs.ObservabilityPipelineConfigSourceKafka[]; /** * The `logstash` source ingests logs from a Logstash forwarder. */ logstashes?: outputs.ObservabilityPipelineConfigSourceLogstash[]; /** * The `opentelemetry` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP. */ opentelemetry?: outputs.ObservabilityPipelineConfigSourceOpentelemetry; /** * The `prometheusRemoteWrite` source ingests metrics pushed over the Prometheus Remote Write protocol. */ prometheusRemoteWrite?: outputs.ObservabilityPipelineConfigSourcePrometheusRemoteWrite; /** * The `rsyslog` source listens for logs over TCP or UDP from an `rsyslog` server using the syslog protocol. */ rsyslogs?: outputs.ObservabilityPipelineConfigSourceRsyslog[]; /** * The `socket` source ingests logs over TCP or UDP. */ sockets?: outputs.ObservabilityPipelineConfigSourceSocket[]; /** * The `splunkHec` source implements the Splunk HTTP Event Collector (HEC) API. */ splunkHecs?: outputs.ObservabilityPipelineConfigSourceSplunkHec[]; /** * The `splunkTcp` source receives logs from a Splunk Universal Forwarder over TCP. TLS is supported for secure transmission. */ splunkTcps?: outputs.ObservabilityPipelineConfigSourceSplunkTcp[]; /** * The `sumoLogic` source receives logs from Sumo Logic collectors. */ sumoLogics?: outputs.ObservabilityPipelineConfigSourceSumoLogic[]; /** * The `syslogNg` source listens for logs over TCP or UDP from a `syslog-ng` server using the syslog protocol. */ syslogNgs?: outputs.ObservabilityPipelineConfigSourceSyslogNg[]; /** * The `websocket` source establishes a persistent WebSocket connection to a remote endpoint and ingests log events as they are pushed by the server. */ websocket?: outputs.ObservabilityPipelineConfigSourceWebsocket; } export interface ObservabilityPipelineConfigSourceAmazonDataFirehose { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * AWS authentication credentials used for accessing AWS services. If omitted, the system's default credentials are used (for example, the IAM role and environment variables). */ auth?: outputs.ObservabilityPipelineConfigSourceAmazonDataFirehoseAuth; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigSourceAmazonDataFirehoseTls; } export interface ObservabilityPipelineConfigSourceAmazonDataFirehoseAuth { /** * The Amazon Resource Name (ARN) of the role to assume. */ assumeRole?: string; /** * A unique identifier for cross-account role assumption. */ externalId?: string; /** * A session identifier used for logging and tracing the assumed role session. */ sessionName?: string; } export interface ObservabilityPipelineConfigSourceAmazonDataFirehoseTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigSourceAmazonS3 { /** * AWS authentication credentials used for accessing AWS services. If omitted, the system's default credentials are used (for example, the IAM role and environment variables). */ auth?: outputs.ObservabilityPipelineConfigSourceAmazonS3Auth; /** * Compression format for objects retrieved from the S3 bucket. Use `auto` to detect compression from the object's Content-Encoding header or file extension. Valid values are `auto`, `none`, `gzip`, `zstd`. */ compression?: string; /** * AWS region where the S3 bucket resides. */ region: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigSourceAmazonS3Tls; /** * Name of the environment variable or secret that holds the S3 bucket URL. */ urlKey?: string; } export interface ObservabilityPipelineConfigSourceAmazonS3Auth { /** * The Amazon Resource Name (ARN) of the role to assume. */ assumeRole?: string; /** * A unique identifier for cross-account role assumption. */ externalId?: string; /** * A session identifier used for logging and tracing the assumed role session. */ sessionName?: string; } export interface ObservabilityPipelineConfigSourceAmazonS3Tls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigSourceDatadogAgent { /** * Name of the environment variable or secret that holds the listen address for the Datadog Agent source. */ addressKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigSourceDatadogAgentTls; } export interface ObservabilityPipelineConfigSourceDatadogAgentTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigSourceFluentBit { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceFluentBitTls; } export interface ObservabilityPipelineConfigSourceFluentBitTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceFluentd { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceFluentdTls; } export interface ObservabilityPipelineConfigSourceFluentdTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceGooglePubsub { /** * Google Cloud credentials used to authenticate with Google Cloud services. */ auth?: outputs.ObservabilityPipelineConfigSourceGooglePubsubAuth; /** * The decoding format used to interpret incoming logs. */ decoding: string; /** * The Google Cloud project ID that owns the Pub/Sub subscription. */ project: string; /** * The Pub/Sub subscription name from which messages are consumed. */ subscription: string; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigSourceGooglePubsubTls; } export interface ObservabilityPipelineConfigSourceGooglePubsubAuth { /** * Path to the Google Cloud service account key file. */ credentialsFile: string; } export interface ObservabilityPipelineConfigSourceGooglePubsubTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigSourceHttpClient { /** * Optional authentication strategy for HTTP requests. Valid values are `none`, `basic`, `bearer`, `custom`. */ authStrategy?: string; /** * Name of the environment variable or secret that holds a custom header value (used with custom auth strategies). */ customKey?: string; /** * The decoding format used to interpret incoming logs. */ decoding: string; /** * Name of the environment variable or secret that holds the HTTP endpoint URL. */ endpointUrlKey?: string; /** * Name of the environment variable or secret that holds the password. */ passwordKey?: string; /** * The interval (in seconds) between HTTP scrape requests. */ scrapeIntervalSecs?: number; /** * The timeout (in seconds) for each scrape request. */ scrapeTimeoutSecs?: number; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigSourceHttpClientTls; /** * Name of the environment variable or secret that holds the authentication token. */ tokenKey?: string; /** * Name of the environment variable or secret that holds the username. */ usernameKey?: string; } export interface ObservabilityPipelineConfigSourceHttpClientTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. */ serverName?: string; } export interface ObservabilityPipelineConfigSourceHttpServer { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * HTTP authentication method. Valid values are `none`, `plain`. */ authStrategy: string; /** * The decoding format used to interpret incoming logs. Valid values are `json`, `gelf`, `syslog`, `bytes`. */ decoding: string; /** * Name of the environment variable or secret that holds the password. */ passwordKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceHttpServerTls; /** * Name of the environment variable or secret that holds the username. */ usernameKey?: string; /** * A token accepted for authenticating incoming HTTP requests. Cannot be combined with the `plain` auth strategy. */ validTokens?: outputs.ObservabilityPipelineConfigSourceHttpServerValidToken[]; } export interface ObservabilityPipelineConfigSourceHttpServerTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceHttpServerValidToken { /** * Whether this token is currently accepted. Defaults to `true`. */ enabled: boolean; /** * An optional metadata field attached to every event authenticated by the token. Both `key` and `value` must match `^[A-Za-z0-9_]+$`. */ fieldToAdd?: outputs.ObservabilityPipelineConfigSourceHttpServerValidTokenFieldToAdd; /** * Specifies where the worker extracts the token from the incoming HTTP request. Set either `location` for a built-in source or `header` to read it from a request header. */ pathToToken?: outputs.ObservabilityPipelineConfigSourceHttpServerValidTokenPathToToken; /** * Name of the environment variable or secret that holds the expected token value. */ tokenKey: string; } export interface ObservabilityPipelineConfigSourceHttpServerValidTokenFieldToAdd { /** * The metadata field name to add to incoming events. */ key: string; /** * The metadata field value to add to incoming events. */ value: string; } export interface ObservabilityPipelineConfigSourceHttpServerValidTokenPathToToken { /** * The name of the HTTP header that carries the token. */ header?: string; /** * Built-in token location on the incoming HTTP request. One of `path`, `address`. Valid values are `path`, `address`. */ location?: string; } export interface ObservabilityPipelineConfigSourceKafka { /** * Name of the environment variable or secret that holds the Kafka bootstrap servers connection string. */ bootstrapServersKey?: string; /** * The Kafka consumer group ID. */ groupId: string; /** * Advanced librdkafka client configuration options. */ librdkafkaOptions?: outputs.ObservabilityPipelineConfigSourceKafkaLibrdkafkaOption[]; /** * SASL authentication settings. */ sasl?: outputs.ObservabilityPipelineConfigSourceKafkaSasl; /** * Configuration for enabling TLS encryption between the pipeline component and external services. */ tls?: outputs.ObservabilityPipelineConfigSourceKafkaTls; /** * A list of Kafka topic names to subscribe to. The source ingests messages from each topic specified. */ topics: string[]; } export interface ObservabilityPipelineConfigSourceKafkaLibrdkafkaOption { /** * The name of the librdkafka option. */ name: string; /** * The value of the librdkafka option. */ value: string; } export interface ObservabilityPipelineConfigSourceKafkaSasl { /** * SASL mechanism to use (e.g., PLAIN, SCRAM-SHA-256, SCRAM-SHA-512). Valid values are `PLAIN`, `SCRAM-SHA-256`, `SCRAM-SHA-512`. */ mechanism: string; /** * Name of the environment variable or secret that holds the SASL password. */ passwordKey?: string; /** * Name of the environment variable or secret that holds the SASL username. */ usernameKey?: string; } export interface ObservabilityPipelineConfigSourceKafkaTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. */ crtFile: string; /** * Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; } export interface ObservabilityPipelineConfigSourceLogstash { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceLogstashTls; } export interface ObservabilityPipelineConfigSourceLogstashTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceOpentelemetry { /** * Environment variable name containing the gRPC server address for receiving OTLP data. */ grpcAddressKey?: string; /** * Environment variable name containing the HTTP server address for receiving OTLP data. */ httpAddressKey?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceOpentelemetryTls; } export interface ObservabilityPipelineConfigSourceOpentelemetryTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourcePrometheusRemoteWrite { /** * Name of the environment variable or secret that holds the listen address for the Prometheus Remote Write endpoint. */ addressKey?: string; /** * HTTP authentication method. Valid values are `none`, `plain`. */ authStrategy: string; /** * Name of the environment variable or secret that holds the password. Used when `authStrategy` is `plain`. */ passwordKey?: string; /** * The HTTP path on which the source listens for incoming Prometheus Remote Write requests. */ path: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourcePrometheusRemoteWriteTls; /** * Name of the environment variable or secret that holds the username. Used when `authStrategy` is `plain`. */ usernameKey?: string; /** * A token accepted for authenticating incoming Prometheus Remote Write requests. When set, the source rejects any request whose token does not match an enabled entry in this list. */ validTokens?: outputs.ObservabilityPipelineConfigSourcePrometheusRemoteWriteValidToken[]; } export interface ObservabilityPipelineConfigSourcePrometheusRemoteWriteTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourcePrometheusRemoteWriteValidToken { /** * Whether this token is currently accepted. Defaults to `true`. */ enabled: boolean; /** * Specifies where the worker extracts the token from the incoming HTTP request. Set either `location` for a built-in source or `header` to read it from a request header. */ pathToToken?: outputs.ObservabilityPipelineConfigSourcePrometheusRemoteWriteValidTokenPathToToken; /** * Name of the environment variable or secret that holds the expected token value. */ tokenKey: string; } export interface ObservabilityPipelineConfigSourcePrometheusRemoteWriteValidTokenPathToToken { /** * The name of the HTTP header that carries the token. Exactly one of `location` or `header` must be set. */ header?: string; /** * Built-in token location on the incoming HTTP request. One of `path`, `address`. Exactly one of `location` or `header` must be set. Valid values are `path`, `address`. */ location?: string; } export interface ObservabilityPipelineConfigSourceRsyslog { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * Protocol used by the syslog source to receive messages. */ mode?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceRsyslogTls; } export interface ObservabilityPipelineConfigSourceRsyslogTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceSocket { /** * Name of the environment variable or secret that holds the listen address for the socket. */ addressKey?: string; /** * Defines the framing method for incoming messages. */ framing: outputs.ObservabilityPipelineConfigSourceSocketFraming; /** * The protocol used to receive logs. Valid values are `tcp`, `udp`. */ mode: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceSocketTls; } export interface ObservabilityPipelineConfigSourceSocketFraming { /** * Used when `method` is `characterDelimited`. Specifies the delimiter character. */ characterDelimited?: outputs.ObservabilityPipelineConfigSourceSocketFramingCharacterDelimited; /** * The framing method. Valid values are `newlineDelimited`, `bytes`, `characterDelimited`, `octetCounting`, `chunkedGelf`. */ method: string; } export interface ObservabilityPipelineConfigSourceSocketFramingCharacterDelimited { /** * A single ASCII character used as a delimiter. */ delimiter: string; } export interface ObservabilityPipelineConfigSourceSocketTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceSplunkHec { /** * Name of the environment variable or secret that holds the listen address for the HEC API. */ addressKey?: string; /** * When `true`, the Splunk HEC token from the incoming request is stored in the event, allowing downstream components to forward it to other Splunk HEC destinations. */ storeHecToken?: boolean; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceSplunkHecTls; /** * A HEC token accepted for authenticating incoming Splunk HEC requests. */ validTokens?: outputs.ObservabilityPipelineConfigSourceSplunkHecValidToken[]; } export interface ObservabilityPipelineConfigSourceSplunkHecTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceSplunkHecValidToken { /** * Whether this token is currently accepted. Defaults to `true`. */ enabled: boolean; /** * An optional metadata field attached to every event authenticated by the token. Both `key` and `value` must match `^[A-Za-z0-9_]+$`. */ fieldToAdd?: outputs.ObservabilityPipelineConfigSourceSplunkHecValidTokenFieldToAdd; /** * Name of the environment variable or secret that holds the expected HEC token value. */ tokenKey: string; } export interface ObservabilityPipelineConfigSourceSplunkHecValidTokenFieldToAdd { /** * The metadata field name to add to incoming events. */ key: string; /** * The metadata field value to add to incoming events. */ value: string; } export interface ObservabilityPipelineConfigSourceSplunkTcp { /** * Name of the environment variable or secret that holds the listen address for the Splunk TCP receiver. */ addressKey?: string; /** * Maximum duration, in seconds, that a connection can remain open before it is closed. When unset, connections can remain open indefinitely. */ maxConnectionDurationSecs?: number; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceSplunkTcpTls; } export interface ObservabilityPipelineConfigSourceSplunkTcpTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceSumoLogic { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; } export interface ObservabilityPipelineConfigSourceSyslogNg { /** * Name of the environment variable or secret that holds the listen address. */ addressKey?: string; /** * Protocol used by the syslog source to receive messages. */ mode?: string; /** * Configuration for enabling TLS encryption between the pipeline component and external connecting clients. */ tls?: outputs.ObservabilityPipelineConfigSourceSyslogNgTls; } export interface ObservabilityPipelineConfigSourceSyslogNgTls { /** * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates. */ caFile?: string; /** * Path to the TLS server certificate file used to identify the pipeline component to connecting clients. */ crtFile: string; /** * Path to the private key file associated with the TLS server certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication. */ verifyCertificate?: boolean; } export interface ObservabilityPipelineConfigSourceWebsocket { /** * The authentication strategy used when connecting to the WebSocket server. Valid values are `none`, `basic`, `bearer`, `custom`. */ authStrategy: string; /** * Name of the environment variable or secret that holds a custom header value. Used when `authStrategy` is `custom`. */ customKey?: string; /** * The decoding format used to interpret incoming log events. Valid values are `bytes`, `gelf`, `json`, `syslog`. */ decoding: string; /** * Name of the environment variable or secret that holds the password. Used when `authStrategy` is `basic`. */ passwordKey?: string; /** * TLS configuration for the WebSocket connection. Set `mode` to `enabled` for server-certificate validation only, or `withClientCert` to additionally present a client certificate. */ tls?: outputs.ObservabilityPipelineConfigSourceWebsocketTls; /** * Name of the environment variable or secret that holds the bearer token. Used when `authStrategy` is `bearer`. */ tokenKey?: string; /** * Name of the environment variable or secret that holds the WebSocket URI to connect to. */ uriKey?: string; /** * Name of the environment variable or secret that holds the username. Used when `authStrategy` is `basic`. */ usernameKey?: string; } export interface ObservabilityPipelineConfigSourceWebsocketTls { /** * Path to the Certificate Authority (CA) file used to validate the server's TLS certificate. */ caFile?: string; /** * Path to the client certificate file. Required when `mode` is `withClientCert`. */ crtFile?: string; /** * Path to the private key file associated with the client certificate. */ keyFile?: string; /** * Name of the environment variable or secret that holds the passphrase for the private key file. */ keyPassKey?: string; /** * The TLS mode. Use `enabled` for server-only TLS, or `withClientCert` for mutual TLS with a client certificate. Valid values are `enabled`, `withClientCert`. */ mode: string; } export interface OnCallEscalationPolicyStep { /** * Specifies how this escalation step will assign targets. Can be `default` (page all targets at once) or `round-robin`. Valid values are `default`, `round-robin`. Defaults to `"default"`. */ assignment: string; /** * Defines how many seconds to wait before escalating to the next step. Value must be between 60 and 36000. */ escalateAfterSeconds: number; /** * The ID of this step. */ id: string; /** * List of targets for the step. */ targets: outputs.OnCallEscalationPolicyStepTarget[]; } export interface OnCallEscalationPolicyStepTarget { /** * For schedule targets, specifies which on-call user to page. Valid values: `current` (default), `previous`, `next`. Valid values are `current`, `previous`, `next`. */ position?: string; /** * Targeted schedule ID. */ schedule?: string; /** * Targeted team ID. */ team?: string; /** * Targeted user ID. */ user?: string; } export interface OnCallScheduleLayer { /** * The date/time when this layer should become active (in ISO 8601). */ effectiveDate: string; /** * The date/time after which this layer no longer applies (in ISO 8601). */ endDate?: string; /** * The ID of this layer. */ id: string; /** * Rotation interval for this layer. */ interval?: outputs.OnCallScheduleLayerInterval; /** * The name of this layer. Should be unique within the schedule. */ name: string; /** * List of restrictions for the layer. */ restrictions?: outputs.OnCallScheduleLayerRestriction[]; /** * The date/time when the rotation for this layer starts (in ISO 8601). */ rotationStart: string; /** * The time zone for this layer. If not specified, the layer inherits the schedule's time zone. */ timeZone?: string; /** * List of user IDs for the layer. Can either be a valid user id or `null` to represent No-one. */ users: string[]; } export interface OnCallScheduleLayerInterval { /** * The number of full days in each rotation period. */ days: number; /** * For intervals that are not expressible in whole days, this will be added to `days`. Defaults to `0`. */ seconds: number; } export interface OnCallScheduleLayerRestriction { /** * The weekday when the restriction period ends. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. */ endDay: string; /** * The time of day when the restriction ends (hh:mm:ss). */ endTime: string; /** * The weekday when the restriction period starts. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. */ startDay: string; /** * The time of day when the restriction begins (hh:mm:ss). */ startTime: string; } export interface OnCallTeamRoutingRulesRule { /** * Specifies the list of actions to perform when the routing rule is matched. */ actions?: outputs.OnCallTeamRoutingRulesRuleAction[]; /** * ID of the policy to be applied when this routing rule matches. */ escalationPolicy?: string; /** * The ID of this rule. */ id: string; /** * Defines the query or condition that triggers this routing rule. Must not be set on the last rule, which acts as a catch-all rule. Defaults to `""`. */ query: string; /** * Holds time zone information and a list of time restrictions for a routing rule. Must not be set on the last rule, which acts as a catch-all rule. */ timeRestrictions?: outputs.OnCallTeamRoutingRulesRuleTimeRestrictions; /** * Defines the urgency for pages created via this rule. Only valid if `escalationPolicy` is set. Valid values are `high`, `low`, `dynamic`. */ urgency?: string; } export interface OnCallTeamRoutingRulesRuleAction { escalationPolicy?: outputs.OnCallTeamRoutingRulesRuleActionEscalationPolicy; /** * Reroutes the page to another team's routing rules. Can only be combined with `sendSlackMessage` or `sendTeamsMessage` actions in the same rule. */ rerouteToTeam?: outputs.OnCallTeamRoutingRulesRuleActionRerouteToTeam; sendSlackMessage?: outputs.OnCallTeamRoutingRulesRuleActionSendSlackMessage; sendTeamsMessage?: outputs.OnCallTeamRoutingRulesRuleActionSendTeamsMessage; triggerWorkflowAutomation?: outputs.OnCallTeamRoutingRulesRuleActionTriggerWorkflowAutomation; } export interface OnCallTeamRoutingRulesRuleActionEscalationPolicy { /** * Number of minutes before an acknowledged page is re-triggered. Value must be between 30 and 4320. */ ackTimeoutMinutes?: number; /** * Escalation policy ID. */ policyId?: string; /** * Support hours during which the escalation policy will execute. */ supportHours?: outputs.OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHours; /** * Urgency for pages created via this action. Valid values are `high`, `low`, `dynamic`. */ urgency?: string; } export interface OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHours { restrictions?: outputs.OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHoursRestriction[]; /** * Specifies the time zone applicable to the restrictions, e.g. `America/New_York`. */ timeZone?: string; } export interface OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHoursRestriction { /** * The weekday when the restriction period ends. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. */ endDay?: string; /** * The time of day when the restriction ends (hh:mm:ss). */ endTime?: string; /** * The weekday when the restriction period starts. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. */ startDay?: string; /** * The time of day when the restriction begins (hh:mm:ss). */ startTime?: string; } export interface OnCallTeamRoutingRulesRuleActionRerouteToTeam { /** * ID of the team to reroute the page to. */ destinationTeamId?: string; } export interface OnCallTeamRoutingRulesRuleActionSendSlackMessage { /** * Slack channel ID. */ channel?: string; /** * Slack workspace ID. */ workspace?: string; } export interface OnCallTeamRoutingRulesRuleActionSendTeamsMessage { /** * Teams channel ID. */ channel?: string; /** * Teams team ID. */ team?: string; /** * Teams tenant ID. */ tenant?: string; } export interface OnCallTeamRoutingRulesRuleActionTriggerWorkflowAutomation { /** * The handle of the Workflow Automation to trigger. */ handle?: string; } export interface OnCallTeamRoutingRulesRuleTimeRestrictions { /** * List of restrictions for the rule. */ restrictions?: outputs.OnCallTeamRoutingRulesRuleTimeRestrictionsRestriction[]; /** * Specifies the time zone applicable to the restrictions, e.g. `America/New_York`. */ timeZone?: string; } export interface OnCallTeamRoutingRulesRuleTimeRestrictionsRestriction { /** * The weekday when the restriction period ends. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. */ endDay?: string; /** * The time of day when the restriction ends (hh:mm:ss). */ endTime?: string; /** * The weekday when the restriction period starts. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. */ startDay?: string; /** * The time of day when the restriction begins (hh:mm:ss). */ startTime?: string; } export interface OnCallUserNotificationChannelEmail { /** * The e-mail address to be notified */ address?: string; /** * Preferred content formats for notifications */ formats?: string[]; } export interface OnCallUserNotificationChannelPhone { /** * The E-164 formatted phone number (e.g. +3371234567) */ number?: string; } export interface OnCallUserNotificationRulePhone { /** * Specifies the method in which a phone is used in a notification rule. Valid values are `sms`, `voice`. */ method?: string; } export interface OrganizationSettingsSettings { /** * Whether or not the organization users can share widgets outside of Datadog. Defaults to `false`. */ privateWidgetShare?: boolean; /** * SAML properties */ saml: outputs.OrganizationSettingsSettingsSaml; /** * The access role of the user. Options are `st` (standard user), `adm` (admin user), or `ro` (read-only user). Allowed enum values: `st`, `adm`, `ro`, `ERROR`. When omitted, the current value is left unchanged. */ samlAutocreateAccessRole: string; /** * List of domains where the SAML automated user creation is enabled. */ samlAutocreateUsersDomains: outputs.OrganizationSettingsSettingsSamlAutocreateUsersDomains; /** * Whether or not SAML can be enabled for this organization. */ samlCanBeEnabled: boolean; /** * Identity provider endpoint for SAML authentication. */ samlIdpEndpoint: string; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ samlIdpInitiatedLogin: outputs.OrganizationSettingsSettingsSamlIdpInitiatedLogin; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. */ samlIdpMetadataUploaded: boolean; /** * URL for SAML logging. */ samlLoginUrl: string; /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. */ samlStrictMode: outputs.OrganizationSettingsSettingsSamlStrictMode; } export interface OrganizationSettingsSettingsSaml { /** * Whether or not SAML is enabled for this organization. Defaults to `false`. */ enabled?: boolean; } export interface OrganizationSettingsSettingsSamlAutocreateUsersDomains { /** * List of domains where the SAML automated user creation is enabled. */ domains?: string[]; /** * Whether or not the automated user creation based on SAML domain is enabled. Defaults to `false`. */ enabled?: boolean; } export interface OrganizationSettingsSettingsSamlIdpInitiatedLogin { /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. Defaults to `false`. */ enabled?: boolean; } export interface OrganizationSettingsSettingsSamlStrictMode { /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. Defaults to `false`. */ enabled?: boolean; } export interface PowerpackLayout { /** * The height of the widget. */ height: number; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Should be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Should be greater than or equal to 0. */ y: number; } export interface PowerpackTemplateVariable { /** * One or many default values for powerpack template variables on load. If more than one default is specified, they will be unioned together with `OR`. */ defaults?: string[]; /** * The name of the powerpack template variable. */ name: string; } export interface PowerpackV2Layout { /** * The height of the widget. */ height: number; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. */ x: number; /** * The position of the widget on the y (vertical) axis. */ y: number; } export interface PowerpackV2TemplateVariable { /** * One or many default values for powerpack template variables on load. */ defaults?: string[]; /** * The name of the powerpack template variable. */ name: string; } export interface PowerpackV2Widget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.PowerpackV2WidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.PowerpackV2WidgetAlertValueDefinition; /** * The definition for a Bar Chart widget. */ barChartDefinition?: outputs.PowerpackV2WidgetBarChartDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.PowerpackV2WidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.PowerpackV2WidgetCheckStatusDefinition; /** * The definition for a Cohort retention-grid widget. */ cohortDefinition?: outputs.PowerpackV2WidgetCohortDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.PowerpackV2WidgetDistributionDefinition; /** * The definition for an App Builder embedded app widget. */ embeddedAppDefinition?: outputs.PowerpackV2WidgetEmbeddedAppDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.PowerpackV2WidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.PowerpackV2WidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.PowerpackV2WidgetFreeTextDefinition; /** * The definition for a Funnel widget. */ funnelDefinition?: outputs.PowerpackV2WidgetFunnelDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.PowerpackV2WidgetGeomapDefinition; /** * The definition for a Group widget. */ groupDefinition?: outputs.PowerpackV2WidgetGroupDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.PowerpackV2WidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.PowerpackV2WidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.PowerpackV2WidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.PowerpackV2WidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.PowerpackV2WidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.PowerpackV2WidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.PowerpackV2WidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.PowerpackV2WidgetNoteDefinition; /** * The definition for a Point Plot widget. */ pointPlotDefinition?: outputs.PowerpackV2WidgetPointPlotDefinition; /** * The definition for a Product Analytics user journey funnel widget. */ productAnalyticsFunnelDefinition?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.PowerpackV2WidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.PowerpackV2WidgetQueryValueDefinition; /** * The definition for a Retention Curve widget. */ retentionCurveDefinition?: outputs.PowerpackV2WidgetRetentionCurveDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.PowerpackV2WidgetRunWorkflowDefinition; /** * The definition for a Sankey diagram widget. */ sankeyDefinition?: outputs.PowerpackV2WidgetSankeyDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.PowerpackV2WidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.PowerpackV2WidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.PowerpackV2WidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.PowerpackV2WidgetSloListDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.PowerpackV2WidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.PowerpackV2WidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.PowerpackV2WidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.PowerpackV2WidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.PowerpackV2WidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.PowerpackV2WidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.PowerpackV2WidgetWidgetLayout; /** * The definition for a Wildcard (custom visualization) widget using Vega or Vega-Lite specifications. */ wildcardDefinition?: outputs.PowerpackV2WidgetWildcardDefinition; } export interface PowerpackV2WidgetAlertGraphDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetAlertGraphDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Whether to display the Alert Graph as a timeseries or a top list. Valid values are `timeseries`, `toplist`. */ vizType: string; } export interface PowerpackV2WidgetAlertGraphDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetAlertGraphDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetAlertGraphDefinitionTimeLive; } export interface PowerpackV2WidgetAlertGraphDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetAlertGraphDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetAlertValueDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The precision to use when displaying the value. Use `*` for maximum precision. */ precision?: number; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetAlertValueDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The unit for the value displayed in the widget. */ unit?: string; } export interface PowerpackV2WidgetAlertValueDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetAlertValueDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetAlertValueDefinitionTimeLive; } export interface PowerpackV2WidgetAlertValueDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetAlertValueDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackV2WidgetApmMetricsQuery { /** * The data source for APM metrics queries. Valid values are `apmMetrics`. */ dataSource: string; /** * Optional fields to group the query results by. */ groupBies?: string[]; /** * Name of this query to use in formulas. */ name: string; /** * Optional operation mode used to aggregate across operation names. */ operationMode?: string; /** * Name of the operation on the service. If omitted, the primary operation name is used. */ operationName?: string; /** * Tags to query for a specific downstream entity, such as `peer.service` or `peer.db_instance`. */ peerTags?: string[]; /** * Additional filters for the query using metrics query syntax. */ queryFilter?: string; /** * The hash of a specific resource to filter by. */ resourceHash?: string; /** * The full name of a specific resource to filter by. */ resourceName?: string; /** * APM service name. */ service?: string; /** * The relationship between the span, its parents, and its children in a trace. Valid values are `consumer`, `server`, `client`, `producer`, `internal`. */ spanKind?: string; /** * APM metric stat name. Valid values are `errors`, `errorRate`, `errorsPerSecond`, `latencyAvg`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`, `latencyP999`, `latencyDistribution`, `hits`, `hitsPerSecond`, `totalTime`, `apdex`. */ stat: string; } export interface PowerpackV2WidgetApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetApmQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetApmQueryGroupBySortQuery; } export interface PowerpackV2WidgetApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackV2WidgetBarChartDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetBarChartDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. */ request?: outputs.PowerpackV2WidgetBarChartDefinitionRequest; /** * Style customization for the bar chart widget. */ style?: outputs.PowerpackV2WidgetBarChartDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetBarChartDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetBarChartDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. */ conditionalFormats?: outputs.PowerpackV2WidgetBarChartDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetBarChartDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.PowerpackV2WidgetBarChartDefinitionRequestSort; /** * Define request for the widget's style. */ style?: outputs.PowerpackV2WidgetBarChartDefinitionRequestStyle; } export interface PowerpackV2WidgetBarChartDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetBarChartDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetBarChartDefinitionRequestSortOrderBy[]; } export interface PowerpackV2WidgetBarChartDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetBarChartDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetBarChartDefinitionRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetBarChartDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetBarChartDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetBarChartDefinitionStyle { /** * Bar chart display options. */ display?: outputs.PowerpackV2WidgetBarChartDefinitionStyleDisplay; /** * Color palette for the bar chart. */ palette?: string; /** * Scaling definition for the bar chart. Valid values are `absolute`, `relative`. */ scaling?: string; } export interface PowerpackV2WidgetBarChartDefinitionStyleDisplay { /** * Flat display mode with no stacking. */ flat?: outputs.PowerpackV2WidgetBarChartDefinitionStyleDisplayFlat; /** * Stacked display mode. */ stacked?: outputs.PowerpackV2WidgetBarChartDefinitionStyleDisplayStacked; } export interface PowerpackV2WidgetBarChartDefinitionStyleDisplayFlat { } export interface PowerpackV2WidgetBarChartDefinitionStyleDisplayStacked { /** * Legend display behavior for stacked bars. Valid values are `automatic`, `inline`, `none`. */ legend?: string; } export interface PowerpackV2WidgetBarChartDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetBarChartDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetBarChartDefinitionTimeLive; } export interface PowerpackV2WidgetBarChartDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetBarChartDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetChangeDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetChangeDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.PowerpackV2WidgetChangeDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetChangeDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetChangeDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetChangeDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * Whether to show absolute or relative change. Valid values are `absolute`, `relative`. */ changeType?: string; /** * Choose from when to compare current data to. Valid values are `hourBefore`, `dayBefore`, `weekBefore`, `monthBefore`. */ compareTo?: string; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormula[]; /** * A Boolean indicating whether an increase in the value is good (displayed in green) or not (displayed in red). */ increaseGood?: boolean; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * What to order by. Valid values are `change`, `name`, `present`, `past`. */ orderBy?: string; /** * Widget sorting method. Valid values are `asc`, `desc`. */ orderDir?: string; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetChangeDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetChangeDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * If set to `true`, displays the current value. */ showPresent?: boolean; } export interface PowerpackV2WidgetChangeDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetChangeDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetChangeDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetChangeDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetChangeDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetChangeDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetChangeDefinitionTimeLive; } export interface PowerpackV2WidgetChangeDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetChangeDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetCheckStatusDefinition { /** * Name of the check to use in the widget. */ check: string; /** * The description of the widget. */ description?: string; /** * Group reporting a single check. */ group?: string; /** * When `grouping = "cluster"`, indicates a list of tags to use for grouping. */ groupBies?: string[]; /** * The kind of grouping to use. Valid values are `check`, `cluster`. */ grouping: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A list of tags used to filter the groups reporting a cluster check. */ tags?: string[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetCheckStatusDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetCheckStatusDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetCheckStatusDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetCheckStatusDefinitionTimeLive; } export interface PowerpackV2WidgetCheckStatusDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetCheckStatusDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * Query for Cloud Cost data. */ query: string; } export interface PowerpackV2WidgetCohortDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Cohort retention-grid requests. */ requests: outputs.PowerpackV2WidgetCohortDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetCohortDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetCohortDefinitionRequest { /** * Retention query displayed by the cohort grid. */ query: outputs.PowerpackV2WidgetCohortDefinitionRequestQuery; /** * Request type for the retention grid widget. Valid values are `retentionGrid`. */ requestType: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuery { /** * Compute configuration for the retention query. */ compute: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Filters for the retention query. */ filters?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryFilters; /** * Group by configuration for the retention query. */ groupBies?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryGroupBy[]; /** * Name of the retention query. */ name?: string; /** * Search configuration for the retention query. */ search: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearch; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.PowerpackV2WidgetCohortDefinitionRequestQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteria; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeInterval; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaTimeInterval; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetCohortDefinitionRequestQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface PowerpackV2WidgetCohortDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetCohortDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetCohortDefinitionTimeLive; } export interface PowerpackV2WidgetCohortDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetCohortDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetDistributionDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `distributionDefinition` block. */ markers?: outputs.PowerpackV2WidgetDistributionDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.PowerpackV2WidgetDistributionDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetDistributionDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.PowerpackV2WidgetDistributionDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.PowerpackV2WidgetDistributionDefinitionYaxis; } export interface PowerpackV2WidgetDistributionDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface PowerpackV2WidgetDistributionDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * The APM stats query to use in the widget. */ apmStatsQuery?: outputs.PowerpackV2WidgetDistributionDefinitionRequestApmStatsQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormula[]; /** * Singular query block for histogram-mode distribution requests. */ histogramQuery?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetDistributionDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQuery[]; /** * Set to 'histogram' for distribution-of-point-values requests. Valid values are `histogram`. */ requestType?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackV2WidgetDistributionDefinitionRequestStyle; } export interface PowerpackV2WidgetDistributionDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.PowerpackV2WidgetDistributionDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQuery { /** * APM metrics query for histogram-mode distribution. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * APM resource stats query for histogram-mode distribution. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * Event query for histogram-mode distribution. */ eventQuery?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQuery; /** * Metric query for histogram-mode distribution. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestHistogramQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetDistributionDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetDistributionDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetDistributionDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetDistributionDefinitionTimeLive; } export interface PowerpackV2WidgetDistributionDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetDistributionDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetDistributionDefinitionXaxis { /** * True includes zero. */ includeZero?: boolean; /** * Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. */ max?: string; /** * Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. */ min?: string; /** * Number of value buckets to target, also known as the resolution of the value bins. */ numBuckets?: number; /** * Specifies the scale type. Possible values are `linear`. */ scale?: string; } export interface PowerpackV2WidgetDistributionDefinitionYaxis { /** * True includes zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. */ max?: string; /** * Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. */ min?: string; /** * Specifies the scale type. Possible values are `linear` or `log`. */ scale?: string; } export interface PowerpackV2WidgetEmbeddedAppDefinition { /** * UUID of the App Builder app to embed. Exactly one of `appId` or `templateId` must be provided. */ appId?: string; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetEmbeddedAppDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A nested block describing an input passed to the embedded app. Multiple `input` blocks are allowed. */ inputs?: outputs.PowerpackV2WidgetEmbeddedAppDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * ID of the built-in app template to embed. Exactly one of `appId` or `templateId` must be provided. */ templateId?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetEmbeddedAppDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetEmbeddedAppDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetEmbeddedAppDefinitionInput { /** * Name of the app input. */ name: string; /** * JSON-encoded value of the app input. Use `jsonencode()` for strings, numbers, booleans, objects, and arrays. */ value: string; } export interface PowerpackV2WidgetEmbeddedAppDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetEmbeddedAppDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetEmbeddedAppDefinitionTimeLive; } export interface PowerpackV2WidgetEmbeddedAppDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetEmbeddedAppDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetEventStreamDefinition { /** * The description of the widget. */ description?: string; /** * Size to use to display an event. Valid values are `s`, `l`. */ eventSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the event stream with. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetEventStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetEventStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetEventStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetEventStreamDefinitionTimeLive; } export interface PowerpackV2WidgetEventStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetEventStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetEventTimelineDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the event timeline with. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetEventTimelineDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetEventTimelineDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetEventTimelineDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetEventTimelineDefinitionTimeLive; } export interface PowerpackV2WidgetEventTimelineDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetEventTimelineDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetFreeTextDefinition { /** * The background color of the text widget. */ backgroundColor?: string; /** * The color of the text in the widget. */ color?: string; /** * The description of the widget. */ description?: string; /** * The size of the text in the widget. */ fontSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The text to display in the widget. */ text: string; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetFreeTextDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetFreeTextDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetFreeTextDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetFreeTextDefinitionTimeLive; } export interface PowerpackV2WidgetFreeTextDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetFreeTextDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetFunnelDefinition { /** * The description of the widget. */ description?: string; /** * Display mode for grouped funnel results. Valid values are `stacked`, `sideBySide`. */ groupedDisplay?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Only one `request` block is allowed. */ request?: outputs.PowerpackV2WidgetFunnelDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetFunnelDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetFunnelDefinitionRequest { /** * The query for the funnel widget request. */ query: outputs.PowerpackV2WidgetFunnelDefinitionRequestQuery; } export interface PowerpackV2WidgetFunnelDefinitionRequestQuery { /** * The data source for funnel queries. Valid values are `rum`. */ dataSource: string; /** * The widget query. */ queryString: string; /** * The funnel steps. Multiple `step` blocks are allowed. */ steps?: outputs.PowerpackV2WidgetFunnelDefinitionRequestQueryStep[]; } export interface PowerpackV2WidgetFunnelDefinitionRequestQueryStep { /** * The facet of the step. */ facet: string; /** * The value of the step. */ value: string; } export interface PowerpackV2WidgetFunnelDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetFunnelDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetFunnelDefinitionTimeLive; } export interface PowerpackV2WidgetFunnelDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetFunnelDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetGeomapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetGeomapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.PowerpackV2WidgetGeomapDefinitionRequest[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackV2WidgetGeomapDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetGeomapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view of the world that the map should render. */ view?: outputs.PowerpackV2WidgetGeomapDefinitionView; } export interface PowerpackV2WidgetGeomapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequest { /** * List of formulas that operate on queries. */ formulas?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetGeomapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetGeomapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetGeomapDefinitionStyle { /** * The color palette to apply to the widget. */ palette: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip: boolean; } export interface PowerpackV2WidgetGeomapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetGeomapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetGeomapDefinitionTimeLive; } export interface PowerpackV2WidgetGeomapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetGeomapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetGeomapDefinitionView { /** * The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`). */ focus: string; } export interface PowerpackV2WidgetGroupDefinition { /** * The background color of the group title, options: `vividBlue`, `vividPurple`, `vividPink`, `vividOrange`, `vividYellow`, `vividGreen`, `blue`, `purple`, `pink`, `orange`, `yellow`, `green`, `gray` or `white` */ backgroundColor?: string; /** * The image URL to display as a banner for the group. */ bannerImg?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The layout type of the group. Valid values are `ordered`. */ layoutType: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show the title or not. Defaults to `true`. */ showTitle?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetGroupDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The list of widgets in this group. */ widgets?: outputs.PowerpackV2WidgetGroupDefinitionWidget[]; } export interface PowerpackV2WidgetGroupDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetGroupDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetGroupDefinitionTimeLive; } export interface PowerpackV2WidgetGroupDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetGroupDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetGroupDefinitionWidget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.PowerpackV2WidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.PowerpackV2WidgetAlertValueDefinition; /** * The definition for a Bar Chart widget. */ barChartDefinition?: outputs.PowerpackV2WidgetBarChartDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.PowerpackV2WidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.PowerpackV2WidgetCheckStatusDefinition; /** * The definition for a Cohort retention-grid widget. */ cohortDefinition?: outputs.PowerpackV2WidgetCohortDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.PowerpackV2WidgetDistributionDefinition; /** * The definition for an App Builder embedded app widget. */ embeddedAppDefinition?: outputs.PowerpackV2WidgetEmbeddedAppDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.PowerpackV2WidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.PowerpackV2WidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.PowerpackV2WidgetFreeTextDefinition; /** * The definition for a Funnel widget. */ funnelDefinition?: outputs.PowerpackV2WidgetFunnelDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.PowerpackV2WidgetGeomapDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.PowerpackV2WidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.PowerpackV2WidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.PowerpackV2WidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.PowerpackV2WidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.PowerpackV2WidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.PowerpackV2WidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.PowerpackV2WidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.PowerpackV2WidgetNoteDefinition; /** * The definition for a Point Plot widget. */ pointPlotDefinition?: outputs.PowerpackV2WidgetPointPlotDefinition; /** * The definition for a Product Analytics user journey funnel widget. */ productAnalyticsFunnelDefinition?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.PowerpackV2WidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.PowerpackV2WidgetQueryValueDefinition; /** * The definition for a Retention Curve widget. */ retentionCurveDefinition?: outputs.PowerpackV2WidgetRetentionCurveDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.PowerpackV2WidgetRunWorkflowDefinition; /** * The definition for a Sankey diagram widget. */ sankeyDefinition?: outputs.PowerpackV2WidgetSankeyDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.PowerpackV2WidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.PowerpackV2WidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.PowerpackV2WidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.PowerpackV2WidgetSloListDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.PowerpackV2WidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.PowerpackV2WidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.PowerpackV2WidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.PowerpackV2WidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.PowerpackV2WidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.PowerpackV2WidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.PowerpackV2WidgetGroupDefinitionWidgetWidgetLayout; /** * The definition for a Wildcard (custom visualization) widget using Vega or Vega-Lite specifications. */ wildcardDefinition?: outputs.PowerpackV2WidgetWildcardDefinition; } export interface PowerpackV2WidgetGroupDefinitionWidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface PowerpackV2WidgetHeatmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetHeatmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.PowerpackV2WidgetHeatmapDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `heatmapDefinition` block. */ markers?: outputs.PowerpackV2WidgetHeatmapDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below. */ requests?: outputs.PowerpackV2WidgetHeatmapDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetHeatmapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.PowerpackV2WidgetHeatmapDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.PowerpackV2WidgetHeatmapDefinitionYaxis; } export interface PowerpackV2WidgetHeatmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetHeatmapDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface PowerpackV2WidgetHeatmapDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormula[]; /** * Histogram request for distribution of point values. */ histogramRequest?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestHistogramRequest; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestStyle; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetHeatmapDefinitionRequestHistogramRequest { /** * Singular metric query for a histogram-mode heatmap request. */ histogramQuery: outputs.PowerpackV2WidgetHeatmapDefinitionRequestHistogramRequestHistogramQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestHistogramRequestStyle; } export interface PowerpackV2WidgetHeatmapDefinitionRequestHistogramRequestHistogramQuery { /** * Metric query for distribution of point values. */ metricQuery: outputs.PowerpackV2WidgetMetricQuery; } export interface PowerpackV2WidgetHeatmapDefinitionRequestHistogramRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetHeatmapDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetHeatmapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetHeatmapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetHeatmapDefinitionTimeLive; } export interface PowerpackV2WidgetHeatmapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetHeatmapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetHeatmapDefinitionXaxis { /** * Number of time buckets to target, also known as the resolution of the time bins. This is only applicable for distribution of points (group distributions use the roll-up modifier). */ numBuckets?: number; } export interface PowerpackV2WidgetHeatmapDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetHostmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetHostmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The list of tag prefixes to group by. */ groups?: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A Boolean indicating whether to show the hosts that don't fit in a group. */ noGroupHosts?: boolean; /** * A Boolean indicating whether to show nodes with no metrics. */ noMetricHosts?: boolean; /** * The type of node used. Valid values are `host`, `container`. */ nodeType?: string; /** * Notes/description text for the host map widget. */ notes?: string; /** * A request using the legacy metric format, the infrastructure-backed format, or the DDSQL data-projection format. */ request?: outputs.PowerpackV2WidgetHostmapDefinitionRequest; /** * The list of tags used to filter the map. */ scopes?: string[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackV2WidgetHostmapDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetHostmapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetHostmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequest { /** * Optional child request for one level of hierarchical visualization. */ child?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChild; /** * Conditional formatting rules applied to fill values. */ conditionalFormats?: outputs.PowerpackV2WidgetHostmapDefinitionRequestConditionalFormat[]; /** * Metric or event queries joined to the entity set. */ enrichments?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichment[]; /** * The query used to fill the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ fill?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFill; /** * Filter string for the entity set in tag format, such as `env:prod`. */ filter?: string; /** * Ordered grouping hierarchy for infrastructure entities. */ groupBies?: outputs.PowerpackV2WidgetHostmapDefinitionRequestGroupBy[]; /** * Maximum number of rows to return from the DDSQL data-projection request. */ limit?: number; /** * Whether to hide entities that have no group assignment. */ noGroupHosts?: boolean; /** * Whether to hide entities that have no enrichment data. */ noMetricHosts?: boolean; /** * Infrastructure entity type to visualize. Valid values are `host`, `container`, `pod`, `cluster`. */ nodeType?: string; /** * Mapping from published-dataset columns to host map dimensions. */ projection?: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjection; /** * Published-dataset query used by the DDSQL data-projection request. */ query?: outputs.PowerpackV2WidgetHostmapDefinitionRequestQuery; /** * Identifies an infrastructure-backed or DDSQL data-projection host map request. Valid values are `infrastructureHostmap`, `dataProjection`. */ requestType?: string; /** * The query used to size the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ size?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSize; /** * Style configuration for the infrastructure host map. */ style?: outputs.PowerpackV2WidgetHostmapDefinitionRequestStyle; } export interface PowerpackV2WidgetHostmapDefinitionRequestChild { /** * Conditional formatting rules applied to fill values. */ conditionalFormats?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildConditionalFormat[]; /** * Metric or event queries joined to the entity set. */ enrichments: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichment[]; /** * Filter string for the entity set in tag format, such as `env:prod`. */ filter?: string; /** * Ordered grouping hierarchy for infrastructure entities. */ groupBies?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildGroupBy[]; /** * Whether to hide entities that have no group assignment. */ noGroupHosts?: boolean; /** * Whether to hide entities that have no enrichment data. */ noMetricHosts?: boolean; /** * Infrastructure entity type to visualize. Valid values are `host`, `container`, `pod`, `cluster`. */ nodeType: string; /** * Identifies an infrastructure-backed host map request. Valid values are `infrastructureHostmap`. */ requestType: string; /** * Style configuration for the infrastructure host map. */ style?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildStyle; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichment { /** * Formulas that operate on queries and drive visual dimensions. */ formulas: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormula[]; /** * Queries that can be returned directly or used in formulas. */ queries: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQuery[]; /** * Response format for the scalar formula request. Valid values are `scalar`. */ responseFormat: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormula { /** * Expression alias. */ alias?: string; /** * Visual dimension driven by the formula. Valid values are `node`, `fill`, `size`. */ dimension: string; /** * String expression built from queries, formulas, and functions. */ formulaExpression: string; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormat; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildEnrichmentQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildGroupBy { /** * Column name from the entity table, such as `cloudProvider`, `tags`, or `labels`. */ column: string; /** * Key within the column for nested attribute types, such as `service` within `tags`. */ key?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestChildStyle { /** * Maximum value for the fill color scale. Omit to use automatic scaling. */ fillMax?: number; /** * Minimum value for the fill color scale. Omit to use automatic scaling. */ fillMin?: number; /** * Color palette name or alias. */ palette?: string; /** * Whether to invert the color palette. */ paletteFlip?: boolean; } export interface PowerpackV2WidgetHostmapDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichment { /** * Formulas that operate on queries and drive visual dimensions. */ formulas: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormula[]; /** * Queries that can be returned directly or used in formulas. */ queries: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQuery[]; /** * Response format for the scalar formula request. Valid values are `scalar`. */ responseFormat: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormula { /** * Expression alias. */ alias?: string; /** * Visual dimension driven by the formula. Valid values are `node`, `fill`, `size`. */ dimension: string; /** * String expression built from queries, formulas, and functions. */ formulaExpression: string; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormat; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestEnrichmentQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFill { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaStyle; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestFillQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestGroupBy { /** * Column name from the entity table, such as `cloudProvider`, `tags`, or `labels`. */ column: string; /** * Key within the column for nested attribute types, such as `service` within `tags`. */ key?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjection { /** * Column-to-dimension mappings for the host map projection. */ dimensions: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjectionDimension[]; /** * Type of the host map projection. Valid values are `hostmap`. */ type: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjectionDimension { /** * Alias used to label the column instead of its name. */ alias?: string; /** * Source column name from the dataset. */ column: string; /** * Visual dimension driven by the dataset column. Valid values are `node`, `fill`, `size`, `group`. */ dimension: string; /** * Number formatting options for the projected column. */ numberFormat?: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormat; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitScale; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCustom; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestProjectionDimensionNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestQuery { /** * Identifies this as a published-dataset list query. Valid values are `dataset`. */ dataSource: string; /** * ID of the published dataset to query. */ datasetId: string; /** * Product page that published the dataset. Valid values are `ddsqlQuery`. */ datasetProvider: string; /** * Filter applied to the dataset rows using events-style search syntax. */ filter?: string; /** * Maximum number of rows to return from the dataset query. */ limit?: number; /** * Sort configuration for the dataset query. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestQuerySort; } export interface PowerpackV2WidgetHostmapDefinitionRequestQuerySort { /** * List of fields to sort the dataset rows by, applied in order. */ fields: outputs.PowerpackV2WidgetHostmapDefinitionRequestQuerySortField[]; } export interface PowerpackV2WidgetHostmapDefinitionRequestQuerySortField { /** * Name of the field to sort on. */ name: string; /** * Sort direction for the field. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSize { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaStyle; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestSizeQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetHostmapDefinitionRequestStyle { /** * Maximum value for the fill color scale. Omit to use automatic scaling. */ fillMax?: number; /** * Minimum value for the fill color scale. Omit to use automatic scaling. */ fillMin?: number; /** * Color palette name or alias. */ palette?: string; /** * Whether to invert the color palette. */ paletteFlip?: boolean; } export interface PowerpackV2WidgetHostmapDefinitionStyle { /** * The max value to use to color the map. */ fillMax?: string; /** * The min value to use to color the map. */ fillMin?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip?: boolean; } export interface PowerpackV2WidgetHostmapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetHostmapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetHostmapDefinitionTimeLive; } export interface PowerpackV2WidgetHostmapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetHostmapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetIframeDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetIframeDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The URL to use as a data source for the widget. */ url: string; } export interface PowerpackV2WidgetIframeDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetIframeDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetIframeDefinitionTimeLive; } export interface PowerpackV2WidgetIframeDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetIframeDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetImageDefinition { /** * The description of the widget. */ description?: string; /** * Whether to display a background or not. Defaults to `true`. */ hasBackground?: boolean; /** * Whether to display a border or not. Defaults to `true`. */ hasBorder?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The horizontal alignment for the widget. Valid values are `center`, `left`, `right`. */ horizontalAlign?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The margins to use around the image. Note: `small` and `large` values are deprecated. Valid values are `sm`, `md`, `lg`, `small`, `large`. */ margin?: string; /** * The preferred method to adapt the dimensions of the image. The values are based on the image `object-fit` CSS properties. Note: `zoom`, `fit` and `center` values are deprecated. Valid values are `fill`, `contain`, `cover`, `none`, `scale-down`, `zoom`, `fit`, `center`. */ sizing?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetImageDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * URL of the image. */ url: string; /** * URL of the image in dark mode. */ urlDarkTheme?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface PowerpackV2WidgetImageDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetImageDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetImageDefinitionTimeLive; } export interface PowerpackV2WidgetImageDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetImageDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetListStreamDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the requests to use when displaying the widget. Multiple `request` blocks are allowed with the structure below. */ requests: outputs.PowerpackV2WidgetListStreamDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetListStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetListStreamDefinitionRequest { /** * Widget columns. */ columns: outputs.PowerpackV2WidgetListStreamDefinitionRequestColumn[]; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Updated list stream widget. */ query: outputs.PowerpackV2WidgetListStreamDefinitionRequestQuery; /** * Widget response format. Valid values are `eventList`. */ responseFormat: string; } export interface PowerpackV2WidgetListStreamDefinitionRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface PowerpackV2WidgetListStreamDefinitionRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.PowerpackV2WidgetListStreamDefinitionRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.PowerpackV2WidgetListStreamDefinitionRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackV2WidgetListStreamDefinitionRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface PowerpackV2WidgetListStreamDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetListStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetListStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetListStreamDefinitionTimeLive; } export interface PowerpackV2WidgetListStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetListStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetLogQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetLogQueryGroupBySortQuery; } export interface PowerpackV2WidgetLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetLogStreamDefinition { /** * Stringified list of columns to use, for example: `["column1","column2","column3"]`. */ columns?: string[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The number of log lines to display. Valid values are `inline`, `expanded-md`, `expanded-lg`. */ messageDisplay?: string; /** * Query to filter the log stream with. */ query?: string; /** * If the date column should be displayed. */ showDateColumn?: boolean; /** * If the message column should be displayed. */ showMessageColumn?: boolean; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.PowerpackV2WidgetLogStreamDefinitionSort; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetLogStreamDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetLogStreamDefinitionSort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetLogStreamDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetLogStreamDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetLogStreamDefinitionTimeLive; } export interface PowerpackV2WidgetLogStreamDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetLogStreamDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetManageStatusDefinition { /** * Whether to colorize text or background. Valid values are `background`, `text`. */ colorPreference?: string; /** * The description of the widget. */ description?: string; /** * The display setting to use. Valid values are `counts`, `countsAndList`, `list`. */ displayFormat?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A Boolean indicating whether to hide empty categories. */ hideZeroCounts?: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Query to filter the monitors with. */ query: string; /** * Whether to show the time that has elapsed since the monitor/group triggered. */ showLastTriggered?: boolean; /** * Whether to show the priorities column. */ showPriority?: boolean; /** * The method to sort the monitors. Valid values are `name`, `group`, `status`, `tags`, `triggered`, `group,asc`, `group,desc`, `name,asc`, `name,desc`, `status,asc`, `status,desc`, `tags,asc`, `tags,desc`, `triggered,asc`, `triggered,desc`, `priority,asc`, `priority,desc`. */ sort?: string; /** * The summary type to use. Valid values are `monitors`, `groups`, `combined`. */ summaryType?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetManageStatusDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetManageStatusDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetManageStatusDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetManageStatusDefinitionTimeLive; } export interface PowerpackV2WidgetManageStatusDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetManageStatusDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackV2WidgetNoteDefinition { /** * The background color of the note. */ backgroundColor?: string; /** * The content of the note. */ content: string; /** * The description of the widget. */ description?: string; /** * The size of the text. */ fontSize?: string; /** * Whether to add padding or not. Defaults to `true`. */ hasPadding?: boolean; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show a tick or not. */ showTick?: boolean; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * When `tick = true`, a string indicating on which side of the widget the tick should be displayed. Valid values are `bottom`, `left`, `right`, `top`. */ tickEdge?: string; /** * When `tick = true`, a string with a percent sign indicating the position of the tick, for example: `tickPos = "50%"` is centered alignment. */ tickPos?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetNoteDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface PowerpackV2WidgetNoteDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetNoteDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetNoteDefinitionTimeLive; } export interface PowerpackV2WidgetNoteDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetNoteDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetPointPlotDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetPointPlotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Legend configuration for the widget. */ legend?: outputs.PowerpackV2WidgetPointPlotDefinitionLegend; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing a marker to use when displaying the widget. Multiple `marker` blocks are allowed. */ markers?: outputs.PowerpackV2WidgetPointPlotDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. */ requests?: outputs.PowerpackV2WidgetPointPlotDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetPointPlotDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.PowerpackV2WidgetPointPlotDefinitionYaxis; } export interface PowerpackV2WidgetPointPlotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetPointPlotDefinitionLegend { /** * Type of legend to show for the point plot widget. Valid values are `automatic`, `none`. */ type: string; } export interface PowerpackV2WidgetPointPlotDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface PowerpackV2WidgetPointPlotDefinitionRequest { /** * Maximum number of data points to return. */ limit?: number; /** * Projection configuration for the point plot request. */ projection: outputs.PowerpackV2WidgetPointPlotDefinitionRequestProjection; /** * Query configuration for the point plot request. */ query: outputs.PowerpackV2WidgetPointPlotDefinitionRequestQuery; /** * The type of data request. Must be `dataProjection`. Valid values are `dataProjection`. */ requestType: string; } export interface PowerpackV2WidgetPointPlotDefinitionRequestProjection { /** * List of dimension mappings for the projection. */ dimensions: outputs.PowerpackV2WidgetPointPlotDefinitionRequestProjectionDimension[]; /** * Additional columns to include in the projection. */ extraColumns?: string[]; /** * Type of the projection. Must be `pointPlot`. Valid values are `pointPlot`. */ type: string; } export interface PowerpackV2WidgetPointPlotDefinitionRequestProjectionDimension { /** * Alias for the column. */ alias?: string; /** * Source column name from the dataset. */ column: string; /** * Dimension of the point plot. Valid values are `group`, `time`, `y`, `radius`. */ dimension: string; } export interface PowerpackV2WidgetPointPlotDefinitionRequestQuery { /** * Data source for the query (for example, `logs`). */ dataSource: string; /** * List of indexes to query. */ indexes?: string[]; /** * The query string to filter events. */ queryString: string; /** * Storage location for the query. */ storage?: string; } export interface PowerpackV2WidgetPointPlotDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetPointPlotDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetPointPlotDefinitionTimeLive; } export interface PowerpackV2WidgetPointPlotDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetPointPlotDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetPointPlotDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetProductAnalyticsExtendedQuery { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFilters; /** * Compute configuration for the Product Analytics Extended query. */ compute: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryCompute; /** * Data source for Product Analytics Extended queries. Valid values are `productAnalyticsExtended`. */ dataSource: string; /** * Group by configuration for the Product Analytics Extended query. */ groupBies?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryGroupBy[]; /** * Event indexes to query. Use `*` to query all indexes. */ indexes?: string[]; /** * Name of the query for use in formulas. */ name: string; /** * Base Product Analytics event query. */ query: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryQuery; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFiltersUser[]; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryCompute { /** * Aggregation method for the Product Analytics Extended query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Fixed-width time bucket interval in milliseconds. Mutually exclusive with `rollup`. */ interval?: number; /** * Measurable attribute to compute. */ metric?: string; /** * Name of the compute for use in formulas. */ name?: string; /** * Calendar-aligned time bucket. Mutually exclusive with `interval`. */ rollup?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryComputeRollup; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryComputeRollup { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryGroupBySort; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetProductAnalyticsExtendedQueryQuerySearch; } export interface PowerpackV2WidgetProductAnalyticsExtendedQueryQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinition { /** * The description of the widget. */ description?: string; /** * Display mode for grouped funnel results. Valid values are `stacked`, `sideBySide`. */ groupedDisplay?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * User journey funnel requests. */ requests: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequest { /** * Segments to compare in the funnel. */ comparisonSegments?: string[]; /** * Comparison time configuration for the funnel. */ comparisonTime?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTime; /** * User journey query displayed by the funnel. */ query: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuery; /** * Request type for the Product Analytics funnel. Valid values are `userJourneyFunnel`. */ requestType: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTime { /** * Custom comparison timeframe. */ customTimeframe?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTimeCustomTimeframe; /** * Type of comparison duration. Valid values are `previousTimeframe`, `customTimeframe`, `previousDay`, `previousWeek`, `previousMonth`. */ type: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestComparisonTimeCustomTimeframe { /** * Start of the custom comparison timeframe. */ from: number; /** * End of the custom comparison timeframe. */ to: number; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuery { /** * Compute configuration for the user journey funnel. */ compute?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryCompute; /** * Data source for Product Analytics funnel queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the user journey funnel. */ groupBies?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBy[]; /** * User journey search configuration. */ search: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearch; /** * Subquery identifier. */ subqueryId?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryCompute { /** * Aggregation type for the user journey funnel computation. Valid values are `cardinality`, `count`. */ aggregation: string; /** * Metric for the user journey funnel computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`. */ metric: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBy { /** * Facet to group the user journey funnel by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for the funnel groups. */ sort?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBySort; /** * Journey target to group. */ target?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupByTarget; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupBySort { /** * Aggregation used to sort the funnel groups. */ aggregation: string; /** * Metric to sort by. */ metric?: string; /** * Sort order for funnel groups. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionRequestQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetProductAnalyticsFunnelDefinitionTimeLive; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetProductAnalyticsFunnelDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetQueryTableDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetQueryTableDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Controls the display of the search bar. Valid values are `always`, `never`, `auto`. */ hasSearchBar?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackV2WidgetQueryTableDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetQueryTableDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetQueryTableDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The alias for the column name (defaults to metric name). */ alias?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * The APM stats query for table and distribution widgets. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmStatsQuery?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestApmStatsQuery; /** * A list of display modes for each table cell. Valid values are `number`, `bar`. */ cellDisplayModes?: string[]; /** * Conditional formats allow you to set the color of your widget content or background, depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormula[]; /** * For metric queries, the number of lines to show in the table. Only one request should have this property. */ limit?: number; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The sort order for the rows. Valid values are `asc`, `desc`. */ order?: string; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The controls for sorting the widget request. */ sort?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestSort; /** * Text formats define how to format text in table widget content. Multiple `textFormats` blocks are allowed using the structure below. This resource is in beta and is subject to change. */ textFormats?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestTextFormat[]; } export interface PowerpackV2WidgetQueryTableDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetQueryTableDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestSortOrderBy[]; } export interface PowerpackV2WidgetQueryTableDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetQueryTableDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestTextFormat { /** * The text format to apply to the items in a table widget column. */ textFormats?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestTextFormatTextFormat[]; } export interface PowerpackV2WidgetQueryTableDefinitionRequestTextFormatTextFormat { /** * The custom color palette to apply to the background. */ customBgColor?: string; /** * The custom color palette to apply to the foreground text. */ customFgColor?: string; /** * Match rule for the table widget text format. */ match: outputs.PowerpackV2WidgetQueryTableDefinitionRequestTextFormatTextFormatMatch; /** * The color palette to apply. Valid values are `whiteOnRed`, `whiteOnYellow`, `whiteOnGreen`, `blackOnLightRed`, `blackOnLightYellow`, `blackOnLightGreen`, `redOnWhite`, `yellowOnWhite`, `greenOnWhite`, `customBg`, `customText`. */ palette?: string; /** * Match rule for the table widget text format. */ replace?: outputs.PowerpackV2WidgetQueryTableDefinitionRequestTextFormatTextFormatReplace; } export interface PowerpackV2WidgetQueryTableDefinitionRequestTextFormatTextFormatMatch { /** * Match or compare option. Valid values are `is`, `isNot`, `contains`, `doesNotContain`, `startsWith`, `endsWith`. */ type: string; /** * Table Widget Match String. */ value: string; } export interface PowerpackV2WidgetQueryTableDefinitionRequestTextFormatTextFormatReplace { /** * Text that will be replaced. Must be used with type `substring`. */ substring?: string; /** * Table widget text format replace all type. Valid values are `all`, `substring`. */ type: string; /** * Table Widget Match String. */ with: string; } export interface PowerpackV2WidgetQueryTableDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetQueryTableDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetQueryTableDefinitionTimeLive; } export interface PowerpackV2WidgetQueryTableDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetQueryTableDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetQueryValueDefinition { /** * A Boolean indicating whether to automatically scale the tile. */ autoscale?: boolean; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetQueryValueDefinitionCustomLink[]; /** * Display a unit of your choice on the widget. */ customUnit?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Number of decimals to show. If not defined, the widget uses the raw value. */ precision?: number; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackV2WidgetQueryValueDefinitionRequest[]; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetQueryValueDefinitionTime; /** * Set a timeseries on the widget background. */ timeseriesBackground?: outputs.PowerpackV2WidgetQueryValueDefinitionTimeseriesBackground; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetQueryValueDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestAuditQuery; /** * A change indicator that compares the current value to a historical period. */ comparison?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestComparison; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; } export interface PowerpackV2WidgetQueryValueDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetQueryValueDefinitionRequestComparison { /** * Which direction of change is considered an improvement. Valid values are `increaseBetter`, `decreaseBetter`, `neutral`. Defaults to `"neutral"`. */ directionality?: string; /** * The comparison period. */ duration: outputs.PowerpackV2WidgetQueryValueDefinitionRequestComparisonDuration; /** * How the delta is expressed. Valid values are `absolute`, `relative`, `both`. Defaults to `"absolute"`. */ type?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestComparisonDuration { /** * Fixed time range to compare against when `type` is `customTimeframe`. */ customTimeframe?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestComparisonDurationCustomTimeframe; /** * The comparison window type. Valid values are `previousTimeframe`, `customTimeframe`, `previousDay`, `previousWeek`, `previousMonth`. */ type: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestComparisonDurationCustomTimeframe { /** * Start time in milliseconds since epoch. */ from: number; /** * End time in milliseconds since epoch. */ to: number; } export interface PowerpackV2WidgetQueryValueDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetQueryValueDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetQueryValueDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetQueryValueDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetQueryValueDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetQueryValueDefinitionTimeLive; } export interface PowerpackV2WidgetQueryValueDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetQueryValueDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetQueryValueDefinitionTimeseriesBackground { /** * Whether the Timeseries is made using an area or bars. Valid values are `area`, `bars`. */ type: string; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.PowerpackV2WidgetQueryValueDefinitionTimeseriesBackgroundYaxis; } export interface PowerpackV2WidgetQueryValueDefinitionTimeseriesBackgroundYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetRetentionCurveDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Retention curve requests. */ requests: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetRetentionCurveDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequest { /** * Retention query displayed by the retention curve. */ query: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuery; /** * Request type for the retention curve widget. Valid values are `retentionCurve`. */ requestType: string; /** * Style configuration for the retention curve. */ style?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestStyle; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuery { /** * Compute configuration for the retention query. */ compute: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Filters for the retention query. */ filters?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFilters; /** * Group by configuration for the retention query. */ groupBies?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryGroupBy[]; /** * Name of the retention query. */ name?: string; /** * Search configuration for the retention query. */ search: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearch; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteria; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeInterval; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaTimeInterval; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface PowerpackV2WidgetRetentionCurveDefinitionRequestStyle { /** * Color palette for the retention curve. */ palette?: string; } export interface PowerpackV2WidgetRetentionCurveDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetRetentionCurveDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetRetentionCurveDefinitionTimeLive; } export interface PowerpackV2WidgetRetentionCurveDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetRetentionCurveDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetRetentionQuery { /** * Compute configuration for the retention query. */ compute: outputs.PowerpackV2WidgetRetentionQueryCompute; /** * Data source for retention queries. Valid values are `productAnalyticsRetention`. */ dataSource: string; /** * Group by configuration for the retention query. */ groupBies?: outputs.PowerpackV2WidgetRetentionQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * Search configuration for the retention query. */ search: outputs.PowerpackV2WidgetRetentionQuerySearch; } export interface PowerpackV2WidgetRetentionQueryCompute { /** * Aggregation for the retention query, including standard event aggregations and `pcNN` percentiles. */ aggregation: string; /** * Metric for the retention computation. Valid values are `__dd.retention`, `__dd.retention_rate`. */ metric: string; } export interface PowerpackV2WidgetRetentionQueryGroupBy { /** * Facet to group by. */ facet: string; /** * Maximum number of groups. */ limit?: number; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration for retention group by results. */ sort?: outputs.PowerpackV2WidgetRetentionQueryGroupBySort; /** * Source field for the retention group by. */ source?: string; /** * Target for the retention group by. Valid values are `cohort`, `returnPeriod`. */ target: string; } export interface PowerpackV2WidgetRetentionQueryGroupBySort { /** * Sort order for retention group by results. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetRetentionQuerySearch { /** * Criteria used to construct the retention cohort. */ cohortCriteria: outputs.PowerpackV2WidgetRetentionQuerySearchCohortCriteria; /** * Filters for the retention search. */ filters?: outputs.PowerpackV2WidgetRetentionQuerySearchFilters; /** * Entity tracked for retention. Valid values are `@usr.id`, `@account.id`. */ retentionEntity: string; /** * Condition for counting an entity as returned. Valid values are `conversionOn`, `conversionOnOrAfter`. */ returnCondition: string; /** * Criteria used to identify return activity. */ returnCriteria?: outputs.PowerpackV2WidgetRetentionQuerySearchReturnCriteria; } export interface PowerpackV2WidgetRetentionQuerySearchCohortCriteria { /** * Base Product Analytics event query for cohort membership. */ baseQuery: outputs.PowerpackV2WidgetRetentionQuerySearchCohortCriteriaBaseQuery; /** * Time interval used to build the cohort. */ timeInterval: outputs.PowerpackV2WidgetRetentionQuerySearchCohortCriteriaTimeInterval; } export interface PowerpackV2WidgetRetentionQuerySearchCohortCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetRetentionQuerySearchCohortCriteriaBaseQuerySearch; } export interface PowerpackV2WidgetRetentionQuerySearchCohortCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetRetentionQuerySearchCohortCriteriaTimeInterval { /** * Type of cohort time interval. Valid values are `calendar`. */ type: string; /** * Calendar interval used to build the cohort. */ value: outputs.PowerpackV2WidgetRetentionQuerySearchCohortCriteriaTimeIntervalValue; } export interface PowerpackV2WidgetRetentionQuerySearchCohortCriteriaTimeIntervalValue { /** * Alignment of the calendar interval. */ alignment?: string; /** * Quantity of the calendar interval. */ quantity?: number; /** * Timezone for the calendar interval. */ timezone?: string; /** * Type of calendar interval. Valid values are `day`, `week`, `month`, `year`, `quarter`, `minute`, `hour`. */ type: string; } export interface PowerpackV2WidgetRetentionQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFilters; /** * String filter for the retention query. */ stringFilter?: string; } export interface PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetRetentionQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetRetentionQuerySearchReturnCriteria { /** * Base Product Analytics event query for return activity. */ baseQuery: outputs.PowerpackV2WidgetRetentionQuerySearchReturnCriteriaBaseQuery; /** * Time interval for the return criteria. */ timeInterval?: outputs.PowerpackV2WidgetRetentionQuerySearchReturnCriteriaTimeInterval; } export interface PowerpackV2WidgetRetentionQuerySearchReturnCriteriaBaseQuery { /** * Data source for the Product Analytics event query. Valid values are `productAnalytics`. */ dataSource: string; /** * Search configuration for the Product Analytics event query. */ search: outputs.PowerpackV2WidgetRetentionQuerySearchReturnCriteriaBaseQuerySearch; } export interface PowerpackV2WidgetRetentionQuerySearchReturnCriteriaBaseQuerySearch { /** * Product Analytics event search query used to filter views or actions. */ query: string; } export interface PowerpackV2WidgetRetentionQuerySearchReturnCriteriaTimeInterval { /** * Type of return interval. Valid values are `fixed`. */ type: string; /** * Unit of the return interval. Valid values are `day`, `week`, `month`. */ unit: string; /** * Value of the return interval. */ value: number; } export interface PowerpackV2WidgetRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetRumQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetRumQueryGroupBySortQuery; } export interface PowerpackV2WidgetRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetRunWorkflowDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetRunWorkflowDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Array of workflow inputs to map to dashboard template variables. */ inputs?: outputs.PowerpackV2WidgetRunWorkflowDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetRunWorkflowDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Workflow ID */ workflowId: string; } export interface PowerpackV2WidgetRunWorkflowDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetRunWorkflowDefinitionInput { /** * Name of the workflow input. */ name: string; /** * Dashboard template variable. Can be suffixed with `.value` or `.key`. */ value: string; } export interface PowerpackV2WidgetRunWorkflowDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetRunWorkflowDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetRunWorkflowDefinitionTimeLive; } export interface PowerpackV2WidgetRunWorkflowDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetRunWorkflowDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetSankeyDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. */ requests?: outputs.PowerpackV2WidgetSankeyDefinitionRequest[]; /** * Whether to show links for the 'other' category. */ showOtherLinks?: boolean; /** * Whether to sort nodes in the Sankey diagram. */ sortNodes?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetSankeyDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetSankeyDefinitionRequest { /** * Network request for the Sankey widget. */ networkRequest?: outputs.PowerpackV2WidgetSankeyDefinitionRequestNetworkRequest; /** * RUM request for the Sankey widget. */ rumRequest?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequest; } export interface PowerpackV2WidgetSankeyDefinitionRequestNetworkRequest { /** * The query for the Sankey network request. */ query: outputs.PowerpackV2WidgetSankeyDefinitionRequestNetworkRequestQuery; } export interface PowerpackV2WidgetSankeyDefinitionRequestNetworkRequestQuery { /** * Compute aggregation configuration. */ compute?: outputs.PowerpackV2WidgetSankeyDefinitionRequestNetworkRequestQueryCompute; /** * The data source for the Sankey network query. Valid values are `networkDeviceFlows`, `network`. */ dataSource: string; /** * Fields to group by. */ groupBies: string[]; /** * Maximum number of results. */ limit: number; /** * The mode for the Sankey network query. Valid values are `target`. */ mode?: string; /** * The search query string. */ queryString: string; /** * Whether to exclude missing values. */ shouldExcludeMissing?: boolean; /** * Sort configuration. */ sort?: outputs.PowerpackV2WidgetSankeyDefinitionRequestNetworkRequestQuerySort; } export interface PowerpackV2WidgetSankeyDefinitionRequestNetworkRequestQueryCompute { /** * The aggregation method. */ aggregation: string; /** * The metric to aggregate. */ metric: string; } export interface PowerpackV2WidgetSankeyDefinitionRequestNetworkRequestQuerySort { /** * Field to sort by. */ field?: string; /** * Sort direction. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequest { /** * The query for the Sankey RUM request. */ query: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQuery; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQuery { /** * Product Analytics and RUM audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFilters; /** * The data source for the Sankey RUM query. Valid values are `rum`, `productAnalytics`. */ dataSource: string; /** * Entries per step. */ entriesPerStep?: number; /** * Join keys for the Sankey query. */ joinKeys?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryJoinKeys; /** * The mode for the Sankey RUM query. Valid values are `source`, `target`. */ mode: string; /** * Number of steps. */ numberOfSteps?: number; /** * Filter applied to occurrence counts when building a Product Analytics audience. */ occurrence?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryOccurrence; /** * The search query string. */ queryString: string; /** * Source field. */ source?: string; /** * Subquery ID. */ subqueryId?: string; /** * Target field. */ target?: string; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersUser[]; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface PowerpackV2WidgetSankeyDefinitionRequestRumRequestQueryOccurrence { /** * The comparison operator used for the occurrence filter. */ operator?: string; /** * The threshold value to compare occurrence counts against. */ value?: string; } export interface PowerpackV2WidgetSankeyDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetSankeyDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetSankeyDefinitionTimeLive; } export interface PowerpackV2WidgetSankeyDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetSankeyDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetScatterplotDefinition { /** * List of groups used for colors. */ colorByGroups?: string[]; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetScatterplotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed using the structure below. */ request?: outputs.PowerpackV2WidgetScatterplotDefinitionRequest; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetScatterplotDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.PowerpackV2WidgetScatterplotDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.PowerpackV2WidgetScatterplotDefinitionYaxis; } export interface PowerpackV2WidgetScatterplotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequest { /** * Scatterplot request containing formulas and functions. */ scatterplotTables?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTable[]; /** * The query used for the X-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ x?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestX; /** * The query used for the Y-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ y?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestY; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTable { /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableFormula[]; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQuery[]; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableFormula { /** * An expression alias. */ alias?: string; /** * Dimension of the Scatterplot. Valid values are `x`, `y`, `radius`, `color`. */ dimension: string; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestX { /** * Aggregator used for the request. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaStyle; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestXQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestY { /** * Aggregator used for the request. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaStyle; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetScatterplotDefinitionRequestYQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetScatterplotDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetScatterplotDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetScatterplotDefinitionTimeLive; } export interface PowerpackV2WidgetScatterplotDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetScatterplotDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetScatterplotDefinitionXaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetScatterplotDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetSecurityQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetSecurityQueryGroupBySortQuery; } export interface PowerpackV2WidgetSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetServiceLevelObjectiveDefinition { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The description of the widget. */ description?: string; /** * The global time target of the widget. */ globalTimeTarget?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Whether to show the error budget or not. */ showErrorBudget?: boolean; /** * The ID of the service level objective used by the widget. */ sloId: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetServiceLevelObjectiveDefinitionTime; /** * A list of time windows to display in the widget. Valid values are `7d`, `30d`, `90d`, `weekToDate`, `previousWeek`, `monthToDate`, `previousMonth`, `globalTime`. */ timeWindows: string[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view mode for the widget. Valid values are `overall`, `component`, `both`. */ viewMode: string; /** * The type of view to use when displaying the widget. Only `detail` is supported. */ viewType: string; } export interface PowerpackV2WidgetServiceLevelObjectiveDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetServiceLevelObjectiveDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetServiceLevelObjectiveDefinitionTimeLive; } export interface PowerpackV2WidgetServiceLevelObjectiveDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetServiceLevelObjectiveDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetServicemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetServicemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The ID of the service to map. */ service: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetServicemapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetServicemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetServicemapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetServicemapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetServicemapDefinitionTimeLive; } export interface PowerpackV2WidgetServicemapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetServicemapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetSloListDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed. */ requests: outputs.PowerpackV2WidgetSloListDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetSloListDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetSloListDefinitionRequest { /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Updated SLO List widget. */ query: outputs.PowerpackV2WidgetSloListDefinitionRequestQuery; /** * The request type for the SLO List request. Valid values are `sloList`. */ requestType: string; } export interface PowerpackV2WidgetSloListDefinitionRequestQuery { /** * Maximum number of results to display in the table. Defaults to `100`. */ limit?: number; /** * Widget query. */ queryString: string; /** * The facet and order to sort the data, for example: `{"column": "status.sli", "order": "desc"}`. */ sorts?: outputs.PowerpackV2WidgetSloListDefinitionRequestQuerySort[]; } export interface PowerpackV2WidgetSloListDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetSloListDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetSloListDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetSloListDefinitionTimeLive; } export interface PowerpackV2WidgetSloListDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetSloListDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetSloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query measures. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackV2WidgetSunburstDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetSunburstDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Whether or not to show the total value in the widget. */ hideTotal?: boolean; /** * Used to configure the inline legend. Cannot be used in conjunction with legend*table. */ legendInline?: outputs.PowerpackV2WidgetSunburstDefinitionLegendInline; /** * Used to configure the table legend. Cannot be used in conjunction with legend*inline. */ legendTable?: outputs.PowerpackV2WidgetSunburstDefinitionLegendTable; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed with the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.PowerpackV2WidgetSunburstDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetSunburstDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetSunburstDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetSunburstDefinitionLegendInline { /** * Whether to hide the percentages of the groups. */ hidePercent?: boolean; /** * Whether to hide the values of the groups. */ hideValue?: boolean; /** * The type of legend (inline or automatic). */ type: string; } export interface PowerpackV2WidgetSunburstDefinitionLegendTable { /** * The type of legend (table or none). */ type: string; } export interface PowerpackV2WidgetSunburstDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestAuditQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ networkQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestNetworkQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.PowerpackV2WidgetSunburstDefinitionRequestSort; /** * Define style for the widget's request. */ style?: outputs.PowerpackV2WidgetSunburstDefinitionRequestStyle; } export interface PowerpackV2WidgetSunburstDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetSunburstDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetSunburstDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetSunburstDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackV2WidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetSunburstDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery; } export interface PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetSunburstDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetSunburstDefinitionRequestSortOrderBy[]; } export interface PowerpackV2WidgetSunburstDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetSunburstDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetSunburstDefinitionRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetSunburstDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetSunburstDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetSunburstDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetSunburstDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetSunburstDefinitionTimeLive; } export interface PowerpackV2WidgetSunburstDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetSunburstDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetTimeseriesDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetTimeseriesDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.PowerpackV2WidgetTimeseriesDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A list of columns to display in the legend. Valid values are `value`, `avg`, `sum`, `min`, `max`. */ legendColumns?: string[]; /** * The layout of the legend displayed in the widget. Valid values are `auto`, `horizontal`, `vertical`. */ legendLayout?: string; /** * The size of the legend displayed in the widget. Valid values are `0`, `2`, `4`, `8`, `16`, `auto`. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `tileDef` block. */ markers?: outputs.PowerpackV2WidgetTimeseriesDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `networkQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequest[]; /** * A nested block describing the right Y-Axis Controls. See the `onRightYaxis` property for which request will use this axis. The structure of this block is described below. */ rightYaxis?: outputs.PowerpackV2WidgetTimeseriesDefinitionRightYaxis; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetTimeseriesDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.PowerpackV2WidgetTimeseriesDefinitionYaxis; } export interface PowerpackV2WidgetTimeseriesDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionMarker { /** * Combination of a severity (`error`, `warning`, `ok`, or `info`) and a line type (`dashed`, `solid`, or `bold`). For Distribution widgets, this can be set to `percentile`. Example: `error dashed`. */ displayType?: string; /** * Label to display over the marker. */ label?: string; /** * Timestamp for the marker position. */ time?: string; /** * Value to apply. Can be a single value `y = 15` or a range of values `0 < y < 10`. For Distribution widgets with `displayType` set to `percentile`, this should be a numeric percentile value (for example, `90` for P90). */ value: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestAuditQuery; /** * How to display the marker lines. Valid values are `area`, `bars`, `line`, `overlay`. */ displayType?: string; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ eventQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestEventQuery; /** * List of formulas that operate on queries. */ formulas?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * Used to define expression aliases. Multiple `metadata` blocks are allowed using the structure below. */ metadatas?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestMetadata[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ networkQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQuery; /** * A Boolean indicating whether the request uses the right or left Y-Axis. */ onRightYaxis?: boolean; /** * The process query to use in the widget. */ processQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestProcessQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ profileMetricsQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The style of the widget graph. Exactly one `style` block is allowed using the structure below. */ style?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestStyle; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestEventQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryGroupBySortQuery; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestEventQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestMetadata { /** * The expression alias. */ aliasName?: string; /** * The expression name. */ expression: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBySortQuery; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestProfileMetricsQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRequestStyle { /** * Whether to display value labels on the timeseries. */ hasValueLabels?: boolean; /** * The type of lines displayed. Valid values are `dashed`, `dotted`, `solid`. */ lineType?: string; /** * The width of line displayed. Valid values are `normal`, `thick`, `thin`. */ lineWidth?: string; /** * How to order series in timeseries visualizations. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionRightYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetTimeseriesDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetTimeseriesDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetTimeseriesDefinitionTimeLive; } export interface PowerpackV2WidgetTimeseriesDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetTimeseriesDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetTimeseriesDefinitionYaxis { /** * Set to `true` to include zero. */ includeZero?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. */ label?: string; /** * Specifies the maximum numeric value to show on the axis. Defaults to `auto`. */ max?: string; /** * Specifies the minimum numeric value to show on the axis. Defaults to `auto`. */ min?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). */ scale?: string; } export interface PowerpackV2WidgetToplistDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetToplistDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackV2WidgetToplistDefinitionRequest[]; /** * The style of the widget */ style?: outputs.PowerpackV2WidgetToplistDefinitionStyle; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetToplistDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetToplistDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetToplistDefinitionRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ auditQuery?: outputs.PowerpackV2WidgetToplistDefinitionRequestAuditQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetToplistDefinitionRequestConditionalFormat[]; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetToplistDefinitionRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetToplistDefinitionRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.PowerpackV2WidgetToplistDefinitionRequestSort; /** * Define request for the widget's style. */ style?: outputs.PowerpackV2WidgetToplistDefinitionRequestStyle; } export interface PowerpackV2WidgetToplistDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackV2WidgetToplistDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackV2WidgetToplistDefinitionRequestAuditQueryGroupBy[]; /** * A comma separated-list of index names. Use `*` to query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes). */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackV2WidgetToplistDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetToplistDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackV2WidgetToplistDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackV2WidgetToplistDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetToplistDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackV2WidgetToplistDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetToplistDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetToplistDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetToplistDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetToplistDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetToplistDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetToplistDefinitionRequestSortOrderBy[]; } export interface PowerpackV2WidgetToplistDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetToplistDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetToplistDefinitionRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetToplistDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetToplistDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetToplistDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetToplistDefinitionStyle { /** * The display mode for the top list widget. Use `stacked` or `flat` sub-block. */ display?: outputs.PowerpackV2WidgetToplistDefinitionStyleDisplay; /** * The color palette for the widget. */ palette?: string; /** * The scaling mode for the widget. */ scaling?: string; } export interface PowerpackV2WidgetToplistDefinitionStyleDisplay { /** * Flat display for the top list widget. */ flat: outputs.PowerpackV2WidgetToplistDefinitionStyleDisplayFlat; /** * Stacked display for the top list widget. */ stacked: outputs.PowerpackV2WidgetToplistDefinitionStyleDisplayStacked; /** * Legacy display type for the widget. Valid values are `stacked`, `flat`. **Deprecated.** Use the `stacked` or `flat` block instead. * * @deprecated Use the `stacked` or `flat` block instead. */ type?: string; } export interface PowerpackV2WidgetToplistDefinitionStyleDisplayFlat { } export interface PowerpackV2WidgetToplistDefinitionStyleDisplayStacked { /** * Legend behavior for the stacked top list. Valid values are `automatic`, `inline`, `none`. */ legend?: string; } export interface PowerpackV2WidgetToplistDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetToplistDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetToplistDefinitionTimeLive; } export interface PowerpackV2WidgetToplistDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetToplistDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetTopologyMapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetTopologyMapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (`query` and `requestType` are required within the request). */ requests?: outputs.PowerpackV2WidgetTopologyMapDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetTopologyMapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetTopologyMapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetTopologyMapDefinitionRequest { /** * The query for a Topology request. */ query?: outputs.PowerpackV2WidgetTopologyMapDefinitionRequestQuery; /** * The request type for the Topology request ('topology'). */ requestType: string; } export interface PowerpackV2WidgetTopologyMapDefinitionRequestQuery { /** * The data source for the Topology request. Valid values are `serviceMap`, `dataStreams`. */ dataSource: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * A search string for filtering services. When set, this replaces the `service` field. */ queryString?: string; /** * Name of the service. Leave this empty and use `queryString` instead. */ service: string; } export interface PowerpackV2WidgetTopologyMapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetTopologyMapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetTopologyMapDefinitionTimeLive; } export interface PowerpackV2WidgetTopologyMapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetTopologyMapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetTraceServiceDefinition { /** * The description of the widget. */ description?: string; /** * The number of columns to display. Valid values are `oneColumn`, `twoColumn`, `threeColumn`. */ displayFormat?: string; /** * APM environment. */ env: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * APM service. */ service: string; /** * Whether to show the latency breakdown or not. */ showBreakdown?: boolean; /** * Whether to show the latency distribution or not. */ showDistribution?: boolean; /** * Whether to show the error metrics or not. */ showErrors?: boolean; /** * Whether to show the hits metrics or not */ showHits?: boolean; /** * Whether to show the latency metrics or not. */ showLatency?: boolean; /** * Whether to show the resource list or not. */ showResourceList?: boolean; /** * The size of the widget. Valid values are `small`, `medium`, `large`. */ sizeFormat?: string; /** * APM span name */ spanName: string; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetTraceServiceDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetTraceServiceDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetTraceServiceDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetTraceServiceDefinitionTimeLive; } export interface PowerpackV2WidgetTraceServiceDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetTraceServiceDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetTreemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetTreemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. */ requests?: outputs.PowerpackV2WidgetTreemapDefinitionRequest[]; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetTreemapDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetTreemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequest { /** * List of formulas that operate on queries. */ formulas?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormula[]; /** * List of queries that can be returned directly or used in formulas. */ queries?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQuery[]; /** * The controls for sorting the widget. Only applicable for formula-style requests. */ sort?: outputs.PowerpackV2WidgetTreemapDefinitionRequestSort; /** * Define style for the widget's request. */ style?: outputs.PowerpackV2WidgetTreemapDefinitionRequestStyle; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaStyle; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetTreemapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetTreemapDefinitionRequestSortOrderBy[]; } export interface PowerpackV2WidgetTreemapDefinitionRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetTreemapDefinitionRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetTreemapDefinitionRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetTreemapDefinitionRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetTreemapDefinitionRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetTreemapDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetTreemapDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetTreemapDefinitionTimeLive; } export interface PowerpackV2WidgetTreemapDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetTreemapDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackV2WidgetUserJourneyQuery { /** * Compute configuration for the User Journey query. */ compute: outputs.PowerpackV2WidgetUserJourneyQueryCompute; /** * Data source for User Journey queries. Valid values are `productAnalyticsJourney`. */ dataSource: string; /** * Group by configuration for the User Journey query. */ groupBies?: outputs.PowerpackV2WidgetUserJourneyQueryGroupBy[]; /** * Name of the query for use in formulas. */ name: string; /** * User journey search configuration. */ search: outputs.PowerpackV2WidgetUserJourneyQuerySearch; } export interface PowerpackV2WidgetUserJourneyQueryCompute { /** * Aggregation method for the User Journey query. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * Time bucket interval in milliseconds for timeseries queries. */ interval?: number; /** * Metric for the User Journey computation. Valid values are `__dd.conversion`, `__dd.conversion_rate`, `__dd.time_to_convert`. */ metric?: string; /** * Journey target to compute. */ target?: outputs.PowerpackV2WidgetUserJourneyQueryComputeTarget; } export interface PowerpackV2WidgetUserJourneyQueryComputeTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface PowerpackV2WidgetUserJourneyQueryGroupBy { /** * Facet name to group by. */ facet: string; /** * Maximum number of groups to return. */ limit?: number; /** * Whether to exclude events missing the group-by facet. */ shouldExcludeMissing?: boolean; /** * Options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetUserJourneyQueryGroupBySort; /** * Journey target to group. */ target?: outputs.PowerpackV2WidgetUserJourneyQueryGroupByTarget; } export interface PowerpackV2WidgetUserJourneyQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetUserJourneyQueryGroupByTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearch { /** * Expression describing the journey between nodes. */ expression: string; /** * Filters for the user journey search. */ filters?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFilters; /** * Join keys for the user journey query. */ joinKeys?: outputs.PowerpackV2WidgetUserJourneyQuerySearchJoinKeys; /** * JSON object mapping journey node names to Product Analytics base queries. */ nodeObjects: string; /** * JSON object mapping journey step names to display aliases. */ stepAliases?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearchFilters { /** * Product Analytics audience filters. */ audienceFilters?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFilters; /** * Graph filters for the user journey search. */ graphFilters?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFiltersGraphFilter[]; /** * String filter for the user journey search. */ stringFilter?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFilters { /** * Product Analytics audience account subqueries. */ accounts?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersAccount[]; /** * An optional filter condition applied to the audience subquery. */ filterCondition?: string; /** * Product Analytics audience segment subqueries. */ segments?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersSegment[]; /** * Product Analytics audience user subqueries. */ users?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersUser[]; } export interface PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersAccount { /** * The name of the account subquery. */ name?: string; /** * The query string for the account subquery. */ query?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersSegment { /** * The name of the segment subquery. */ name?: string; /** * The unique identifier of the segment. */ segmentId?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearchFiltersAudienceFiltersUser { /** * The name of the user subquery. */ name?: string; /** * The query string for the user subquery. */ query?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearchFiltersGraphFilter { /** * Graph filter name. */ name?: string; /** * Graph filter operator. */ operator?: string; /** * Target for the graph filter. */ target?: outputs.PowerpackV2WidgetUserJourneyQuerySearchFiltersGraphFilterTarget; /** * Graph filter value. */ value?: number; } export interface PowerpackV2WidgetUserJourneyQuerySearchFiltersGraphFilterTarget { /** * End node of the target range. */ end?: string; /** * Start node of the target range. */ start?: string; /** * Target type. */ type: string; /** * Target node value. */ value?: string; } export interface PowerpackV2WidgetUserJourneyQuerySearchJoinKeys { /** * Primary join key. */ primary: string; /** * Secondary join keys. */ secondaries?: string[]; } export interface PowerpackV2WidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface PowerpackV2WidgetWildcardDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackV2WidgetWildcardDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the data requests for the widget. */ requests?: outputs.PowerpackV2WidgetWildcardDefinitionRequest[]; /** * The Vega or Vega-Lite specification for custom visualization rendering. */ specification?: outputs.PowerpackV2WidgetWildcardDefinitionSpecification; /** * A nested block used to specify a time span for the widget. Use this or `liveSpan`, not both. */ time?: outputs.PowerpackV2WidgetWildcardDefinitionTime; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackV2WidgetWildcardDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. */ label?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. */ link?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. */ overrideLabel?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequest { /** * Histogram-mode distribution request (request*type=histogram). */ histogramRequest?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequest; /** * List stream request (response*format=event*list). */ liststreamRequest?: outputs.PowerpackV2WidgetWildcardDefinitionRequestListstreamRequest; /** * Timeseries-formula request (response*format=timeseries). */ timeseriesRequest?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequest; /** * Scalar-formula request (response*format=scalar). Set exactly one of treemap*request / timeseries*request / liststream*request / histogram*request. */ treemapRequest?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequest; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequest { /** * Singular query block for the histogram request. */ histogramQuery: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQuery; /** * Define request for the widget's style. */ style?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestStyle; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQuery { /** * APM metrics query for histogram-mode distribution. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * APM resource stats query for histogram-mode distribution. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * Event query for histogram-mode distribution. */ eventQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuery; /** * Metric query for histogram-mode distribution. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestHistogramQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestHistogramRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestListstreamRequest { /** * Widget columns for the list stream request. */ columns: outputs.PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestColumn[]; /** * List stream query for the widget request. */ query: outputs.PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestQuery; } export interface PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestListstreamRequestQuerySort { /** * The facet path for the column. */ column: string; /** * This field has no effect and is not sent to the Datadog API. **Deprecated.** This field has no effect and will be removed in a future release. * * @deprecated This field has no effect and will be removed in a future release. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * How the data points are displayed on the graph. */ displayType?: string; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The controls for sorting the widget. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSort; /** * Define request for the widget's style. */ style?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestStyle; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaStyle; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderBy[]; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTimeseriesRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequest { /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ apmQuery?: outputs.PowerpackV2WidgetApmQuery; /** * A list of formulas to use in the widget. */ formulas?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormula[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ logQuery?: outputs.PowerpackV2WidgetLogQuery; /** * The process query to use in the widget. The structure of this block is described below. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ processQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestProcessQuery; /** * The metric query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ q?: string; /** * A list of queries to use in the widget. */ queries?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQuery[]; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ rumQuery?: outputs.PowerpackV2WidgetRumQuery; /** * The query to use for this widget. **Deprecated.** Use queries and formulas instead. * * @deprecated Use queries and formulas instead. */ securityQuery?: outputs.PowerpackV2WidgetSecurityQuery; /** * The controls for sorting the widget. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSort; /** * Define request for the widget's style. */ style?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestStyle; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, and `trend`. */ cellDisplayMode?: string; /** * Options for the cell display mode. Only used when `cellDisplayMode` is set to `trend`. */ cellDisplayModeOptions?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaStyle; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, and `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared` and `independent`. */ yScale?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. */ unitScale?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitScale; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCustom; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaNumberFormatUnitScale { /** * The name of the unit. */ unitName: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackV2WidgetApmDependencyStatsQuery; /** * The APM metrics query using formulas and functions. */ apmMetricsQuery?: outputs.PowerpackV2WidgetApmMetricsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackV2WidgetApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackV2WidgetCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackV2WidgetMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryProcessQuery; /** * The Product Analytics Extended query using formulas and functions. */ productAnalyticsExtendedQuery?: outputs.PowerpackV2WidgetProductAnalyticsExtendedQuery; /** * The retention query using formulas and functions. */ retentionQuery?: outputs.PowerpackV2WidgetRetentionQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackV2WidgetSloQuery; /** * The User Journey query using formulas and functions. */ userJourneyQuery?: outputs.PowerpackV2WidgetUserJourneyQuery; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuerySearch; /** * Option for storage location. Feature in Private Beta. */ storage?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBySort; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSort { /** * The number of items to limit the widget to. */ count?: number; /** * The list of items to sort the widget by. */ orderBies?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderBy[]; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderBy { /** * Sort by a formula value. */ formulaSort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByFormulaSort; /** * Sort by a group (tag) value. */ groupSort?: outputs.PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByGroupSort; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByFormulaSort { /** * The index of the formula to sort by. */ index: number; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestSortOrderByGroupSort { /** * The name of the group tag to sort by. */ name: string; /** * Widget sorting direction. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackV2WidgetWildcardDefinitionRequestTreemapRequestStyle { /** * How to order series. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackV2WidgetWildcardDefinitionSpecification { /** * The Vega or Vega-Lite specification as a JSON string. Use `jsonencode()` to encode the specification. */ contents: string; /** * The type of specification (Vega or Vega-Lite). Valid values are `vega`, `vega-lite`. */ type: string; } export interface PowerpackV2WidgetWildcardDefinitionTime { /** * A fixed time range with explicit start and end times. */ fixed?: outputs.PowerpackV2WidgetWildcardDefinitionTimeFixed; /** * An arbitrary live time span, such as 17 minutes or 6 hours. */ live?: outputs.PowerpackV2WidgetWildcardDefinitionTimeLive; } export interface PowerpackV2WidgetWildcardDefinitionTimeFixed { /** * Start time in seconds since epoch. */ from: number; /** * End time in seconds since epoch. */ to: number; } export interface PowerpackV2WidgetWildcardDefinitionTimeLive { /** * Unit of the time span. Valid values are `minute`, `hour`, `day`, `week`, `month`, `year`. */ unit: string; /** * Value of the time span. */ value: number; } export interface PowerpackWidget { /** * The definition for a Alert Graph widget. */ alertGraphDefinition?: outputs.PowerpackWidgetAlertGraphDefinition; /** * The definition for a Alert Value widget. */ alertValueDefinition?: outputs.PowerpackWidgetAlertValueDefinition; /** * The definition for a Change widget. */ changeDefinition?: outputs.PowerpackWidgetChangeDefinition; /** * The definition for a Check Status widget. */ checkStatusDefinition?: outputs.PowerpackWidgetCheckStatusDefinition; /** * The definition for a Distribution widget. */ distributionDefinition?: outputs.PowerpackWidgetDistributionDefinition; /** * The definition for a Event Stream widget. */ eventStreamDefinition?: outputs.PowerpackWidgetEventStreamDefinition; /** * The definition for a Event Timeline widget. */ eventTimelineDefinition?: outputs.PowerpackWidgetEventTimelineDefinition; /** * The definition for a Free Text widget. */ freeTextDefinition?: outputs.PowerpackWidgetFreeTextDefinition; /** * The definition for a Geomap widget. */ geomapDefinition?: outputs.PowerpackWidgetGeomapDefinition; /** * The definition for a Heatmap widget. */ heatmapDefinition?: outputs.PowerpackWidgetHeatmapDefinition; /** * The definition for a Hostmap widget. */ hostmapDefinition?: outputs.PowerpackWidgetHostmapDefinition; /** * The ID of the widget. */ id: number; /** * The definition for an Iframe widget. */ iframeDefinition?: outputs.PowerpackWidgetIframeDefinition; /** * The definition for an Image widget */ imageDefinition?: outputs.PowerpackWidgetImageDefinition; /** * The definition for a List Stream widget. */ listStreamDefinition?: outputs.PowerpackWidgetListStreamDefinition; /** * The definition for an Log Stream widget. */ logStreamDefinition?: outputs.PowerpackWidgetLogStreamDefinition; /** * The definition for an Manage Status widget. */ manageStatusDefinition?: outputs.PowerpackWidgetManageStatusDefinition; /** * The definition for a Note widget. */ noteDefinition?: outputs.PowerpackWidgetNoteDefinition; /** * The definition for a Query Table widget. */ queryTableDefinition?: outputs.PowerpackWidgetQueryTableDefinition; /** * The definition for a Query Value widget. */ queryValueDefinition?: outputs.PowerpackWidgetQueryValueDefinition; /** * The definition for a Run Workflow widget. */ runWorkflowDefinition?: outputs.PowerpackWidgetRunWorkflowDefinition; /** * The definition for a Scatterplot widget. */ scatterplotDefinition?: outputs.PowerpackWidgetScatterplotDefinition; /** * The definition for a Service Level Objective widget. */ serviceLevelObjectiveDefinition?: outputs.PowerpackWidgetServiceLevelObjectiveDefinition; /** * The definition for a Service Map widget. */ servicemapDefinition?: outputs.PowerpackWidgetServicemapDefinition; /** * The definition for an SLO (Service Level Objective) List widget. */ sloListDefinition?: outputs.PowerpackWidgetSloListDefinition; /** * The definition for a Sunburst widget. */ sunburstDefinition?: outputs.PowerpackWidgetSunburstDefinition; /** * The definition for a Timeseries widget. */ timeseriesDefinition?: outputs.PowerpackWidgetTimeseriesDefinition; /** * The definition for a Toplist widget. */ toplistDefinition?: outputs.PowerpackWidgetToplistDefinition; /** * The definition for a Topology Map widget. */ topologyMapDefinition?: outputs.PowerpackWidgetTopologyMapDefinition; /** * The definition for a Trace Service widget. */ traceServiceDefinition?: outputs.PowerpackWidgetTraceServiceDefinition; /** * The definition for a Treemap widget. */ treemapDefinition?: outputs.PowerpackWidgetTreemapDefinition; /** * The layout of the widget on a 'free' dashboard. */ widgetLayout?: outputs.PowerpackWidgetWidgetLayout; } export interface PowerpackWidgetAlertGraphDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Type of visualization to use when displaying the widget. Valid values are `timeseries`, `toplist`. */ vizType: string; } export interface PowerpackWidgetAlertValueDefinition { /** * The ID of the monitor used by the widget. */ alertId: string; /** * The description of the widget. */ description?: string; /** * The precision to use when displaying the value. Use `*` for maximum precision. */ precision?: number; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The unit for the value displayed in the widget. */ unit?: string; } export interface PowerpackWidgetChangeDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetChangeDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.PowerpackWidgetChangeDefinitionRequest[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetChangeDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetChangeDefinitionRequest { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetChangeDefinitionRequestApmQuery; /** * Whether to show absolute or relative change. Valid values are `absolute`, `relative`. */ changeType?: string; /** * Choose from when to compare current data to. Valid values are `hourBefore`, `dayBefore`, `weekBefore`, `monthBefore`. */ compareTo?: string; formulas?: outputs.PowerpackWidgetChangeDefinitionRequestFormula[]; /** * A Boolean indicating whether an increase in the value is good (displayed in green) or not (displayed in red). */ increaseGood?: boolean; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetChangeDefinitionRequestLogQuery; /** * What to order by. Valid values are `change`, `name`, `present`, `past`. */ orderBy?: string; /** * Widget sorting method. Valid values are `asc`, `desc`. */ orderDir?: string; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetChangeDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetChangeDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetChangeDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetChangeDefinitionRequestSecurityQuery; /** * If set to `true`, displays the current value. */ showPresent?: boolean; } export interface PowerpackWidgetChangeDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetChangeDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetChangeDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetChangeDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetChangeDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetChangeDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetChangeDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetChangeDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaStyle; } export interface PowerpackWidgetChangeDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetChangeDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetChangeDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetChangeDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetChangeDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetChangeDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetChangeDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetChangeDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetChangeDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetChangeDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetChangeDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetChangeDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetChangeDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetChangeDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetChangeDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetChangeDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetChangeDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetChangeDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetChangeDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetChangeDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetChangeDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetChangeDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetChangeDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetChangeDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetChangeDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetChangeDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetChangeDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetChangeDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetChangeDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetChangeDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetChangeDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetChangeDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetChangeDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetChangeDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetCheckStatusDefinition { /** * The check to use in the widget. */ check: string; /** * The check group to use in the widget. */ group?: string; /** * When `grouping = "cluster"`, indicates a list of tags to use for grouping. */ groupBies?: string[]; /** * The kind of grouping to use. Valid values are `check`, `cluster`. */ grouping: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A list of tags to use in the widget. */ tags?: string[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetDistributionDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.PowerpackWidgetDistributionDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.PowerpackWidgetDistributionDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.PowerpackWidgetDistributionDefinitionYaxis; } export interface PowerpackWidgetDistributionDefinitionRequest { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestApmQuery; apmStatsQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestApmStatsQuery; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackWidgetDistributionDefinitionRequestStyle; } export interface PowerpackWidgetDistributionDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetDistributionDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetDistributionDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetDistributionDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetDistributionDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetDistributionDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.PowerpackWidgetDistributionDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface PowerpackWidgetDistributionDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetDistributionDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetDistributionDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetDistributionDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetDistributionDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetDistributionDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetDistributionDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetDistributionDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetDistributionDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetDistributionDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetDistributionDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetDistributionDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetDistributionDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetDistributionDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetDistributionDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetDistributionDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetDistributionDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetDistributionDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetDistributionDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetDistributionDefinitionRequestStyle { /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackWidgetDistributionDefinitionXaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetDistributionDefinitionYaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetEventStreamDefinition { /** * The description of the widget. */ description?: string; /** * The size to use to display an event. Valid values are `s`, `l`. */ eventSize?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The query to use in the widget. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetEventTimelineDefinition { /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The query to use in the widget. */ query: string; /** * The execution method for multi-value filters, options: `and` or `or`. */ tagsExecution?: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetFreeTextDefinition { /** * The color of the text in the widget. */ color?: string; /** * The description of the widget. */ description?: string; /** * The size of the text in the widget. */ fontSize?: string; /** * The text to display in the widget. */ text: string; /** * The alignment of the text in the widget. Valid values are `center`, `left`, `right`. */ textAlign?: string; } export interface PowerpackWidgetGeomapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetGeomapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.PowerpackWidgetGeomapDefinitionRequest[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackWidgetGeomapDefinitionStyle; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view of the world that the map should render. */ view: outputs.PowerpackWidgetGeomapDefinitionView; } export interface PowerpackWidgetGeomapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetGeomapDefinitionRequest { formulas?: outputs.PowerpackWidgetGeomapDefinitionRequestFormula[]; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestLogQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetGeomapDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestRumQuery; } export interface PowerpackWidgetGeomapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaStyle; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetGeomapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetGeomapDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetGeomapDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetGeomapDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetGeomapDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetGeomapDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetGeomapDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetGeomapDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetGeomapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetGeomapDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetGeomapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetGeomapDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetGeomapDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetGeomapDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetGeomapDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetGeomapDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetGeomapDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetGeomapDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetGeomapDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetGeomapDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetGeomapDefinitionStyle { /** * The color palette to apply to the widget. */ palette: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip: boolean; } export interface PowerpackWidgetGeomapDefinitionView { /** * The two-letter ISO code of a country to focus the map on (or `WORLD`). */ focus: string; } export interface PowerpackWidgetHeatmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetHeatmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.PowerpackWidgetHeatmapDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ requests?: outputs.PowerpackWidgetHeatmapDefinitionRequest[]; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.PowerpackWidgetHeatmapDefinitionYaxis; } export interface PowerpackWidgetHeatmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetHeatmapDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface PowerpackWidgetHeatmapDefinitionRequest { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestApmQuery; formulas?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormula[]; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetHeatmapDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestSecurityQuery; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackWidgetHeatmapDefinitionRequestStyle; } export interface PowerpackWidgetHeatmapDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHeatmapDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHeatmapDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetHeatmapDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHeatmapDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaStyle; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetHeatmapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHeatmapDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHeatmapDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetHeatmapDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHeatmapDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHeatmapDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHeatmapDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetHeatmapDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHeatmapDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHeatmapDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHeatmapDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHeatmapDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHeatmapDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetHeatmapDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHeatmapDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHeatmapDefinitionRequestStyle { /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackWidgetHeatmapDefinitionYaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetHostmapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetHostmapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The list of tags to group nodes by. */ groups?: string[]; /** * A Boolean indicating whether to show ungrouped nodes. */ noGroupHosts?: boolean; /** * A Boolean indicating whether to show nodes with no metrics. */ noMetricHosts?: boolean; /** * The type of node used. Valid values are `host`, `container`. */ nodeType?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below. */ request?: outputs.PowerpackWidgetHostmapDefinitionRequest; /** * The list of tags to filter nodes by. */ scopes?: string[]; /** * The style of the widget graph. One nested block is allowed using the structure below. */ style?: outputs.PowerpackWidgetHostmapDefinitionStyle; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetHostmapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetHostmapDefinitionRequest { /** * The query used to fill the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ fills?: outputs.PowerpackWidgetHostmapDefinitionRequestFill[]; /** * The query used to size the map. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the request block). */ sizes?: outputs.PowerpackWidgetHostmapDefinitionRequestSize[]; } export interface PowerpackWidgetHostmapDefinitionRequestFill { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillApmQuery; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillProcessQuery; /** * The metric query to use for this widget. */ q?: string; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillSecurityQuery; } export interface PowerpackWidgetHostmapDefinitionRequestFillApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestFillApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestFillApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillApmQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestFillApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestFillLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestFillLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillLogQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestFillLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestFillRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestFillRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillRumQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestFillRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestFillSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSize { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeApmQuery; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeProcessQuery; /** * The metric query to use for this widget. */ q?: string; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeSecurityQuery; } export interface PowerpackWidgetHostmapDefinitionRequestSizeApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeApmQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestSizeApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeLogQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestSizeLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeRumQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestSizeRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetHostmapDefinitionRequestSizeSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetHostmapDefinitionStyle { /** * The max value to use to color the map. */ fillMax?: string; /** * The min value to use to color the map. */ fillMin?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; /** * A Boolean indicating whether to flip the palette tones. */ paletteFlip?: boolean; } export interface PowerpackWidgetIframeDefinition { /** * The URL to use as a data source for the widget. */ url: string; } export interface PowerpackWidgetImageDefinition { /** * Whether to display a background or not. Defaults to `true`. */ hasBackground?: boolean; /** * Whether to display a border or not. Defaults to `true`. */ hasBorder?: boolean; /** * The horizontal alignment for the widget. Valid values are `center`, `left`, `right`. */ horizontalAlign?: string; /** * The margins to use around the image. Note: `small` and `large` values are deprecated. Valid values are `sm`, `md`, `lg`, `small`, `large`. */ margin?: string; /** * The preferred method to adapt the dimensions of the image. The values are based on the image `object-fit` CSS properties. Note: `zoom`, `fit` and `center` values are deprecated. Valid values are `fill`, `contain`, `cover`, `none`, `scale-down`, `zoom`, `fit`, `center`. */ sizing?: string; /** * The URL to use as a data source for the widget. */ url: string; /** * The URL in dark mode to use as a data source for the widget. */ urlDarkTheme?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface PowerpackWidgetListStreamDefinition { /** * Nested block describing the requests to use when displaying the widget. Multiple `request` blocks are allowed with the structure below. */ requests: outputs.PowerpackWidgetListStreamDefinitionRequest[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title. Default is 16. */ titleSize?: string; } export interface PowerpackWidgetListStreamDefinitionRequest { /** * Widget columns. */ columns: outputs.PowerpackWidgetListStreamDefinitionRequestColumn[]; /** * The description of the widget. */ description?: string; /** * Updated list stream widget. */ query: outputs.PowerpackWidgetListStreamDefinitionRequestQuery; /** * Widget response format. Valid values are `eventList`. */ responseFormat: string; } export interface PowerpackWidgetListStreamDefinitionRequestColumn { /** * Widget column field. */ field?: string; /** * Widget column width. Valid values are `auto`, `compact`, `full`. */ width?: string; } export interface PowerpackWidgetListStreamDefinitionRequestQuery { /** * Specifies the field for logs pattern clustering. Can only be used with `logsPatternStream`. */ clusteringPatternFieldPath?: string; /** * Source from which to query items to display in the stream. Valid values are `logsStream`, `auditStream`, `ciPipelineStream`, `ciTestStream`, `rumIssueStream`, `apmIssueStream`, `traceStream`, `logsIssueStream`, `logsPatternStream`, `logsTransactionStream`, `eventStream`, `rumStream`, `llmObservabilityStream`, `issueStream`, `securityRuntimeStream`, `securitySignalsStream`, `incidentsStream`, `caseStream`. */ dataSource: string; /** * Size of events displayed in widget. Required if `dataSource` is `eventStream`. Valid values are `s`, `l`. */ eventSize?: string; /** * Group by configuration for the List Stream widget. Group by can only be used with `logsPatternStream` (up to 4 items) or `logsTransactionStream` (one group by item is required) list stream source. */ groupBies?: outputs.PowerpackWidgetListStreamDefinitionRequestQueryGroupBy[]; /** * List of indexes. */ indexes?: string[]; /** * Widget query. */ queryString?: string; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.PowerpackWidgetListStreamDefinitionRequestQuerySort; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetListStreamDefinitionRequestQueryGroupBy { /** * Facet name */ facet: string; } export interface PowerpackWidgetListStreamDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * The description of the widget. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetLogStreamDefinition { /** * Stringified list of columns to use, for example: `["column1","column2","column3"]`. */ columns?: string[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The number of log lines to display. Valid values are `inline`, `expanded-md`, `expanded-lg`. */ messageDisplay?: string; /** * The query to use in the widget. */ query?: string; /** * If the date column should be displayed. */ showDateColumn?: boolean; /** * If the message column should be displayed. */ showMessageColumn?: boolean; /** * The facet and order to sort the data, for example: `{"column": "time", "order": "desc"}`. */ sort?: outputs.PowerpackWidgetLogStreamDefinitionSort; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetLogStreamDefinitionSort { /** * The facet path for the column. */ column: string; /** * The description of the widget. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetManageStatusDefinition { /** * Whether to colorize text or background. Valid values are `background`, `text`. */ colorPreference?: string; /** * The display setting to use. Valid values are `counts`, `countsAndList`, `list`. */ displayFormat?: string; /** * A Boolean indicating whether to hide empty categories. */ hideZeroCounts?: boolean; /** * The query to use in the widget. */ query: string; /** * A Boolean indicating whether to show when monitors/groups last triggered. */ showLastTriggered?: boolean; /** * Whether to show the priorities column. */ showPriority?: boolean; /** * The method to sort the monitors. Valid values are `name`, `group`, `status`, `tags`, `triggered`, `group,asc`, `group,desc`, `name,asc`, `name,desc`, `status,asc`, `status,desc`, `tags,asc`, `tags,desc`, `triggered,asc`, `triggered,desc`, `priority,asc`, `priority,desc`. */ sort?: string; /** * The summary type to use. Valid values are `monitors`, `groups`, `combined`. */ summaryType?: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetNoteDefinition { /** * The background color of the note. */ backgroundColor?: string; /** * The content of the note. */ content: string; /** * The description of the widget. */ description?: string; /** * The size of the text. */ fontSize?: string; /** * Whether to add padding or not. Defaults to `true`. */ hasPadding?: boolean; /** * Whether to show a tick or not. */ showTick?: boolean; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * When `tick = true`, a string indicating on which side of the widget the tick should be displayed. Valid values are `bottom`, `left`, `right`, `top`. */ tickEdge?: string; /** * When `tick = true`, a string with a percent sign indicating the position of the tick, for example: `tickPos = "50%"` is centered alignment. */ tickPos?: string; /** * The vertical alignment for the widget. Valid values are `center`, `top`, `bottom`. */ verticalAlign?: string; } export interface PowerpackWidgetQueryTableDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetQueryTableDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Controls the display of the search bar. Valid values are `always`, `never`, `auto`. */ hasSearchBar?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackWidgetQueryTableDefinitionRequest[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetQueryTableDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetQueryTableDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The alias for the column name (defaults to metric name). */ alias?: string; /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmQuery; apmStatsQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmStatsQuery; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayModes?: string[]; /** * Conditional formats allow you to set the color of your widget content or background, depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetQueryTableDefinitionRequestConditionalFormat[]; formulas?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormula[]; /** * The number of lines to show in the table. */ limit?: number; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestLogQuery; /** * The sort order for the rows. Valid values are `asc`, `desc`. */ order?: string; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetQueryTableDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestSecurityQuery; /** * Text formats define how to format text in table widget content. Multiple `textFormats` blocks are allowed using the structure below. This resource is in beta and is subject to change. */ textFormats?: outputs.PowerpackWidgetQueryTableDefinitionRequestTextFormat[]; } export interface PowerpackWidgetQueryTableDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetQueryTableDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryTableDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestApmStatsQuery { /** * Column properties used by the front end for display. */ columns?: outputs.PowerpackWidgetQueryTableDefinitionRequestApmStatsQueryColumn[]; /** * The environment name. */ env: string; /** * The operation name associated with the service. */ name: string; /** * The organization's host group name and value. */ primaryTag: string; /** * The resource name. */ resource?: string; /** * The level of detail for the request. Valid values are `service`, `resource`, `span`. */ rowType: string; /** * The service name. */ service: string; } export interface PowerpackWidgetQueryTableDefinitionRequestApmStatsQueryColumn { /** * A user-assigned alias for the column. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * The column name. */ name: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetQueryTableDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * A list of display modes for each table cell. */ cellDisplayModeOptions?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaStyle; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaCellDisplayModeOptions { /** * The type of trend line to display. Valid values are `area`, `line`, `bars`. */ trendType?: string; /** * The scale of the y-axis. Valid values are `shared`, `independent`. */ yScale?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetQueryTableDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryTableDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryTableDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetQueryTableDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryTableDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryTableDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryTableDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetQueryTableDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryTableDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryTableDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryTableDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryTableDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryTableDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetQueryTableDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryTableDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryTableDefinitionRequestTextFormat { /** * The text format to apply to the items in a table widget column. */ textFormats?: outputs.PowerpackWidgetQueryTableDefinitionRequestTextFormatTextFormat[]; } export interface PowerpackWidgetQueryTableDefinitionRequestTextFormatTextFormat { /** * The custom color palette to apply to the background. */ customBgColor?: string; /** * The custom color palette to apply to the foreground text. */ customFgColor?: string; /** * Match rule for the table widget text format. */ match: outputs.PowerpackWidgetQueryTableDefinitionRequestTextFormatTextFormatMatch; /** * The color palette to apply. Valid values are `whiteOnRed`, `whiteOnYellow`, `whiteOnGreen`, `blackOnLightRed`, `blackOnLightYellow`, `blackOnLightGreen`, `redOnWhite`, `yellowOnWhite`, `greenOnWhite`, `customBg`, `customText`. */ palette?: string; /** * Match rule for the table widget text format. */ replace?: outputs.PowerpackWidgetQueryTableDefinitionRequestTextFormatTextFormatReplace; } export interface PowerpackWidgetQueryTableDefinitionRequestTextFormatTextFormatMatch { /** * Match or compare option. Valid values are `is`, `isNot`, `contains`, `doesNotContain`, `startsWith`, `endsWith`. */ type: string; /** * Table Widget Match String. */ value: string; } export interface PowerpackWidgetQueryTableDefinitionRequestTextFormatTextFormatReplace { /** * Text that will be replaced. Must be used with type `substring`. */ substring?: string; /** * Table widget text format replace all type. */ type: string; /** * Table Widget Match String. */ with: string; } export interface PowerpackWidgetQueryValueDefinition { /** * A Boolean indicating whether to automatically scale the tile. */ autoscale?: boolean; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetQueryValueDefinitionCustomLink[]; /** * The unit for the value displayed in the widget. */ customUnit?: string; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The precision to use when displaying the tile. */ precision?: number; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackWidgetQueryValueDefinitionRequest[]; /** * The alignment of the widget's text. Valid values are `center`, `left`, `right`. */ textAlign?: string; /** * Set a timeseries on the widget background. */ timeseriesBackground?: outputs.PowerpackWidgetQueryValueDefinitionTimeseriesBackground; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetQueryValueDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetQueryValueDefinitionRequest { /** * The aggregator to use for time aggregation. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestApmQuery; /** * The query to use for this widget. */ auditQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestAuditQuery; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetQueryValueDefinitionRequestConditionalFormat[]; formulas?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormula[]; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetQueryValueDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestSecurityQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryValueDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryValueDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryValueDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryValueDefinitionRequestAuditQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryValueDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryValueDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetQueryValueDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaStyle; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetQueryValueDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryValueDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryValueDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryValueDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryValueDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryValueDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryValueDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetQueryValueDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetQueryValueDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetQueryValueDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetQueryValueDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetQueryValueDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetQueryValueDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetQueryValueDefinitionTimeseriesBackground { /** * Whether the Timeseries is made using an area or bars. Valid values are `bars`, `area`. */ type: string; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.PowerpackWidgetQueryValueDefinitionTimeseriesBackgroundYaxis; } export interface PowerpackWidgetQueryValueDefinitionTimeseriesBackgroundYaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetRunWorkflowDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetRunWorkflowDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Array of workflow inputs to map to dashboard template variables. */ inputs?: outputs.PowerpackWidgetRunWorkflowDefinitionInput[]; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * Workflow ID */ workflowId: string; } export interface PowerpackWidgetRunWorkflowDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetRunWorkflowDefinitionInput { /** * Name of the workflow input. */ name: string; /** * Dashboard template variable. Can be suffixed with `.value` or `.key`. */ value: string; } export interface PowerpackWidgetScatterplotDefinition { /** * List of groups used for colors. */ colorByGroups?: string[]; /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetScatterplotDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed using the structure below. */ request?: outputs.PowerpackWidgetScatterplotDefinitionRequest; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the X-Axis Controls. Exactly one nested block is allowed using the structure below. */ xaxis?: outputs.PowerpackWidgetScatterplotDefinitionXaxis; /** * A nested block describing the Y-Axis Controls. Exactly one nested block is allowed using the structure below. */ yaxis?: outputs.PowerpackWidgetScatterplotDefinitionYaxis; } export interface PowerpackWidgetScatterplotDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetScatterplotDefinitionRequest { /** * Scatterplot request containing formulas and functions. */ scatterplotTables?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTable[]; /** * The query used for the X-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ xes?: outputs.PowerpackWidgetScatterplotDefinitionRequestX[]; /** * The query used for the Y-Axis. Exactly one nested block is allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery`, `apmStatsQuery` or `processQuery` is required within the block). */ ys?: outputs.PowerpackWidgetScatterplotDefinitionRequestY[]; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTable { formulas?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableFormula[]; queries?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQuery[]; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableFormula { /** * An expression alias. */ alias?: string; /** * Dimension of the Scatterplot. Valid values are `x`, `y`, `radius`, `color`. */ dimension: string; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQuerySloQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestScatterplotTableQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestX { /** * Aggregator used for the request. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXApmQuery; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXProcessQuery; /** * The metric query to use for this widget. */ q?: string; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXSecurityQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestXApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestXApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestXApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXApmQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestXApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestXLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestXLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXLogQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestXLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestXRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestXRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXRumQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestXRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestXSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestY { /** * Aggregator used for the request. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYApmQuery; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYProcessQuery; /** * The metric query to use for this widget. */ q?: string; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYSecurityQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestYApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestYApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestYApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYApmQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestYApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestYLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestYLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYLogQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestYLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestYRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestYRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYRumQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestYRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetScatterplotDefinitionRequestYSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetScatterplotDefinitionXaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetScatterplotDefinitionYaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetServiceLevelObjectiveDefinition { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The description of the widget. */ description?: string; /** * The global time target of the widget. */ globalTimeTarget?: string; /** * Whether to show the error budget or not. */ showErrorBudget?: boolean; /** * The ID of the service level objective used by the widget. */ sloId: string; /** * A list of time windows to display in the widget. Valid values are `7d`, `30d`, `90d`, `weekToDate`, `previousWeek`, `monthToDate`, `previousMonth`, `globalTime`. */ timeWindows: string[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * The view mode for the widget. Valid values are `overall`, `component`, `both`. */ viewMode: string; /** * The type of view to use when displaying the widget. Only `detail` is supported. */ viewType: string; } export interface PowerpackWidgetServicemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetServicemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * The ID of the service to map. */ service: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetServicemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetSloListDefinition { /** * A nested block describing the request to use when displaying the widget. Exactly one `request` block is allowed. */ request: outputs.PowerpackWidgetSloListDefinitionRequest; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetSloListDefinitionRequest { /** * The description of the widget. */ description?: string; /** * Updated SLO List widget. */ query: outputs.PowerpackWidgetSloListDefinitionRequestQuery; /** * The request type for the SLO List request. Valid values are `sloList`. */ requestType: string; } export interface PowerpackWidgetSloListDefinitionRequestQuery { /** * Maximum number of results to display in the table. Defaults to `100`. */ limit?: number; /** * Widget query. */ queryString: string; /** * The facet and order to sort the data, for example: `{"column": "status.sli", "order": "desc"}`. */ sort?: outputs.PowerpackWidgetSloListDefinitionRequestQuerySort; } export interface PowerpackWidgetSloListDefinitionRequestQuerySort { /** * The facet path for the column. */ column: string; /** * The description of the widget. */ description?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinition { /** * Nested block describing a custom link. Multiple `customLink` blocks are allowed with the structure below. */ customLinks?: outputs.PowerpackWidgetSunburstDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * Whether or not to show the total value in the widget. */ hideTotal?: boolean; /** * Used to configure the inline legend. Cannot be used in conjunction with legend*table. */ legendInline?: outputs.PowerpackWidgetSunburstDefinitionLegendInline; /** * Used to configure the table legend. Cannot be used in conjunction with legend*inline. */ legendTable?: outputs.PowerpackWidgetSunburstDefinitionLegendTable; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * Nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed with the structure below (exactly one of `q`, `logQuery` or `rumQuery` is required within the `request` block). */ requests?: outputs.PowerpackWidgetSunburstDefinitionRequest[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. One of `left`, `center`, or `right`. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title. Default is 16. */ titleSize?: string; } export interface PowerpackWidgetSunburstDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetSunburstDefinitionLegendInline { /** * Whether to hide the percentages of the groups. */ hidePercent?: boolean; /** * Whether to hide the values of the groups. */ hideValue?: boolean; /** * The type of legend (inline or automatic). Valid values are `inline`, `automatic`. */ type: string; } export interface PowerpackWidgetSunburstDefinitionLegendTable { /** * The type of legend (table or none). Valid values are `table`, `none`. */ type: string; } export interface PowerpackWidgetSunburstDefinitionRequest { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestApmQuery; /** * The query to use for this widget. */ auditQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestAuditQuery; formulas?: outputs.PowerpackWidgetSunburstDefinitionRequestFormula[]; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestLogQuery; /** * The query to use for this widget. */ networkQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestNetworkQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetSunburstDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestSecurityQuery; /** * Define style for the widget's request. */ style?: outputs.PowerpackWidgetSunburstDefinitionRequestStyle; } export interface PowerpackWidgetSunburstDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetSunburstDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetSunburstDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetSunburstDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestAuditQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetSunburstDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetSunburstDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackWidgetSunburstDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaStyle; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetSunburstDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetSunburstDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetSunburstDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetSunburstDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetSunburstDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestNetworkQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetSunburstDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetSunburstDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery; } export interface PowerpackWidgetSunburstDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetSunburstDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetSunburstDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetSunburstDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetSunburstDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetSunburstDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetSunburstDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetSunburstDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetSunburstDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetSunburstDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetSunburstDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetSunburstDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetSunburstDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetSunburstDefinitionRequestStyle { /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackWidgetTimeseriesDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetTimeseriesDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * The definition of the event to overlay on the graph. Multiple `event` blocks are allowed using the structure below. */ events?: outputs.PowerpackWidgetTimeseriesDefinitionEvent[]; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * A list of columns to display in the legend. Valid values are `value`, `avg`, `sum`, `min`, `max`. */ legendColumns?: string[]; /** * The layout of the legend displayed in the widget. Valid values are `auto`, `horizontal`, `vertical`. */ legendLayout?: string; /** * The size of the legend displayed in the widget. */ legendSize?: string; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the marker to use when displaying the widget. The structure of this block is described below. Multiple `marker` blocks are allowed within a given `tileDef` block. */ markers?: outputs.PowerpackWidgetTimeseriesDefinitionMarker[]; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `networkQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackWidgetTimeseriesDefinitionRequest[]; /** * A nested block describing the right Y-Axis Controls. See the `onRightYaxis` property for which request will use this axis. The structure of this block is described below. */ rightYaxis?: outputs.PowerpackWidgetTimeseriesDefinitionRightYaxis; /** * Whether or not to show the legend on this widget. */ showLegend?: boolean; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; /** * A nested block describing the Y-Axis Controls. The structure of this block is described below. */ yaxis?: outputs.PowerpackWidgetTimeseriesDefinitionYaxis; } export interface PowerpackWidgetTimeseriesDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetTimeseriesDefinitionEvent { /** * The event query to use in the widget. */ q: string; /** * The execution method for multi-value filters. */ tagsExecution?: string; } export interface PowerpackWidgetTimeseriesDefinitionMarker { /** * How the marker lines are displayed, options are one of {`error`, `warning`, `info`, `ok`} combined with one of {`dashed`, `solid`, `bold`}. Example: `error dashed`. */ displayType?: string; /** * A label for the line or range. */ label?: string; /** * A mathematical expression describing the marker, for example: `y > 1`, `-5 < y < 0`, `y = 19`. */ value: string; } export interface PowerpackWidgetTimeseriesDefinitionRequest { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestApmQuery; /** * The query to use for this widget. */ auditQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestAuditQuery; /** * How to display the marker lines. Valid values are `area`, `bars`, `line`, `overlay`. */ displayType?: string; formulas?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormula[]; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestLogQuery; /** * Used to define expression aliases. Multiple `metadata` blocks are allowed using the structure below. */ metadatas?: outputs.PowerpackWidgetTimeseriesDefinitionRequestMetadata[]; /** * The query to use for this widget. */ networkQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestNetworkQuery; /** * A Boolean indicating whether the request uses the right or left Y-Axis. */ onRightYaxis?: boolean; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestSecurityQuery; /** * The style of the widget graph. Exactly one `style` block is allowed using the structure below. */ style?: outputs.PowerpackWidgetTimeseriesDefinitionRequestStyle; } export interface PowerpackWidgetTimeseriesDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetTimeseriesDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestAuditQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetTimeseriesDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaStyle; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetTimeseriesDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestMetadata { /** * The expression alias. */ aliasName?: string; /** * The expression name. */ expression: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestNetworkQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestNetworkQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetTimeseriesDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetTimeseriesDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetTimeseriesDefinitionRequestStyle { /** * If true, the value is displayed as a label relative to the data point. */ hasValueLabels?: boolean; /** * The type of lines displayed. Valid values are `dashed`, `dotted`, `solid`. */ lineType?: string; /** * The width of line displayed. Valid values are `normal`, `thick`, `thin`. */ lineWidth?: string; /** * How to order series in timeseries visualizations. Valid values are `tags`, `values`. */ orderBy?: string; /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackWidgetTimeseriesDefinitionRightYaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetTimeseriesDefinitionYaxis { /** * Always include zero or fit the axis to the data range. */ includeZero?: boolean; /** * The label of the axis to display on the graph. */ label?: string; /** * Specify the maximum value to show on the Y-axis. */ max?: string; /** * Specify the minimum value to show on the Y-axis. */ min?: string; /** * Specify the scale type, options: `linear`, `log`, `pow`, `sqrt`. */ scale?: string; } export interface PowerpackWidgetToplistDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetToplistDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * A nested block describing the request to use when displaying the widget. Multiple `request` blocks are allowed using the structure below (exactly one of `q`, `apmQuery`, `logQuery`, `rumQuery`, `securityQuery` or `processQuery` is required within the `request` block). */ requests?: outputs.PowerpackWidgetToplistDefinitionRequest[]; /** * The style of the widget */ styles?: outputs.PowerpackWidgetToplistDefinitionStyle[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetToplistDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetToplistDefinitionRequest { /** * The query to use for this widget. */ apmQuery?: outputs.PowerpackWidgetToplistDefinitionRequestApmQuery; /** * The query to use for this widget. */ auditQuery?: outputs.PowerpackWidgetToplistDefinitionRequestAuditQuery; /** * Conditional formats allow you to set the color of your widget content or background, depending on a rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetToplistDefinitionRequestConditionalFormat[]; formulas?: outputs.PowerpackWidgetToplistDefinitionRequestFormula[]; /** * The query to use for this widget. */ logQuery?: outputs.PowerpackWidgetToplistDefinitionRequestLogQuery; /** * The process query to use in the widget. The structure of this block is described below. */ processQuery?: outputs.PowerpackWidgetToplistDefinitionRequestProcessQuery; /** * The metric query to use for this widget. */ q?: string; queries?: outputs.PowerpackWidgetToplistDefinitionRequestQuery[]; /** * The query to use for this widget. */ rumQuery?: outputs.PowerpackWidgetToplistDefinitionRequestRumQuery; /** * The query to use for this widget. */ securityQuery?: outputs.PowerpackWidgetToplistDefinitionRequestSecurityQuery; /** * Define request for the widget's style. */ style?: outputs.PowerpackWidgetToplistDefinitionRequestStyle; } export interface PowerpackWidgetToplistDefinitionRequestApmQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetToplistDefinitionRequestApmQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetToplistDefinitionRequestApmQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetToplistDefinitionRequestApmQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetToplistDefinitionRequestApmQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestApmQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetToplistDefinitionRequestApmQueryGroupBySortQuery; } export interface PowerpackWidgetToplistDefinitionRequestApmQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetToplistDefinitionRequestApmQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestAuditQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetToplistDefinitionRequestAuditQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetToplistDefinitionRequestAuditQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetToplistDefinitionRequestAuditQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetToplistDefinitionRequestAuditQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestAuditQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetToplistDefinitionRequestAuditQueryGroupBySortQuery; } export interface PowerpackWidgetToplistDefinitionRequestAuditQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetToplistDefinitionRequestAuditQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetToplistDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaStyle; } export interface PowerpackWidgetToplistDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetToplistDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetToplistDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetToplistDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetToplistDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetToplistDefinitionRequestLogQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetToplistDefinitionRequestLogQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetToplistDefinitionRequestLogQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetToplistDefinitionRequestLogQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetToplistDefinitionRequestLogQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestLogQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetToplistDefinitionRequestLogQueryGroupBySortQuery; } export interface PowerpackWidgetToplistDefinitionRequestLogQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetToplistDefinitionRequestLogQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestProcessQuery { /** * A list of processes. */ filterBies?: string[]; /** * The max number of items in the filter list. */ limit?: number; /** * Your chosen metric. */ metric: string; /** * Your chosen search term. */ searchBy?: string; } export interface PowerpackWidgetToplistDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetToplistDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetToplistDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetToplistDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetToplistDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetToplistDefinitionRequestRumQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetToplistDefinitionRequestRumQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetToplistDefinitionRequestRumQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetToplistDefinitionRequestRumQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetToplistDefinitionRequestRumQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestRumQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetToplistDefinitionRequestRumQueryGroupBySortQuery; } export interface PowerpackWidgetToplistDefinitionRequestRumQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetToplistDefinitionRequestRumQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestSecurityQuery { /** * `computeQuery` or `multiCompute` is required. The map keys are listed below. */ computeQuery?: outputs.PowerpackWidgetToplistDefinitionRequestSecurityQueryComputeQuery; /** * Multiple `groupBy` blocks are allowed using the structure below. */ groupBies?: outputs.PowerpackWidgetToplistDefinitionRequestSecurityQueryGroupBy[]; /** * The name of the index to query. */ index: string; /** * `computeQuery` or `multiCompute` is required. Multiple `multiCompute` blocks are allowed using the structure below. */ multiComputes?: outputs.PowerpackWidgetToplistDefinitionRequestSecurityQueryMultiCompute[]; /** * The search query to use. */ searchQuery?: string; } export interface PowerpackWidgetToplistDefinitionRequestSecurityQueryComputeQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestSecurityQueryGroupBy { /** * The facet name. */ facet?: string; /** * The maximum number of items in the group. */ limit?: number; /** * A list of exactly one element describing the sort query to use. */ sortQuery?: outputs.PowerpackWidgetToplistDefinitionRequestSecurityQueryGroupBySortQuery; } export interface PowerpackWidgetToplistDefinitionRequestSecurityQueryGroupBySortQuery { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Widget sorting methods. Valid values are `asc`, `desc`. */ order: string; } export interface PowerpackWidgetToplistDefinitionRequestSecurityQueryMultiCompute { /** * The aggregation method. */ aggregation: string; /** * The facet name. */ facet?: string; /** * Define the time interval in seconds. */ interval?: number; } export interface PowerpackWidgetToplistDefinitionRequestStyle { /** * A color palette to apply to the widget. The available options are available at: https://docs.datadoghq.com/dashboards/widgets/timeseries/#appearance. */ palette?: string; } export interface PowerpackWidgetToplistDefinitionStyle { /** * The display mode for the widget. */ displays?: outputs.PowerpackWidgetToplistDefinitionStyleDisplay[]; /** * The color palette for the widget. */ palette?: string; /** * The scaling mode for the widget. Valid values are `absolute`, `relative`. */ scaling: string; } export interface PowerpackWidgetToplistDefinitionStyleDisplay { /** * The display type for the widget. */ type: string; } export interface PowerpackWidgetTopologyMapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetTopologyMapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * A nested block describing the request to use when displaying the widget. Multiple request blocks are allowed using the structure below (`query` and `requestType` are required within the request). */ requests?: outputs.PowerpackWidgetTopologyMapDefinitionRequest[]; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetTopologyMapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetTopologyMapDefinitionRequest { /** * The query for a Topology request. */ queries: outputs.PowerpackWidgetTopologyMapDefinitionRequestQuery[]; /** * The request type for the Topology request ('topology'). Valid values are `topology`. */ requestType: string; } export interface PowerpackWidgetTopologyMapDefinitionRequestQuery { /** * The data source for the Topology request ('service*map' or 'data*streams'). Valid values are `dataStreams`, `serviceMap`. */ dataSource: string; /** * Your environment and primary tag (or `*` if enabled for your account). */ filters: string[]; /** * The ID of the service to map. */ service: string; } export interface PowerpackWidgetTraceServiceDefinition { /** * The number of columns to display. Valid values are `oneColumn`, `twoColumn`, `threeColumn`. */ displayFormat?: string; /** * APM environment. */ env: string; /** * Hide any portion of the widget's timeframe that is incomplete due to cost data not being available. */ hideIncompleteCostData: boolean; /** * The timeframe to use when displaying the widget. Valid values are `1m`, `5m`, `10m`, `15m`, `30m`, `1h`, `4h`, `1d`, `2d`, `1w`, `1mo`, `3mo`, `6mo`, `weekToDate`, `monthToDate`, `1y`, `alert`. */ liveSpan?: string; /** * APM service. */ service: string; /** * Whether to show the latency breakdown or not. */ showBreakdown?: boolean; /** * Whether to show the latency distribution or not. */ showDistribution?: boolean; /** * Whether to show the error metrics or not. */ showErrors?: boolean; /** * Whether to show the hits metrics or not */ showHits?: boolean; /** * Whether to show the latency metrics or not. */ showLatency?: boolean; /** * Whether to show the resource list or not. */ showResourceList?: boolean; /** * The size of the widget. Valid values are `small`, `medium`, `large`. */ sizeFormat?: string; /** * APM span name */ spanName: string; /** * The title of the widget. */ title?: string; /** * The alignment of the widget's title. Valid values are `center`, `left`, `right`. */ titleAlign?: string; /** * The size of the widget's title (defaults to 16). */ titleSize?: string; } export interface PowerpackWidgetTreemapDefinition { /** * A nested block describing a custom link. Multiple `customLink` blocks are allowed using the structure below. */ customLinks?: outputs.PowerpackWidgetTreemapDefinitionCustomLink[]; /** * The description of the widget. */ description?: string; /** * Nested block describing the request to use when displaying the widget. */ requests?: outputs.PowerpackWidgetTreemapDefinitionRequest[]; /** * The title of the widget. */ title?: string; } export interface PowerpackWidgetTreemapDefinitionCustomLink { /** * The flag for toggling context menu link visibility. */ isHidden?: boolean; /** * The label for the custom link URL. */ label?: string; /** * The URL of the custom link. */ link?: string; /** * The label ID that refers to a context menu link item. When `overrideLabel` is provided, the client request omits the label field. */ overrideLabel?: string; } export interface PowerpackWidgetTreemapDefinitionRequest { formulas?: outputs.PowerpackWidgetTreemapDefinitionRequestFormula[]; queries?: outputs.PowerpackWidgetTreemapDefinitionRequestQuery[]; } export interface PowerpackWidgetTreemapDefinitionRequestFormula { /** * An expression alias. */ alias?: string; /** * A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`. */ cellDisplayMode?: string; /** * Conditional formats allow you to set the color of your widget content or background depending on the rule applied to your data. Multiple `conditionalFormats` blocks are allowed using the structure below. */ conditionalFormats?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaConditionalFormat[]; /** * A string expression built from queries, formulas, and functions. */ formulaExpression: string; /** * The options for limiting results returned. */ limit?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaLimit; /** * Number formatting options for the formula. */ numberFormat?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormat; /** * Styling options for widget formulas. */ style?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaStyle; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaConditionalFormat { /** * The comparator to use. Valid values are `=`, `>`, `>=`, `<`, `<=`. */ comparator: string; /** * The color palette to apply to the background, same values available as palette. */ customBgColor?: string; /** * The color palette to apply to the foreground, same values available as palette. */ customFgColor?: string; /** * Setting this to True hides values. */ hideValue?: boolean; /** * Displays an image as the background. */ imageUrl?: string; /** * The metric from the request to correlate with this conditional format. */ metric?: string; /** * The color palette to apply. Valid values are `blue`, `customBg`, `customImage`, `customText`, `grayOnWhite`, `grey`, `green`, `orange`, `red`, `redOnWhite`, `whiteOnGray`, `whiteOnGreen`, `greenOnWhite`, `whiteOnRed`, `whiteOnYellow`, `yellowOnWhite`, `blackOnLightYellow`, `blackOnLightGreen`, `blackOnLightRed`. */ palette: string; /** * Defines the displayed timeframe. */ timeframe?: string; /** * A value for the comparator. */ value: number; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaLimit { /** * The number of results to return. */ count?: number; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ order?: string; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormat { /** * Unit of the number format. */ unit: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnit; unitScale?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnit { /** * Canonical Units */ canonical?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical; /** * Use custom (non canonical metrics) */ custom?: outputs.PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCanonical { /** * per unit name. If you want to represent megabytes/s, you set 'unit*name' = 'megabyte' and 'per*unit_name = 'second' */ perUnitName?: string; /** * Unit name. It should be in singular form ('megabyte' and not 'megabytes') */ unitName: string; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnitCustom { /** * Unit label */ label: string; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaNumberFormatUnitScale { unitName: string; } export interface PowerpackWidgetTreemapDefinitionRequestFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors. */ palette?: string; /** * Index specifying which color to use within the palette. */ paletteIndex?: number; } export interface PowerpackWidgetTreemapDefinitionRequestQuery { /** * The APM Dependency Stats query using formulas and functions. */ apmDependencyStatsQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryApmDependencyStatsQuery; /** * The APM Resource Stats query using formulas and functions. */ apmResourceStatsQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryApmResourceStatsQuery; /** * The Cloud Cost query using formulas and functions. */ cloudCostQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryCloudCostQuery; /** * A timeseries formula and functions events query. */ eventQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQuery; /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryMetricQuery; /** * The process query using formulas and functions. */ processQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryProcessQuery; /** * The SLO query using formulas and functions. */ sloQuery?: outputs.PowerpackWidgetTreemapDefinitionRequestQuerySloQuery; } export interface PowerpackWidgetTreemapDefinitionRequestQueryApmDependencyStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Dependency Stats queries. Valid values are `apmDependencyStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Determines whether stats for upstream or downstream dependencies should be queried. */ isUpstream?: boolean; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `avgDuration`, `avgRootDuration`, `avgSpansPerTrace`, `errorRate`, `pctExecTime`, `pctOfTraces`, `totalTracesCount`. */ stat: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryApmResourceStatsQuery { /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for APM Resource Stats queries. Valid values are `apmResourceStats`. */ dataSource: string; /** * APM environment. */ env: string; /** * Array of fields to group results by. */ groupBies?: string[]; /** * The name of query for use in formulas. */ name: string; /** * Name of operation on service. */ operationName?: string; /** * The name of the second primary tag used within APM; required when `primaryTagValue` is specified. See https://docs.datadoghq.com/tracing/guide/setting*primary*tags*to*scope/#add-a-second-primary-tag-in-datadog. */ primaryTagName?: string; /** * Filter APM data by the second primary tag. `primaryTagName` must also be specified. */ primaryTagValue?: string; /** * APM resource. */ resourceName?: string; /** * APM service. */ service: string; /** * APM statistic. Valid values are `errors`, `errorRate`, `hits`, `latencyAvg`, `latencyDistribution`, `latencyMax`, `latencyP50`, `latencyP75`, `latencyP90`, `latencyP95`, `latencyP99`. */ stat: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryCloudCostQuery { /** * The aggregation methods available for cloud cost queries. Valid values are `avg`, `last`, `max`, `min`, `sum`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for cloud cost queries. Valid values are `cloudCost`. */ dataSource: string; /** * The name of the query for use in formulas. */ name: string; /** * The cloud cost query definition. */ query: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQuery { /** * The compute options. */ computes: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQueryCompute[]; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for event platform-based queries. Valid values are `logs`, `spans`, `network`, `networkDeviceFlows`, `rum`, `securitySignals`, `profiles`, `audit`, `events`, `ciTests`, `ciPipelines`, `incidentAnalytics`, `productAnalytics`, `onCallEvents`, `errors`, `llmObservability`. */ dataSource: string; /** * Group by options. */ groupBies?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupBy[]; /** * Alternative group-by configuration that groups by multiple event facet fields. Use this or `groupBy`, not both. */ groupByFields?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupByFields; /** * An array of index names to query in the stream. */ indexes?: string[]; /** * The name of query for use in formulas. */ name: string; /** * The search options. */ search?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQuerySearch; /** * Storage location (private beta). */ storage?: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQueryCompute { /** * The aggregation methods for event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * A time interval in milliseconds. */ interval?: number; /** * The measurable attribute to compute. */ metric?: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupBy { /** * The event facet. */ facet: string; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupBySort; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupByFields { /** * List of event facets to group by. */ fields: string[]; /** * The number of groups to return. */ limit?: number; /** * The options for sorting group by results. */ sort?: outputs.PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupByFieldsSort { /** * The aggregation method for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQueryGroupBySort { /** * The aggregation methods for the event platform queries. Valid values are `count`, `cardinality`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, `sum`, `min`, `max`, `avg`. */ aggregation: string; /** * The metric used for sorting group by results. */ metric?: string; /** * Direction of sort. Valid values are `asc`, `desc`. */ order?: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryEventQuerySearch { /** * The events search string. */ query: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryMetricQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; /** * Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. Valid values are `combined`, `native`. */ semanticMode?: string; } export interface PowerpackWidgetTreemapDefinitionRequestQueryProcessQuery { /** * The aggregation methods available for metrics queries. Valid values are `avg`, `min`, `max`, `sum`, `last`, `area`, `l2norm`, `percentile`. */ aggregator?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for process queries. Valid values are `process`, `container`. */ dataSource: string; /** * Whether to normalize the CPU percentages. */ isNormalizedCpu?: boolean; /** * The number of hits to return. */ limit?: number; /** * The process metric name. */ metric: string; /** * The name of query for use in formulas. */ name: string; /** * The direction of the sort. Valid values are `asc`, `desc`. Defaults to `"desc"`. */ sort?: string; /** * An array of tags to filter by. */ tagFilters?: string[]; /** * The text to use as a filter. */ textFilter?: string; } export interface PowerpackWidgetTreemapDefinitionRequestQuerySloQuery { /** * Additional filters applied to the SLO query. */ additionalQueryFilters?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. */ crossOrgUuids?: string; /** * The data source for SLO queries. Valid values are `slo`. */ dataSource: string; /** * Group mode to query measures. Valid values are `overall`, `components`. Defaults to `"overall"`. */ groupMode?: string; /** * SLO measures queries. Valid values are `goodEvents`, `badEvents`, `goodMinutes`, `badMinutes`, `sloStatus`, `errorBudgetRemaining`, `burnRate`, `errorBudgetBurndown`. */ measure: string; /** * The name of query for use in formulas. */ name?: string; /** * ID of an SLO to query. */ sloId: string; /** * type of the SLO to query. Valid values are `metric`, `monitor`, `timeSlice`. Defaults to `"metric"`. */ sloQueryType?: string; } export interface PowerpackWidgetWidgetLayout { /** * The height of the widget. */ height: number; /** * Whether the widget should be the first one on the second column in high density or not. Only one widget in the dashboard should have this property set to `true`. */ isColumnBreak?: boolean; /** * The width of the widget. */ width: number; /** * The position of the widget on the x (horizontal) axis. Must be greater than or equal to 0. */ x: number; /** * The position of the widget on the y (vertical) axis. Must be greater than or equal to 0. */ y: number; } export interface ReferenceTableFileMetadata { /** * Cloud storage access configuration. Exactly one of aws*detail, gcp*detail, or azure*detail must be specified. */ accessDetails?: outputs.ReferenceTableFileMetadataAccessDetails; /** * Error message from the last sync attempt, if any. */ errorMessage: string; /** * The number of rows that failed to sync. */ errorRowCount: number; /** * The type of error that occurred during file processing. */ errorType: string; /** * Whether this table should automatically sync with the cloud storage source. */ syncEnabled: boolean; } export interface ReferenceTableFileMetadataAccessDetails { /** * AWS S3 access configuration. Required when source is S3. */ awsDetail?: outputs.ReferenceTableFileMetadataAccessDetailsAwsDetail; /** * Azure Blob Storage access configuration. Required when source is AZURE. */ azureDetail?: outputs.ReferenceTableFileMetadataAccessDetailsAzureDetail; /** * Google Cloud Storage access configuration. Required when source is GCS. */ gcpDetail?: outputs.ReferenceTableFileMetadataAccessDetailsGcpDetail; } export interface ReferenceTableFileMetadataAccessDetailsAwsDetail { /** * The ID of the AWS account. */ awsAccountId?: string; /** * The name of the AWS S3 bucket. */ awsBucketName?: string; /** * The relative file path from the AWS S3 bucket root to the CSV file. */ filePath?: string; } export interface ReferenceTableFileMetadataAccessDetailsAzureDetail { /** * The Azure client ID (application ID). */ azureClientId?: string; /** * The name of the Azure container. */ azureContainerName?: string; /** * The name of the Azure storage account. */ azureStorageAccountName?: string; /** * The ID of the Azure tenant. */ azureTenantId?: string; /** * The relative file path from the Azure container root to the CSV file. */ filePath?: string; } export interface ReferenceTableFileMetadataAccessDetailsGcpDetail { /** * The relative file path from the GCS bucket root to the CSV file. */ filePath?: string; /** * The name of the GCP bucket. */ gcpBucketName?: string; /** * The ID of the GCP project. */ gcpProjectId?: string; /** * The email of the GCP service account used to access the bucket. */ gcpServiceAccountEmail?: string; } export interface ReferenceTableSchema { /** * List of fields in the table schema. At least one field is required. Schema is only set on create. */ fields?: outputs.ReferenceTableSchemaField[]; /** * List of field names that serve as primary keys for the table. Currently only one primary key is supported. */ primaryKeys: string[]; } export interface ReferenceTableSchemaField { /** * The name of the field. */ name: string; /** * The data type of the field. Must be one of: STRING, INT32. Valid values are `STRING`, `INT32`. */ type: string; } export interface RestrictionPolicyBinding { /** * An array of principals. A principal is a subject or group of subjects. Each principal is formatted as `type:id`. Supported types: `role`, `team`, `user`, and `org`. Org ID can be obtained using a `GET /api/v2/current_user` API request. Find it in the `data.relationships.org.data.id` field. */ principals: string[]; /** * The role/level of access. See this page for more details https://docs.datadoghq.com/api/latest/restriction-policies/#supported-relations-for-resources */ relation: string; } export interface RolePermission { /** * ID of the permission to assign. */ id: string; /** * Name of the permission. */ name: string; } export interface RumMetricCompute { /** * The type of aggregation to use. */ aggregationType: string; /** * Toggle to include or exclude percentile aggregations for distribution metrics. Only present when `aggregationType` is `distribution`. */ includePercentiles?: boolean; /** * The path to the value the RUM-based metric will aggregate on. Only present when `aggregationType` is `distribution`. */ path?: string; } export interface RumMetricFilter { /** * The search query. Follows RUM search syntax. */ query?: string; } export interface RumMetricGroupBy { /** * The path to the value the RUM-based metric will be aggregated over. */ path?: string; /** * Name of the tag that gets created. By default, `path` is used as the tag name. */ tagName?: string; } export interface RumMetricUniqueness { /** * When to count updatable events. `match` when the event is first seen, or `end` when the event is complete. */ when?: string; } export interface RumOperationStep { /** * Rule combining several predicates into this step. Exactly one of `nodes` or `composite` must be set. */ composite?: outputs.RumOperationStepComposite; /** * Queries matched by this step. Exactly one of `nodes` or `composite` must be set. */ nodes?: outputs.RumOperationStepNode[]; /** * Lifecycle transition triggered by this step. Valid values are `start`, `update`, `stop`, `error`, `abandoned`. */ type: string; } export interface RumOperationStepComposite { /** * How the predicates combine. Valid values are `allOf`, `inOrder`. */ kind: string; /** * Maximum time window, in milliseconds, in which all predicates must match. Value must be between 0 and 1800000. */ maxWindowMs?: number; /** * Predicates combined by the rule. */ predicates: outputs.RumOperationStepCompositePredicate[]; } export interface RumOperationStepCompositePredicate { /** * RUM event search query. */ query: string; } export interface RumOperationStepNode { /** * RUM event search query. */ query: string; } export interface RumRetentionQuotaCustom { /** * The time of day the quota resets, in `HH:MM` format. */ dailyResetTime: string; /** * The UTC offset for `dailyResetTime`, in `±HH:MM` format. */ dailyResetTimezone: string; /** * The action taken after the quota is reached. Valid values are `stop`, `slowdown`. */ quotaReachedAction: string; /** * The maximum number of sessions to retain within the window. */ sessionLimit: number; /** * The window over which the quota resets. Valid values are `daily`. */ windowType: string; } export interface SecureEmbedDashboardSelectableTemplateVar { /** * The default values for this template variable. */ defaultValues: string[]; /** * The name of the template variable. */ name: string; /** * The tag prefix for this template variable. Defaults to `""`. */ prefix: string; /** * The type of the template variable. Defaults to `""`. */ type: string; /** * The visible tag values for this template variable. */ visibleTags: string[]; } export interface SecurityFindingsDefaultInboxRuleAction { /** * An optional description providing more context for the rule. */ description: string; } export interface SecurityFindingsDefaultInboxRuleRule { /** * The list of security finding types that the automation rule applies to. */ findingTypes: string[]; /** * A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/). */ query: string; } export interface SecurityFindingsDueDateRuleAction { /** * A list of severity-to-due-date mappings. Each severity may appear at most once. */ dueDaysPerSeverities: outputs.SecurityFindingsDueDateRuleActionDueDaysPerSeverity[]; /** * The reference point from which the due date is calculated. When `fixAvailable` is selected but not applicable to the finding type, `firstSeen` is used instead. Valid values are `firstSeen`, `fixAvailable`. */ dueFrom: string; /** * An optional description providing more context for the due date assignment. */ reasonDescription?: string; } export interface SecurityFindingsDueDateRuleActionDueDaysPerSeverity { /** * The number of days from the reference point until the finding is due. */ dueInDays: number; /** * A severity level used to configure due date thresholds. Valid values are `critical`, `high`, `medium`, `low`, `info`, `none`, `unknown`. */ severity: string; } export interface SecurityFindingsDueDateRuleRule { /** * The list of security finding types that the automation rule applies to. Valid values are `apiSecurity`, `attackPath`, `hostAndContainerVulnerability`, `iacMisconfiguration`, `identityRisk`, `libraryVulnerability`, `misconfiguration`, `runtimeCodeVulnerability`, `secret`, `staticCodeVulnerability`, `workloadActivity`. */ findingTypes: string[]; /** * A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/). */ query?: string; } export interface SecurityFindingsInboxRuleAction { /** * An optional description providing more context for the rule. */ description?: string; } export interface SecurityFindingsInboxRuleRule { /** * The list of security finding types that the automation rule applies to. Valid values are `apiSecurity`, `attackPath`, `hostAndContainerVulnerability`, `iacMisconfiguration`, `identityRisk`, `libraryVulnerability`, `misconfiguration`, `runtimeCodeVulnerability`, `secret`, `staticCodeVulnerability`, `workloadActivity`. */ findingTypes: string[]; /** * A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/). */ query?: string; } export interface SecurityFindingsMuteRuleAction { /** * The Unix timestamp in milliseconds at which the mute expires. If omitted, the mute does not expire. */ expireAt?: number; /** * The reason for muting a security finding. Valid values are `duplicate`, `falsePositive`, `noFix`, `other`, `pendingFix`, `riskAccepted`. */ reason: string; /** * An optional description providing more context for the mute reason. */ reasonDescription?: string; } export interface SecurityFindingsMuteRuleRule { /** * The list of security finding types that the automation rule applies to. Valid values are `apiSecurity`, `attackPath`, `hostAndContainerVulnerability`, `iacMisconfiguration`, `identityRisk`, `libraryVulnerability`, `misconfiguration`, `runtimeCodeVulnerability`, `secret`, `staticCodeVulnerability`, `workloadActivity`. */ findingTypes: string[]; /** * A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/). */ query?: string; } export interface SecurityFindingsSeverityModifierRuleAction { /** * Sets matched findings to a fixed severity. */ set?: outputs.SecurityFindingsSeverityModifierRuleActionSet; /** * Shifts matched findings up or down by one severity rank. */ shift?: outputs.SecurityFindingsSeverityModifierRuleActionShift; } export interface SecurityFindingsSeverityModifierRuleActionSet { /** * An optional free-form explanation for the severity change. */ description?: string; /** * The severity to assign to matched findings. `infoNone` is not supported for the `iacMisconfiguration`, `runtimeCodeVulnerability`, `secret`, or `staticCodeVulnerability` finding types. Valid values are `infoNone`, `low`, `medium`, `high`, `critical`. */ severity: string; } export interface SecurityFindingsSeverityModifierRuleActionShift { /** * An optional free-form explanation for the severity change. */ description?: string; /** * The direction in which to shift the severity of matched findings by one rank. Valid values are `upOne`, `downOne`. */ severityDelta: string; } export interface SecurityFindingsSeverityModifierRuleRule { /** * The list of security finding types that the automation rule applies to. Valid values are `apiSecurity`, `attackPath`, `hostAndContainerVulnerability`, `iacMisconfiguration`, `identityRisk`, `libraryVulnerability`, `misconfiguration`, `runtimeCodeVulnerability`, `secret`, `staticCodeVulnerability`, `workloadActivity`. */ findingTypes: string[]; /** * A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/). */ query?: string; } export interface SecurityFindingsTicketCreationRuleAction { /** * The UUID of the default assignee for created tickets. Must be a valid UUID. */ assigneeId?: string; /** * The reason the rule was automatically disabled by the system due to a ticketing integration error. */ autoDisabledReason: string; /** * A JSON-encoded object of target-specific fields for the ticket to create. For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get). For `target: linear`, the optional keys `linearProjectId` (string, the identifier of the Linear project the issue is created in) and `linearLabelIds` (array of strings, the identifiers of the Linear labels applied to the issue). */ fields?: string; /** * The maximum number of tickets the rule may create per day. If exceeded, one final ticket will be created, explaining the limit was hit and link back to the responsible rule. Value must be between 1 and 500. */ maxTicketsPerDay: number; /** * The UUID of the case management project. Must be a valid UUID. */ projectId: string; /** * The ticketing system to create tickets in. Valid values are `jira`, `caseManagement`, `linear`. */ target: string; } export interface SecurityFindingsTicketCreationRuleRule { /** * The list of security finding types that the automation rule applies to. Valid values are `apiSecurity`, `attackPath`, `hostAndContainerVulnerability`, `iacMisconfiguration`, `identityRisk`, `libraryVulnerability`, `misconfiguration`, `runtimeCodeVulnerability`, `secret`, `staticCodeVulnerability`, `workloadActivity`. */ findingTypes: string[]; /** * A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/). */ query?: string; } export interface SecurityMonitoringDefaultRuleCase { /** * Status of the rule case to override. Valid values are `info`, `low`, `medium`, `high`, `critical`. */ customStatus?: string; /** * Notification targets for each rule case. */ notifications?: string[]; /** * Status of the rule case to match. Valid values are `info`, `low`, `medium`, `high`, `critical`. */ status: string; } export interface SecurityMonitoringDefaultRuleFilter { /** * The type of filtering action. Allowed enum values: require, suppress Valid values are `require`, `suppress`. */ action: string; /** * Query for selecting logs to apply the filtering action. */ query: string; } export interface SecurityMonitoringDefaultRuleOptions { /** * If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce noise. The decrement is applied when the environment tag of the signal starts with `staging`, `test`, or `dev`. Only available when the rule type is `logDetection`. */ decreaseCriticalityBasedOnEnv: boolean; } export interface SecurityMonitoringDefaultRuleQuery { /** * **Deprecated**. It won't be applied anymore. * * @deprecated `agentRule` has been deprecated in favor of new Agent Rule resource. */ agentRules?: outputs.SecurityMonitoringDefaultRuleQueryAgentRule[]; /** * The aggregation type. */ aggregation: string; /** * Query extension to append to the logs query. */ customQueryExtension?: string; /** * Source of events. */ dataSource: string; /** * Field for which the cardinality is measured. Sent as an array. */ distinctFields: string[]; /** * Fields to group by. */ groupByFields: string[]; /** * When false, events without a group-by value are ignored by the rule. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values. */ hasOptionalGroupByFields: boolean; /** * The target field to aggregate over when using the `sum`, `max`, or `geoData` aggregations. * * @deprecated Configure `metrics` instead. This attribute will be removed in the next major version of the provider. */ metric: string; /** * Group of target fields to aggregate over when using the `sum`, `max`, `geoData`, or `newValue` aggregations. The `sum`, `max`, and `geoData` aggregations only accept one value in this list, whereas the `newValue` aggregation accepts up to five values. */ metrics: string[]; /** * Name of the query. Not compatible with `newValue` aggregations. */ name: string; /** * Query to run on logs. */ query: string; } export interface SecurityMonitoringDefaultRuleQueryAgentRule { /** * **Deprecated**. It won't be applied anymore. */ agentRuleId: string; /** * **Deprecated**. It won't be applied anymore. */ expression: string; } export interface SecurityMonitoringFilterExclusionFilter { /** * Exclusion filter name. */ name: string; /** * Exclusion filter query. Logs that match this query are excluded from the security filter. */ query: string; } export interface SecurityMonitoringRuleCalculatedField { /** * Expression. String length must be at least 1. */ expression: string; /** * Field name. String length must be at least 1. */ name: string; } export interface SecurityMonitoringRuleCase { /** * Action to perform when the case trigger */ actions?: outputs.SecurityMonitoringRuleCaseAction[]; /** * A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries. */ condition: string; /** * Name of the case. Defaults to `""`. */ name: string; /** * Notification targets for each rule case. */ notifications: string[]; /** * Severity of the Security Signal. Valid values are `info`, `low`, `medium`, `high`, `critical`. */ status: string; } export interface SecurityMonitoringRuleCaseAction { /** * Options for the action. */ options?: outputs.SecurityMonitoringRuleCaseActionOptions; /** * Type of action to perform when the case triggers. Valid values are `blockIp`, `blockUser`, `userBehavior`, `flagIp`. */ type: string; } export interface SecurityMonitoringRuleCaseActionOptions { /** * Duration of the action in seconds. */ duration?: number; } export interface SecurityMonitoringRuleFilter { /** * The type of filtering action. Valid values are `require`, `suppress`. */ action: string; /** * Query for selecting logs to apply the filtering action. */ query: string; } export interface SecurityMonitoringRuleOptions { /** * Options for rules using the anomaly detection method. */ anomalyDetectionOptions?: outputs.SecurityMonitoringRuleOptionsAnomalyDetectionOptions; /** * If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce noise. The decrement is applied when the environment tag of the signal starts with `staging`, `test`, or `dev`. Only available when the rule type is `logDetection`. Defaults to `false`. */ decreaseCriticalityBasedOnEnv: boolean; /** * The detection method. Valid values are `threshold`, `newValue`, `anomalyDetection`, `impossibleTravel`, `hardcoded`, `thirdParty`, `anomalyThreshold`, `sequenceDetection`. Defaults to `"threshold"`. */ detectionMethod: string; /** * A time window is specified to match when at least one of the cases matches true. This is a sliding window and evaluates in real time. Valid values are `0`, `60`, `300`, `600`, `900`, `1800`, `3600`, `7200`, `10800`, `21600`, `43200`, `86400`. */ evaluationWindow: number; /** * Options for rules using the impossible travel detection method. */ impossibleTravelOptions?: outputs.SecurityMonitoringRuleOptionsImpossibleTravelOptions; /** * Once a signal is generated, the signal will remain "open" if a case is matched at least once within this keep alive window (in seconds). Valid values are `0`, `60`, `300`, `600`, `900`, `1800`, `3600`, `7200`, `10800`, `21600`, `43200`, `86400`. Defaults to `3600`. */ keepAlive: number; /** * A signal will "close" regardless of the query being matched once the time exceeds the maximum duration (in seconds). This time is calculated from the first seen timestamp. Valid values are `0`, `60`, `300`, `600`, `900`, `1800`, `3600`, `7200`, `10800`, `21600`, `43200`, `86400`. */ maxSignalDuration: number; /** * New value rules specific options. */ newValueOptions?: outputs.SecurityMonitoringRuleOptionsNewValueOptions; /** * Options for rules using the sequence detection method. */ sequenceDetectionOptions?: outputs.SecurityMonitoringRuleOptionsSequenceDetectionOptions; /** * Options for rules using the third-party detection method. */ thirdPartyRuleOptions?: outputs.SecurityMonitoringRuleOptionsThirdPartyRuleOptions; } export interface SecurityMonitoringRuleOptionsAnomalyDetectionOptions { /** * Duration in seconds of the time buckets used to aggregate events matched by the rule. Valid values are 300, 600, 900, 1800, 3600, 10800. Valid values are `300`, `600`, `900`, `1800`, `3600`, `10800`. */ bucketDuration: number; /** * An optional parameter that sets how permissive anomaly detection is. Higher values require higher deviations before triggering a signal. Valid values are 1, 2, 3, 4, 5. Valid values are `1`, `2`, `3`, `4`, `5`. */ detectionTolerance: number; /** * When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time. Defaults to `false`. */ instantaneousBaseline: boolean; /** * Learning duration in hours. Anomaly detection waits for at least this amount of historical data before it starts evaluating. Valid values are 1, 6, 12, 24, 48, 168, 336. Valid values are `1`, `6`, `12`, `24`, `48`, `168`, `336`. */ learningDuration: number; /** * An optional override baseline to apply while the rule is in the learning period. Value must be at least 0. */ learningPeriodBaseline?: number; } export interface SecurityMonitoringRuleOptionsImpossibleTravelOptions { /** * If true, signals are suppressed for the first 24 hours. During that time, Datadog learns the user's regular access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access. Defaults to `false`. */ baselineUserLocations: boolean; /** * The duration in days during which Datadog learns a user's access locations before generating signals. Only applicable when `baselineUserLocations` is `true`. Defaults to `1` if unset. . Value must be between 1 and 30. */ baselineUserLocationsDuration: number; } export interface SecurityMonitoringRuleOptionsNewValueOptions { /** * The duration in days after which a learned value is forgotten. Accepted values are between 1 and 30. Value must be between 1 and 30. */ forgetAfter: number; /** * When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time. Defaults to `false`. */ instantaneousBaseline: boolean; /** * The duration in days during which values are learned, and after which signals will be generated for values that weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. Accepted values are between 0 and 30. Value must be between 0 and 30. Defaults to `1`. */ learningDuration: number; /** * The learning method used to determine when signals should be generated for values that weren't learned. Valid values are `duration`, `threshold`. Defaults to `"duration"`. */ learningMethod: string; /** * A number of occurrences after which signals are generated for values that weren't learned. Valid values are `0`, `1`. Defaults to `0`. */ learningThreshold: number; } export interface SecurityMonitoringRuleOptionsSequenceDetectionOptions { /** * Edges of the step graph. */ stepTransitions?: outputs.SecurityMonitoringRuleOptionsSequenceDetectionOptionsStepTransition[]; /** * Sequence steps. */ steps?: outputs.SecurityMonitoringRuleOptionsSequenceDetectionOptionsStep[]; } export interface SecurityMonitoringRuleOptionsSequenceDetectionOptionsStep { /** * Condition for the step to match. */ condition: string; /** * Evaluation window for the step. Valid values are `0`, `60`, `300`, `600`, `900`, `1800`, `3600`, `7200`, `10800`, `21600`, `43200`, `86400`. */ evaluationWindow: number; /** * Unique name of the step. */ name: string; } export interface SecurityMonitoringRuleOptionsSequenceDetectionOptionsStepTransition { /** * Child step name. */ child: string; /** * Maximum time allowed to transition from parent to child. Valid values are `0`, `60`, `300`, `600`, `900`, `1800`, `3600`, `7200`, `10800`, `21600`, `43200`, `86400`. */ evaluationWindow: number; /** * Parent step name. */ parent: string; } export interface SecurityMonitoringRuleOptionsThirdPartyRuleOptions { /** * Notification targets for the default rule case, when none of the third-party cases match. */ defaultNotifications?: string[]; /** * Severity of the default rule case, when none of the third-party cases match. Valid values are `info`, `low`, `medium`, `high`, `critical`. */ defaultStatus: string; /** * Queries to be combined with third-party case queries. Each of them can have different group by fields, to aggregate differently based on the type of alert. */ rootQueries: outputs.SecurityMonitoringRuleOptionsThirdPartyRuleOptionsRootQuery[]; /** * A template for the signal title; if omitted, the title is generated based on the case name. */ signalTitleTemplate?: string; } export interface SecurityMonitoringRuleOptionsThirdPartyRuleOptionsRootQuery { /** * Fields to group by. If empty, each log triggers a signal. */ groupByFields: string[]; /** * Query to filter logs. */ query: string; } export interface SecurityMonitoringRuleQuery { /** * **Deprecated**. It won't be applied anymore. * * @deprecated `agentRule` has been deprecated in favor of new Agent Rule resource. */ agentRules?: outputs.SecurityMonitoringRuleQueryAgentRule[]; /** * The aggregation type. For Signal Correlation rules, it must be event_count. Valid values are `count`, `cardinality`, `sum`, `max`, `newValue`, `geoData`, `eventCount`, `none`. Defaults to `"count"`. */ aggregation: string; /** * Source of events. Valid values are `logs`, `audit`, `appSecSpans`, `spans`, `securityRuntime`, `network`, `events`, `securitySignals`. Defaults to `"logs"`. */ dataSource: string; /** * Field for which the cardinality is measured. Sent as an array. */ distinctFields?: string[]; /** * Fields to group by. */ groupByFields?: string[]; /** * When false, events without a group-by value are ignored by the rule. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values. Defaults to `false`. */ hasOptionalGroupByFields: boolean; /** * List of indexes to run the query on when the data source is `logs`. Supports only one element. Used only for scheduled rules (in other words, when `schedulingOptions` is defined). */ indexes?: string[]; /** * The target field to aggregate over when using the `sum`, `max`, or `geoData` aggregations. * * @deprecated Configure `metrics` instead. This attribute will be removed in the next major version of the provider. */ metric?: string; /** * Group of target fields to aggregate over when using the `sum`, `max`, `geoData`, or `newValue` aggregations. The `sum`, `max`, and `geoData` aggregations only accept one value in this list, whereas the `newValue` aggregation accepts up to five values. */ metrics: string[]; /** * Name of the query. Not compatible with `newValue` aggregations. */ name?: string; /** * Query to run on logs. */ query: string; } export interface SecurityMonitoringRuleQueryAgentRule { /** * **Deprecated**. It won't be applied anymore. */ agentRuleId: string; /** * **Deprecated**. It won't be applied anymore. */ expression: string; } export interface SecurityMonitoringRuleReferenceTable { /** * Whether to include or exclude logs that match the reference table. */ checkPresence: boolean; /** * The name of the column in the reference table. String length must be at least 1. */ columnName: string; /** * The field in the log that should be matched against the reference table. String length must be at least 1. */ logFieldPath: string; /** * The name of the query to filter. String length must be at least 1. */ ruleQueryName: string; /** * The name of the reference table. String length must be at least 1. */ tableName: string; } export interface SecurityMonitoringRuleSchedulingOptions { /** * Schedule for the rule queries, written in RRULE syntax. See [RFC](https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html) for syntax reference. */ rrule: string; /** * Start date for the schedule, in ISO 8601 format without timezone. */ start: string; /** * Time zone of the start date, in the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format. */ timezone: string; } export interface SecurityMonitoringRuleSignalQuery { /** * The aggregation type. For Signal Correlation rules, it must be event_count. Valid values are `count`, `cardinality`, `sum`, `max`, `newValue`, `geoData`, `eventCount`, `none`. Defaults to `"eventCount"`. */ aggregation: string; /** * Fields to correlate by. */ correlatedByFields?: string[]; /** * Index of the rule query used to retrieve the correlated field. An empty string applies correlation on the non-projected per query attributes of the rule. Defaults to `""`. */ correlatedQueryIndex: string; /** * Default Rule ID of the signal to correlate. This value is READ-ONLY. */ defaultRuleId: string; /** * Name of the query. Not compatible with `newValue` aggregations. */ name?: string; /** * Rule ID of the signal to correlate. */ ruleId: string; } export interface SecurityMonitoringRuleThirdPartyCase { /** * Name of the case. Defaults to `""`. */ name: string; /** * Notification targets for each rule case. */ notifications: string[]; /** * A query to associate a third-party event to this case. */ query?: string; /** * Severity of the Security Signal. Valid values are `info`, `low`, `medium`, `high`, `critical`. */ status: string; } export interface SecurityNotificationRuleSelectors { /** * Comprises one or several key:value pairs for filtering security issues based on tags and attributes. Defaults to `""`. */ query: string; /** * Specifies security rule types for filtering signals and vulnerabilities that generate notifications. */ ruleTypes: string[]; /** * The security rules severities to consider. */ severities: string[]; /** * The type of security issues the rule applies to. Use `securitySignals` for rules based on security signals and `securityFindings` for those based on vulnerabilities. */ triggerSource: string; } export interface SensitiveDataScannerGroupFilter { /** * Query to filter the events. */ query: string; } export interface SensitiveDataScannerGroupSampling { /** * Product that the sampling rate applies to. Valid values are `logs`, `rum`, `events`, `apm`. */ product: string; /** * Percentage rate at which data for the product type is scanned. */ rate: number; } export interface SensitiveDataScannerRuleIncludedKeywordConfiguration { /** * Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive). */ characterCount: number; /** * Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30. */ keywords: string[]; } export interface SensitiveDataScannerRuleSuppressions { /** * Any match that ends with a value in this list will be suppressed. */ endsWiths?: string[]; /** * Any match that appears in this list will be suppressed. */ exactMatches?: string[]; /** * Any match that starts with a value in this list will be suppressed. */ startsWiths?: string[]; } export interface SensitiveDataScannerRuleTextReplacement { /** * Required if type == 'partial*replacement*from*beginning' or 'partial*replacement*from*end'. It must be > 0. */ numberOfChars?: number; /** * Required if type == 'replacement_string'. */ replacementString?: string; /** * Only valid when type == `replacementString`. When enabled, matches can be unmasked in logs by users with ‘Data Scanner Unmask’ permission. As a security best practice, avoid masking for highly-sensitive, long-lived data. */ shouldSaveMatch?: boolean; /** * Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacement*string means that one can chose a text to replace the data. partial*replacement*from*beginning allows a user to partially replace the data from the beginning, and partial*replacement*from_end on the other hand, allows to replace data from the end. Valid values are `none`, `hash`, `replacementString`, `partialReplacementFromBeginning`, `partialReplacementFromEnd`. */ type: string; } export interface ServiceLevelObjectiveQuery { /** * The sum of the `total` events. */ denominator: string; /** * The sum of all the `good` events. */ numerator: string; } export interface ServiceLevelObjectiveSliSpecification { /** * A count-based (metric) SLI specification. Composed of a good events formula, either a total events formula or a bad events formula (but not both), and the underlying metric queries. */ count?: outputs.ServiceLevelObjectiveSliSpecificationCount; /** * The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold. Optionally, a fourth part, the query interval, can be provided. */ timeSlice?: outputs.ServiceLevelObjectiveSliSpecificationTimeSlice; } export interface ServiceLevelObjectiveSliSpecificationCount { /** * The formula that specifies how to compute the bad events. Mutually exclusive with `totalEventsFormula`. */ badEventsFormula?: string; /** * The formula that specifies how to compute the good events. */ goodEventsFormula: string; /** * A list of data-source-specific queries that are referenced in the formulas. */ queries: outputs.ServiceLevelObjectiveSliSpecificationCountQuery[]; /** * The formula that specifies how to compute the total events. Mutually exclusive with `badEventsFormula`. */ totalEventsFormula?: string; } export interface ServiceLevelObjectiveSliSpecificationCountQuery { /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.ServiceLevelObjectiveSliSpecificationCountQueryMetricQuery; } export interface ServiceLevelObjectiveSliSpecificationCountQueryMetricQuery { /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; } export interface ServiceLevelObjectiveSliSpecificationTimeSlice { /** * The comparator used to compare the SLI value to the threshold. Valid values are `>`, `>=`, `<`, `<=`. */ comparator: string; /** * A timeseries query, containing named data-source-specific queries and a formula involving the named queries. */ query: outputs.ServiceLevelObjectiveSliSpecificationTimeSliceQuery; /** * The interval used when querying data, which defines the size of a time slice. Valid values are `60`, `300`. Defaults to `300`. */ queryIntervalSeconds?: number; /** * The threshold value to which each SLI value will be compared. */ threshold: number; } export interface ServiceLevelObjectiveSliSpecificationTimeSliceQuery { /** * A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO. */ formula: outputs.ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula; /** * A list of data-source-specific queries that are in the formula. */ queries: outputs.ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery[]; } export interface ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula { /** * The formula string, which is an expression involving named queries. */ formulaExpression: string; } export interface ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery { /** * A timeseries formula and functions metrics query. */ metricQuery?: outputs.ServiceLevelObjectiveSliSpecificationTimeSliceQueryQueryMetricQuery; } export interface ServiceLevelObjectiveSliSpecificationTimeSliceQueryQueryMetricQuery { /** * The data source for metrics queries. Defaults to `"metrics"`. */ dataSource?: string; /** * The name of the query for use in formulas. */ name: string; /** * The metrics query definition. */ query: string; } export interface ServiceLevelObjectiveThreshold { /** * The objective's target in `(0,100)`. */ target: number; /** * A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. `98.00`). */ targetDisplay: string; /** * The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are `7d`, `30d`, `90d`, `custom`. */ timeframe: string; /** * The objective's warning value in `(0,100)`. This must be greater than the target value. */ warning?: number; /** * A string representation of the warning target (see the description of the targetDisplay field for details). */ warningDisplay: string; } export interface SpansMetricCompute { /** * The type of aggregation to use. This field can't be updated after creation. */ aggregationType: string; /** * Toggle to include or exclude percentile aggregations for distribution metrics. Only present when the `aggregationType` is `distribution`. */ includePercentiles: boolean; /** * The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution"). This field can't be updated after creation. */ path?: string; } export interface SpansMetricFilter { /** * The search query - following the span search syntax. Defaults to `"*"`. */ query: string; } export interface SpansMetricGroupBy { /** * The path to the value the span-based metric will be aggregated over. */ path: string; /** * Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. */ tagName: string; } export interface StatusPageComponentComponent { /** * The ID of the sub-component. */ id: string; /** * The name of the sub-component. */ name: string; /** * The position of the sub-component within the group. Either every sub-component in the group must set this, or none of them should - if all are omitted, position is inferred from declaration order for a new group, or defaults to `0` (i.e. the front of the group, shifting existing siblings back) when adding a single new child to an existing group. */ position: number; /** * The current status of the sub-component. */ status: string; /** * The type of the sub-component. Valid value is: component. */ type: string; } export interface StatusPageDegradationTemplateComponentsAffected { /** * The ID of the affected component. */ id: string; /** * The name of the affected component. */ name: string; /** * The pre-filled status for this component. Valid values are: operational, degraded, partial*outage, major*outage. */ status: string; } export interface StatusPageDegradationTemplateUpdate { /** * The pre-filled message for this update. */ message?: string; /** * The pre-filled degradation status for this update. Valid values are: investigating, identified, monitoring, resolved. */ status: string; } export interface SyntheticsGlobalVariableOptions { /** * Parameters needed for MFA/TOTP. */ totpParameters?: outputs.SyntheticsGlobalVariableOptionsTotpParameters; } export interface SyntheticsGlobalVariableOptionsTotpParameters { /** * Number of digits for the OTP. Value must be between 4 and 10. */ digits: number; /** * Interval for which to refresh the token (in seconds). Value must be between 0 and 999. */ refreshInterval: number; } export interface SyntheticsGlobalVariableParseTestOptions { /** * Required when type = `httpHeader`. Defines the header to use to extract the value */ field?: string; /** * When type is `localVariable`, name of the local variable to use to extract the value. */ localVariableName?: string; parser?: outputs.SyntheticsGlobalVariableParseTestOptionsParser; /** * Defines the source to use to extract the value. Valid values are `httpBody`, `httpHeader`, `httpStatusCode`, `localVariable`. */ type: string; } export interface SyntheticsGlobalVariableParseTestOptionsParser { /** * Type of parser to extract the value. Valid values are `raw`, `jsonPath`, `regex`, `xPath`. */ type: string; /** * Value for the parser to use, required for type `jsonPath` or `regex`. */ value?: string; } export interface SyntheticsPrivateLocationMetadata { /** * A set of role identifiers pulled from the Roles API to restrict read and write access. **Deprecated.** This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles?: string[]; } export interface SyntheticsSuiteOption { /** * Alerting threshold for the suite. Value must be between 0.000000 and 1.000000. */ alertingThreshold: number; } export interface SyntheticsSuiteTest { /** * Alerting criticality for the test. Valid values are `ignore`, `critical`. */ alertingCriticality?: string; /** * Public ID of the test. */ publicId: string; } export interface SyntheticsTestApiStep { /** * Determines whether or not to continue with test if this step fails. */ allowFailure?: boolean; /** * Assertions used for the test. Multiple `assertion` blocks are allowed with the structure below. */ assertions?: outputs.SyntheticsTestApiStepAssertion[]; /** * Determines whether or not to exit the test if the step succeeds. */ exitIfSucceed?: boolean; /** * Values to parse and save as variables from the response. */ extractedValues?: outputs.SyntheticsTestApiStepExtractedValue[]; /** * Generate variables using JavaScript. */ extractedValuesFromScript?: string; /** * ID of the step. */ id: string; /** * Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`. */ isCritical?: boolean; /** * The name of the step. */ name: string; /** * The HTTP basic authentication credentials. Exactly one nested block is allowed with the structure below. */ requestBasicauth?: outputs.SyntheticsTestApiStepRequestBasicauth; /** * Client certificate to use when performing the test request. Exactly one nested block is allowed with the structure below. */ requestClientCertificate?: outputs.SyntheticsTestApiStepRequestClientCertificate; /** * The request for the API step. */ requestDefinition?: outputs.SyntheticsTestApiStepRequestDefinition; /** * Files to be used as part of the request in the test. */ requestFiles?: outputs.SyntheticsTestApiStepRequestFile[]; /** * Header name and value map. */ requestHeaders?: { [key: string]: string; }; /** * Metadata to include when performing the gRPC request. */ requestMetadata?: { [key: string]: string; }; /** * The proxy to perform the test. */ requestProxy?: outputs.SyntheticsTestApiStepRequestProxy; /** * Query arguments name and value map. */ requestQuery?: { [key: string]: string; }; retry?: outputs.SyntheticsTestApiStepRetry; /** * Public ID of the test to be played as part of a `playSubTest` step type. */ subtestPublicId?: string; /** * The subtype of the Synthetic multistep API test step. Valid values are `http`, `grpc`, `ssl`, `dns`, `tcp`, `udp`, `icmp`, `websocket`, `mcp`, `wait`, `playSubTest`. Defaults to `"http"`. */ subtype?: string; /** * The time to wait in seconds. Minimum value: 0. Maximum value: 180. */ value?: number; } export interface SyntheticsTestApiStepAssertion { /** * If assertion type is `javascript`, this is the JavaScript code that performs the assertions. */ code?: string; /** * Assertion operator. **Note:** Only some combinations of `type` and `operator` are valid. Refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-an-api-test). Valid values are `contains`, `doesNotContain`, `is`, `isNot`, `lessThan`, `lessThanOrEqual`, `moreThan`, `moreThanOrEqual`, `matches`, `doesNotMatch`, `validates`, `isInMoreThan`, `isInLessThan`, `doesNotExist`, `isUndefined`, `validatesJSONPath`, `validatesJSONSchema`, `validatesXPath`, `md5`, `sha1`, `sha256`, `is`, `isNot`, `lessThan`, `lessThanOrEqual`, `moreThan`, `moreThanOrEqual`. */ operator?: string; /** * If assertion type is `header` or `grpcMetadata`, this is the header name. For other assertion types, this is an aggregation property: `avg`, `min`, `max`, or `stddev`. */ property?: string; /** * Expected value. **Note:** Depends on the assertion type. Refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-an-api-test). */ target?: string; /** * Expected MCP server capabilities if `type` is `mcpServerCapabilities`. Exactly one nested block is allowed with the structure below. */ targetMcpCapabilities?: outputs.SyntheticsTestApiStepAssertionTargetMcpCapabilities; /** * Expected structure if `operator` is `validatesJSONPath`. Exactly one nested block is allowed with the structure below. */ targetjsonpath?: outputs.SyntheticsTestApiStepAssertionTargetjsonpath; /** * Expected structure if `operator` is `validatesJSONSchema`. Exactly one nested block is allowed with the structure below. */ targetjsonschema?: outputs.SyntheticsTestApiStepAssertionTargetjsonschema; /** * Expected structure if `operator` is `validatesXPath`. Exactly one nested block is allowed with the structure below. */ targetxpath?: outputs.SyntheticsTestApiStepAssertionTargetxpath; /** * Timings scope for response time assertions. Valid values are `all`, `withoutDNS`. */ timingsScope?: string; /** * Type of assertion. **Note:** Only some combinations of `type` and `operator` are valid. For API tests, refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-an-api-test). For Network Path tests, refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-a-network-path-test). Valid values are `body`, `header`, `statusCode`, `certificate`, `responseTime`, `property`, `recordEvery`, `recordSome`, `tlsVersion`, `minTlsVersion`, `latency`, `packetLossPercentage`, `packetsReceived`, `networkHop`, `receivedMessage`, `grpcHealthcheckStatus`, `grpcMetadata`, `grpcProto`, `connection`, `multiNetworkHop`, `jitter`, `mcpToolNameLength`, `mcpToolCount`, `bodyHash`, `javascript`, `mcpRespectsSpecification`, `mcpServerCapabilities`. */ type: string; } export interface SyntheticsTestApiStepAssertionTargetMcpCapabilities { /** * List of MCP server capabilities to assert against. */ capabilities: string[]; } export interface SyntheticsTestApiStepAssertionTargetjsonpath { /** * The element from the list of results to assert on. Select from `firstElementMatches` (the first element in the list), `everyElementMatches` (every element in the list), `atLeastOneElementMatches` (at least one element in the list), or `serializationMatches` (the serialized value of the list). Defaults to `"firstElementMatches"`. */ elementsoperator?: string; /** * The JSON path to assert. */ jsonpath: string; /** * The specific operator to use on the path. */ operator: string; /** * Expected matching value. */ targetvalue?: string; } export interface SyntheticsTestApiStepAssertionTargetjsonschema { /** * The JSON Schema to validate the body against. */ jsonschema: string; /** * The meta schema to use for the JSON Schema. Defaults to `"draft-07"`. */ metaschema?: string; } export interface SyntheticsTestApiStepAssertionTargetxpath { /** * The specific operator to use on the path. */ operator: string; /** * Expected matching value. */ targetvalue?: string; /** * The xpath to assert. */ xpath: string; } export interface SyntheticsTestApiStepExtractedValue { /** * When type is `httpHeader` or `grpcMetadata`, name of the header or metadatum to extract. */ field?: string; name: string; parser: outputs.SyntheticsTestApiStepExtractedValueParser; /** * Determines whether or not the extracted value will be obfuscated. */ secure?: boolean; /** * Property of the Synthetics Test Response to use for the variable. Valid values are `grpcMessage`, `grpcMetadata`, `httpBody`, `httpHeader`, `httpStatusCode`. */ type: string; } export interface SyntheticsTestApiStepExtractedValueParser { /** * Type of parser for a Synthetics global variable from a synthetics test. Valid values are `raw`, `jsonPath`, `regex`, `xPath`. */ type: string; /** * Regex or JSON path used for the parser. Not used with type `raw`. */ value?: string; } export interface SyntheticsTestApiStepRequestBasicauth { /** * Access key for `SIGV4` authentication. */ accessKey?: string; /** * Access token url for `oauth-client` or `oauth-rop` authentication. */ accessTokenUrl?: string; /** * Whether to inject the `exp` (expiration) claim automatically, for `jwt` authentication. */ addClaimsExp?: boolean; /** * Whether to inject the `iat` (issued at) claim automatically, for `jwt` authentication. */ addClaimsIat?: boolean; /** * Algorithm to use for `jwt` authentication. Valid values are `HS256`, `RS256`, `ES256`. */ algorithm?: string; /** * Audience for `oauth-client` or `oauth-rop` authentication. Defaults to `""`. */ audience?: string; /** * Client ID for `oauth-client` or `oauth-rop` authentication. */ clientId?: string; /** * Client secret for `oauth-client` or `oauth-rop` authentication. */ clientSecret?: string; /** * Domain for `ntlm` authentication. */ domain?: string; /** * Token time-to-live in seconds, for `jwt` authentication. */ expiresIn?: number; /** * Custom JWT header as a JSON string, for `jwt` authentication. */ header?: string; /** * Password for authentication. */ password?: string; /** * JWT claims as a JSON string, for `jwt` authentication. */ payload?: string; /** * Region for `SIGV4` authentication. */ region?: string; /** * Resource for `oauth-client` or `oauth-rop` authentication. Defaults to `""`. */ resource?: string; /** * Scope for `oauth-client` or `oauth-rop` authentication. Defaults to `""`. */ scope?: string; /** * Signing key for `jwt` authentication. Use the shared secret for `HS256` or the private key (PEM format) for `RS256` and `ES256`. */ secret?: string; /** * Secret key for `SIGV4` authentication. */ secretKey?: string; /** * Service name for `SIGV4` authentication. */ serviceName?: string; /** * Session token for `SIGV4` authentication. */ sessionToken?: string; /** * Token API Authentication for `oauth-client` or `oauth-rop` authentication. Valid values are `header`, `body`. */ tokenApiAuthentication?: string; /** * Prefix added before the token in the `Authorization` header for `jwt` authentication. Defaults to `Bearer`. */ tokenPrefix?: string; /** * Type of basic authentication to use when performing the test. Defaults to `"web"`. */ type?: string; /** * Username for authentication. */ username?: string; /** * Workstation for `ntlm` authentication. */ workstation?: string; } export interface SyntheticsTestApiStepRequestClientCertificate { cert: outputs.SyntheticsTestApiStepRequestClientCertificateCert; key: outputs.SyntheticsTestApiStepRequestClientCertificateKey; } export interface SyntheticsTestApiStepRequestClientCertificateCert { /** * Content of the certificate. */ content?: string; /** * File name for the certificate. Defaults to `"Provided in Terraform config"`. */ filename?: string; } export interface SyntheticsTestApiStepRequestClientCertificateKey { /** * Content of the certificate. */ content?: string; /** * File name for the certificate. Defaults to `"Provided in Terraform config"`. */ filename?: string; } export interface SyntheticsTestApiStepRequestDefinition { /** * For SSL tests, whether or not the test should allow self signed certificates. */ acceptSelfSigned?: boolean; /** * Allows loading insecure content for a request in an API test or in a multistep API test step. */ allowInsecure?: boolean; /** * The request body. */ body?: string; /** * Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`, `application/octet-stream`, `multipart/form-data`. */ bodyType?: string; /** * The type of gRPC call to perform, or the MCP step call (`init`, `toolList`, `toolCall`). Valid values are `healthcheck`, `unary`, `init`, `toolList`, `toolCall`. */ callType?: string; /** * By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`. */ certificateDomains?: string[]; /** * For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP. */ checkCertificateRevocation?: boolean; /** * For Network Path tests, an optional label displayed for the destination host in the Network Path visualization. */ destinationService?: string; /** * For SSL tests, whether or not the test should disable fetching intermediate certificates from AIA */ disableAiaIntermediateFetching?: boolean; /** * DNS server to use for DNS tests (`subtype = "dns"`). */ dnsServer?: string; /** * DNS server port to use for DNS tests. */ dnsServerPort?: string; /** * For Network Path tests, the number of packets sent to probe the destination to measure packet loss, latency, and jitter. */ e2eQueries?: number; /** * Determines whether or not the API HTTP test should follow redirects. */ followRedirects?: boolean; /** * Form data to be sent when `bodyType` is `multipart/form-data`. */ form?: { [key: string]: string; }; /** * Host name to perform the test with. */ host?: string; /** * HTTP version to use for an HTTP request in an API test or step. Valid values are `http1`, `http2`, `any`. Defaults to `"any"`. */ httpVersion?: string; /** * For Websocket tests, whether the message is treated as a base64-encoded string in the server. */ isMessageBase64Encoded?: boolean; /** * For Network Path tests, the maximum time-to-live (max number of hops) used in outgoing probe packets. */ maxTtl?: number; /** * For MCP API steps, the MCP protocol version used by the request. */ mcpProtocolVersion?: string; /** * For gRPC, UDP, and Websocket tests, message to send with the request. */ message?: string; /** * Either the HTTP method/verb to use or a gRPC method available on the service set in the `service` field. Required if `subtype` is `HTTP` or if `subtype` is `grpc` and `callType` is `unary`. */ method?: string; /** * Determines whether or not to save the response body. */ noSavingResponseBody?: boolean; /** * Number of pings to use per test for ICMP tests (`subtype = "icmp"`) between 0 and 10. */ numberOfPackets?: number; /** * Persist cookies across redirects. */ persistCookies?: boolean; /** * The content of a proto file as a string. */ plainProtoFile?: string; /** * Port to use when performing the test. */ port?: string; /** * A protobuf JSON descriptor. **Deprecated.** Use `plainProtoFile` instead. * * @deprecated Use `plainProtoFile` instead. */ protoJsonDescriptor?: string; /** * For SSL tests, it specifies on which server you want to initiate the TLS handshake, allowing the server to present one of multiple possible certificates on the same IP address and TCP port number. */ servername?: string; /** * The gRPC service on which you want to perform the gRPC call. */ service?: string; /** * This will turn on a traceroute probe to discover all gateways along the path to the host destination. For ICMP tests (`subtype = "icmp"`). */ shouldTrackHops?: boolean; /** * For Network Path tests, an optional label displayed for the source host in the Network Path visualization */ sourceService?: string; /** * For TCP Network Path tests, the TCP traceroute strategy. */ tcpMethod?: string; /** * Timeout in seconds for the test. */ timeout?: number; /** * For MCP API steps, the JSON-encoded arguments to pass to the tool when `callType` is `toolCall`. */ toolArgs?: string; /** * For MCP API steps, the name of the tool to call. Required when `callType` is `toolCall`. */ toolName?: string; /** * For Network Path tests, the number of traceroute path tracings. */ tracerouteQueries?: number; /** * The URL to send the request to. */ url?: string; } export interface SyntheticsTestApiStepRequestFile { /** * Bucket key of the file. */ bucketKey: string; /** * Content of the file. */ content?: string; /** * Encoding of the file content. Must be `base64` when content contains base64-encoded data. */ encoding?: string; /** * Name of the file. */ name: string; /** * Original name of the file. */ originalFileName?: string; /** * Size of the file. */ size: number; /** * Type of the file. */ type: string; } export interface SyntheticsTestApiStepRequestProxy { /** * Header name and value map. */ headers?: { [key: string]: string; }; /** * URL of the proxy to perform the test. */ url: string; } export interface SyntheticsTestApiStepRetry { /** * Number of retries needed to consider a location as failed before sending a notification alert. Maximum value: `3` for `api` tests, `2` for `browser` and `mobile` tests. Defaults to `0`. */ count?: number; /** * Interval between a failed test and the next retry in milliseconds. Maximum value: `5000`. Defaults to `300`. */ interval?: number; } export interface SyntheticsTestAssertion { /** * If assertion type is `javascript`, this is the JavaScript code that performs the assertions. */ code?: string; /** * Assertion operator. **Note:** Only some combinations of `type` and `operator` are valid. Refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-an-api-test). Valid values are `contains`, `doesNotContain`, `is`, `isNot`, `lessThan`, `lessThanOrEqual`, `moreThan`, `moreThanOrEqual`, `matches`, `doesNotMatch`, `validates`, `isInMoreThan`, `isInLessThan`, `doesNotExist`, `isUndefined`, `validatesJSONPath`, `validatesJSONSchema`, `validatesXPath`, `md5`, `sha1`, `sha256`, `is`, `isNot`, `lessThan`, `lessThanOrEqual`, `moreThan`, `moreThanOrEqual`. */ operator?: string; /** * If assertion type is `header` or `grpcMetadata`, this is the header name. For other assertion types, this is an aggregation property: `avg`, `min`, `max`, or `stddev`. */ property?: string; /** * Expected value. **Note:** Depends on the assertion type. Refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-an-api-test). */ target?: string; /** * Expected MCP server capabilities if `type` is `mcpServerCapabilities`. Exactly one nested block is allowed with the structure below. */ targetMcpCapabilities?: outputs.SyntheticsTestAssertionTargetMcpCapabilities; /** * Expected structure if `operator` is `validatesJSONPath`. Exactly one nested block is allowed with the structure below. */ targetjsonpath?: outputs.SyntheticsTestAssertionTargetjsonpath; /** * Expected structure if `operator` is `validatesJSONSchema`. Exactly one nested block is allowed with the structure below. */ targetjsonschema?: outputs.SyntheticsTestAssertionTargetjsonschema; /** * Expected structure if `operator` is `validatesXPath`. Exactly one nested block is allowed with the structure below. */ targetxpath?: outputs.SyntheticsTestAssertionTargetxpath; /** * Timings scope for response time assertions. Valid values are `all`, `withoutDNS`. */ timingsScope?: string; /** * Type of assertion. **Note:** Only some combinations of `type` and `operator` are valid. For API tests, refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-an-api-test). For Network Path tests, refer to `config.assertions` in the [Datadog API reference](https://docs.datadoghq.com/api/latest/synthetics/#create-a-network-path-test). Valid values are `body`, `header`, `statusCode`, `certificate`, `responseTime`, `property`, `recordEvery`, `recordSome`, `tlsVersion`, `minTlsVersion`, `latency`, `packetLossPercentage`, `packetsReceived`, `networkHop`, `receivedMessage`, `grpcHealthcheckStatus`, `grpcMetadata`, `grpcProto`, `connection`, `multiNetworkHop`, `jitter`, `mcpToolNameLength`, `mcpToolCount`, `bodyHash`, `javascript`, `mcpRespectsSpecification`, `mcpServerCapabilities`. */ type: string; } export interface SyntheticsTestAssertionTargetMcpCapabilities { /** * List of MCP server capabilities to assert against. */ capabilities: string[]; } export interface SyntheticsTestAssertionTargetjsonpath { /** * The element from the list of results to assert on. Select from `firstElementMatches` (the first element in the list), `everyElementMatches` (every element in the list), `atLeastOneElementMatches` (at least one element in the list), or `serializationMatches` (the serialized value of the list). Defaults to `"firstElementMatches"`. */ elementsoperator?: string; /** * The JSON path to assert. */ jsonpath: string; /** * The specific operator to use on the path. */ operator: string; /** * Expected matching value. */ targetvalue?: string; } export interface SyntheticsTestAssertionTargetjsonschema { /** * The JSON Schema to validate the body against. */ jsonschema: string; /** * The meta schema to use for the JSON Schema. Defaults to `"draft-07"`. */ metaschema?: string; } export interface SyntheticsTestAssertionTargetxpath { /** * The specific operator to use on the path. */ operator: string; /** * Expected matching value. */ targetvalue?: string; /** * The xpath to assert. */ xpath: string; } export interface SyntheticsTestBrowserStep { /** * Determines if the step should be allowed to fail. */ allowFailure?: boolean; /** * Determines whether or not to always execute this step even if the previous step failed or was skipped. */ alwaysExecute?: boolean; /** * Determines whether or not to exit the test if the step succeeds. */ exitIfSucceed?: boolean; /** * Force update of the "element" parameter for the step */ forceElementUpdate?: boolean; /** * Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`. */ isCritical?: boolean; /** * A unique identifier used to track steps after reordering. */ localKey?: string; /** * Name of the step. */ name: string; /** * Prevents saving screenshots of the step. */ noScreenshot?: boolean; /** * Parameters for the step. */ params: outputs.SyntheticsTestBrowserStepParams; /** * The identifier of the step on the backend. */ publicId: string; /** * Used to override the default timeout of a step. */ timeout?: number; /** * Type of the step. Valid values are `assertCurrentUrl`, `assertElementAttribute`, `assertElementContent`, `assertElementPresent`, `assertEmail`, `assertFileDownload`, `assertFromJavascript`, `assertPageContains`, `assertPageLacks`, `assertRequests`, `click`, `drag`, `drop`, `extractFromJavascript`, `extractFromEmailBody`, `extractVariable`, `goToEmailLink`, `goToUrl`, `goToUrlAndMeasureTti`, `hover`, `playSubTest`, `pressKey`, `refresh`, `runApiTest`, `scroll`, `selectOption`, `typeText`, `uploadFiles`, `wait`. */ type: string; } export interface SyntheticsTestBrowserStepParams { /** * Whether to append the `value` to existing text input content for a "typeText" step. By default, content is cleared before text input. */ appendToContent?: boolean; /** * Name of the attribute to use for an "assert attribute" step. */ attribute?: string; /** * Check type to use for an assertion step. Valid values are `equals`, `notEquals`, `contains`, `notContains`, `startsWith`, `notStartsWith`, `greater`, `lower`, `greaterEquals`, `lowerEquals`, `matchRegex`, `between`, `isEmpty`, `notIsEmpty`. */ check?: string; /** * Type of click to use for a "click" step. */ clickType?: string; /** * Whether to use `element.click()` for a "click" step. This is a more reliable way to interact with elements but does not emulate a real user interaction. */ clickWithJavascript?: boolean; /** * Javascript code to use for the step. */ code?: string; /** * Delay between each key stroke for a "type test" step. */ delay?: number; /** * Options for a "drag" or "drop" step. */ dragDropOptions?: outputs.SyntheticsTestBrowserStepParamsDragDropOptions; /** * Element to use for the step, JSON encoded string. Refer to the examples for a usage example showing the schema. */ element?: string; /** * Custom user selector to use for the step. */ elementUserLocator?: outputs.SyntheticsTestBrowserStepParamsElementUserLocator; /** * Details of the email for an "assert email" step, JSON encoded string. */ email?: string; /** * JSON encoded string used for an "assert download" step. Refer to the examples for a usage example showing the schema. */ file?: string; /** * Details of the files for an "upload files" step, JSON encoded string. Refer to the examples for a usage example showing the schema. */ files?: string; /** * Modifier to use for a "press key" step. */ modifiers?: string[]; /** * Pattern to use for an "extractFromEmailBody" step. */ pattern?: outputs.SyntheticsTestBrowserStepParamsPattern; /** * ID of the tab to play the subtest. */ playingTabId?: string; /** * Request for an API step. */ request?: string; /** * Details of the requests for an "assert request" step, JSON encoded string. Refer to the examples for a usage example showing the schema. */ requests?: string; /** * ID of the Synthetics test to use as subtest. */ subtestPublicId?: string; /** * Value of the step. */ value?: string; /** * Details of the variable to extract. */ variable?: outputs.SyntheticsTestBrowserStepParamsVariable; /** * For "file upload" steps. */ withClick?: boolean; /** * X coordinates for a "scroll step". */ x?: number; /** * Y coordinates for a "scroll step". */ y?: number; } export interface SyntheticsTestBrowserStepParamsDragDropOptions { /** * Delay in milliseconds before performing the action (0–9999). */ delay?: number; /** * Pixel offset from the center of the target element. */ offset?: outputs.SyntheticsTestBrowserStepParamsDragDropOptionsOffset; } export interface SyntheticsTestBrowserStepParamsDragDropOptionsOffset { /** * Horizontal offset in pixels. */ x?: number; /** * Vertical offset in pixels. */ y?: number; } export interface SyntheticsTestBrowserStepParamsElementUserLocator { /** * Defaults to `false`. */ failTestOnCannotLocate?: boolean; value: outputs.SyntheticsTestBrowserStepParamsElementUserLocatorValue; } export interface SyntheticsTestBrowserStepParamsElementUserLocatorValue { /** * Defaults to `"css"`. */ type?: string; value: string; } export interface SyntheticsTestBrowserStepParamsPattern { /** * Type of pattern to use for the step. Valid values are `regex`, `xPath`. */ type?: string; /** * Pattern to use for the step. */ value?: string; } export interface SyntheticsTestBrowserStepParamsVariable { /** * Example of the extracted variable. Defaults to `""`. */ example?: string; /** * Name of the extracted variable. */ name?: string; /** * Whether the value of this variable will be obfuscated in test results. Defaults to `false`. */ secure?: boolean; } export interface SyntheticsTestBrowserVariable { /** * Example for the variable. Defaults to `""`. */ example?: string; /** * ID of the global variable to use. This is actually only used (and required) in the case of using a variable of type `global`. */ id?: string; /** * Name of the variable. */ name: string; /** * Pattern of the variable. Defaults to `""`. */ pattern?: string; /** * Determines whether or not the browser test variable is obfuscated. Can only be used with a browser variable of type `text` */ secure?: boolean; /** * Type of browser test variable. Valid values are `element`, `email`, `global`, `text`. */ type: string; } export interface SyntheticsTestConfigVariable { /** * Example for the variable. This value is not returned by the API when `secure = true`. Avoid drift by only making updates to this value from within Terraform. */ example?: string; /** * When type = `global`, ID of the global variable to use. */ id?: string; /** * Name of the variable. */ name: string; /** * Pattern of the variable. This value is not returned by the API when `secure = true`. Avoid drift by only making updates to this value from within Terraform. */ pattern?: string; /** * Whether the value of this variable will be obfuscated in test results. Defaults to `false`. */ secure?: boolean; /** * Type of test configuration variable. Valid values are `global`, `text`, `email`. */ type: string; } export interface SyntheticsTestMobileOptionsList { allowApplicationCrash?: boolean; /** * Restriction policy bindings for the Synthetic mobile test. Should not be used in parallel with a `datadog.RestrictionPolicy` resource */ bindings?: outputs.SyntheticsTestMobileOptionsListBinding[]; /** * CI/CD options for a Synthetic test. */ ci?: outputs.SyntheticsTestMobileOptionsListCi; defaultStepTimeout?: number; deviceIds: string[]; disableAutoAcceptAlert?: boolean; /** * Minimum amount of time in failure required to trigger an alert (in seconds). Default is `0`. */ minFailureDuration?: number; mobileApplication: outputs.SyntheticsTestMobileOptionsListMobileApplication; /** * The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. */ monitorName?: string; monitorOptions?: outputs.SyntheticsTestMobileOptionsListMonitorOptions; monitorPriority?: number; /** * Prevents saving screenshots of the steps. */ noScreenshot?: boolean; /** * A list of role identifiers pulled from the Roles API to restrict read and write access. **Deprecated.** This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles?: string[]; retry?: outputs.SyntheticsTestMobileOptionsListRetry; /** * Object containing timeframes and timezone used for advanced scheduling. */ scheduling?: outputs.SyntheticsTestMobileOptionsListScheduling; /** * How often the test should run (in seconds). Valid range is `300-604800` for mobile tests. */ tickEvery: number; verbosity?: number; } export interface SyntheticsTestMobileOptionsListBinding { principals?: string[]; /** * Valid values are `editor`, `viewer`. */ relation?: string; } export interface SyntheticsTestMobileOptionsListCi { /** * Execution rule for a Synthetics test. Valid values are `blocking`, `nonBlocking`, `skipped`. */ executionRule: string; } export interface SyntheticsTestMobileOptionsListMobileApplication { applicationId: string; referenceId: string; /** * Valid values are `latest`, `version`. */ referenceType: string; } export interface SyntheticsTestMobileOptionsListMonitorOptions { /** * A message to include with a re-notification. */ escalationMessage?: string; /** * The name of the preset for the notification for the monitor. Valid values are `showAll`, `hideAll`, `hideQuery`, `hideHandles`, `hideQueryAndHandles`, `showOnlySnapshot`, `hideHandlesAndFooter`. */ notificationPresetName?: string; /** * Specify a renotification frequency in minutes. Values available by default are `0`, `10`, `20`, `30`, `40`, `50`, `60`, `90`, `120`, `180`, `240`, `300`, `360`, `720`, `1440`. Defaults to `0`. */ renotifyInterval?: number; /** * The number of times a monitor renotifies. It can only be set if `renotifyInterval` is set. */ renotifyOccurrences?: number; } export interface SyntheticsTestMobileOptionsListRetry { /** * Number of retries needed to consider a location as failed before sending a notification alert. Maximum value: `3` for `api` tests, `2` for `browser` and `mobile` tests. Defaults to `0`. */ count?: number; /** * Interval between a failed test and the next retry in milliseconds. Maximum value: `5000`. Defaults to `300`. */ interval?: number; } export interface SyntheticsTestMobileOptionsListScheduling { /** * Array containing objects describing the scheduling pattern to apply to each day. */ timeframes: outputs.SyntheticsTestMobileOptionsListSchedulingTimeframe[]; /** * Timezone in which the timeframe is based. */ timezone: string; } export interface SyntheticsTestMobileOptionsListSchedulingTimeframe { /** * Number representing the day of the week */ day: number; /** * The hour of the day on which scheduling starts. */ from: string; /** * The hour of the day on which scheduling ends. */ to: string; } export interface SyntheticsTestMobileStep { /** * A boolean set to allow this step to fail. */ allowFailure?: boolean; /** * A boolean set to determine if the step has a new step element. */ hasNewStepElement?: boolean; /** * A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails. */ isCritical?: boolean; /** * The name of the step. */ name: string; /** * A boolean set to not take a screenshot for the step. */ noScreenshot?: boolean; /** * Parameters for the step. */ params: outputs.SyntheticsTestMobileStepParams; /** * The public ID of the step. */ publicId?: string; /** * The time before declaring a step failed. */ timeout?: number; /** * The type of the step. Valid values are `assertElementContent`, `assertScreenContains`, `assertScreenLacks`, `doubleTap`, `extractVariable`, `flick`, `openDeeplink`, `playSubTest`, `pressBack`, `restartApplication`, `rotate`, `scroll`, `scrollToElement`, `tap`, `toggleWiFi`, `typeText`, `wait`. */ type: string; } export interface SyntheticsTestMobileStepParams { /** * Check type to use for an assertion step. Valid values are `equals`, `notEquals`, `contains`, `notContains`, `startsWith`, `notStartsWith`, `greater`, `lower`, `greaterEquals`, `lowerEquals`, `matchRegex`, `between`, `isEmpty`, `notIsEmpty`. */ check?: string; /** * Delay between each key stroke for a "type test" step. */ delay?: number; /** * Valid values are `up`, `down`, `left`, `right`. */ direction?: string; /** * Element to use for the step */ element?: outputs.SyntheticsTestMobileStepParamsElement; enable?: boolean; maxScrolls?: number; positions?: outputs.SyntheticsTestMobileStepParamsPosition[]; /** * ID of the Synthetics test to use as subtest. */ subtestPublicId?: string; /** * Value of the step. */ value?: string; /** * Details of the variable to extract. */ variable?: outputs.SyntheticsTestMobileStepParamsVariable; withEnter?: boolean; /** * X coordinates for a "scroll step". */ x?: number; /** * Y coordinates for a "scroll step". */ y?: number; } export interface SyntheticsTestMobileStepParamsElement { context?: string; /** * Valid values are `native`, `web`. */ contextType?: string; elementDescription?: string; multiLocator?: { [key: string]: string; }; relativePosition?: outputs.SyntheticsTestMobileStepParamsElementRelativePosition; textContent?: string; userLocator?: outputs.SyntheticsTestMobileStepParamsElementUserLocator; viewName?: string; } export interface SyntheticsTestMobileStepParamsElementRelativePosition { x?: number; y?: number; } export interface SyntheticsTestMobileStepParamsElementUserLocator { failTestOnCannotLocate?: boolean; values?: outputs.SyntheticsTestMobileStepParamsElementUserLocatorValue[]; } export interface SyntheticsTestMobileStepParamsElementUserLocatorValue { /** * Valid values are `accessibility-id`, `id`, `ios-predicate-string`, `ios-class-chain`, `xpath`. */ type?: string; value?: string; } export interface SyntheticsTestMobileStepParamsPosition { x?: number; y?: number; } export interface SyntheticsTestMobileStepParamsVariable { /** * Example of the extracted variable. Defaults to `""`. */ example?: string; /** * Name of the extracted variable. */ name: string; } export interface SyntheticsTestOptionsList { /** * For SSL tests, whether or not the test should allow self signed certificates. */ acceptSelfSigned?: boolean; /** * Allows loading insecure content for a request in an API test or in a multistep API test step. */ allowInsecure?: boolean; /** * Whether Bits AI automatically investigates alerts from the test monitor. When omitted, the current value is left unchanged. */ bitsAiAutoInvestigate: boolean; /** * Blocked URL patterns. Requests made to URLs matching any of the patterns listed here will be blocked. */ blockedRequestPatterns?: string[]; /** * Capture HTTP request/response headers and bodies for Fetch/XHR calls made during browser tests. */ captureNetworkPayloads?: boolean; /** * For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP. */ checkCertificateRevocation?: boolean; /** * CI/CD options for a Synthetic test. */ ci?: outputs.SyntheticsTestOptionsListCi; /** * For SSL tests, whether or not the test should disable fetching intermediate certificates from AIA */ disableAiaIntermediateFetching?: boolean; /** * Disable Cross-Origin Resource Sharing for browser tests. */ disableCors?: boolean; /** * Disable Content Security Policy for browser tests. */ disableCsp?: boolean; /** * Determines whether or not the API HTTP test should follow redirects. */ followRedirects?: boolean; /** * HTTP version to use for an HTTP request in an API test or step. Valid values are `http1`, `http2`, `any`. Defaults to `"any"`. */ httpVersion?: string; /** * Ignore server certificate error for SSL tests. */ ignoreCertificateValidation?: boolean; /** * Ignore server certificate error for browser tests. */ ignoreServerCertificateError?: boolean; /** * Timeout before declaring the initial step as failed (in seconds) for browser tests. */ initialNavigationTimeout?: number; /** * Minimum amount of time in failure required to trigger an alert (in seconds). Default is `0`. */ minFailureDuration?: number; /** * Minimum number of locations in failure required to trigger an alert. Defaults to `1`. */ minLocationFailed?: number; /** * The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. */ monitorName?: string; monitorOptions?: outputs.SyntheticsTestOptionsListMonitorOptions; monitorPriority?: number; /** * Prevents saving screenshots of the steps. */ noScreenshot?: boolean; /** * A list of role identifiers pulled from the Roles API to restrict read and write access. **Deprecated.** This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles?: string[]; retry?: outputs.SyntheticsTestOptionsListRetry; /** * The RUM data collection settings for the Synthetic browser test. */ rumSettings?: outputs.SyntheticsTestOptionsListRumSettings; /** * Object containing timeframes and timezone used for advanced scheduling. */ scheduling?: outputs.SyntheticsTestOptionsListScheduling; /** * How often the test should run (in seconds). Valid range is `30-604800` for API tests and `60-604800` for browser tests. */ tickEvery: number; } export interface SyntheticsTestOptionsListCi { /** * Execution rule for a Synthetics test. Valid values are `blocking`, `nonBlocking`, `skipped`. */ executionRule?: string; } export interface SyntheticsTestOptionsListMonitorOptions { /** * A message to include with a re-notification. */ escalationMessage?: string; /** * The name of the preset for the notification for the monitor. Valid values are `showAll`, `hideAll`, `hideQuery`, `hideHandles`, `hideQueryAndHandles`, `showOnlySnapshot`, `hideHandlesAndFooter`. */ notificationPresetName?: string; /** * Specify a renotification frequency in minutes. Values available by default are `0`, `10`, `20`, `30`, `40`, `50`, `60`, `90`, `120`, `180`, `240`, `300`, `360`, `720`, `1440`. Defaults to `0`. */ renotifyInterval?: number; /** * The number of times a monitor renotifies. It can only be set if `renotifyInterval` is set. */ renotifyOccurrences?: number; } export interface SyntheticsTestOptionsListRetry { /** * Number of retries needed to consider a location as failed before sending a notification alert. Maximum value: `3` for `api` tests, `2` for `browser` and `mobile` tests. Defaults to `0`. */ count?: number; /** * Interval between a failed test and the next retry in milliseconds. Maximum value: `5000`. Defaults to `300`. */ interval?: number; } export interface SyntheticsTestOptionsListRumSettings { /** * RUM application ID used to collect RUM data for the browser test. */ applicationId: string; /** * RUM application API key ID used to collect RUM data for the browser test. */ clientTokenId: number; /** * Determines whether RUM data is collected during test runs. */ isEnabled: boolean; } export interface SyntheticsTestOptionsListScheduling { /** * Array containing objects describing the scheduling pattern to apply to each day. */ timeframes: outputs.SyntheticsTestOptionsListSchedulingTimeframe[]; /** * Timezone in which the timeframe is based. */ timezone: string; } export interface SyntheticsTestOptionsListSchedulingTimeframe { /** * Number representing the day of the week */ day: number; /** * The hour of the day on which scheduling starts. */ from: string; /** * The hour of the day on which scheduling ends. */ to: string; } export interface SyntheticsTestRequestBasicauth { /** * Access key for `SIGV4` authentication. */ accessKey?: string; /** * Access token url for `oauth-client` or `oauth-rop` authentication. */ accessTokenUrl?: string; /** * Whether to inject the `exp` (expiration) claim automatically, for `jwt` authentication. */ addClaimsExp?: boolean; /** * Whether to inject the `iat` (issued at) claim automatically, for `jwt` authentication. */ addClaimsIat?: boolean; /** * Algorithm to use for `jwt` authentication. Valid values are `HS256`, `RS256`, `ES256`. */ algorithm?: string; /** * Audience for `oauth-client` or `oauth-rop` authentication. Defaults to `""`. */ audience?: string; /** * Client ID for `oauth-client` or `oauth-rop` authentication. */ clientId?: string; /** * Client secret for `oauth-client` or `oauth-rop` authentication. */ clientSecret?: string; /** * Domain for `ntlm` authentication. */ domain?: string; /** * Token time-to-live in seconds, for `jwt` authentication. */ expiresIn?: number; /** * Custom JWT header as a JSON string, for `jwt` authentication. */ header?: string; /** * Password for authentication. */ password?: string; /** * JWT claims as a JSON string, for `jwt` authentication. */ payload?: string; /** * Region for `SIGV4` authentication. */ region?: string; /** * Resource for `oauth-client` or `oauth-rop` authentication. Defaults to `""`. */ resource?: string; /** * Scope for `oauth-client` or `oauth-rop` authentication. Defaults to `""`. */ scope?: string; /** * Signing key for `jwt` authentication. Use the shared secret for `HS256` or the private key (PEM format) for `RS256` and `ES256`. */ secret?: string; /** * Secret key for `SIGV4` authentication. */ secretKey?: string; /** * Service name for `SIGV4` authentication. */ serviceName?: string; /** * Session token for `SIGV4` authentication. */ sessionToken?: string; /** * Token API Authentication for `oauth-client` or `oauth-rop` authentication. Valid values are `header`, `body`. */ tokenApiAuthentication?: string; /** * Prefix added before the token in the `Authorization` header for `jwt` authentication. Defaults to `Bearer`. */ tokenPrefix?: string; /** * Type of basic authentication to use when performing the test. Defaults to `"web"`. */ type?: string; /** * Username for authentication. */ username?: string; /** * Workstation for `ntlm` authentication. */ workstation?: string; } export interface SyntheticsTestRequestClientCertificate { cert: outputs.SyntheticsTestRequestClientCertificateCert; key: outputs.SyntheticsTestRequestClientCertificateKey; } export interface SyntheticsTestRequestClientCertificateCert { /** * Content of the certificate. */ content?: string; /** * File name for the certificate. Defaults to `"Provided in Terraform config"`. */ filename?: string; } export interface SyntheticsTestRequestClientCertificateKey { /** * Content of the certificate. */ content?: string; /** * File name for the certificate. Defaults to `"Provided in Terraform config"`. */ filename?: string; } export interface SyntheticsTestRequestDefinition { /** * The request body. */ body?: string; /** * Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`, `application/octet-stream`, `multipart/form-data`. */ bodyType?: string; /** * The type of gRPC call to perform, or the MCP step call (`init`, `toolList`, `toolCall`). Valid values are `healthcheck`, `unary`, `init`, `toolList`, `toolCall`. */ callType?: string; /** * By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`. */ certificateDomains?: string[]; /** * For Network Path tests, an optional label displayed for the destination host in the Network Path visualization. */ destinationService?: string; /** * DNS server to use for DNS tests (`subtype = "dns"`). */ dnsServer?: string; /** * DNS server port to use for DNS tests. */ dnsServerPort?: string; /** * For Network Path tests, the number of packets sent to probe the destination to measure packet loss, latency, and jitter. */ e2eQueries?: number; /** * Form data to be sent when `bodyType` is `multipart/form-data`. */ form?: { [key: string]: string; }; /** * Host name to perform the test with. */ host?: string; /** * HTTP version to use for an HTTP request in an API test or step. **Deprecated.** Use `httpVersion` in the `optionsList` field instead. * * @deprecated Use `httpVersion` in the `optionsList` field instead. */ httpVersion: string; /** * For Websocket tests, whether the message is treated as a base64-encoded string in the server. */ isMessageBase64Encoded?: boolean; /** * For Network Path tests, the maximum time-to-live (max number of hops) used in outgoing probe packets. */ maxTtl?: number; /** * For MCP API steps, the MCP protocol version used by the request. */ mcpProtocolVersion?: string; /** * For gRPC, UDP, and Websocket tests, message to send with the request. */ message?: string; /** * Either the HTTP method/verb to use or a gRPC method available on the service set in the `service` field. Required if `subtype` is `HTTP` or if `subtype` is `grpc` and `callType` is `unary`. */ method?: string; /** * Determines whether or not to save the response body. */ noSavingResponseBody?: boolean; /** * Number of pings to use per test for ICMP tests (`subtype = "icmp"`) between 0 and 10. */ numberOfPackets?: number; /** * Persist cookies across redirects. */ persistCookies?: boolean; /** * The content of a proto file as a string. */ plainProtoFile?: string; /** * Port to use when performing the test. */ port?: string; /** * A protobuf JSON descriptor. **Deprecated.** Use `plainProtoFile` instead. * * @deprecated Use `plainProtoFile` instead. */ protoJsonDescriptor?: string; /** * For SSL tests, it specifies on which server you want to initiate the TLS handshake, allowing the server to present one of multiple possible certificates on the same IP address and TCP port number. */ servername?: string; /** * The gRPC service on which you want to perform the gRPC call. */ service?: string; /** * This will turn on a traceroute probe to discover all gateways along the path to the host destination. For ICMP tests (`subtype = "icmp"`). */ shouldTrackHops?: boolean; /** * For Network Path tests, an optional label displayed for the source host in the Network Path visualization */ sourceService?: string; /** * For TCP Network Path tests, the TCP traceroute strategy. */ tcpMethod?: string; /** * Timeout in seconds for the test. */ timeout?: number; /** * For MCP API steps, the JSON-encoded arguments to pass to the tool when `callType` is `toolCall`. */ toolArgs?: string; /** * For MCP API steps, the name of the tool to call. Required when `callType` is `toolCall`. */ toolName?: string; /** * For Network Path tests, the number of traceroute path tracings. */ tracerouteQueries?: number; /** * The URL to send the request to. */ url?: string; } export interface SyntheticsTestRequestFile { /** * Bucket key of the file. */ bucketKey: string; /** * Content of the file. */ content?: string; /** * Encoding of the file content. Must be `base64` when content contains base64-encoded data. */ encoding?: string; /** * Name of the file. */ name: string; /** * Original name of the file. */ originalFileName?: string; /** * Size of the file. */ size: number; /** * Type of the file. */ type: string; } export interface SyntheticsTestRequestProxy { /** * Header name and value map. */ headers?: { [key: string]: string; }; /** * URL of the proxy to perform the test. */ url: string; } export interface TagIndexingRuleOptions { /** * Behavioral options for how the rule applies to metrics, including backfill and override behavior. */ data: outputs.TagIndexingRuleOptionsData; /** * Options schema version. Only `1` is supported. */ version: number; } export interface TagIndexingRuleOptionsData { /** * Configuration for excluding tags based on dynamic usage signals. Only applies when `excludeTagsMode` is `true`. */ dynamicTags?: outputs.TagIndexingRuleOptionsDataDynamicTags; /** * When true, the rule applies to metrics ingested before the rule was created. Defaults to `true`. */ managePreexistingMetrics: boolean; /** * When true, this rule's tag list overrides tags configured by earlier rules for the same metric. Defaults to `false`. */ overridePreviousRules: boolean; } export interface TagIndexingRuleOptionsDataDynamicTags { /** * Lookback window, in seconds, for excluding tags that were not queried in that period. Requires `excludeTagsMode` to be `true`. Value must be between 1 and 7776000. */ excludeNotQueriedWindowSeconds?: number; /** * When true, excludes tags not used in any dashboards or monitors. Requires `excludeTagsMode` to be `true`. */ excludeNotUsedInAssets?: boolean; } export interface TagPipelineRulesetRule { /** * Whether the rule is enabled. */ enabled: boolean; /** * The mapping configuration for the rule. */ mapping?: outputs.TagPipelineRulesetRuleMapping; /** * Rule metadata key-value pairs. */ metadata: { [key: string]: string; }; /** * The name of the rule. */ name: string; /** * The query configuration for the rule. */ query?: outputs.TagPipelineRulesetRuleQuery; /** * The reference table configuration for the rule. */ referenceTable?: outputs.TagPipelineRulesetRuleReferenceTable; } export interface TagPipelineRulesetRuleMapping { /** * The destination key for the mapping. */ destinationKey?: string; /** * Whether to apply the mapping only if the destination key doesn't exist. * * @deprecated Use `ifTagExists` instead. This field will be removed in a future release. */ ifNotExists: boolean; /** * Behavior when the tag already exists. Valid values: `append` (append to the existing tag value), `replace` (replace existing tag value), `doNotApply` (never apply if tag already exists). Valid values are `append`, `replace`, `doNotApply`. */ ifTagExists: string; /** * The source keys for the mapping. */ sourceKeys?: string[]; } export interface TagPipelineRulesetRuleQuery { /** * The addition configuration for the query. */ addition?: outputs.TagPipelineRulesetRuleQueryAddition; /** * Whether the query matching is case insensitive. */ caseInsensitivity: boolean; /** * Whether to apply the query only if the key doesn't exist. * * @deprecated Use `ifTagExists` instead. This field will be removed in a future release. */ ifNotExists: boolean; /** * Behavior when the tag already exists. Valid values: `append` (append to the existing tag value), `replace` (replace existing tag value), `doNotApply` (never apply if tag already exists). Valid values are `append`, `replace`, `doNotApply`. */ ifTagExists: string; /** * The query string. Datadog normalizes queries to a canonical form (operator casing, spacing, redundant parentheses, quoting, and similar formatting differences). The provider validates the configured value against this canonical form during planning. If the value doesn't match, the plan fails with an error showing the canonical query to use in the configuration. */ query?: string; } export interface TagPipelineRulesetRuleQueryAddition { /** * The key to add. */ key?: string; /** * The value to add. */ value?: string; } export interface TagPipelineRulesetRuleReferenceTable { /** * Whether the reference table lookup is case insensitive. */ caseInsensitivity: boolean; /** * The field pairs for the reference table. */ fieldPairs?: outputs.TagPipelineRulesetRuleReferenceTableFieldPair[]; /** * Whether to apply the reference table only if the key doesn't exist. * * @deprecated Use `ifTagExists` instead. This field will be removed in a future release. */ ifNotExists: boolean; /** * Behavior when the tag already exists. Valid values: `append` (append to the existing tag value), `replace` (replace existing tag value), `doNotApply` (never apply if tag already exists). Valid values are `append`, `replace`, `doNotApply`. */ ifTagExists: string; /** * The source keys for the reference table lookup. */ sourceKeys?: string[]; /** * The name of the reference table. */ tableName?: string; } export interface TagPipelineRulesetRuleReferenceTableFieldPair { /** * The input column name. */ inputColumn?: string; /** * The output key name. */ outputKey?: string; } export interface TeamConnectionConnectedTeam { /** * The ID of the external connected team. For GitHub teams, this is `@/`. For ServiceNow groups, this is `/`. */ id: string; /** * The resource type of the external connected team. Valid values are `githubTeam`, `servicenowTeam`. */ type: string; } export interface TeamConnectionTeam { /** * The ID of the Datadog team. */ id: string; /** * The resource type of the Datadog team. Valid values are `team`. */ type: string; } export interface TeamNotificationRuleEmail { /** * Whether to send email notifications to team members when alerts are triggered. */ enabled?: boolean; /** * A single email address to send notifications to instead of all team members. Requires `enabled` to be `true`. When omitted, notifications are sent to all team members. */ recipientEmail?: string; } export interface TeamNotificationRuleMsTeams { /** * MS Teams connector name used to route notifications to the appropriate channel. */ connectorName?: string; } export interface TeamNotificationRulePagerduty { /** * PagerDuty service name to send incident notifications to. The service name can be found in your PagerDuty service settings. */ serviceName?: string; } export interface TeamNotificationRuleServicenow { /** * ServiceNow template handle names to use for notifications. */ templates?: string[]; } export interface TeamNotificationRuleSlack { /** * Slack channel name for notifications, without a leading '#'. */ channel?: string; /** * Slack workspace name where the channel is located. */ workspace?: string; } export interface TeamSyncSelectionState { /** * The external identifier for a team or organization in the source platform. */ externalId: outputs.TeamSyncSelectionStateExternalId; /** * The operation to perform on the selected hierarchy. Valid values are `include`. Defaults to `"include"`. */ operation: string; /** * The scope of the selection. Valid values are `subtree`. Defaults to `"subtree"`. */ scope: string; } export interface TeamSyncSelectionStateExternalId { /** * The type of external identifier. For GitHub, `team` refers to a GitHub team and `organization` refers to a GitHub organization. For ServiceNow, `team` refers to a ServiceNow group and `organization` refers to a ServiceNow instance. Valid values are `team`, `organization`. */ type: string; /** * The external identifier value from the source platform. For GitHub, this is the string representation of a GitHub organization ID or team ID. For ServiceNow, this is the instance name for `organization`, or `/` of the group for `team`. */ value: string; } export interface WorkflowAutomationRunAs { /** * Service account identifier. Required when `type` is `serviceAccount` and omitted otherwise. */ id: string; /** * Type of identity used to run the workflow. `owner` uses the workflow owner, `initiator` uses the user who starts the execution, and `serviceAccount` uses the account specified by `id`. Required when `runAs` is configured. Valid values are `owner`, `serviceAccount`, `initiator`. */ type: string; } export declare namespace aws { interface GetIntegrationLogsServicesAwsLogsService { /** * The id of the AWS log service. */ id: string; /** * The name of the AWS log service. */ label: string; } interface IntegrationAccountAuthConfig { /** * Datadog will use the provided AWS Access Key ID and Secret Access Key to authenticate to your account. */ awsAuthConfigKeys?: outputs.aws.IntegrationAccountAuthConfigAwsAuthConfigKeys; awsAuthConfigRole?: outputs.aws.IntegrationAccountAuthConfigAwsAuthConfigRole; } interface IntegrationAccountAuthConfigAwsAuthConfigKeys { /** * AWS Access Key ID */ accessKeyId?: string; /** * AWS Secret Access Key. This value is write-only; changes made outside of Terraform will not be drift-detected. */ secretAccessKey?: string; } interface IntegrationAccountAuthConfigAwsAuthConfigRole { /** * AWS IAM external ID for associated role. If omitted, one is generated. */ externalId: string; /** * AWS IAM role name. */ roleName?: string; } interface IntegrationAccountAwsRegions { /** * Include all regions. Defaults to `true`. */ includeAll: boolean; /** * Include only these regions. */ includeOnlies?: string[]; } interface IntegrationAccountCcmConfigCcmConfig { dataExportConfigs?: outputs.aws.IntegrationAccountCcmConfigCcmConfigDataExportConfig[]; } interface IntegrationAccountCcmConfigCcmConfigDataExportConfig { /** * Name of the S3 bucket where the Cost and Usage Report is stored. */ bucketName?: string; /** * AWS region of the S3 bucket. */ bucketRegion?: string; /** * Name of the Cost and Usage Report. */ reportName?: string; /** * S3 prefix where the Cost and Usage Report is stored. */ reportPrefix?: string; /** * Type of the Cost and Usage Report. */ reportType?: string; } interface IntegrationAccountLogsConfig { /** * Leave empty to omit logs config. */ lambdaForwarder?: outputs.aws.IntegrationAccountLogsConfigLambdaForwarder; } interface IntegrationAccountLogsConfigLambdaForwarder { /** * List of Datadog Lambda Log Forwarder ARNs in your AWS account. Defaults to `[]`. */ lambdas: string[]; /** * Configure log source collection for your Datadog Forwarder Lambda functions. */ logSourceConfig?: outputs.aws.IntegrationAccountLogsConfigLambdaForwarderLogSourceConfig; /** * List of service IDs set to enable automatic log collection. Use `datadog.aws.getIntegrationAvailableLogsServices` data source or [the AWS Logs Integration API](https://docs.datadoghq.com/api/latest/aws-logs-integration/?#get-list-of-aws-log-ready-services) to get allowed values. Defaults to `[]`. */ sources: string[]; } interface IntegrationAccountLogsConfigLambdaForwarderLogSourceConfig { /** * AWS Logs Collection tag filters list. */ tagFilters?: outputs.aws.IntegrationAccountLogsConfigLambdaForwarderLogSourceConfigTagFilter[]; } interface IntegrationAccountLogsConfigLambdaForwarderLogSourceConfigTagFilter { /** * The AWS service for which the tag filters defined in `tags` will be applied. */ source: string; /** * The AWS resource tags to filter on for the service specified by `source`. */ tags: string[]; } interface IntegrationAccountMetricsConfig { /** * Enable EC2 automute for AWS metrics Defaults to `true`. */ automuteEnabled: boolean; /** * Enable CloudWatch alarms collection Defaults to `false`. */ collectCloudwatchAlarms: boolean; /** * Enable custom metrics collection Defaults to `false`. */ collectCustomMetrics: boolean; /** * Enable Service Quotas collection. Incurs CloudWatch `GetMetricData` charges on your AWS bill. Requires `resources_config.extended_collection` to be set to `true`, and the Datadog AWS integration role must allow `servicequotas:ListServices`, `servicequotas:ListServiceQuotas` and `servicequotas:ListRequestedServiceQuotaChangeHistory`. Defaults to `false`. */ collectServiceQuotas: boolean; /** * Enable AWS metrics collection Defaults to `true`. */ enabled: boolean; /** * AWS CloudWatch metric name filters. Each filter applies to a single namespace and must define exactly one of `includeOnly` or `excludeOnly`. */ metricNameFilters?: outputs.aws.IntegrationAccountMetricsConfigMetricNameFilter[]; /** * AWS metrics namespace filters. Defaults to a pre-set `excludeOnly` list if block is empty. */ namespaceFilters?: outputs.aws.IntegrationAccountMetricsConfigNamespaceFilters; /** * AWS Metrics Collection resource type tag filters list. Each entry defines a tag filter expression applied when collecting metrics for a specific AWS resource type. Wildcards, such as `?` (match a single character) and `*` (match multiple characters), and exclusion using `!` before the tag are supported. For example, `env:production AND !region:us-east-1`. */ resourceTypeTagFilters?: outputs.aws.IntegrationAccountMetricsConfigResourceTypeTagFilter[]; /** * AWS Metrics Collection tag filters list. The array of custom AWS resource tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from a specified service. Wildcards, such as `?` (match a single character) and `*` (match multiple characters), and exclusion using `!` before the tag are supported. For EC2, only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. For example, `env:production,instance-type:c?.*,!region:us-east-1`. * * @deprecated Deprecated in favor of `resourceTypeTagFilters`. The two fields are mutually exclusive on an account. */ tagFilters?: outputs.aws.IntegrationAccountMetricsConfigTagFilter[]; } interface IntegrationAccountMetricsConfigMetricNameFilter { /** * Exclude metric names matching one of these patterns. */ excludeOnlies?: string[]; /** * Include only metric names matching one of these patterns. */ includeOnlies?: string[]; /** * The AWS CloudWatch namespace to which this metric name filter applies. */ namespace: string; } interface IntegrationAccountMetricsConfigNamespaceFilters { /** * Exclude only these namespaces from metrics collection. Use `datadog.aws.getIntegrationAvailableNamespaces` data source to get allowed values. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls. */ excludeOnlies: string[]; /** * Include only these namespaces for metrics collection. Use `datadog.aws.getIntegrationAvailableNamespaces` data source to get allowed values. */ includeOnlies?: string[]; } interface IntegrationAccountMetricsConfigResourceTypeTagFilter { /** * Whether this filter applies to custom resources. */ custom?: boolean; /** * The tag filter expression used when collecting metrics for the specified resource types. */ expression: string; /** * The AWS resource types within `service` for which the tag filter expression is applied. */ resourceTypes?: string[]; /** * The AWS service for which the tag filter expression is applied. */ service?: string; } interface IntegrationAccountMetricsConfigTagFilter { /** * The AWS service for which the tag filters defined in `tags` will be applied. */ namespace: string; /** * The AWS resource tags to filter on for the service specified by `namespace`. Defaults to `[]`. */ tags: string[]; } interface IntegrationAccountResourcesConfig { /** * Enable Cloud Security Management to scan AWS resources for vulnerabilities, misconfigurations, identity risks, and compliance violations. Requires `extendedCollection` to be set to `true`. Defaults to `false`. */ cloudSecurityPostureManagementCollection: boolean; /** * Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Required for `cloudSecurityPostureManagementCollection`. Defaults to `true`. */ extendedCollection: boolean; } interface IntegrationAccountTracesConfig { /** * AWS X-Ray services to collect traces from. Defaults to `includeOnly`. */ xrayServices?: outputs.aws.IntegrationAccountTracesConfigXrayServices; } interface IntegrationAccountTracesConfigXrayServices { /** * Include all services. */ includeAll?: boolean; /** * Include only these services. Defaults to `[]`. */ includeOnlies: string[]; } } export declare namespace azure { interface IntegrationResourceProviderConfig { metricsEnabled: boolean; namespace: string; } } export declare namespace config { interface DefaultTags { /** * [Experimental - Action Connections, Logs Indexes, Logs Pipelines, Monitors, Security Monitoring Rules, and Service Level Objectives only] Resource tags to be applied by default across all resources. */ tags?: { [key: string]: string; }; } } export declare namespace databricks { interface IntegrationAccountAuthentication { /** * The bearer token authentication method configured on the account. */ databricksIntegrationAccountBearerTokenAuth?: outputs.databricks.IntegrationAccountAuthenticationDatabricksIntegrationAccountBearerTokenAuth; /** * The Databricks OAuth authentication method and service principal configured on the account. */ databricksIntegrationAccountOAuthAuth?: outputs.databricks.IntegrationAccountAuthenticationDatabricksIntegrationAccountOAuthAuth; /** * The Private Action Runner authentication method configured on the account. */ databricksIntegrationAccountPrivateActionRunnerAuth: outputs.databricks.IntegrationAccountAuthenticationDatabricksIntegrationAccountPrivateActionRunnerAuth; } interface IntegrationAccountAuthenticationDatabricksIntegrationAccountBearerTokenAuth { /** * The authentication method type. Valid values are `bearerToken`. */ authType: string; /** * Secret token used to authenticate with Databricks. Conflicts with `tokenWo`. Prefer `tokenWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ token?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Secret token used to authenticate with Databricks. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ tokenWo?: string; /** * Version trigger for tokenWo rotation. String length must be at least 1. */ tokenWoVersion?: string; } interface IntegrationAccountAuthenticationDatabricksIntegrationAccountOAuthAuth { /** * The authentication method type. Valid values are `databricksOauth`. Defaults to `"databricksOauth"`. */ authType: string; /** * Microsoft Entra ID tenant of the service principal, for Azure Databricks workspaces. */ azureTenantId: string; /** * Client ID of the Databricks service principal. */ clientId: string; /** * Secret of the Databricks service principal. Generate it under User management > Service principals > Credentials & secrets in Databricks. Exactly one of `clientSecret` or `clientSecretWo` must be set. Prefer `clientSecretWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ clientSecret?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Secret of the Databricks service principal. Generate it under User management > Service principals > Credentials & secrets in Databricks. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ clientSecretWo?: string; /** * Version trigger for client*secret*wo rotation. String length must be at least 1. */ clientSecretWoVersion?: string; } interface IntegrationAccountAuthenticationDatabricksIntegrationAccountPrivateActionRunnerAuth { /** * The authentication method type. Valid values are `privateActionRunner`. Defaults to `"privateActionRunner"`. */ authType: string; /** * Unique identifier of the Private Action Runner connection holding the credentials. */ connectionId: string; /** * Path of the credential inside the secret backend configured on the runner. */ secretPath: string; /** * Unique identifier of the user the Private Action Runner connection belongs to. */ userUuid: string; } interface IntegrationAccountDataflows { /** * Cost data collected from your Databricks system tables. Requires [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/) to be set up for your organization. */ databricksCloudCostMetrics: outputs.databricks.IntegrationAccountDataflowsDatabricksCloudCostMetrics; /** * Data Jobs Monitoring, which collects performance, reliability, and cost data for your Databricks jobs. */ databricksDataObservabilityJobsMonitoring?: outputs.databricks.IntegrationAccountDataflowsDatabricksDataObservabilityJobsMonitoring; /** * Data Observability, which collects lineage and data quality information from your Databricks catalogs so you can explore how data flows and detect, resolve, and prevent quality issues. */ databricksDataObservabilityQualityMonitoring: outputs.databricks.IntegrationAccountDataflowsDatabricksDataObservabilityQualityMonitoring; /** * Health and usage metrics for your Databricks model serving endpoints. Not supported on accounts that authenticate with `privateActionRunner`; on those accounts this dataflow collects no data. */ databricksModelServingMetrics: outputs.databricks.IntegrationAccountDataflowsDatabricksModelServingMetrics; } interface IntegrationAccountDataflowsDatabricksCloudCostMetrics { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the Cloud Cost Management dataflow. */ settings: outputs.databricks.IntegrationAccountDataflowsDatabricksCloudCostMetricsSettings; } interface IntegrationAccountDataflowsDatabricksCloudCostMetricsSettings { /** * Whether cost data is collected for every workspace in the Databricks account rather than this workspace only. This takes effect across the Databricks account: if any one workspace enables it, Datadog collects cost data for all of them regardless of their individual settings, and every covered workspace incurs Cloud Cost Management charges. */ ccmCollectAllWorkspaces: boolean; } interface IntegrationAccountDataflowsDatabricksDataObservabilityJobsMonitoring { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the Data Jobs Monitoring dataflow. */ settings?: outputs.databricks.IntegrationAccountDataflowsDatabricksDataObservabilityJobsMonitoringSettings; } interface IntegrationAccountDataflowsDatabricksDataObservabilityJobsMonitoringSettings { /** * ID of the Datadog API key the global init script uses to submit data. */ ddApiKeyId: string; /** * Secret value of the Datadog API key identified by `ddApiKeyId`. Conflicts with `ddApiKeySecretWo`. Prefer `ddApiKeySecretWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ ddApiKeySecret?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Secret value of the Datadog API key identified by `ddApiKeyId`. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ ddApiKeySecretWo?: string; /** * Version trigger for dd*api*key*secret*wo rotation. String length must be at least 1. */ ddApiKeySecretWoVersion?: string; /** * Whether Datadog installs and manages the Agent on your Databricks clusters through a global init script. The script does not apply to clusters in Standard access mode. When `false`, the Agent is installed manually. */ djmGlobalInitScriptEnabled: boolean; /** * Whether GPU metrics are collected from your Databricks clusters. The Agent installed by the global init script performs the collection, so this requires the dataflow to be enabled with `djmGlobalInitScriptEnabled` set to `true`. */ scriptGpumEnabled: boolean; /** * Whether driver and worker logs are collected from your Databricks clusters. The Agent installed by the global init script performs the collection, so this requires the dataflow to be enabled with `djmGlobalInitScriptEnabled` set to `true`. */ scriptLogsEnabled: boolean; /** * Whether health and cost data is collected for jobs running on Serverless or SQL Warehouse compute. This compute has no clusters for the global init script to target, so collection reads the Databricks system tables and requires `systemTablesSqlWarehouseId`. */ serverlessJobsEnabled: boolean; } interface IntegrationAccountDataflowsDatabricksDataObservabilityQualityMonitoring { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the Data Observability dataflow. */ settings: outputs.databricks.IntegrationAccountDataflowsDatabricksDataObservabilityQualityMonitoringSettings; } interface IntegrationAccountDataflowsDatabricksDataObservabilityQualityMonitoringSettings { /** * Cron expression setting how often Datadog connects to your Databricks warehouse to collect metadata. Currently, only hourly (`0 * * * *`) and daily (`0 0 * * *`) are supported. */ doCrawlersCron: string; /** * Whether metadata from the Databricks `system` catalog is included in Data Observability alongside your data catalogs. */ syncSystemCatalog: boolean; } interface IntegrationAccountDataflowsDatabricksModelServingMetrics { /** * Whether Datadog collects this data. */ enabled: boolean; } interface IntegrationAccountSettings { /** * ID of the SQL warehouse used to query the Databricks system tables. */ systemTablesSqlWarehouseId: string; /** * URL of the Databricks workspace. */ workspaceUrl: string; } } export declare namespace elastic { interface IntegrationCloudAccountAuthentication { /** * The basic authentication method and username configured on the account. */ elasticCloudIntegrationAccountBasicAuth?: outputs.elastic.IntegrationCloudAccountAuthenticationElasticCloudIntegrationAccountBasicAuth; } interface IntegrationCloudAccountAuthenticationElasticCloudIntegrationAccountBasicAuth { /** * The authentication method type. Valid values are `basic`. Defaults to `"basic"`. */ authType: string; /** * Secret password or private key. Exactly one of `password` or `passwordWo` must be set. Prefer `passwordWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ password?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Secret password or private key. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ passwordWo?: string; /** * Version trigger for passwordWo rotation. String length must be at least 1. */ passwordWoVersion?: string; /** * Non-secret username or public identifier for the credential pair. */ username: string; } interface IntegrationCloudAccountDataflows { /** * Primary shard metrics broken down per index, rather than aggregated across the cluster. */ elasticCloudDetailedIndexStats: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudDetailedIndexStats; /** * Metrics for individual indices. Only the indices granted to the role of the user in `authentication` are collected. */ elasticCloudIndexStats: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudIndexStats; /** * Node-level statistics for the clusters in your deployment, such as the number of nodes and the number of documents on each node. This is the integration's baseline collection: it is always on and cannot be turned off, which is why it appears in responses only. */ elasticCloudMetrics: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudMetrics; /** * Metrics for cluster-level changes that have been submitted but not yet executed. */ elasticCloudPendingTaskStats: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudPendingTaskStats; /** * Tolerance for slow primary shard requests, keeping the rest of the collection running when a primary shard request times out instead of failing the run. Only has an effect alongside `elastic-cloud-primary-shard-stats`. */ elasticCloudPrimaryShardGracefulTimeout: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudPrimaryShardGracefulTimeout; /** * Metrics covering only the cluster's primary shards. */ elasticCloudPrimaryShardStats: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudPrimaryShardStats; /** * Metrics for how many shards are allocated to each data node, and the disk space they use. */ elasticCloudShardAllocationStats: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudShardAllocationStats; /** * Metrics about the actions taken by snapshot lifecycle management. Requires the `readSlm` Elasticsearch cluster privilege on the role of the user in `authentication`; without it this dataflow collects no data. */ elasticCloudSlmStats: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudSlmStats; } interface IntegrationCloudAccountDataflowsElasticCloudDetailedIndexStats { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudDetailedIndexStatsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudDetailedIndexStatsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudIndexStats { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudIndexStatsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudIndexStatsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudMetrics { /** * Whether Datadog collects this data. Always `true`, because this collection cannot be turned off. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudMetricsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudMetricsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudPendingTaskStats { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudPendingTaskStatsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudPendingTaskStatsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudPrimaryShardGracefulTimeout { /** * Whether this tolerance is applied. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudPrimaryShardGracefulTimeoutStatus; } interface IntegrationCloudAccountDataflowsElasticCloudPrimaryShardGracefulTimeoutStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudPrimaryShardStats { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudPrimaryShardStatsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudPrimaryShardStatsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudShardAllocationStats { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudShardAllocationStatsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudShardAllocationStatsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountDataflowsElasticCloudSlmStats { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.elastic.IntegrationCloudAccountDataflowsElasticCloudSlmStatsStatus; } interface IntegrationCloudAccountDataflowsElasticCloudSlmStatsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationCloudAccountSettings { /** * Comma-separated list of custom tags for this Elastic Cloud deployment. */ tags: string; /** * Elastic Cloud deployment URL. */ url: string; } } export declare namespace gcp { interface IntegrationMonitoredResourceConfig { filters: string[]; type: string; } interface IntegrationStsMetricNamespaceConfig { disabled: boolean; filters: string[]; id: string; } interface IntegrationStsMonitoredResourceConfig { filters: string[]; type: string; } } export declare namespace slack { interface ChannelDisplay { /** * Show the main body of the alert event. Defaults to `true`. */ message?: boolean; /** * Show interactive buttons to mute the alerting monitor. Defaults to `true`. */ muteButtons?: boolean; /** * Show the list of @-handles in the alert event. Defaults to `true`. */ notified?: boolean; /** * Show the alert event's snapshot image. Defaults to `true`. */ snapshot?: boolean; /** * Show the scopes on which the monitor alerted. Defaults to `true`. */ tags?: boolean; } } export declare namespace snowflake { interface IntegrationAccountAuthentication { /** * The RSA key pair authentication method configured on the account. */ snowflakeIntegrationAccountPrivateKeyAuth?: outputs.snowflake.IntegrationAccountAuthenticationSnowflakeIntegrationAccountPrivateKeyAuth; } interface IntegrationAccountAuthenticationSnowflakeIntegrationAccountPrivateKeyAuth { /** * The authentication method type. Valid values are `snowflakePrivateKey`. Defaults to `"snowflakePrivateKey"`. */ authType: string; /** * The private key, in PEM format. Exactly one of `privateKey` or `privateKeyWo` must be set. Prefer `privateKeyWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ privateKey?: string; /** * Name that distinguishes this private key from other keys in Datadog. */ privateKeyName: string; /** * Passphrase that decrypts the private key. Provide it only when the key is encrypted. Conflicts with `privateKeyPassphraseWo`. Prefer `privateKeyPassphraseWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ privateKeyPassphrase?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Passphrase that decrypts the private key. Provide it only when the key is encrypted. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ privateKeyPassphraseWo?: string; /** * Version trigger for private*key*passphrase_wo rotation. String length must be at least 1. */ privateKeyPassphraseWoVersion?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * The private key, in PEM format. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ privateKeyWo?: string; /** * Version trigger for private*key*wo rotation. String length must be at least 1. */ privateKeyWoVersion?: string; } interface IntegrationAccountDataflows { /** * Account-level usage metrics read from the Snowflake `ACCOUNT_USAGE` schema, covering storage usage, credit consumption, and query activity. */ snowflakeAccountUsageMetrics: outputs.snowflake.IntegrationAccountDataflowsSnowflakeAccountUsageMetrics; /** * Cost data aggregated from the Snowflake `ORGANIZATION_USAGE` schema. Requires [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/) to be set up for your organization, and the ORGANIZATION*BILLING*VIEWER database role on the Snowflake role; without both this dataflow collects no data. */ snowflakeCloudCostMetrics: outputs.snowflake.IntegrationAccountDataflowsSnowflakeCloudCostMetrics; /** * Data Observability, which collects lineage and data quality information from your Snowflake databases so you can explore how data flows and detect and resolve quality issues. */ snowflakeDataObservabilityQualityMonitoring: outputs.snowflake.IntegrationAccountDataflowsSnowflakeDataObservabilityQualityMonitoring; /** * Records from your Snowflake event tables, used to monitor application behavior and identify issues. `enabled` turns the dataflow on and off as a whole, and the per-record-type toggles in `settings` select which kinds of record it collects while it is on. The Snowflake role needs usage granted on the database, the schema, and the event table itself; without those grants this dataflow collects no data. */ snowflakeEventTableLogs: outputs.snowflake.IntegrationAccountDataflowsSnowflakeEventTableLogs; /** * Organization-level usage metrics read from the Snowflake `ORGANIZATION_USAGE` schema, covering the credit consumption of every account in the organization and the history of data transferred out of Snowflake. Reading that schema requires the ORGADMIN role; without it this dataflow collects no data. */ snowflakeOrganizationUsageMetrics: outputs.snowflake.IntegrationAccountDataflowsSnowflakeOrganizationUsageMetrics; /** * Per-query logs that let you identify long-running, poorly performing, and expensive queries. */ snowflakeQueryHistoryLogs: outputs.snowflake.IntegrationAccountDataflowsSnowflakeQueryHistoryLogs; /** * Security logs from the Snowflake `ACCOUNT_USAGE` schema, for analyzing the security of your Snowflake account and running threat detection with [Cloud SIEM](https://docs.datadoghq.com/security/cloud_siem/). */ snowflakeSecurityLogs: outputs.snowflake.IntegrationAccountDataflowsSnowflakeSecurityLogs; /** * Execution logs for your scheduled Snowflake tasks, covering start time, end time, status, and any error message. */ snowflakeTaskHistoryLogs: outputs.snowflake.IntegrationAccountDataflowsSnowflakeTaskHistoryLogs; } interface IntegrationAccountDataflowsSnowflakeAccountUsageMetrics { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the account usage metrics dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeAccountUsageMetricsSettings; } interface IntegrationAccountDataflowsSnowflakeAccountUsageMetricsSettings { /** * The period each metric aggregates over. When `true`, metrics aggregate the past 24 hours on a rolling basis; when `false`, they aggregate the current day so far. */ accountUsageMetricsAggregateLast24h: boolean; } interface IntegrationAccountDataflowsSnowflakeCloudCostMetrics { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the Cloud Cost Management dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeCloudCostMetricsSettings; } interface IntegrationAccountDataflowsSnowflakeCloudCostMetricsSettings { /** * Snowflake query tags ingested as a comma-separated list of tag names, so that cost data can be broken down by them in Cloud Cost Management. */ queryTags: string; } interface IntegrationAccountDataflowsSnowflakeDataObservabilityQualityMonitoring { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the Data Observability dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeDataObservabilityQualityMonitoringSettings; } interface IntegrationAccountDataflowsSnowflakeDataObservabilityQualityMonitoringSettings { /** * Cron expression setting how often Datadog crawls your Snowflake table metadata. */ doTableCrawlerCron: string; /** * Whether metadata from the Snowflake `SNOWFLAKE` system database is included in Data Observability alongside your own databases. */ syncSnowflakeSystemDatabase: boolean; } interface IntegrationAccountDataflowsSnowflakeEventTableLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the event table dataflow. Each record type is collected independently so that you can control ingestion costs, and every record type is ingested into Datadog as logs tagged with its `recordType`. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeEventTableLogsSettings; } interface IntegrationAccountDataflowsSnowflakeEventTableLogsSettings { /** * Whether records with a `recordType` of `event` are collected. */ eventTableEventsEnabled: boolean; /** * Whether records with a `recordType` of `log` are collected. */ eventTableLogsEnabled: boolean; /** * How often event table records are collected, in minutes. */ eventTableLogsIntervalMin: number; /** * Whether records with a `recordType` of `spanEvent` are collected. */ eventTableSpanEventsEnabled: boolean; /** * Whether records with a `recordType` of `span` are collected. */ eventTableSpansEnabled: boolean; } interface IntegrationAccountDataflowsSnowflakeOrganizationUsageMetrics { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the organization usage metrics dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeOrganizationUsageMetricsSettings; } interface IntegrationAccountDataflowsSnowflakeOrganizationUsageMetricsSettings { /** * The period each metric aggregates over. When `true`, metrics aggregate the past 24 hours on a rolling basis; when `false`, they aggregate the current day so far. */ organizationUsageMetricsAggregateLast24h: boolean; } interface IntegrationAccountDataflowsSnowflakeQueryHistoryLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the query history logs dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeQueryHistoryLogsSettings; } interface IntegrationAccountDataflowsSnowflakeQueryHistoryLogsSettings { /** * Whether query logs are joined with Snowflake access history, which adds the objects each query read and wrote so you can follow how data is used and where it came from. */ joinQueryHistoryWithAccessHistoryEnabled: boolean; /** * How often query history logs are collected, in minutes. */ queryHistoryLogsIntervalMin: number; } interface IntegrationAccountDataflowsSnowflakeSecurityLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the security logs dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeSecurityLogsSettings; } interface IntegrationAccountDataflowsSnowflakeSecurityLogsSettings { /** * How often security logs are collected, in minutes. */ securityLogsIntervalMin: number; } interface IntegrationAccountDataflowsSnowflakeTaskHistoryLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Settings of the task history logs dataflow. */ settings: outputs.snowflake.IntegrationAccountDataflowsSnowflakeTaskHistoryLogsSettings; } interface IntegrationAccountDataflowsSnowflakeTaskHistoryLogsSettings { /** * How often task history logs are collected, in minutes. */ taskHistoryLogsIntervalMin: number; } interface IntegrationAccountSettings { /** * Identifier of the Snowflake account being monitored. */ snowflakeAccountIdentifier: string; /** * Snowflake user Datadog authenticates as. */ username: string; } } export declare namespace twilio { interface IntegrationAccountAuthentication { /** * The basic authentication method and username configured on the account. */ twilioIntegrationAccountBasicAuth?: outputs.twilio.IntegrationAccountAuthenticationTwilioIntegrationAccountBasicAuth; } interface IntegrationAccountAuthenticationTwilioIntegrationAccountBasicAuth { /** * The authentication method type. Valid values are `basic`. Defaults to `"basic"`. */ authType: string; /** * Secret password or private key. Exactly one of `password` or `passwordWo` must be set. Prefer `passwordWo`, which Terraform 1.11+ keeps out of state; this attribute is stored in Terraform state. */ password?: string; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Secret password or private key. This write-only value is not stored in Terraform state. Requires Terraform 1.11+. */ passwordWo?: string; /** * Version trigger for passwordWo rotation. String length must be at least 1. */ passwordWoVersion?: string; /** * Non-secret username or public identifier for the credential pair. */ username: string; } interface IntegrationAccountDataflows { /** * Twilio Alert resource logs, which detail the errors and warnings raised when Twilio makes a webhook request to your server or when your application calls the Twilio REST API. */ twilioAlertsLogs: outputs.twilio.IntegrationAccountDataflowsTwilioAlertsLogs; /** * Twilio Call Summary resource logs, covering the metadata and performance of the calls made from your Twilio account. Requires Voice Insights Advanced Features to be enabled on the Twilio account; without it this dataflow collects no data. */ twilioCallSummariesLogs: outputs.twilio.IntegrationAccountDataflowsTwilioCallSummariesLogs; /** * Your Twilio cost data, so that Twilio spend can be broken down and attributed in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). */ twilioCloudCostMetrics: outputs.twilio.IntegrationAccountDataflowsTwilioCloudCostMetrics; /** * Twilio Event resource logs, which record virtually every action taken in your Twilio account, such as provisioning a phone number, changing account security settings, or deleting a recording. Actions are recorded whether they came from the REST API, a user in the Twilio Console, or Twilio itself. [Cloud SIEM](https://docs.datadoghq.com/security/cloud_siem/) analyzes and correlates these logs to detect threats in real time. */ twilioEventsLogs: outputs.twilio.IntegrationAccountDataflowsTwilioEventsLogs; /** * Twilio Message resource logs for inbound and outbound messages, used to track delivery and troubleshoot message errors. A log is produced when you send a message through the REST API, when Twilio executes a TwiML instruction, and when someone messages one of your Twilio numbers or channel addresses. Message bodies are never collected. */ twilioMessagesLogs: outputs.twilio.IntegrationAccountDataflowsTwilioMessagesLogs; } interface IntegrationAccountDataflowsTwilioAlertsLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.twilio.IntegrationAccountDataflowsTwilioAlertsLogsStatus; } interface IntegrationAccountDataflowsTwilioAlertsLogsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationAccountDataflowsTwilioCallSummariesLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.twilio.IntegrationAccountDataflowsTwilioCallSummariesLogsStatus; } interface IntegrationAccountDataflowsTwilioCallSummariesLogsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationAccountDataflowsTwilioCloudCostMetrics { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.twilio.IntegrationAccountDataflowsTwilioCloudCostMetricsStatus; } interface IntegrationAccountDataflowsTwilioCloudCostMetricsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationAccountDataflowsTwilioEventsLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.twilio.IntegrationAccountDataflowsTwilioEventsLogsStatus; } interface IntegrationAccountDataflowsTwilioEventsLogsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationAccountDataflowsTwilioMessagesLogs { /** * Whether Datadog collects this data. */ enabled: boolean; /** * Read-only collection status of a dataflow. */ status: outputs.twilio.IntegrationAccountDataflowsTwilioMessagesLogsStatus; } interface IntegrationAccountDataflowsTwilioMessagesLogsStatus { /** * Collection health of a single dataflow. */ health: string; /** * Human-readable detail, populated when the dataflow is not healthy. */ message: string; /** * Time the status was last computed. */ updatedAt: string; } interface IntegrationAccountSettings { /** * Twilio Account SID that uniquely identifies your Twilio account. */ accountSid: string; /** * When enabled, Twilio phone numbers in the `to` field and SMS message bodies are censored for privacy. */ censorLogs: boolean; } } //# sourceMappingURL=output.d.ts.map