// This file is auto-generated by @hey-api/openapi-ts export type ClientOptions = { baseUrl: 'https://api.groundcover.com' | (string & {}); }; export type Activation = { activeRevision: string; error?: string; }; export type AddLabelConfig = { addLabel?: { [key: string]: string; }; }; /** * AdvancedDataScope defines fine-grained data scoping rules. */ export type AdvancedDataScope = { events?: Group; logs?: Group; metrics?: Group; traces?: Group; workloads?: Group; }; export type AgentChatModel = { capabilities: AgentModelCapabilities; displayName: string; isDefault: boolean; modelId: string; provider: string; providerId: string; /** * Configured cloud endpoint/resource region; omitted when unknown. */ region?: string; }; export type AgentChatModels = { models: Array; }; /** * AgentCustomInstructions is the custom instructions payload returned by * agent-service for reads and upserts. */ export type AgentCustomInstructions = { /** * The custom instructions text ("" when none are configured). */ instructions?: string; /** * When the instructions were last updated (ISO-8601), if set. */ updated_at?: string; /** * Identifier of whoever last updated the instructions, if known. */ updated_by?: string; }; /** * AgentCustomInstructionsRequest is forwarded to agent-service for custom * instructions upserts. */ export type AgentCustomInstructionsRequest = { /** * The custom instructions text. */ instructions: string; }; export type AgentDiscoverModelsRequest = { /** * Sensitive credential used only for discovery; never persisted. */ apiKey?: string; baseUrl?: string; provider: string; providerId?: string; }; export type AgentDiscoveredModel = { displayName: string; /** * Nullable: true */ error?: string | null; modelId: string; /** * Nullable: true */ validatedAt?: string | null; }; export type AgentDiscoveredModels = { available: boolean; draft?: boolean; models: Array; refreshing?: boolean; }; /** * AgentLLMProviderConfig is the status payload returned by the LLM provider config * endpoints. It never exposes the secret ref or the key. */ export type AgentLlmProviderConfig = { /** * Provider-compatible endpoint base URL, if configured. */ baseUrl?: string; /** * Static provider configured by LLM_PROVIDER. Null when dummy_provider marks * a deployment without a managed default. This is response-only metadata and * is not part of AgentLLMProviderConfigRequest. * Nullable: true */ defaultProvider?: string | null; /** * Whether an API key secret ref is configured. */ isSecretRefSet?: boolean; modelId?: string; primaryProviderId?: string; /** * The configured provider ("" when unset). */ provider?: string; providers?: Array; /** * When the config was last updated (ISO-8601), if set. */ updatedAt?: string; /** * Identifier of whoever last updated the config, if known. */ updatedBy?: string; /** * Monotonic version, bumped on every write. */ version?: number; }; /** * AgentLLMProviderConfigRequest is forwarded to agent-service to set the org-level * LLM provider config. The raw key is never sent here — only the Fleet Manager ref. */ export type AgentLlmProviderConfigRequest = { /** * Provider-compatible endpoint base URL. Conditionally required when provider is * anthropic_compatible_endpoint; enforced by agent-service validation. */ baseUrl?: string; modelId?: string; primaryProviderId?: string; /** * Legacy single-provider selection. Use providers and primaryProviderId for multiple configurations. */ provider?: string; providers?: Array; /** * Fleet Manager secret ref (secretRef::store::) for the provider's API key. * Omit for providers that authenticate via ambient identity. */ secretRef?: string; }; export type AgentLlmProviderEntry = { baseUrl?: string; enabledModels?: Array; id?: string; isSecretRefSet?: boolean; modelId?: string; /** * Exact pricing lookup IDs for enabled models, in lookup order. */ pricingModelIds?: Array; provider?: string; /** * Configured cloud endpoint/resource region; omitted when unknown. */ region?: string; /** * Enabled models for which the cost calculator has no model-specific pricing. */ unpricedModels?: Array; }; export type AgentLlmProviderEntryRequest = { baseUrl?: string; /** * Enabled model IDs for this provider. The primary modelId must be included. * Omission preserves existing models and enables modelId for legacy clients. */ enabledModels?: Array; id: string; /** * Provider-specific model or deployment ID; custom IDs are validated by the provider. */ modelId: string; /** * Hosting service or compatible endpoint: anthropic, anthropic_compatible_endpoint, openai, openai_compatible_endpoint, bedrock, vertex, or azure. */ provider: string; secretRef?: string; }; export type AgentModelCapabilities = { defaultEffort?: string; effortLevels: Array; }; export type AgentModelValidation = { /** * Nullable: true */ error?: string | null; valid: boolean; }; /** * AgentSkillDetail is the full Skill payload returned by read/write APIs. */ export type AgentSkillDetail = { created_at: string; /** * Audit identity that created the Skill. * Nullable: true */ created_by?: string | null; /** * Optional human-readable Skill description. * Nullable: true */ description?: string | null; id: string; /** * Optional stable Skill identifier. * Nullable: true */ identifier?: string | null; instructions: string; is_organizational: boolean; is_provisioned: boolean; name: string; /** * Owner email used for user-facing attribution when available. * Nullable: true */ owner_email?: string | null; owner_user_id: string; revision: number; updated_at: string; /** * Audit identity that most recently updated the Skill. * Nullable: true */ updated_by?: string | null; when_to_use: string; }; /** * AgentSkillRequest is forwarded to agent-service for Skill creation and updates. */ export type AgentSkillRequest = { description?: string | null; instructions: string; /** * Whether the Skill is available to the whole organization. Defaults to false. Admin only. * Nullable: true */ is_organizational?: boolean | null; name: string; when_to_use: string; }; /** * AgentSkillSummary is the compact Skill representation returned by list APIs. */ export type AgentSkillSummary = { created_at: string; /** * Optional human-readable Skill description. * Nullable: true */ description?: string | null; id: string; /** * Optional stable Skill identifier. * Nullable: true */ identifier?: string | null; is_organizational: boolean; is_provisioned: boolean; name: string; revision: number; updated_at: string; when_to_use: string; }; /** * AgentToolDefaultRequest is forwarded to agent-service for resource default upserts. */ export type AgentToolDefaultRequest = { policy: string; resourceId?: string; /** * Optional resource subtype. */ resourceSubtype?: string; resourceType: string; toolName?: string; }; /** * AgentToolPolicyBatchDeleteRequest is the delete group for batched tool policy mutations. */ export type AgentToolPolicyBatchDeleteRequest = { toolNames: Array; }; /** * AgentToolPolicyBatchRequest is forwarded to agent-service for batched tool policy mutations. */ export type AgentToolPolicyBatchRequest = { delete?: AgentToolPolicyBatchDeleteRequest; resourceId: string; /** * Optional resource subtype. */ resourceSubtype?: string; resourceType: string; upsert?: AgentToolPolicyBatchUpsertRequest; }; /** * AgentToolPolicyBatchUpsertRequest is the upsert group for batched tool policy mutations. */ export type AgentToolPolicyBatchUpsertRequest = { policy: string; toolNames: Array; }; /** * AgentToolPolicyRequest is forwarded to agent-service for tool policy upserts. */ export type AgentToolPolicyRequest = { policy: string; resourceId: string; /** * Optional resource subtype. */ resourceSubtype?: string; resourceType: string; toolName: string; }; export type AgentValidateModelRequest = { /** * Sensitive credential used only for validation; never persisted. */ apiKey?: string; baseUrl?: string; modelId: string; provider: string; providerId?: string; }; export type ApiKeyPolicyRef = { name?: string; uuid?: string; }; export type ApmMeasurementsSearchRequest = { /** * End time of the request range */ end: string; /** * Extra filters to apply on the measurements */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter measurements. Either `query` or `pipeline` * must be provided; the gin binding stack rejects the request with * HTTP 400 otherwise. * * The query MUST include top-level `resource_type` and `is_inbound` * filters (EQ or IN op). These were previously dedicated request * fields; they're now validated inside the GCQL so that callers that * can only express GCQL (e.g. monitors) can use this endpoint. */ query?: string; /** * Sources to filter measurements */ sources?: Array; /** * Start time of the request range */ start: string; }; export type ApmMeasurementsSearchTimeSeriesRequest = { bucketDuration?: string; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, * empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the measurements */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter measurements. Either `query` or `pipeline` * must be provided; the gin binding stack rejects the request with * HTTP 400 otherwise. * * The query MUST include top-level `resource_type` and `is_inbound` * filters (EQ or IN op). These were previously dedicated request * fields; they're now validated inside the GCQL so that callers that * can only express GCQL (e.g. monitors) can use this endpoint. */ query?: string; /** * Sources to filter measurements */ sources?: Array; /** * Start time of the request range */ start: string; valueField?: string; }; export type ApplyPolicyRequest = { /** * List of user emails to apply policies to. */ emails: Array; /** * If true, replaces existing policies; otherwise appends. */ override?: boolean; /** * List of policy UUIDs to apply. */ policyUUIDs: Array; }; /** * Assertion defines model for Assertion. */ export type Assertion = { operator?: AssertionOperator; property?: string; severity?: AssertionSeverity; source?: AssertionSource; target?: string; }; /** * AssertionOperator defines model for Assertion.Operator. */ export type AssertionOperator = string; /** * AssertionSeverity defines model for Assertion.Severity. */ export type AssertionSeverity = string; /** * AssertionSource defines model for Assertion.Source. */ export type AssertionSource = string; /** * AssessmentVerdictRequest grades one open assessment on the node at the revision the proposer read. */ export type AssessmentVerdictRequest = { assessmentId: string; reason: string; /** * The assessment's revision the verdict grades. */ revision: number; verdict: 'accepted' | 'rejected'; }; export type AssetDataSource = { /** * When the user connected the data source. Absent until then. * Format: date-time */ connected_at?: string; /** * The data source ID, as listed by the data sources endpoint. */ id?: string; /** * The integration that provides the data. */ integration_type?: string; /** * The data source name. */ name?: string; /** * Whether live data was observed: todo (none), partial or active. */ status?: 'todo' | 'partial' | 'active'; }; export type AssetExclusion = { /** * The type of the excluded asset. */ asset_type: string; /** * When the asset was excluded. */ excluded_at: string; /** * Email of the user who excluded the asset. */ excluded_by: string; /** * The provider's asset identifier. */ source_resource_id: string; }; export type AssetFetchResult = { /** * Error code if the fetch failed (e.g., "RATE_LIMITED", "UNAUTHORIZED"). */ errorCode?: string; /** * Error message if the fetch failed. */ errorMessage?: string; /** * The number of assets fetched. */ fetchedAssets?: number; /** * Required permissions for this asset type when fetch fails due to missing scopes. */ requiredPermissions?: Array; /** * SkipReason explains why the asset type was skipped (status and message). */ skipReason?: string; /** * Skipped is true when the entire asset type was skipped because its list * endpoint reported the type as absent (404). The run still succeeds. A * missing scope (403) is reported as a failure with RequiredPermissions * instead, not as a skip. */ skipped?: boolean; /** * The number of individual assets skipped during fetch (e.g., a private * dashboard the Application Key cannot read). */ skippedAssets?: number; /** * The status of the fetch operation ("success" or "failed"). */ status?: string; /** * The type of asset (e.g., "monitors"). */ type?: string; }; /** * AssetFinding is one finding or warning of an evaluated asset. */ export type AssetFinding = { datasource?: string; id?: string; message?: string; /** * Metric a missing key or value belongs to. */ metric?: string; source_datasource?: string; /** * Key a missing value belongs to. */ source_key?: string; /** * Datadog-side value, when a tenant rule already rewrote it. */ source_value?: string; /** * The missing or unsupported thing. */ subject?: string; suggestion?: AssetFindingSuggestion; /** * Datadog widget the finding belongs to. Empty for monitors and asset-level findings. */ widget_id?: string; widget_title?: string; }; /** * AssetFindingSuggestion is the top suggested fix carried on a finding. */ export type AssetFindingSuggestion = { /** * Set when the suggestion is already applied, automatically or by a user. */ applied_at?: string; /** * How sure the suggestion is, from 0 to 1. A rule the tenant already has is 1. */ confidence?: number; /** * Kind of rule the suggestion would create. */ kind?: 'metric' | 'key' | 'value'; /** * Top reason code behind the suggestion. */ reason?: string; /** * The suggested groundcover-side value. */ value?: string; }; /** * AssetFindingsGroups are the findings that count toward Needs Review, by type. */ export type AssetFindingsGroups = { missing_key?: Array; missing_metric?: Array; missing_value?: Array; not_supported?: Array; }; /** * AssetFindingsResponse is an asset's evaluation findings. */ export type AssetFindingsResponse = { /** * When the asset was last evaluated. Absent when it has not been evaluated. */ evaluated_at?: string; findings?: AssetFindingsGroups; warnings?: AssetFindingsWarnings; }; /** * AssetFindingsWarnings are shown to the user but never count toward Needs Review. */ export type AssetFindingsWarnings = { no_data?: Array; }; /** * AssetFunnel is the wet-mode hierarchical breakdown for one asset type. * * Unit names what Total counts: monitors are counted whole, dashboards are * counted per widget. */ export type AssetFunnel = { excluded?: ExcludedBucket; not_supported?: NotSupportedBucket; supported_converted?: SupportedConvertedBucket; supported_not_converted?: SupportedNotConvertedBucket; total?: number; unit?: string; }; /** * AssetGapDetail describes one unit's gaps, counted once regardless of how many * findings produced it. */ export type AssetGapDetail = { asset_id?: string; asset_name?: string; datasources?: Array; keys?: Array; keys_by_datasource?: { [key: string]: Array; }; /** * KeysByMetric and KeysByDatasource preserve which owner each missing key * belongs to. Without them a unit missing a metric label and a log field * reported both keys under the metric *and* under logs. */ keys_by_metric?: { [key: string]: Array; }; metrics?: Array; queries?: Array; reason?: string; /** * SomeQueriesReturnedData distinguishes a unit where every query came back * empty from one where only some did. Without it, a widget with nine working * series and one broken one is indistinguishable from a wholly dead widget. */ some_queries_returned_data?: boolean; values?: Array; values_by_metric?: { [key: string]: Array; }; widget_id?: string; widget_title?: string; }; export type AssetInstallResult = { /** * Error message if the installation failed. */ error?: string; /** * The groundcover resource ID if successfully installed. */ gcResourceId?: string; /** * The name of the asset. */ name: string; /** * The source resource ID from the provider. */ sourceResourceId: string; /** * The status of the installation. */ status: 'installed' | 'already_installed' | 'not_found' | 'not_convertible' | 'failed' | 'excluded'; }; export type AssetItem = { /** * The name of the asset. */ name: string; /** * Usage metric from provider. */ popularity?: number; /** * Hash of the raw payload. */ rawHash: string; /** * The verbatim provider object. */ rawPayload: { [key: string]: unknown; }; /** * The timestamp when the asset was created in the source provider. */ sourceCreatedAt: string; /** * The provider's asset identifier. */ sourceResourceId: string; }; export type AssetListItem = { /** * UUID of this asset row in the migration. Rediscovery can assign a new UUID to the same source asset. */ asset_id?: string; /** * The conversion status of the asset. */ conversion_status?: string; /** * Conversion errors encountered during processing. */ convert_errors?: { [key: string]: unknown; }; /** * Conversion warnings encountered during processing. */ convert_warnings?: { [key: string]: unknown; }; /** * The format of the converted payload. */ converted_format?: string; /** * The converted groundcover resource payload. */ converted_payload?: string; /** * Data sources this asset depends on. A todo one that is not connected puts the * asset in missing_data; a connected todo one keeps it in needs_review. * Populated by the list endpoint for monitors and dashboards. */ data_sources?: Array; /** * The timestamp when this asset was discovered. * Format: date-time */ discovered_at?: string; /** * When the current conversion was last evaluated. Absent when it has not been. * Format: date-time */ evaluated_at?: string; /** * Number of units (data widgets for a dashboard, 1 for a monitor) the last evaluation checked. */ evaluated_units?: number; /** * When the asset was excluded. Absent when not excluded. */ excluded_at?: string; /** * Email of the user who excluded this asset from the migration. Absent when not excluded. */ excluded_by?: string; /** * The groundcover resource ID if installed. */ gc_resource_id?: string; /** * The installation state of the asset. */ install_state?: string; metadata?: AssetMetadata; /** * Metric names used by this data source that are not currently live in groundcover. * Populated for synthesized metrics items returned with dataSourceId. Null means * coverage has not been computed because the migration predates this field. */ missing_metrics?: Array | null; /** * Missing requirements for full conversion. */ missing_reqs?: { [key: string]: unknown; }; /** * The name of the asset. */ name?: string; /** * Number of units with an open finding (widgets to review). Populated by the list endpoint. */ open_units?: number; /** * The verbatim provider object payload. */ raw_payload?: { [key: string]: unknown; }; /** * Where the asset stands on the way to migration, derived at read time from * conversion, install state, data sources and evaluation. * Populated by the list endpoint. */ readiness?: 'unsupported' | 'migrated' | 'missing_data' | 'not_evaluated' | 'needs_review' | 'ready'; /** * The timestamp when the asset was created in the source provider. * Format: date-time */ source_created_at?: string; /** * The provider's asset identifier. */ source_resource_id?: string; /** * The support level for this asset type. */ support_level?: string; }; export type AssetMetadata = { /** * Monitor-specific: the email of the creator. */ creatorEmail?: string; /** * The name of the creator (monitors) or author (dashboards). */ creatorName?: string; /** * The timestamp when the asset was last modified. * Format: date-time */ lastModified?: string; /** * Dashboard-specific: popularity metric. */ popularity?: number; /** * Monitor-specific: the overall state of the monitor. */ status?: string; /** * Tags associated with the asset. */ tags?: Array; /** * Monitor-specific: the beautified type of the monitor. */ type?: string; /** * Dashboard-specific: Datadog-recorded views at fetch time. */ viewCount?: number; /** * Dashboard-specific: new fetches use 1 (least viewed) through 5 (most viewed), based on log-scaled view counts. */ viewRank?: number; }; export type AssetSummaryResponseItem = { /** * The type of asset (e.g., "monitors"). */ asset_type?: string; /** * Total number of installed assets. */ installed_total?: number; /** * Total number of assets pending conversion. */ pending_total?: number; /** * Asset counts per readiness bucket, split by exclusion. Every bucket is present. */ readiness?: { [key: string]: ReadinessCount; }; /** * Total number of unique assets from the source. */ source_total?: number; /** * Total number of supported assets (full or partial support). */ supported_total?: number; /** * Total number of unsupported assets. */ unsupported_total?: number; }; /** * AssetsSummary holds asset counts for the unified summary. */ export type AssetsSummary = { by_type?: { [key: string]: number; }; total?: number; }; export type AssetsSummaryResponse = { /** * Summary statistics grouped by asset type. */ summary?: Array; }; export type AssociatedFilter = { /** * Key is the filter key */ key: string; /** * Type is the data type to filter by */ type: string; /** * Value is the filter value */ value: string; }; export type AssociatedRequestV2 = { /** * End time for the search */ end: string; /** * Filter associated is a list of filters */ filterAssociated?: Array; /** * Filter value to narrow the returned values (substring match), same as /values */ filterValue?: string; /** * Key to search for values */ key: string; /** * Limit is the maximum number of results to return */ limit: number; /** * MetricNames optionally narrows the metrics branch to specific metrics */ metricNames?: Array; /** * Sources is a list of sources to filter the values by */ sources?: Array; /** * Start time for the search */ start: string; }; /** * AttachSyncTargetRequest attaches a Slack thread to a root, so the root's updates are posted there. */ export type AttachInvestigationSyncTargetRequest = { /** * The comm-hub org connector that posts to the thread. */ connectorId: string; destination: InvestigationSlackDestination; /** * slack SyncTargetProviderSlack */ provider: 'slack'; }; /** * PutWorkloadsConfigRequest sets AutoInfra on a batch of workloads. */ export type AutoInfraPutWorkloadsConfigRequest = { configs: Array; }; export type AutoInfraSearchRequest = { /** * gcQL over `_from autonomous_infra` (the default domain here): one row per workload. */ query: string; }; /** * WorkloadConfig is one workload's setting. Env is "" for a cluster installed without one, and * Namespace is "" for cluster-scoped kinds. */ export type AutoInfraWorkloadConfig = { cluster: string; /** * Whether Autonomous Infrastructure manages the workload's resources. */ enabled: boolean; env?: string; kind: string; name: string; namespace?: string; }; /** * AwsCurSearchRequest is the shared request body of the aws_cur search * endpoints. Exactly one of Query or Pipeline must be provided. Unlike the * apm/ingestion domains there are no mandatory top-level filters — every * aws_cost_reports_v1 row is a cost line item. */ export type AwsCurSearchRequest = { /** * End time of the request range */ end: string; /** * Extra filters to apply on the cost report rows. */ filters?: string; pipeline?: SqlPipeline; /** * GCQL query to filter cost report rows. Either `query` or `pipeline` * must be provided. */ query?: string; /** * Sources to filter cost report rows. */ sources?: Array; /** * Start time of the request range */ start: string; }; /** * AwsCurSearchTimeSeriesRequest extends the search request with time-series * fields. BucketDuration is optional — cost data is hourly at best, so when * omitted it defaults to 1 day instead of being required like the other * search-time-series endpoints. */ export type AwsCurSearchTimeSeriesRequest = { bucketDuration?: string; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, * empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the cost report rows. */ filters?: string; pipeline?: SqlPipeline; /** * GCQL query to filter cost report rows. Either `query` or `pipeline` * must be provided. */ query?: string; /** * Sources to filter cost report rows. */ sources?: Array; /** * Start time of the request range */ start: string; valueField?: string; }; export type BackendSettings = { cloud?: string; endpoints?: Array; gcp_pubsub_topic?: { [key: string]: string; }; integrations?: Integrations; nat_ips?: Array; region?: string; }; /** * BaseQuery is the base struct for different query types. */ export type BaseQuery = { conditions?: Array; dataType?: string; datasourceID?: string; datasourceType?: string; /** * Shifts the evaluated window back by this many seconds, for sources that backfill * recent data. Up to 7 days. aws_cur queries must set exactly 172800 (48h): CUR * lands 24-48h after the usage it bills, so a fresher window reads no rows. */ evaluationDelay?: number; expression?: string; filters?: string; instantRollup?: string; name?: string; pipeline?: PromqlPipeline; queryType?: string; relativeTimerange?: RelativeTimerange; rollup?: Rollup; sqlPipeline?: SqlPipeline; }; /** * BatchCreateMonitorsV2Error is one failed item, with the single-create error's * message, code and details. */ export type BatchCreateMonitorsV2Error = { code?: string; details?: unknown; /** * Position of the item in the request's monitors list. */ index?: number; message?: string; name?: string; }; /** * BatchCreateMonitorsV2Request is the POST /api/v2/monitors/batch/create body. */ export type BatchCreateMonitorsV2Request = { /** * Each item is a POST /api/v2/monitors body. */ monitors: Array; }; export type BatchCreateMonitorsV2Response = { createdCount?: number; /** * UUIDs minted for the created monitors, in request order. */ createdUuids?: Array; errors?: Array; failedCount?: number; }; export type BatchDashboardsError = { /** * Code mirrors the single-route ErrorResponse.code contract so the UI can * branch the same way: set to VIEW_REVISION_CONFLICT when the item lost a * write race (retry the item), empty for permanent per-item failures. */ code?: string; id?: string; reason?: string; }; export type BatchDashboardsRequest = { dashboardUuids: Array; }; export type BatchDashboardsResponse = { errors?: Array; failedCount?: number; updatedCount?: number; }; export type BatchGetMonitorsError = { message?: string; uuid?: string; }; export type BatchGetMonitorsRequest = { monitorUUIDs?: Array; }; export type BatchGetMonitorsResponse = { errors?: Array; failedCount?: number; fetchedCount?: number; monitors?: { [key: string]: string; }; }; /** * BatchReadMonitorsV2Response is the v2 twin of BatchGetMonitorsResponse: the * stored entity (envelope + spec) per uuid instead of YAML text, with the same * per-uuid partial success — a miss lands in Errors and never fails the batch. */ export type BatchReadMonitorsV2Response = { errors?: Array; failedCount?: number; fetchedCount?: number; monitors?: { [key: string]: V2MonitorEntity; }; }; export type BatchUpdateDashboardTagsRequest = { dashboardUuids: Array; /** * Tags to append to each dashboard. Entries are trimmed and exact-case * deduplicated. At least one of tagsToAdd or tagsToRemove must be non-empty * after normalization, and the two lists must not share a tag (400 * otherwise). 1000 is a resource-exhaustion bound, not a product tag limit: * MAX_TAGS_PER_VIEW applies to each dashboard's resulting set * (too_many_tags), not to the delta lists. */ tagsToAdd?: Array; /** * Tags to remove from each dashboard. Same normalization and disjointness * rules as tagsToAdd; removing a tag a dashboard does not carry is a no-op. */ tagsToRemove?: Array; }; export type BatchUpdateMonitorTagsV2Error = { id?: string; reason?: string; }; export type BatchUpdateMonitorTagsV2Request = { monitorUuids: Array; /** * Tags to add to each monitor. Entries are trimmed and exact-case * deduplicated. At least one of tagsToAdd or tagsToRemove must be non-empty * after that, and the two lists must not share a tag (400 otherwise). A * monitor may carry at most 20 tags afterwards (reported per monitor), so at * most 20 distinct tags can be added. */ tagsToAdd?: Array; /** * Tags to remove from each monitor. Same rules as tagsToAdd; removing a tag * a monitor does not carry is a no-op. */ tagsToRemove?: Array; }; export type BatchUpdateMonitorTagsV2Response = { errors?: Array; failedCount?: number; /** * Every monitor not in errors, including those whose tags already matched. */ updatedCount?: number; }; export type BucketDurationSeconds = number; /** * CatalogInstallRequest is the optional body for a catalog install. */ export type CatalogInstallRequest = { /** * Pre-registered OAuth client id. Required for entries whose auth_mode is * `oauth_static` (servers without dynamic client registration); not accepted * for `oauth` entries. For `token_or_oauth` entries it is optional: supply it * to install in OAuth mode, omit it to install in token mode. */ client_id?: string; /** * Pre-registered OAuth client secret; requires client_id. Omit for public * clients (PKCE only). */ client_secret?: string; /** * Optional distinct name for an additional named instance; when omitted the * catalog entry's display name is used. */ name?: string; /** * Overrides the configured DCR software statement (RFC 7591 §2.3) for this * install. Valid only for `oauth` entries. */ software_statement?: string; }; /** * CatalogModel holds metadata if the monitor originated from a catalog. */ export type CatalogModel = { category?: string; id?: string; tags?: Array; version?: number; }; /** * CatalogTemplateListItem is a thin, per-tenant view of a catalog template: * * the authored catalog header plus derived Added/InstalledDashboardId state. * Added is true when this tenant already has a live managed (non-cloned) * install of the template, in which case InstalledDashboardId is that * dashboard's UUID. */ export type CatalogTemplateListItem = { added?: boolean; catalogId?: string; description?: string; detection?: Detection; displayName?: string; installedDashboardId?: string; /** * Integration is the integration family (e.g. "aws"), or null for * native/non-integration templates. */ integration?: string | null; /** * IsRecommended flags a "start here" template (decision 2026-07-13). * Mandatory and present on every template file; served verbatim. */ isRecommended?: boolean; lastUpdated?: string; pack?: string; /** * Service is the owning sub-service (e.g. "rds"); omitted when unset. */ service?: string; tags?: Array; /** * TopWidgets is the authored card widget strip (decision 2026-07-12): * exactly 3 entries, each naming a preset query widget verbatim with kind * equal to that widget's visualizationConfig.type. Served verbatim — the * runtime never parses the preset for card metadata; the CI content gate * (BE-2351) is the only place the preset schema is inspected. */ topWidgets?: Array; version?: number; }; /** * CatalogTemplateResponse is the catalog template header — the same fields * the list endpoint serves — plus the full preset, for live preview. */ export type CatalogTemplateResponse = { catalogId?: string; description?: string; detection?: Detection; displayName?: string; /** * Integration is the integration family (e.g. "aws"), or null for * native/non-integration templates. */ integration?: string | null; /** * IsRecommended flags a "start here" template (decision 2026-07-13). * Mandatory and present on every template file; served verbatim. */ isRecommended?: boolean; lastUpdated?: string; pack?: string; /** * Preset is the template's dashboard preset as an escaped JSON string. */ preset?: string; /** * Service is the owning sub-service (e.g. "rds"); omitted when unset. */ service?: string; tags?: Array; /** * TopWidgets is the authored card widget strip (decision 2026-07-12): * exactly 3 entries, each naming a preset query widget verbatim with kind * equal to that widget's visualizationConfig.type. Served verbatim — the * runtime never parses the preset for card metadata; the CI content gate * (BE-2351) is the only place the preset schema is inspected. */ topWidgets?: Array; version?: number; }; /** * ChangedResponse counts the rows an upsert created or whose enabled changed; a row sent unchanged is not counted. */ export type ChangedResponse = { changed?: number; }; export type CheckoutSessionRequest = { billingFrequency?: string; email?: string; planName?: string; tenantUUID?: string; }; export type CheckoutSessionResponse = { checkoutSessionId?: string; url?: string; }; /** * ClaudeCreateSessionRequest is the facade request body for creating a Claude * Managed Agents session. The caller supplies only title/prompt; the router * forwards it to comm-hub, which resolves the stored credential server-side. */ export type ClaudeCreateSessionRequest = { /** * The initial prompt sent to the agent. */ prompt: string; /** * Optional session title. */ title?: string; }; /** * ClaudeCreateSessionResponse is the response after creating a Claude Managed * Agents session. It never echoes back the api_key or GitHub token used to * build the upstream request. */ export type ClaudeCreateSessionResponse = { session_id?: string; status?: string; }; /** * ClaudeEventContent is a single content block within a session event * (currently text only). */ export type ClaudeEventContent = { text?: string; type?: string; }; /** * ClaudeGetAgentResponse is the response for the Get Agent endpoint. */ export type ClaudeGetAgentResponse = { id?: string; name?: string; }; /** * ClaudeGetEnvironmentResponse is the response for the Get Environment endpoint. */ export type ClaudeGetEnvironmentResponse = { id?: string; name?: string; }; /** * ClaudeGetSessionResponse is the response when fetching a Claude Managed * Agents session. */ export type ClaudeGetSessionResponse = { id?: string; status?: string; }; /** * ClaudeInboundEvent is a single event returned when listing session events, * * e.g. agent.message, session.status_idle, session.error, or an agent tool-use * that paused the session awaiting a user.tool_confirmation. ID, Name, Input, * and EvaluatedPermission are populated on tool-use events so the caller can * render the pending tool call and echo the event ID back as tool_use_id. */ export type ClaudeInboundEvent = { content?: Array; /** * Evaluated permission policy for the tool call (tool-use events only) */ evaluated_permission?: string; /** * Event ID; on a tool-use event echo this back as tool_use_id in a * user.tool_confirmation. */ id?: string; /** * Tool call input arguments (tool-use events only) */ input?: { [key: string]: unknown; }; /** * Tool name (tool-use events only) */ name?: string; stop_reason?: ClaudeStopReason; type?: string; }; /** * ClaudeListEventsResponse is the paginated response when listing session events. */ export type ClaudeListEventsResponse = { events?: Array; next_page?: string; }; /** * ClaudeSendEventRequest is the request body for sending a session event. * * Type must be user.message, user.interrupt, or user.tool_confirmation, else * the request is rejected with 400. Text carries a user.message; ToolUseID, * Result, and Message carry a user.tool_confirmation (Message is the optional * deny reason, forwarded upstream as deny_message). */ export type ClaudeSendEventRequest = { /** * Optional reason for a deny, delivered to the agent (user.tool_confirmation only) */ message?: string; /** * Approve or deny the paused tool call (user.tool_confirmation only) */ result?: 'allow' | 'deny'; text?: string; /** * ID of the paused tool call to respond to (user.tool_confirmation only) */ tool_use_id?: string; type: 'user.message' | 'user.interrupt' | 'user.tool_confirmation'; }; /** * ClaudeSendEventResponse is the response after sending a session event. */ export type ClaudeSendEventResponse = { type?: string; }; /** * ClaudeStopReason describes why a session went idle, carried on * session.status_idle events. */ export type ClaudeStopReason = { /** * Event IDs that triggered the stop; for a requires_action pause these * identify the agent tool-use event(s) awaiting a user.tool_confirmation. */ event_ids?: Array; type?: string; }; export type ClustersListRequest = { sources?: Array; }; export type ClustersListResponse = { clusters?: Array; totalCount?: number; }; export type ClustersListResult = { cloudProvider?: string; cpuAllocatable?: number; cpuLimit?: number; cpuLimitAllocatablePercent?: number; cpuRequest?: number; cpuRequestAllocatablePercent?: number; cpuUsage?: number; cpuUsageAllocatablePercent?: number; cpuUsageLimitPercent?: number; cpuUsageRequestPercent?: number; env?: string; issueCount?: number; kubernetesVersion?: string; memoryAllocatable?: number; memoryLimit?: number; memoryLimitAllocatablePercent?: number; memoryRequest?: number; memoryRequestAllocatablePercent?: number; memoryUsage?: number; memoryUsageAllocatablePercent?: number; memoryUsageLimitPercent?: number; memoryUsageRequestPercent?: number; name?: string; nodesCount?: number; pods?: { [key: string]: number; }; }; /** * Column defines a searchable column and its properties. */ export type Column = { additionalFilter?: string; autoComplete?: boolean; isNullable?: boolean; key?: string; origin?: string; type?: string; }; /** * Condition specifies a search condition based on a column and filters. */ export type Condition = { additionalFilter?: string; autoComplete?: boolean; filters?: Array; isNullable?: boolean; key?: string; origin?: string; type?: string; }; export type ConfigBase = { enabled?: boolean; excludedClusters?: Array; /** * Deprecated: Exporters field is no longer used but kept for backward compatibility * to prevent parsing errors from clients that still send it. */ exporters?: Array; labelSettings?: LabelSettings; name?: string; version?: number; }; /** * Configuration describes the set of Prometheus-style relabeling rules * applied by a Relabeler to incoming time series. * * The rules use metric-relabeling semantics (equivalent to Prometheus' * `metric_relabel_configs`): default source label is `__name__`. */ export type Configuration = { rules?: RelabelConfig; }; export type ConnMetadata = { BackendID?: string; ClientID?: string; }; /** * ConnectedAppChannel identifies a Slack channel for slack-app delivery. */ export type ConnectedAppChannel = { /** * ID is the Slack channel ID used for delivery. */ id: string; /** * Name is the channel display name shown by channel selectors; optional. */ name?: string; }; /** * ConnectedAppDeliveryOptions carries per-app delivery options for direct-to-connected-app * monitor notifications. Fields are app-type specific; unrelated fields are ignored. */ export type ConnectedAppDeliveryOptions = { /** * AssigneeID optionally assigns created/updated Linear issues to a user. */ assignee_id?: string; /** * AutoResolve controls whether resolved monitor issues transition Linear issues. */ auto_resolve?: boolean; /** * Channels lists Slack channels to post to (slack-app connected apps). * Multiple channels result in one notification per channel via dispatch-center fanout. */ channels?: Array; /** * DelegateID optionally delegates created/updated Linear issues to an agent. */ delegate_id?: string; /** * LabelIDs optionally assigns Linear labels to created/updated issues. */ label_ids?: Array; /** * ProjectID optionally assigns created/updated Linear issues to a project. */ project_id?: string; /** * ResolvedStatusID optionally selects the Linear status used for auto-resolve. */ resolved_status_id?: string; /** * TeamID selects the Linear team that receives created issues. */ team_id?: string; }; export type ConnectedAppListItemResponse = { /** * The creation timestamp */ created_at?: string; /** * The email of the user who created the connected app */ created_by?: string; /** * SHA-256 hash of the stored connected app data, including secret fields */ data_hash?: string; /** * The ID of the connected app */ id?: string; /** * The name of the connected app */ name?: string; /** * The type of the connected app */ type?: string; }; export type ConnectedAppListItemWithRoutesResponse = { /** * The creation timestamp */ created_at?: string; /** * The email of the user who created the connected app */ created_by?: string; /** * The connected app data. Schema depends on type field: * For type "slack-app": use SlackAppDataResponse schema */ data?: unknown; /** * SHA-256 hash of the stored connected app data, including secret fields */ data_hash?: string; /** * The ID of the connected app */ id?: string; /** * The name of the connected app */ name?: string; /** * The type of the connected app */ type?: string; /** * Notification routes and monitors that use this connected app */ used_by?: Array; }; export type ConnectedAppListResponse = { /** * List of connected apps */ connectedApps?: Array; }; /** * ConnectedAppParams maps each connected app ID to its per-app delivery options. * * Requires backend version >= 1.11.916; older backends reject this field with a * validation error rather than silently dropping the configured options. */ export type ConnectedAppParams = { [key: string]: ConnectedAppDeliveryOptions; }; export type ConnectedAppResponse = { /** * The creation timestamp */ created_at?: string; /** * The email of the user who created the connected app */ created_by?: string; /** * The connected app data. Schema depends on type field: * For type "slack-app": use SlackAppDataResponse schema */ data?: unknown; /** * SHA-256 hash of the stored connected app data, including secret fields */ data_hash?: string; /** * The ID of the connected app */ id?: string; /** * The name of the connected app */ name?: string; /** * The type of the connected app */ type?: string; /** * The last update timestamp */ updated_at?: string; /** * The email of the user who last updated the connected app */ updated_by?: string; }; export type ConnectionConfiguration = { /** * The API key. */ apiKey: string; /** * The Application key (required for Datadog, not used for Coralogix). */ applicationKey?: string; /** * The site identifier. For Datadog: "us1", "us3", "us5", "eu1", "ap1", "us1-fed". For Coralogix: "us1", "us2", "eu1", "eu2", "ap1", "ap2". */ site: string; }; /** * ConnectorCapabilities contains optional provider-owned feature metadata. */ export type ConnectorCapabilities = { mcp?: ConnectorMcpCapability; }; /** * ConnectorCatalogEntry is a single declarative connector-catalog entry (a * first-class MCP-backed preset identified by catalog id). */ export type ConnectorCatalogEntry = { /** * AuthMode is the install-time auth flow: `none`, `token`, `oauth` * (dynamic client registration), `oauth_static` (admin supplies a * pre-registered client; the server has no registration endpoint) or * `token_or_oauth` (admin selects per-user token, or OAuth by supplying a * pre-registered client; changeable after install). */ auth_mode?: string; description?: string; display_name?: string; icon_domain?: string; icon_url?: string; id?: string; setup_help?: string; }; /** * ConnectorCatalogResponse is the connector catalog listing. */ export type ConnectorCatalogResponse = { entries?: Array; }; /** * CredentialResponse is the JSON representation of a stored credential. */ export type ConnectorCredentialResponse = { /** * The authentication type */ auth_type?: string; capabilities?: ConnectorCapabilities; /** * Creation timestamp */ created_at?: string; /** * Provider-specific metadata */ data?: { [key: string]: unknown; }; /** * Optional description for this credential */ description?: string; /** * Whether this credential is administratively enabled */ enabled?: boolean; /** * The credential ID */ id?: string; /** * Whether this is an org-level credential */ is_org_level?: boolean; /** * Human-readable name for this credential */ name?: string; /** * Linked org connector ID for user-level credentials, when applicable */ org_credential_id?: string; /** * The provider name */ provider?: string; /** * The credential status */ status?: string; /** * Last update timestamp */ updated_at?: string; /** * Whether this credential can currently be resolved by comm-hub */ usable?: boolean; /** * The user who owns this credential (email or user ID) */ user?: string; }; /** * ConnectorDataRequest wraps provider-specific connector data. */ export type ConnectorDataRequest = { /** * Provider-specific connector data. */ data?: { [key: string]: unknown; }; }; /** * ConnectorEnableResponse is the response after enabling a connector. */ export type ConnectorEnableResponse = { /** * Provider-specific connector metadata. Install responses can include provider setup data such as manifest_json and manifest_url. */ data?: { [key: string]: unknown; }; /** * The credential ID of the org-level enablement */ id?: string; /** * The credential name */ name?: string; /** * The provider name */ provider?: string; /** * The credential status */ status?: string; }; /** * ConnectorListResponse is the list response keyed by provider name. */ export type ConnectorListResponse = { [key: string]: ConnectorStatus; }; /** * ConnectorMCPCapability describes an MCP source exposed by a first-class connector. */ export type ConnectorMcpCapability = { /** * Whether MCP requests can be authenticated. Omitted when not applicable. */ authState?: 'ready' | 'awaiting_auth'; /** * Display name shown for the MCP source. */ displayName: string; icon?: string; orgDiscoveryPath?: string; /** * Whether the connected credential holds all grantable user scopes ("full") * or a re-consent could grant more ("partial"). Omitted when not applicable. */ scopeStatus?: 'full' | 'partial'; /** * Stable identifier for the connector-provided MCP server. */ serverId: string; setup?: ConnectorMcpSetup; setupGuidance?: string; /** * Ownership kind for the MCP source. */ sourceKind: string; userProxyPath?: string; }; /** * ConnectorMCPSetup describes provider setup readiness. */ export type ConnectorMcpSetup = { /** * Provider setup state. */ state: 'ready' | 'update_required'; }; /** * ConnectorManifestResponse contains a provider app manifest and creation URL. */ export type ConnectorManifestResponse = { icon_url?: string; /** * JSON manifest for creating the provider app. */ manifest_json: string; /** * URL that opens the provider app creation flow. */ manifest_url: string; }; /** * ConnectorOAuthStartResponse contains the provider authorization URL. */ export type ConnectorOAuthStartResponse = { /** * URL the frontend should navigate to for provider authorization. */ authorize_url?: string; }; /** * ConnectorStatus represents a single provider's state and credentials. */ export type ConnectorStatus = { /** * Credentials for this connector */ credentials?: Array; /** * Whether the connector is enabled (org-level credential exists) */ enabled?: boolean; }; /** * ConnectorValidationErrorDetails lists every validation violation. */ export type ConnectorValidationErrorDetails = { violations: Array; }; /** * ConnectorValidationErrorResponse is a connector 400; validation failures list every violation in details. */ export type ConnectorValidationErrorResponse = { details?: ConnectorValidationErrorDetails; message: string; trace_id?: string; }; /** * ConnectorValidationViolation is one rule the submitted connector data violates. */ export type ConnectorValidationViolation = { /** * Human-readable explanation. */ message: string; /** * Field path in the submitted data. */ path: string; /** * Stable, machine-readable rule code. */ rule: string; /** * The offending scope, event or URL, when there is one. */ value?: string; }; export type ConversionResultItem = { conversionWarnings?: Array; monitor?: Monitor; }; /** * ConversionSummary holds supported/unsupported counts for the unified summary. */ export type ConversionSummary = { supported?: number; unsupported?: number; unsupported_breakdown?: UnsupportedBreakdown; }; /** * ConversionWarning represents a structured warning that occurred during conversion * This is used across all converters (dashboard, monitor, etc.) */ export type ConversionWarning = { context?: { [key: string]: string; }; details?: string; message?: string; originalData?: unknown; severity?: WarningSeverity; suggestions?: Array; type?: ConversionWarningType; unsupported?: UnsupportedScope; }; /** * ConversionWarningType represents the type of conversion warning */ export type ConversionWarningType = string; export type ConvertAllAssetsRequest = { vendor: Vendor; }; export type ConvertAllAssetsResponse = { dashboards?: ConvertAssetsResponse; monitors?: ConvertAssetsResponse; }; export type ConvertAssetsRequest = { vendor?: Vendor; }; export type ConvertAssetsResponse = { asset_type?: string; failed?: number; processed?: number; successful?: number; }; export type ConvertMonitorRequest = { monitor?: Monitor; vendor?: Vendor; }; export type ConvertMonitorResponse = { data?: ConversionResultItem; error?: string; success?: boolean; }; /** * CountPct is a count with percentage of its parent total. */ export type CountPct = { count?: number; pct?: number; }; /** * CoverageAction defines an actionable step and its estimated query impact. */ export type CoverageAction = { action_type?: string; display_name?: string; id?: string; integration?: string; issue_type?: IssueType; labels?: Array; message?: string; queries_unblocked?: number; queries_unblocked_pct?: number; }; /** * CoveragePlan provides a prioritized path to improve query success rate. */ export type CoveragePlan = { baseline_success_pct?: number; blocking_queries?: number; excluded_issue_types?: Array; max_reachable_queries?: number; max_reachable_success_pct?: number; queries_needed_to_target?: number; ranked_actions?: Array; recommended_path?: Array; successful_queries?: number; target_reachable?: boolean; target_success_pct?: number; total_queries?: number; }; /** * CoverageStep is a selected action with cumulative projection metadata. */ export type CoverageStep = { action_type?: string; cumulative_queries_unblocked?: number; display_name?: string; id?: string; integration?: string; issue_type?: IssueType; labels?: Array; message?: string; projected_success_pct?: number; projected_success_queries?: number; queries_unblocked?: number; queries_unblocked_pct?: number; }; export type CreateApiKeyRequest = { /** * Optional description for the API key. */ description?: string; /** * Optional expiration date for the API key. * Format: date-time */ expirationDate?: string; /** * User-defined name for the API key. */ name: string; /** * The UUID of the service account this key belongs to. */ serviceAccountId: string; }; export type CreateApiKeyResponse = { /** * The generated API key token (secret). Store this securely. */ apiKey?: string; /** * The UUID of the created API key resource. */ id?: string; }; export type CreateAssetsRequest = { /** * The list of assets to create. */ assets: Array; /** * The discovery timestamp. */ discoveredAt: string; /** * The discovery identifier for this batch. */ discoveryId: string; /** * The method of asset acquisition from the source. */ sourceMethod: 'api' | 'manual'; /** * The source provider. */ sourceProvider: 'datadog' | 'coralogix'; }; export type CreateAssetsResponse = { /** * The number of assets created. */ createdAssetCount?: number; /** * The discovery timestamp. * Format: date-time */ discoveredAt?: string; /** * The discovery identifier. */ discoveryId?: string; }; /** * CreateBackendInvestigationRequest opens a root for a backend caller acting for a user, with how it started. */ export type CreateBackendInvestigationRequest = { /** * Sent to the root's investigator after the statement. */ instructions?: string; /** * At most this many of the trigger's roots may be open: at the cap, a root for a new subject is refused * with 429 TRIGGER_AT_CAPACITY. Omitted: no limit. Only for an automation source. */ maxConcurrent?: number; modelSelection?: InvestigationModelSelection; scope?: Array; /** * true opens the root without starting groundcover's investigator; start it later with startInvestigator. */ skipInvestigator?: boolean; source: InvestigationBackendSource; statement: string; subject: InvestigationSubject; timeRange?: InvestigationTimeRange; }; /** * CreateConnectedAppRequest is the request body for creating a new connected app. */ export type CreateConnectedAppRequest = { /** * The connected app-specific data. Schema depends on the 'type' field: * For type "slack-webhook": use SlackWebhookData schema * For type "pagerduty": use PagerDutyData schema * For type "opsgenie": use OpsGenieData schema * For type "incidentio": use IncidentIOData schema * For type "rootly": use RootlyData schema * For type "webhook": use WebhookData schema ({"url": "https://...", "method": "POST", "headers": {...}, "auth_type": "bearer", "api_key": "..."}) * For type "ms-teams": use MSTeamsData schema */ data: { [key: string]: unknown; }; /** * The name of the connected app */ name: string; /** * The type of the connected app */ type: 'slack-webhook' | 'pagerduty' | 'opsgenie' | 'incidentio' | 'rootly' | 'webhook' | 'ms-teams'; }; export type CreateConnectedAppResponse = { /** * SHA-256 hash of the stored connected app data, including secret fields */ data_hash?: string; /** * The ID of the created connected app */ id?: string; /** * The type of the connected app */ type?: string; }; export type CreateDashboardRequest = { description?: string; isProvisioned?: boolean; name?: string; preset?: string; /** * Tags to attach to the dashboard (array of free-text strings; whitespace-trimmed, original casing preserved) */ tags?: Array; team?: string; }; export type CreateDataIntegrationConfigRequest = { cluster?: string; config?: string; is_paused?: boolean; name?: string; tags?: { [key: string]: unknown; }; }; /** * CreateDecisionRequest creates and approves a proposal as one human decision. */ export type CreateDecisionRequest = { /** * Optional verdicts for resolve and refute, at each assessment's current revision. * Omitted open assessments remain unjudged. Not allowed for create_child and stop. */ assessmentVerdicts?: Array; child?: InvestigationProposalChild; /** * Defaults to "Decided by user." when omitted or blank. */ details?: string; /** * Optional findings from the same tree. Each finding may appear once. */ evidence?: Array; /** * create_child ProposalCreateChild * resolve ProposalResolve * refute ProposalRefute * stop ProposalStop */ type: 'create_child' | 'resolve' | 'refute' | 'stop'; }; /** * CreateFindingRequest uses signal and queryLanguage to identify the MCP tool for retrieving evidence. * * Queryable signals require a query: metrics uses metricsql, all other queryable signals use gcql. * Code, link and other findings require a URL and do not accept queries; a code URL is a permalink pinned to a commit. * A queryable finding may include a supplemental URL. */ export type CreateFindingRequest = { details: string; query?: string; queryLanguage?: 'gcql' | 'metricsql'; /** * logs SignalLogs * traces SignalTraces * metrics SignalMetrics * events SignalEvents * entities SignalEntities * issues SignalIssues * monitors SignalMonitors * k8s SignalK8s * profiling SignalProfiling * rum SignalRUM * db_measurements SignalDBMeasurements * code SignalCode * link SignalLink * other SignalOther */ signal: 'logs' | 'traces' | 'metrics' | 'events' | 'entities' | 'issues' | 'monitors' | 'k8s' | 'profiling' | 'rum' | 'db_measurements' | 'code' | 'link' | 'other'; timeRange?: InvestigationTimeRange; url?: string; }; export type CreateIngestionKeyRequest = { /** * The desired name for the ingestion key. */ name: string; /** * Indicates whether the key is explicitly for remote configuration or not. */ remoteConfig?: boolean; /** * A list of tags to associate with the key. */ tags?: Array; /** * The type of the ingestion key. */ type: 'sensor' | 'rum' | 'thirdParty'; }; export type CreateInvestigationRequest = { modelSelection?: InvestigationModelSelection; scope?: Array; /** * true opens the root without starting groundcover's investigator; start it later with startInvestigator. */ skipInvestigator?: boolean; statement: string; subject: InvestigationSubject; timeRange?: InvestigationTimeRange; }; export type CreateMappingsRequest = { config: MappingConfig; /** * The data type for this mappings configuration. */ dataType: 'metrics' | 'logs' | 'traces' | 'events'; }; export type CreateMigrationRequest = { /** * The name of the migration. */ name: string; /** * The provider type for this migration. */ provider: 'datadog' | 'coralogix'; }; export type CreateMonitorRequest = { /** * Annotations to attach to the alert. */ annotations?: { [key: string]: string; }; /** * Whether the alert should auto-resolve. */ autoResolve?: boolean; catalog?: CatalogModel; /** * Category of the monitor. */ category?: string; display?: DisplayModel; evaluationInterval?: EvaluationInterval; /** * State to enter if execution fails. */ executionErrorState?: 'OK' | 'Error' | 'Alerting'; /** * Whether Slack notifications should omit the issue graph preview. */ hideSlackPreviewGraph?: boolean; /** * Whether the monitor is paused. * Nullable: true */ isPaused?: boolean | null; /** * Labels to attach to the monitor/alert. */ labels?: { [key: string]: string; }; /** * Type of measurement (state or event). */ measurementType?: 'state' | 'event'; model?: Model; /** * State to enter if no data is returned. */ noDataState?: 'OK' | 'NoData' | 'Alerting'; notificationSettings?: NotificationSettings; /** * Routing information. */ routing?: Array; /** * Severity level (free-form; used as a notification/display label, not validated). */ severity?: string; /** * Team associated with the monitor. */ team?: string; /** * Title of the monitor. */ title: string; } & { /** * Whether the monitor is provisioned by IaC. */ readonly isProvisioned?: boolean; }; export type CreateMonitorResponse = { /** * The UUID of the newly created monitor. */ monitorId?: string; }; /** * CreateMonitorV2Request is the POST /api/v2/monitors body; the uuid is * minted server-side (a client-owned identity uses PUT /{uuid}). */ export type CreateMonitorV2Request = { isProvisioned?: boolean; originId?: string; /** * Origin has server-side behaviour (synthetics, migrations), so only * Catalog with a known catalog entry id is accepted from clients. */ originType?: string; spec?: V2MonitorSpec; }; export type CreateNotificationRouteRequest = { /** * The name of the notification route */ name: string; notificationSettings?: NotificationSettingsRequest; /** * The gcQL query to filter issues */ query: string; /** * The routing rules for notifications */ routes: Array; }; export type CreateNotificationRouteResponse = { /** * The ID of the created route */ id?: string; }; export type CreatePolicyRequest = { /** * Optional claim role for the policy. */ claimRole?: string; dataScope?: DataScope; /** * Optional description for the policy. */ description?: string; featurePermissions?: Permissions; /** * Name of the policy. */ name: string; role?: RoleMap; /** * Whether this policy grants access to sensitive (access-controlled) attributes. */ sensitiveAccess?: boolean; }; /** * CreateProposalRequest submits a decision for later approval or rejection. */ export type CreateProposalRequest = { /** * Required for resolve and refute: exactly one per open assessment on the node, at its current revision. * Not allowed for create_child and stop. */ assessmentVerdicts?: Array; child?: InvestigationProposalChild; details: string; /** * Findings from the same tree; omitted means none. Each finding may appear once. */ evidence?: Array; /** * create_child ProposalCreateChild * resolve ProposalResolve * refute ProposalRefute * stop ProposalStop */ type: 'create_child' | 'resolve' | 'refute' | 'stop'; }; export type CreateRecurringSilenceRequest = { /** * Optional comment for the recurring silence */ comment?: string; /** * Whether the recurring silence is enabled. Defaults to true. */ enabled?: boolean; matchers: Matchers; /** * Recurrence type: daily, weekly, or monthly * daily RecurrenceTypeDaily * weekly RecurrenceTypeWeekly * monthly RecurrenceTypeMonthly */ recurrenceType: 'daily' | 'weekly' | 'monthly'; /** * Timeframes map: keys depend on recurrenceType (every_day / weekday names / day-of-month strings) */ timeframes: { [key: string]: Array; }; /** * IANA timezone name (e.g. "America/New_York") */ timezone: string; }; export type CreateSecretRequest = { content: string; /** * Indicates if this secret is managed by an external provider (e.g., terraform) */ managedByProvider?: 'none' | 'terraform'; /** * The name of the secret */ name: string; /** * The type of the secret (e.g., api_key, password, basic_auth) */ type: string; }; export type CreateServiceAccountRequest = { /** * The email address associated with the service account. */ email: string; /** * The desired name for the service account. */ name: string; /** * A list of policy UUIDs to assign to the service account. */ policyUUIDs: Array; }; export type CreateSilenceRequest = { BackendID?: string; ClientID?: string; /** * Optional comment for the silence */ comment?: string; /** * End time for the silence (must be after StartsAt) */ endsAt: string; matchers: Matchers; /** * Start time for the silence */ startsAt: string; }; /** * CreateUserCredentialRequest is the request body for creating a user-level credential. * * The provider is taken from the :provider path parameter. */ export type CreateUserCredentialRequest = { /** * Provider-specific credential data (e.g. {"api_key": "...", "auto_create_pr": true}) */ data: { [key: string]: unknown; }; /** * Optional description for this credential */ description?: string; /** * Human-readable name for this credential */ name: string; }; export type CreateViewRequest = { description?: string; name?: string; preset?: string; tags?: Array; team?: string; viewType?: string; }; export type CreateWorkflowResponse = { /** * Current revision number of the workflow */ revision?: number; /** * Current status of the workflow */ status?: string; /** * Unique identifier for the created workflow */ workflow_id?: string; }; /** * Creator represents the creator of a resource */ export type Creator = { email?: string; handle?: string; name?: string; }; export type CurrentStatsRequest = { end?: string; sources?: Array; start?: string; }; export type CurrentStatsResponse = { stats?: Array; totalStats?: TotalStats; }; /** * CursorFollowupRequest is the request body for sending a followup to a Cursor Cloud agent. */ export type CursorFollowupRequest = { prompt?: CursorPrompt; }; /** * CursorFollowupResponse is the response after sending a followup. */ export type CursorFollowupResponse = { id?: string; }; /** * CursorGetConversationResponse is the full conversation for an agent. */ export type CursorGetConversationResponse = { id?: string; messages?: Array; }; /** * CursorGetMeResponse is the response for the Get Me endpoint. */ export type CursorGetMeResponse = { api_key_name?: string; created_at?: string; user_email?: string; }; /** * CursorImage is a base64-encoded image attached to a prompt. */ export type CursorImage = { /** * Base64-encoded image data */ data: string; /** * Image height in pixels */ height?: number; /** * Image width in pixels */ width?: number; }; /** * CursorLaunchAgentRequest is the request body for launching a Cursor Cloud agent. */ export type CursorLaunchAgentRequest = { model?: string; prompt?: CursorPrompt; source?: CursorSource; target?: CursorTarget; }; /** * CursorLaunchAgentResponse is the response after launching a Cursor Cloud agent. */ export type CursorLaunchAgentResponse = { created_at?: string; id?: string; name?: string; source?: CursorSourceResponse; status?: string; target?: CursorTargetResponse; }; /** * CursorListModelsResponse is the response for the List Models endpoint. */ export type CursorListModelsResponse = { models?: Array; }; /** * CursorListRepositoriesResponse is the response for the List Repositories endpoint. */ export type CursorListRepositoriesResponse = { repositories?: Array; }; /** * CursorMessage represents a single message in an agent conversation. */ export type CursorMessage = { id?: string; text?: string; type?: string; }; /** * CursorPollStatusResponse is the response when polling agent status. */ export type CursorPollStatusResponse = { created_at?: string; id?: string; name?: string; source?: CursorSourceResponse; status?: string; summary?: string; target?: CursorTargetResponse; }; /** * CursorPrompt represents a prompt with text and optional images. */ export type CursorPrompt = { /** * Optional images to include with the prompt */ images?: Array; /** * The prompt text */ text: string; }; /** * CursorRepositoryItem represents a single GitHub repository. */ export type CursorRepositoryItem = { name?: string; owner?: string; repository?: string; }; /** * CursorSource specifies the source repository for the agent. */ export type CursorSource = { /** * An existing pull request URL for context */ prUrl?: string; /** * The git ref (branch, tag, or commit) */ ref?: string; /** * The repository URL */ repository?: string; }; /** * CursorSourceResponse is the source info returned in agent responses. */ export type CursorSourceResponse = { ref?: string; repository?: string; }; /** * CursorStopRequest is the request body for stopping a Cursor Cloud agent. */ export type CursorStopRequest = { [key: string]: unknown; }; /** * CursorStopResponse is the response after stopping an agent. */ export type CursorStopResponse = { id?: string; }; /** * CursorTarget specifies target branch and PR behavior. */ export type CursorTarget = { autoBranch?: boolean; autoCreatePr?: boolean; branchName?: string; openAsCursorGithubApp?: boolean; skipReviewerRequest?: boolean; }; /** * CursorTargetResponse is the target info returned in agent responses. */ export type CursorTargetResponse = { autoBranch?: boolean; autoCreatePr?: boolean; branchName?: string; openAsCursorGithubApp?: boolean; prUrl?: string; skipReviewerRequest?: boolean; url?: string; }; export type CustomLlmPricingFileInfo = { filename: string; modelCount: number; report: ImportReport; uploadedAt: string; uploadedBy: string; }; export type CustomLlmPricingResponse = { activeRevision: string; error?: string; file: CustomLlmPricingFileInfo; savedRevision: string; status: 'applying' | 'active'; }; /** * CustomResolveThreshold defines a hysteresis recovery condition for a Threshold. * * The Operator must be the directional opposite of the parent Threshold.Operator * and Values must not overlap the firing range (e.g. fire above 100, recover below 80). * This maps to Grafana's "Custom recovery threshold" (unloadEvaluator) on the * threshold expression node. */ export type CustomResolveThreshold = { /** * Comparison operator for recovery. Must be the directional opposite of the * parent threshold's Operator. */ operator: 'gt' | 'lt' | 'within_range' | 'outside_range'; /** * Resolve values (one for gt/lt, two for range operators). Must not overlap * the firing values — see validateCustomResolveThreshold for the exact rules. */ values: Array; }; export type CustomRule = { filters: string; name: string; retention: string; }; /** * DBMMeasurementsSearchRequest queries raw statement measurement intervals. * * A GCQL query is required. count() counts intervals; * sum(calls) counts database executions. */ export type DbmMeasurementsSearchRequest = { /** * End time of the request range */ end: string; query: string; sources?: Array; /** * Start time of the request range */ start: string; }; export type DbmMeasurementsSearchTimeSeriesRequest = { /** * Positive interval used to group measurements into time buckets. */ bucketDuration: string; /** * End time of the request range */ end: string; /** * Empty buckets contain null unless fillValue is supplied. */ fillValue?: number; query: string; sources?: Array; /** * Start time of the request range */ start: string; valueField?: string; }; /** * DDMetricInactiveBucket counts units whose only unmet metric dependency is * confirmed inactive/missing in Datadog itself, tagging every metric involved * (a unit can mix a confirmed-inactive metric with a self-observability one; * see unitMissingMetricsAreDDInactiveOnly). Datadog itself never had data for * these metrics, so groundcover correctly has none either — a genuine, * successful migration outcome, not a gap to fix. */ export type DdMetricInactiveBucket = { count?: number; metrics?: Array; }; /** * DashboardFiltersRequest is the POST /api/dashboards/filters request body. */ export type DashboardFiltersRequest = { /** * Optional gcQL query narrowing the faceted set (e.g. free text, owner:x, * tags:y, source:z, status:active). * Empty means no query filter — including no status filter, so callers wanting * only active dashboards must include status:active. Facets are disjunctive: * a facet's own keyed conditions don't narrow that facet's value list, so a * selected value's siblings stay listed and multi-select works (parity with * monitors instances/filters). */ query?: string; /** * Optional list of facet keys (owner, tags, source, favorites) that must * appear in the response even when the filtered set produces no values for them — each such * key comes back as an empty list instead of being omitted from the map. This * only guarantees presence: every facet is computed regardless of what is listed * here. Keys outside the supported facet set are rejected with a 400 rather than * ignored. */ required?: Array; /** * Deprecated: accepted (any value, unvalidated) and ignored — same contract as * req.Sources on the type=monitors search path. Filter by source with the gcQL * `source:` key in query, which is disjunctive where this field was not. */ source?: string; }; export type DashboardListRequest = { /** * Case-insensitive substring filter on dashboard description. Empty = no description filter. */ description?: string; /** * Maximum number of dashboards to return (default 1000). */ limit?: number; /** * Case-insensitive substring filter on dashboard name. Empty = no name filter. */ name?: string; /** * Number of dashboards to skip for pagination. */ skip?: number; /** * Field to sort by: "name" (default) or "description". */ sort?: string; }; export type DashboardListResponse = { /** * List of dashboards matching the criteria. */ dashboards?: Array; /** * Whether all matching results have been returned (no more pages). */ done?: boolean; }; export type DashboardSummary = { description?: string; name?: string; originId?: string; originType?: string; tags?: Array; uuid?: string; }; export type DataIntegrationConfig = { cluster?: string; config?: string; id?: string; is_archived?: boolean; is_paused?: boolean; name?: string; tags?: { [key: string]: unknown; }; type?: string; update_timestamp?: string; updated_by?: string; }; export type DataIntegrationSummary = { cluster?: string; id?: string; is_archived?: boolean; is_paused?: boolean; name?: string; tags?: { [key: string]: unknown; }; type?: string; update_timestamp?: string; updated_by?: string; }; /** * DataScope contains either simple or advanced scope definitions. */ export type DataScope = { advanced?: AdvancedDataScope; simple?: Group; }; /** * DataSetAvailableBucket is converted units whose underlying dataset exists in GC. */ export type DataSetAvailableBucket = { /** * Lookback is the widest window actually queried, so the report never claims * a window it did not use. */ lookback?: string; no_data?: NoDataBreakdown; returns_data?: CountPct; total?: number; }; /** * Datasource identifies the query backend. */ export type Datasource = string; /** * DatasourceKeyGap aggregates missing field keys for one search datasource. */ export type DatasourceKeyGap = { count?: number; datasource?: string; keys?: Array; }; /** * DecideProposalRequest approves or rejects a pending proposal. Approving a resolve or refute applies the * proposal's own assessment verdicts. */ export type DecideProposalRequest = { reason: string; }; export type Definition = { defaults?: RoleDefaults; permissions?: Array<'no_access' | 'view' | 'edit'>; }; export type DeleteIngestionKeyRequest = { /** * Name of the ingestion key to delete */ name: string; }; export type DeleteSyntheticTestResponse = { [key: string]: unknown; }; export type Description = { defaults?: unknown; options?: unknown; supported_actions?: Array; version?: number; }; /** * Detection groups the signals used to suggest dashboard relevance for a * tenant. Inert in MVP (not evaluated against live data). */ export type Detection = { signals?: Array; }; /** * DetectionSignal is one signal a template's Detection checks to suggest * whether the tenant's data would populate the dashboard. Inert in MVP. */ export type DetectionSignal = { datasource?: string; expect?: string; expr?: string; }; export type DiscoveryResponse = { isLimitReached?: boolean; results?: Array; }; export type DiscoveryResult = { key?: string; value?: string; }; /** * DisplayModel controls how the monitor is presented. */ export type DisplayModel = { contextHeaderLabels?: Array; description?: string; header?: string; resourceHeaderLabels?: Array; /** * Template language for header and description fields. If omitted or empty, legacy Go template syntax is used. */ templateLanguage?: 'jinja2'; }; export type DistibutedTraceResponse = { count?: number; /** * FocusedSpanID is the span the UI opens in place of the clicked eBPF span when the * waterfall falls back to the trace's instrumented spans. */ focusedSpanId?: string; limitReached?: boolean; nodes?: Array; }; export type DistributedTraceNode = { children?: Array; client?: string; clientNamespace?: string; cluster?: string; duration?: number; env?: string; hints?: Array; isEncrypted?: boolean; isError?: boolean; isExternal?: boolean; isPii?: boolean; kind?: string; namespace?: string; operationName?: string; parentSpanID?: string; partnerIsExternal?: boolean; partnerNamespace?: string; partnerWorkload?: string; resource?: string; resourceTruncated?: boolean; server?: string; serverNamespace?: string; serviceName?: string; source?: string; spanId?: string; spanName?: string; spanTimestamp?: string; spanType?: ProtocolType; start?: number; status?: string; statusCode?: string; traceId?: string; type?: string; }; export type DistributedTraceSummaryRequest = { sourceType?: string; sources?: Array; time?: string; traceId?: string; }; export type DistributedTraceSummaryResponse = Array; export type DistributedTraceSummaryResult = { executionTimePercentage?: number; executionTimeTotal?: number; serviceName?: string; spanCount?: number; }; export type DistributedTracesRequest = { limit?: number; sourceType?: string; sources?: Array; /** * SpanID is the clicked span. The waterfall returns it alone when the trace has no * instrumented spans and eBPF trace stitching is off. */ spanId?: string; time?: string; traceId?: string; }; export type DistributionSplitValue = { baseline_count?: number; baseline_percent?: number; item?: string; selection_count?: number; selection_percent?: number; selection_to_baseline_ratio?: number; }; export type DistributionValue = { count?: number; item?: string; percent?: number; }; /** * DnsRequest defines model for DnsRequest. */ export type DnsRequest = { dnssec?: boolean; domain?: string; kind?: DnsRequestKind; port?: number; recordType?: DnsRequestRecordType; resolver?: string; timeout?: string; }; /** * DnsRequestKind defines model for DnsRequest.Kind. */ export type DnsRequestKind = string; /** * DnsRequestRecordType defines model for DnsRequest.RecordType. */ export type DnsRequestRecordType = string; /** * DomainType represents the type of data domain (logs, traces, events, entities, issues, apm) */ export type DomainType = string; export type DropConfig = { dropRegex?: Array; }; /** * Duration wraps time.Duration. It is used to parse the custom duration format * from YAML. * This type should not propagate beyond the scope of input/output processing. */ export type Duration = number; /** * EffectiveFeaturePermissions contains role defaults with consolidated policy overrides applied. */ export type EffectiveFeaturePermissions = { [key: string]: 'no_access' | 'view' | 'edit'; }; export type Endpoint = { domain?: string; is_public?: boolean; vpc_service_name?: string; }; export type EntitiesSearchRequest = { /** * GCQL Query to filter entities */ query: string; /** * Sources to filter entities */ sources?: Array; }; export type EnvType = string; /** * ErrorResponse is the canonical error body returned by HTTP handlers. * * It is shared across endpoints so callers can rely on a single shape * (message + machine-readable code + trace_id, plus optional metadata). */ export type ErrorResponse = { code?: 'EXCEEDED_MAX_ROWS_TO_GROUP_BY' | 'MONITOR_EVAL_FAILED' | 'MONITOR_VALIDATION_FAILED' | 'MONITOR_DUPLICATE_TITLE' | 'CONNECTED_APP_IN_USE' | 'VIEW_REVISION_CONFLICT' | 'CONNECTED_APP_ORPHANED_SECRET' | 'INVALID_ARGUMENT' | 'INVESTIGATION_EXISTS' | 'SYNC_TARGET_TAKEN' | 'TRIGGER_AT_CAPACITY' | 'RUN_IDENTITY_REQUIRED' | 'INVESTIGATIONS_DISABLED' | 'INVESTIGATION_CLOSED' | 'FINDING_OUT_OF_SCOPE' | 'FINDING_RETRACTED' | 'NOT_AUTHOR' | 'INVESTIGATION_GRAMMAR' | 'EVIDENCE_REQUIRED' | 'REFUTE_REQUIRES_HYPOTHESIS' | 'HYPOTHESIS_REQUIRED'; details?: unknown; docs_url?: string; message?: string; trace_id?: string; type?: string; }; /** * EvaluateAssetsRequest defines the request body for asset readiness evaluation. */ export type EvaluateAssetsRequest = { /** * Restrict evaluation to these source_resource_id values. Optional: empty means all assets. */ asset_ids?: Array; /** * Asset types to evaluate. Optional: defaults to ["monitors", "dashboards"]. */ asset_types?: Array; /** * Caps the number of assets evaluated (after asset_ids filtering): converted assets first, then * skipped ones fill what is left. 0 means unlimited. */ limit?: number; /** * Lookback window for monitor wet queries, as a Go duration string. Optional: defaults to "168h". */ monitor_lookback?: string; /** * Stores each asset's findings and evaluation. When false nothing is written and the response * only reports what was evaluated. Optional: defaults to true. */ persist?: boolean; /** * Executes every converted query against the tenant's data and stores the no-data * warnings. Readiness does not depend on it. Optional: defaults to false. */ wet?: boolean; }; /** * EvaluateAssetsResponse is the full response of the evaluate-assets endpoint. */ export type EvaluateAssetsResponse = { assets?: Array; evaluated_at?: string; summary?: EvaluateAssetsSummary; }; /** * EvaluateAssetsSummary is the response's top-level rollup. */ export type EvaluateAssetsSummary = { assets_evaluated?: number; wet?: WetSummaryCounts; }; /** * EvaluatedAsset is one asset's evaluation outcome. */ export type EvaluatedAsset = { /** * Of those, findings a tenant mapping rule had already resolved. */ applied_written?: number; asset_id?: string; asset_type?: string; /** * Units the asset was checked as: 1 for a monitor, the data widgets of a dashboard. */ evaluated_units?: number; /** * Findings and warnings stored for the asset. Zero when persist is false. */ findings_written?: number; name?: string; source_resource_id?: string; }; /** * EvaluationInterval defines the evaluation frequency and pending duration. */ export type EvaluationInterval = { interval?: string; pendingFor?: string; }; export type EventDetails = { eventAttributes?: { [key: string]: string; }; eventID?: string; eventType?: string; timestamp?: string; }; export type EventRequest = { client_id?: string; event_name?: string; params?: { [key: string]: unknown; }; }; /** * EventsOverTimeResponse defines the structure for a single event in the events over time API response. */ export type EventsOverTimeResponse = { cluster?: string; createdTimestamp?: string; env?: string; exitCode?: string; instance?: string; message?: string; namespace?: string; normalized_uid?: string; object_kind?: string; object_uid?: string; raw?: { [key: string]: unknown; }; reason?: string; timestamp?: string; type?: string; uid?: string; workload?: string; }; export type EventsSearchOverTimeStreamResponse = { data?: Array; done?: boolean; error?: string; }; export type EventsSearchRequest = { /** * EnableStream indicates if the response should be streamed */ enableStream?: boolean; /** * End time of the request range */ end: string; /** * Extra filters to apply on the events */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter events */ query?: string; /** * Sources to filter events */ sources?: Array; /** * Start time of the request range */ start: string; }; export type EventsSearchTimeSeriesRequest = { bucketDuration?: string; /** * EnableStream indicates if the response should be streamed */ enableStream?: boolean; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the events */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter events */ query?: string; /** * Sources to filter events */ sources?: Array; /** * Start time of the request range */ start: string; /** * ValueField selects the numeric column(s) to project as time series. * A single field name (e.g. "total") emits one series per unique label * combination. A comma-separated list (e.g. "total,warnings") emits one * parallel series per name with a synthetic metric_name label identifying * each. Whitespace around each name is trimmed. When multiple fields are * requested, the underlying query may not also emit a column literally * named "metric_name" — it would collide with the synthetic label. */ valueField?: string; }; export type EvidenceRequest = { /** * A finding anywhere in the same investigation tree. */ findingId: string; /** * supports RelationSupports * contradicts RelationContradicts */ relation: 'supports' | 'contradicts'; }; /** * ExcludedBucket counts units held out of the funnel because their only unmet * dependency is Datadog's own telemetry: a self-observability metric. Migration * quality has no bearing on it — it was never going to return data — so it is * reported separately rather than weighing on supported/unsupported like a * real gap would. * * A unit confirmed inactive in Datadog (IssueDDInactiveOrMissing) no longer * lands here — see StageDDMetricInactive and DDMetricInactiveBucket, its own * green success bucket under SupportedConverted. The former InactiveInDatadog * field here was removed rather than kept as an always-zero counter: nothing * outside this package ever read it (the funnelviz decoder only reads Total, * and the CLI summary printer never printed Excluded at all), so there was no * reader to preserve compatibility for. */ export type ExcludedBucket = { datadog_self_observability?: MetricListBucket; total?: number; }; /** * ExecutedQuery is the evidence for a unit's wet outcome: the query that ran, * * the window it ran over, and what came back. */ export type ExecutedQuery = { datasource?: string; error?: string; language?: string; /** * Metric names the query's underlying metric, for datasource == "metrics" * only. Without it a metrics query that returned no data cannot be traced * back to which metric was empty without parsing the query text. */ metric?: string; original_dd?: string; query?: string; query_id?: string; resolved_query?: string; status?: string; window?: string; }; /** * ExecutionPolicy defines model for ExecutionPolicy. */ export type ExecutionPolicy = { assertions?: Array; retries?: { count?: number; interval?: string; }; }; /** * ExportAuthBody represents the auth mode sent to export-service. */ export type ExportAuth = { /** * Auth type. */ type: 'user' | 'system'; }; /** * ExportCaptureBody represents export capture options. */ export type ExportCapture = { /** * Whether to capture the full page instead of the resolved element bounds. */ fullscreen?: boolean; }; /** * ExportMonitorsV2Request is the POST /api/v2/monitors/export body. */ export type ExportMonitorsV2Request = { /** * Format names the emitted resource. */ format: 'terraform'; /** * UUIDs of the monitors to export, rendered in this order. */ uuids: Array; }; /** * ExportRequestBody represents the request body proxied to export-service. */ export type ExportRequest = { auth: ExportAuth; capture?: ExportCapture; /** * Export output format. */ format: 'pdf' | 'png'; target: ExportTarget; timeRange?: ExportTimeRange; }; /** * ExportServiceDrainingResponseBody is the structured error payload returned * when export-service is draining during shutdown. */ export type ExportServiceDrainingResponseBody = { /** * Stable machine-readable error code. */ error: 'EXPORT_SERVICE_DRAINING'; /** * Human-readable explanation of the error. */ message: string; /** * Export request identifier for log correlation. */ requestId?: string; }; /** * ExportTargetBody represents a dashboard, widget, or issue graph export target. */ export type ExportTarget = { /** * Dashboard ID for dashboard and widget targets. * Format: uuid */ dashboardId?: string; /** * Issue graph height in pixels. */ height?: number; /** * Issue ID for issue graph targets. */ issueId?: string; /** * Issue graph rendering mode. */ mode?: 'default' | 'workload'; /** * Target type. */ type: 'dashboard' | 'widget' | 'issueGraph'; /** * Widget ID for widget targets. */ widgetId?: string; /** * Issue graph width in pixels. */ width?: number; }; /** * ExportTimeRangeBody represents the export time range. */ export type ExportTimeRange = { /** * End time, as epoch milliseconds or an ISO timestamp. */ end?: unknown; /** * Start time, as epoch milliseconds or an ISO timestamp. */ start?: unknown; /** * Timezone to use while rendering. */ timezone?: string; }; export type FeaturePermissionCatalogue = { [key: string]: Definition; }; export type FetchAssetsRequest = { /** * The types of assets to fetch. If empty, all asset types will be fetched. */ assetTypes?: Array<'monitors' | 'dashboards' | 'metrics' | 'logs_pipelines' | 'gcp_integrations' | 'aws_integrations' | 'azure_integrations'>; connectionConfiguration: ConnectionConfiguration; /** * The provider to fetch assets from. */ provider: 'datadog' | 'coralogix'; }; export type FetchAssetsResponse = { /** * Results for each asset type fetched. */ assets?: Array; }; /** * Filter represents an operation and value for a condition. */ export type Filter = { op?: Op; value?: unknown; }; export type FiltersMapResponse = { [key: string]: Array; }; export type FiltersWithEstimatedItem = { count?: number; isEstimated?: boolean; name?: string; }; export type FiltersWithEstimatedMapResponse = { [key: string]: Array; }; /** * Finding represents a single preflight validation finding. */ export type Finding = { asset_id?: string; asset_name?: string; asset_type?: string; datasource?: string; evidence?: { [key: string]: string; }; field_name?: string; integration?: string; issue_id?: string; issue_type?: IssueType; label_key?: string; /** * LabelKeyDD is the Datadog-side name of LabelKey, set only when a mapping * rule renamed it. Callers that match a finding against manifest filters — * which carry Datadog names — need both, because a rename makes the two * namespaces diverge and a GC-only comparison silently stops matching. */ label_key_dd?: string; label_value?: string; /** * LabelValueDD is the Datadog-side LabelValue, set only when a value * mapping rule rewrote it. Rules are keyed on the Datadog value. */ label_value_dd?: string; label_values?: Array; labels_used?: { [key: string]: Array; }; message?: string; query_id?: string; subject?: Subject; suggestions?: Array; values_used?: Array; widget_id?: string; widget_title?: string; }; export type FindingRetraction = { at?: string; by?: InvestigationAuthor; reason?: string; }; /** * FunnelAssetEntry maps one asset — or one dashboard widget — to the funnel stage * it reached, with the queries that were executed as evidence. */ export type FunnelAssetEntry = { asset_id?: string; /** * AssetKind names the unsupported widget/monitor type when the unit never * reached conversion, e.g. "heatmap" or "slo". */ asset_kind?: string; asset_name?: string; asset_type?: string; metrics?: Array; missing_keys?: Array; missing_values?: Array; /** * PrimaryDataset is the one missing dataset the unit is counted under, when * the terminal stage is a missing-dataset gap. */ primary_dataset?: string; queries?: Array; reason?: string; stage?: string; widget_id?: string; widget_title?: string; }; /** * FunnelByAsset is the per-asset view of the funnel: every monitor and every * dashboard widget, with the stage it terminated at. */ export type FunnelByAsset = { assets?: Array; by_stage?: { [key: string]: number; }; total?: number; }; export type GenericFiltersItem = { count?: number; name?: string; }; export type GetBackendSettingsResponse = { settings?: BackendSettings; }; export type GetCurrentPlanResponse = { billingFrequency?: string; hasDeniedUsers?: boolean; isCurrentUserDenied?: boolean; seats?: number; subscription?: string; trialEnabled?: boolean; trialEndDate?: string; trialStartDate?: string; used?: number; }; /** * GetDashboardRevisionsRequest defines the request structure for getting dashboard revisions list. */ export type GetDashboardRevisionsRequest = { /** * Maximum number of revisions to return. */ limit: number; /** * Number of revisions to skip (for pagination). */ skip?: number; }; /** * GetDashboardRevisionsResponse defines the response structure for getting dashboard revisions list. */ export type GetDashboardRevisionsResponse = { hasNextPage?: boolean; /** * The list of all dashboard revisions. */ revisions?: Array; }; /** * GetDashboardsCatalogResponse is the body of GET /api/dashboards/catalog: * * pack definitions plus thin templates, filtered by the request's gcQL filter. */ export type GetDashboardsCatalogResponse = { packs?: Array; templates?: Array; }; export type GetEventMetadataRequest = { conditions?: Array; sources?: Array; timestamp?: string; uid?: string; }; export type GetEventMetadataResponse = { count?: number; firstSeen?: string; lastSeen?: string; string_attributes?: { [key: string]: string; }; }; /** * GetEventsOverTimeRequest defines the request structure for fetching events over time. */ export type GetEventsOverTimeRequest = { conditions?: Array; /** * End time of the request range */ end: string; group?: Group; /** * Maximum number of events to return. */ limit?: number; query?: string; /** * Number of events to skip (for pagination). */ skip?: number; /** * Field to sort events by. */ sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'message' | 'count' | 'workload' | 'cluster'; /** * Sort order. */ sortOrder: 'asc' | 'desc'; /** * Source filters for events. */ sources?: Array; /** * Start time of the request range */ start: string; /** * Include raw event data in the response. */ withRawEvents?: boolean; }; /** * GetEventsOverTimeResponse defines the structure for the events over time API response. */ export type GetEventsOverTimeResponse = { events?: Array; isLimitReached?: boolean; warningIndicator?: boolean; }; export type GetInvestigationResponse = { /** * Each participant's assessment on this node, its evidence embedding the cited findings; an empty collection is []. */ assessments: Array; children: Array; /** * Tree events after afterTimestamp, or all events when it is omitted. */ eventsAfter: number; /** * Findings belonging to this node, included for all callers; an empty collection is []. */ findings: Array; investigation: Investigation; /** * Timestamp of the latest tree event in this snapshot. */ nextAfterTimestamp?: string; /** * Pending and decided proposals on this node; an empty collection is []. */ proposals: Array; }; /** * GetInvestigationTreeResponse is one consistent snapshot of the complete tree. */ export type GetInvestigationTreeResponse = { /** * Tree events after afterTimestamp, or all events when it is omitted. */ eventsAfter: number; /** * Distinct integrations reported by assessments anywhere in this tree, including rejected assessments. */ missingGroundcoverIntegrations?: Array; /** * Timestamp of the latest event in this snapshot; omitted when no event exists. */ nextAfterTimestamp?: string; /** * Root first, then remaining nodes by createdAt and id. */ nodes: Array; /** * Contributors only, without system writers or the moderator; each groundcover agent appears once, as its first run. * A node's or finding's createdBy can name a later run that isn't listed, so use inline authors, not participant ids. */ participants: Array; }; /** * GetTagsRequest is the /api/tags request body: optional prefix and limit. */ export type GetTagsRequest = { /** * Maximum number of tags to return (default 50). */ limit?: number; /** * Prefix to filter tags by (case-insensitive). Empty returns all tags. */ text?: string; }; /** * GetTagsResponse is the /api/tags payload: existing tag names. */ export type GetTagsResponse = { /** * Tags ordered alphabetically (case-insensitive). */ tags?: Array; }; export type Group = { conditions?: Array; disabled?: boolean; groups?: Array; operator?: GroupOp; }; export type GroupOp = string; /** * HttpRequest defines model for HttpRequest. */ export type HttpRequest = { allowInsecure?: boolean; auth?: { password?: string; token?: string; type?: HttpRequestAuthType; username?: string; }; body?: { content?: string; type?: HttpRequestBodyType; }; cookies?: Array<{ name?: string; value?: string; }>; followRedirects?: boolean; headers?: { [key: string]: string; }; httpVersion?: string; kind?: HttpRequestKind; method?: string; queryParams?: { [key: string]: string; }; timeout?: string; url?: string; }; /** * HttpRequestAuthType defines model for HttpRequest.Auth.Type. */ export type HttpRequestAuthType = string; /** * HttpRequestBodyType defines model for HttpRequest.Body.Type. */ export type HttpRequestBodyType = string; /** * HttpRequestKind defines model for HttpRequest.Kind. */ export type HttpRequestKind = string; export type ImportReport = { skippedModels: number; unsupportedFields: Array; }; export type IncidentIoData = { severity_mapping?: { [key: string]: string; }; url: string; }; export type IncidentIoDataResponse = { /** * Custom severity mapping (if configured) */ severity_mapping?: { [key: string]: string; }; }; export type IngestionKeyResult = { createdBy?: string; id?: string; key?: string; name?: string; remoteConfig?: boolean; tags?: Array; type?: string; }; /** * IngestionMeasurementsSearchRequest is the request body for the ingestion measurements * search endpoint. Exactly one of Query or Pipeline must be provided; the GCQL must * contain a top-level signal_type filter and a top-level pipeline_stage filter. */ export type IngestionMeasurementsSearchRequest = { /** * End time of the request range */ end: string; /** * Extra filters to apply on the ingestion measurements. */ filters?: string; pipeline?: SqlPipeline; /** * GCQL query to filter ingestion measurements. Either `query` or * `pipeline` must be provided. The query MUST include exactly one * top-level `signal_type` filter and exactly one top-level * `pipeline_stage` filter. */ query?: string; /** * Sources to filter ingestion measurements. */ sources?: Array; /** * Start time of the request range */ start: string; }; /** * IngestionMeasurementsSearchTimeSeriesRequest extends the search request with time-series * specific fields: BucketDuration (required), an optional ValueField to aggregate, and an * optional FillValue for empty buckets. */ export type IngestionMeasurementsSearchTimeSeriesRequest = { bucketDuration?: string; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, * empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the ingestion measurements. */ filters?: string; pipeline?: SqlPipeline; /** * GCQL query to filter ingestion measurements. Either `query` or * `pipeline` must be provided. The query MUST include exactly one * top-level `signal_type` filter and exactly one top-level * `pipeline_stage` filter. */ query?: string; /** * Sources to filter ingestion measurements. */ sources?: Array; /** * Start time of the request range */ start: string; valueField?: string; }; export type InstallAllAssetsResponse = { dashboards?: InstallAssetsResponse; monitors?: InstallAssetsResponse; }; export type InstallAssetsRequest = { /** * The list of source resource IDs to install. */ sourceResourceIds: Array; }; export type InstallAssetsResponse = { /** * The number of assets that were already installed. */ alreadyInstalledCount?: number; /** * The number of assets that were not installed because they are excluded. */ excludedCount?: number; /** * The number of assets that failed to install. */ failedCount?: number; /** * The number of assets successfully installed. */ installedCount?: number; /** * The number of assets that were not convertible. */ notConvertibleCount?: number; /** * The number of assets that were not found. */ notFoundCount?: number; /** * Detailed results for each asset. */ results?: Array; }; /** * InstallCatalogDashboardRequest is the optional body of * POST /api/dashboards/catalog/{catalogId}. Every field is optional: an empty * body installs the template under its authored displayName. The preset, * origin fields and managed semantics are all server-side — the caller only * names the catalog template (in the path) and, optionally, overrides the * display name, description and team. */ export type InstallCatalogDashboardRequest = { /** * Description for the installed dashboard. Defaults to the catalog * template's description when omitted or empty. */ description?: string; /** * Display name for the installed dashboard. Defaults to the catalog * template's displayName when omitted. */ name?: string; /** * Optional team to scope the installed dashboard to. */ team?: string; }; export type InstallIntegrationResponse = { id?: string; type?: string; }; /** * IntegrationCount holds an integration name and its count, for sorted output. */ export type IntegrationCount = { count?: number; name?: string; }; /** * IntegrationCountBucket counts units per data-source mapping. */ export type IntegrationCountBucket = { by_integration?: { [key: string]: number; }; count?: number; metrics?: Array; }; export type Integrations = { /** * Identity is the principal of the backend's own cloud (an AWS role ARN, a GCP * service account email, or an Azure client id). Customers grant it access when the * integration target lives in the same cloud as the backend. */ identity?: string; /** * OIDCIssuerURL and ServiceAccountSubject describe the backend cluster's Kubernetes * OIDC identity. They are what a customer must trust to federate an integration * whose target is on a different cloud than the backend, where Identity is not * usable: the customer configures their own IAM/WIF/Entra trust against this issuer * and subject, then derives the principal to grant themselves. * * Empty when the backend's cluster has no publicly reachable OIDC issuer, in which * case cross-cloud federation is unavailable and static credentials remain the only * option. */ oidc_issuer_url?: string; service_account_subject?: string; }; /** * Investigation is one node of an investigation tree; a root has no parent and is always a question. */ export type Investigation = { closeApprovedBy?: InvestigationAuthor; closedAt?: string; closedBy?: InvestigationAuthor; createdAt: string; createdBy: InvestigationAuthor; id: string; /** * What the backend caller that opened the root asked of its investigator, sent after the statement; omitted when none. */ instructions?: string; investigator?: InvestigatorRun; kind: 'question' | 'hypothesis'; modelSelection?: InvestigationModelSelection; outcome?: string; /** * The approved resolve, refute or stop that closed the node; for a node a stop closed below it, that stop. */ outcomeProposalId?: string; /** * Parent node; omitted for roots. */ parentId?: string; /** * Root of the tree; equals id for roots. */ rootId: string; scope?: Array; source?: InvestigationSource; /** * The question, or the claim to test. */ statement: string; /** * Questions use open/answered/stopped; hypotheses use open/supported/refuted/stopped. */ status: 'open' | 'answered' | 'supported' | 'refuted' | 'stopped'; subject?: InvestigationSubject; timeRange?: InvestigationTimeRange; }; /** * Assessment is one participant's current conclusion on a node. */ export type InvestigationAssessment = { author: InvestigationAuthor; details: string; evidence: Array; id: string; investigationId: string; /** * Groundcover integrations recommended by this assessment. */ missingGroundcoverIntegrations?: Array; /** * Starts at 1; every update adds one. */ revision: number; /** * The assessment's heading; absent when it has none. */ title?: string; updatedAt: string; /** * Set from the approved conclusion's verdict on this revision; an update resets it to open. */ verdict: 'open' | 'accepted' | 'rejected'; verdictApprovedBy?: InvestigationAuthor; /** * The approved conclusion whose verdict set Verdict. */ verdictProposalId?: string; verdictReason?: string; /** * When that conclusion was approved. */ verdictSetAt?: string; verdictSetBy?: InvestigationAuthor; }; /** * AssessmentRevision names an assessment at one revision. */ export type InvestigationAssessmentRevision = { assessmentId: string; revision: number; }; /** * AssessmentVerdictsDetails are the INVALID_ARGUMENT details when a conclusion's verdicts don't match the node's * open assessments. */ export type InvestigationAssessmentVerdictsDetails = { /** * Open assessments without a verdict, at their current revision. */ missing?: Array; /** * Assessments graded at an older revision, with their current revision. */ stale?: Array; /** * Graded ids that are not open assessments on the node. */ unexpected?: Array; }; export type InvestigationAuthor = { agentInstanceId?: string; id: string; name: string; /** * Email of the user this participant acts on behalf of; absent without delegation. */ onBehalfOf?: string; type: 'user' | 'service_account' | 'system' | 'agent'; }; /** * BackendSource is the source a backend caller opens a root from: an automation trigger, or the Slack thread whose * Investigate button was clicked. */ export type InvestigationBackendSource = { ref: InvestigationSourceRef; type: 'automation' | 'slack'; }; /** * Event is an attributable change in an investigation tree. */ export type InvestigationEvent = { author: InvestigationAuthor; createdAt: string; entityId: string; entityType: 'investigation' | 'participant' | 'finding' | 'assessment' | 'proposal' | 'investigator' | 'moderator' | 'sync_target'; id: string; investigationId: string; /** * Versioned object with v: 1. */ payload: { [key: string]: unknown; }; type: 'investigation.opened' | 'investigation.closed' | 'participant.joined' | 'finding.created' | 'finding.retracted' | 'assessment.updated' | 'assessment.judged' | 'proposal.created' | 'proposal.deferred' | 'proposal.approved' | 'proposal.rejected' | 'proposal.superseded' | 'investigator.run_rejected' | 'investigator.run_requested' | 'investigator.run_started' | 'investigator.run_ended' | 'moderator.run_rejected' | 'moderator.run_limit_reached' | 'sync_target.attached'; }; export type InvestigationEvidence = { finding: InvestigationFinding; /** * supports RelationSupports * contradicts RelationContradicts */ relation: 'supports' | 'contradicts'; }; /** * InvestigationExistsDetails is the details of a 409 INVESTIGATION_EXISTS: the root to join. */ export type InvestigationExistsDetails = { investigationId: string; }; /** * InvestigationExistsError is the 409 body of createInvestigation: the issue already has an open root to join. */ export type InvestigationExistsError = { code: 'INVESTIGATION_EXISTS'; details: InvestigationExistsDetails; message: string; trace_id?: string; }; export type InvestigationFinding = { createdAt?: string; createdBy?: InvestigationAuthor; details: string; id?: string; investigationId?: string; query?: string; queryLanguage?: 'gcql' | 'metricsql'; retracted?: FindingRetraction; /** * logs SignalLogs * traces SignalTraces * metrics SignalMetrics * events SignalEvents * entities SignalEntities * issues SignalIssues * monitors SignalMonitors * k8s SignalK8s * profiling SignalProfiling * rum SignalRUM * db_measurements SignalDBMeasurements * code SignalCode * link SignalLink * other SignalOther */ signal: 'logs' | 'traces' | 'metrics' | 'events' | 'entities' | 'issues' | 'monitors' | 'k8s' | 'profiling' | 'rum' | 'db_measurements' | 'code' | 'link' | 'other'; timeRange?: InvestigationTimeRange; url?: string; }; /** * FindingScopeDetails are the details of FINDING_OUT_OF_SCOPE: the node's scope entries a * finding's query must filter on, with one of the values for each key. */ export type InvestigationFindingScopeDetails = { scope: Array; }; /** * InvalidCitation is one entry of the error details when cited findings can't be used. */ export type InvestigationInvalidCitation = { code: 'NOT_FOUND' | 'FINDING_RETRACTED'; findingId: string; }; /** * ModelSelection is the model agent-service runs an investigation's agents on. agent-service decides which * models and efforts are allowed, and refuses a run whose selection it doesn't allow. */ export type InvestigationModelSelection = { /** * One of the model's capabilities.effortLevels; omitted: the model's default effort. */ effort?: string; /** * A modelId that provider lists. */ modelId: string; /** * A providerId from GET /api/agent/llm-provider/models. */ providerId: string; }; /** * Proposal is an immutable request for a decision on one investigation node. */ export type InvestigationProposal = { /** * A resolve or refute's verdicts on the node's assessments, each at the revision it graded. */ assessmentVerdicts?: Array; /** * Open descendants blocking a pending resolve or refute, computed at read time. */ blockedBy?: Array; child?: InvestigationProposalChild; childId?: string; createdAt: string; createdBy: InvestigationAuthor; decision?: InvestigationProposalDecision; details: string; evidence: Array; id: string; investigationId: string; /** * Where a pending proposal stands in moderation; set only by the tree-wide proposals list. * deferred: blockedBy is non-empty; reviewing: a review of its decision group is starting or running; * needs_person: its group's cycle used up its reviews, so a person decides; queued: none of these. * queued ReviewStateQueued * reviewing ReviewStateReviewing * deferred ReviewStateDeferred * needs_person ReviewStateNeedsPerson */ reviewState?: 'queued' | 'reviewing' | 'deferred' | 'needs_person'; status: 'pending' | 'accepted' | 'rejected' | 'superseded'; /** * create_child ProposalCreateChild * resolve ProposalResolve * refute ProposalRefute * stop ProposalStop */ type: 'create_child' | 'resolve' | 'refute' | 'stop'; }; /** * ProposalAssessmentVerdict is a proposal's verdict on one assessment, as reads return it. */ export type InvestigationProposalAssessmentVerdict = { assessmentAuthor: InvestigationAuthor; assessmentId: string; /** * The assessment's current revision; the verdict applies only while it equals Revision. */ assessmentRevision: number; reason: string; revision: number; verdict: 'accepted' | 'rejected'; }; /** * ProposalChild describes a node to create if the proposal is approved. */ export type InvestigationProposalChild = { kind: 'question' | 'hypothesis'; scope?: Array; statement: string; timeRange?: InvestigationTimeRange; }; /** * ProposalDecision records who decided a proposal and why. */ export type InvestigationProposalDecision = { at: string; by: InvestigationAuthor; reason: string; }; export type InvestigationScopeEntry = { key: string; value: string; }; /** * SlackDestination is a Slack thread: the alert message's channel and ts. */ export type InvestigationSlackDestination = { channelId: string; threadTs: string; }; /** * Source is how a root started: manual on the public create route, or what a backend caller opened it from. */ export type InvestigationSource = { ref?: InvestigationSourceRef; type: 'manual' | 'automation' | 'slack'; }; /** * SourceRef holds the fields of every source type; each type requires its own and refuses the others. */ export type InvestigationSourceRef = { /** * slack: the channel of the alert thread whose Investigate button opened the root. */ channelId?: string; /** * slack: the comm-hub org connector the alert was posted with. */ connectorId?: string; /** * slack: the ts of that thread's alert message. */ threadTs?: string; /** * automation: the trigger that opened the root. */ triggerId?: string; }; /** * Subject is what a root investigates. At most one root per subject is open at a time. */ export type InvestigationSubject = { ref: InvestigationSubjectRef; type: 'issue'; }; export type InvestigationSubjectRef = { /** * The monitor issue's fingerprint. */ issueFingerprint: string; /** * When the issue changed state into the firing, or a later evaluation of that firing. The investigator * takes the latest firing at or before it. Not in the future. */ issueTimestamp: string; }; /** * SyncTargetAttachment answers an attach: the root and what became of the thread. */ export type InvestigationSyncTargetAttachment = { investigationId: string; /** * attached: the thread is now the root's target, and catches up from the root's first event. * already_attached: it already was. attached_to_another_root: another root, such as an earlier, closed * root of the issue, owns the thread and keeps it, so this root does not sync there. * attached SyncTargetAttached SyncTargetAttached added a new target to the root. * already_attached SyncTargetAlreadyAttached SyncTargetAlreadyAttached found the destination attached to this root already. * attached_to_another_root SyncTargetAttachedToAnotherRoot SyncTargetAttachedToAnotherRoot found the destination attached to another root, where it stays. */ outcome: 'attached' | 'already_attached' | 'attached_to_another_root'; /** * The root that owns the thread; set with attached_to_another_root. */ ownerInvestigationId?: string; }; export type InvestigationTimeRange = { from?: string; to?: string; }; /** * Trigger opens a root investigation when a monitor issue its query selects starts firing. */ export type InvestigationTrigger = { /** * A still-firing issue is investigated again at most once per interval; empty: once per firing cycle. */ cooldownInterval?: string; createdAt: string; createdBy: string; id: string; /** * What the trigger's investigations are asked to do after their statement; empty for none. */ instructions: string; /** * At most this many of the trigger's investigations are open at once. */ maxConcurrent: number; modelSelection?: InvestigationModelSelection; modifiedAt: string; /** * The last editor; the trigger's investigations act as this user. */ modifiedBy: string; name: string; /** * The gcQL issue selector notification routes use. */ query: string; }; /** * InvestigatorRun is the start of a root's investigator: pending until agent-service accepts or refuses it. */ export type InvestigatorRun = { error?: InvestigatorRunError; /** * When agent-service accepted or refused the start. */ finishedAt?: string; /** * pending InvestigatorPending * started InvestigatorStarted * failed InvestigatorFailed */ status: 'pending' | 'started' | 'failed'; }; /** * RunError is agent-service's answer to a refused run start. */ export type InvestigatorRunError = { /** * agent-service's error code. */ code: string; /** * The HTTP status. */ status: number; }; export type InviteRequest = { members?: Array; }; export type InviteeDetails = { email?: string; policyUUIDs?: Array; role?: string; }; /** * IssueStatus represents routing statuses (not raw monitor states). */ export type IssueStatus = string; /** * IssueType is a string enum for finding types. */ export type IssueType = string; export type IssuesSearchOverTimeResponse = { data?: Array; }; export type IssuesSearchRequest = { /** * End time of the request range */ end: string; /** * Extra filters to apply on the issues */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter issues */ query?: string; /** * Sources to filter issues */ sources?: Array; /** * Start time of the request range */ start: string; }; export type IssuesSearchTimeSeriesRequest = { bucketDuration?: string; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the issues */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter issues */ query?: string; /** * Sources to filter issues */ sources?: Array; /** * Start time of the request range */ start: string; /** * ValueField selects the numeric column(s) to project as time series. * A single field name (e.g. "total") emits one series per unique label * combination. A comma-separated list (e.g. "total,firing") emits one * parallel series per name with a synthetic metric_name label identifying * each. Whitespace around each name is trimmed. When multiple fields are * requested, the underlying query may not also emit a column literally * named "metric_name" — it would collide with the synthetic label. */ valueField?: string; }; /** * Join defines a join operation between two pipelines. */ export type Join = { leftPipeline?: SqlPipeline; /** * OnConditions defines the join conditions */ onConditions?: Array; /** * Prefix, when set, disambiguates overlapping non-key columns from the right * side of a join by prefixing them with the given string (e.g., setting prefix * to "right" causes a right-side "level" column to appear as "right.level"). * Join key columns are not prefixed; they are coalesced into a single column. */ prefix?: string; rightPipeline?: SqlPipeline; type?: JoinType; }; /** * JoinCondition defines how tables are joined together. */ export type JoinCondition = { leftColumn?: Column; rightColumn?: Column; }; /** * JoinType defines the type of SQL join operation. */ export type JoinType = string; /** * JsonUnpack defines a JSON unpack prefix registration. */ export type JsonUnpack = { prefix?: string; sourceColumn?: string; }; export type KeepConfig = { keepRegex?: Array; }; export type KeyItem = { description?: string; key?: string; metricNames?: Array; types?: Array; }; export type KeyMapping = { evidence?: MappingEvidence; groundcover_key?: string; /** * MetricPattern optionally scopes this mapping to groundcover metric names (not source metric names). */ metric_pattern?: string; /** * Origin is server-owned normalization provenance. */ readonly origin?: string; source_key?: string; }; /** * KeyMissingBreakdown groups units with missing keys. * * Metric label gaps and search field gaps are reported separately: a log or event * field gap has no metric to attribute it to, and folding both into a by-metric * view produced a meaningless "unknown" bucket. */ export type KeyMissingBreakdown = { assets?: Array; by_datasource?: Array; by_metric?: Array; count?: number; }; export type KeysResponse = { isLimitReached?: boolean; keys?: Array; }; export type KeysResponseItem = { keys?: Array; name?: string; }; /** * KnownPipelines is a map of template names to pipeline templates * We need this separate model to prevent circular references in swagger generation */ export type KnownPipelines = { [key: string]: PromqlPipeline; }; export type LabelSettings = { dropLabels?: Array; extraLabels?: { [key: string]: string; }; }; /** * LimitBy defines per-group limiting for SQL queries (e.g., LIMIT BY). */ export type LimitBy = { limit?: number; offset?: number; selectors?: Array; }; /** * LinearComment is a comment returned by the typed Linear connector API. */ export type LinearComment = { body?: string; created_at?: string; id?: string; updated_at?: string; url?: string; }; /** * LinearCommentCreateRequest is the request body for creating a Linear issue comment. */ export type LinearCommentCreateRequest = { body: string; }; /** * LinearSecret stores the comm-hub Linear org connector id, which all Linear * functionality keys off of. WorkspaceID/WorkspaceName are optional legacy metadata * written only for older backends; Validate ignores them. */ export type LinearData = { connector_id: string; workspace_id?: string; workspace_name?: string; }; export type LinearDataResponse = { /** * Comm-hub Linear org connector ID. */ connector_id?: string; }; /** * LinearIssue is an issue returned by the typed Linear connector API. */ export type LinearIssue = { assignee?: LinearIssueAssignee; created_at?: string; description?: string; id?: string; identifier?: string; priority?: number; project?: LinearProject; state?: LinearWorkflowState; team?: LinearTeam; title?: string; updated_at?: string; url?: string; }; /** * LinearIssueAssignee is the minimal assignee shape returned on Linear issues. */ export type LinearIssueAssignee = { id?: string; name?: string; }; /** * LinearIssueCreateRequest is the request body for creating a Linear issue. */ export type LinearIssueCreateRequest = { assignee_id?: string; delegate_id?: string; description?: string; label_ids?: Array; priority?: number; project_id?: string; state_id?: string; team_id: string; title: string; }; /** * LinearIssueUpdateRequest is the request body for updating a Linear issue. */ export type LinearIssueUpdateRequest = { assignee_id?: string; delegate_id?: string; description?: string; label_ids?: Array; priority?: number; project_id?: string; state_id?: string; title?: string; }; /** * LinearLabel is a Linear issue label for a team. */ export type LinearLabel = { color?: string; id?: string; name?: string; }; /** * LinearLabelListResponse contains Linear label picker results. */ export type LinearLabelListResponse = { labels?: Array; truncated?: boolean; }; /** * LinearProject is a Linear project for a team. */ export type LinearProject = { id?: string; name?: string; }; /** * LinearProjectListResponse contains Linear project picker results. */ export type LinearProjectListResponse = { projects?: Array; truncated?: boolean; }; /** * LinearResolveIssueRequest is the optional request body for resolving a Linear issue. */ export type LinearResolveIssueRequest = { state_id?: string; }; /** * LinearTeam is a Linear team returned by the team picker API. */ export type LinearTeam = { id?: string; key?: string; name?: string; }; /** * LinearTeamListResponse contains Linear team picker results. */ export type LinearTeamListResponse = { teams?: Array; truncated?: boolean; }; /** * LinearUser is a Linear user returned by the typed Linear connector API. */ export type LinearUser = { active?: boolean; app?: boolean; archived?: boolean; display_name?: string; email?: string; id?: string; is_assignable?: boolean; name?: string; supports_agent_sessions?: boolean; }; /** * LinearUserListResponse contains Linear user picker results. */ export type LinearUserListResponse = { truncated?: boolean; users?: Array; }; /** * LinearWorkflowState is a Linear workflow state for a team. */ export type LinearWorkflowState = { id?: string; name?: string; type?: string; }; /** * LinearWorkflowStateListResponse contains Linear workflow state picker results. */ export type LinearWorkflowStateListResponse = { states?: Array; truncated?: boolean; }; export type ListApiKeysResponseItem = { /** * Email of the user who created the key. */ createdBy?: string; /** * Timestamp when the key was created. * Format: date-time */ creationDate?: string; /** * Optional description for the API key. */ description?: string; /** * Timestamp when the key expires/expired (null if no expiration). * Format: date-time */ expiredAt?: string; /** * The UUID of the API key resource. */ id?: string; /** * Timestamp of the last activity detected for this key. * Format: date-time */ lastActive?: string; /** * User-defined name for the API key. */ name?: string; /** * Policies associated with the service account owning this key. */ policies?: Array; /** * Timestamp when the key was revoked (null if active). * Format: date-time */ revokedAt?: string; /** * The UUID of the service account this key belongs to. */ serviceAccountId?: string; /** * The name of the service account this key belongs to. */ serviceAccountName?: string; }; export type ListApisErrorsRequest = { bucketResolution?: string; conditions?: Array; end?: string; sources?: Array; start?: string; }; export type ListApisErrorsResponse = { velocities?: Array; }; export type ListApisFiltersRequestParams = { conditions?: Array; end?: string; limitPerCategory?: number; required?: Array; sources?: Array; start?: string; }; export type ListApisLatenciesRequest = { bucketResolution?: string; conditions?: Array; end?: string; sources?: Array; start?: string; }; export type ListApisLatenciesResponse = { velocities?: Array; }; export type ListApisRequest = { conditions?: Array; end?: string; limit?: number; order?: string; skip?: number; sortBy?: string; sources?: Array; start?: string; }; export type ListApisRequestsRequest = { bucketResolution?: string; conditions?: Array; end?: string; sources?: Array; start?: string; }; export type ListApisRequestsResponse = { velocities?: Array; }; export type ListApisResponse = { apis?: Array; isLimitReached?: boolean; }; export type ListApisResponseItem = { cluster?: string; containerName?: string; env?: string; errorRate?: number; hasCrossAz?: boolean; id?: string; isEncrypted?: boolean; operationName?: string; p50?: number; p95?: number; p99?: number; requestRate?: number; resourceType?: string; server?: string; serverIsExternal?: boolean; serverNamespace?: string; spanName?: string; totalErrors?: number; totalLatencySeconds?: number; totalRequests?: number; }; export type ListAssetsByTypeResponse = { /** * List of assets. */ items?: Array; /** * True when this router supports view-rank sorting for dashboards. Older routers omit it. */ supports_view_rank_sort?: boolean; /** * Total number of assets. */ total?: number; }; export type ListConnectedAppsRequest = { /** * gcQL query to filter connected apps * Supports freetext search on name, type:, and notification_route: */ query?: string; }; export type ListConnectedAppsResponse = { /** * List of connected apps with notification routes */ connectedApps?: Array; }; export type ListIngestionKeysRequest = { /** * Name of the ingestion key to filter by */ name?: string; /** * RemoteConfig indicates if the key is for remote config */ remoteConfig?: boolean; /** * Type of the ingestion key to filter by */ type?: string; }; /** * ListInvestigationEventsResponse is a page ordered by event timestamp. */ export type ListInvestigationEventsResponse = { done: boolean; events: Array; /** * Last returned event's timestamp; an empty page retains afterTimestamp. */ nextAfterTimestamp?: string; }; export type ListInvestigationFindingsResponse = { /** * Whether this page exhausts the findings currently stored; not investigation completion. */ done: boolean; /** * Full findings across the root investigation, or the ones ids names, ordered by createdAt, ascending. */ findings: Array; /** * Last returned finding's createdAt, to send as afterTimestamp; an empty page retains afterTimestamp. */ nextAfterTimestamp?: string; }; export type ListInvestigationProposalsResponse = { /** * Whether this page exhausts the pending proposals currently stored. */ done: boolean; /** * Last returned proposal's createdAt, to send as afterTimestamp; an empty page retains afterTimestamp. */ nextAfterTimestamp?: string; /** * Pending proposals across the root investigation, each with its reviewState, ordered by createdAt, ascending. */ proposals: Array; }; export type ListInvestigationTriggersResponse = { triggers: Array; }; export type ListInvestigationsResponse = { /** * Whether this is the last page. */ done: boolean; /** * Page of root investigations, newest first. */ investigations: Array; }; /** * ListIssuesResponse is an ordered page and the exact total under the filters. */ export type ListIssuesResponse = { has_more: boolean; issues: Array; limit: number; offset: number; total: number; }; export type ListMigrationCloudIntegrationsResponse = { /** * The list of cloud integrations. */ cloudIntegrations: Array; }; export type ListMigrationDataSourcesResponse = { /** * The list of migration data sources. */ dataSources: Array; }; export type ListMigrationsResponse = { /** * List of migrations */ migrations?: Array; }; export type ListNamespacesRequest = { end?: string; kinds?: Array; sources?: Array; start?: string; workloads?: Array; }; export type ListNamespacesResponse = { namespaces?: Array; }; export type ListNotificationRoutesRequest = { /** * Freetext search on route name */ query?: string; }; export type LogAttributesResponse = { attributes?: { [key: string]: unknown; }; content?: string; guid?: string; rawLog?: string; tags?: { [key: string]: string; }; }; export type LogEntry = { additionalColumns?: { [key: string]: string; }; cluster?: string; container?: string; env?: string; envType?: EnvType; format?: string; functionName?: string; guid?: string; host?: string; instance?: string; instanceId?: string; instanceUid?: string; lambdaArn?: string; level?: string; line?: string; lineTruncated?: boolean; metadata?: { [key: string]: string; }; namespace?: string; node?: string; pod_name?: string; podUid?: string; service?: string; source?: string; spanId?: string; timestamp?: string; traceId?: string; workload?: string; }; export type LogGroupParseResponse = { conditionLogicOperator?: string; groupId?: string; ottlConditions?: Array; ottlStatements?: Array; ruleName?: string; statementsErrorMode?: string; }; export type LogParseGroupsRequest = { /** * Maximum number of distinct pattern groups to generate */ maxPatternGroups?: number; /** * GCQL Query to filter logs */ query?: string; /** * Minimum top pattern percent to include in the sample */ sampleMinTopPatternPercent?: number; sampleTimeInterval?: Duration; /** * Sources to filter logs */ sources?: Array; }; export type LogParseGroupsResponse = { logGroupParses?: Array; }; export type LogRecord = { attributes?: { [key: string]: unknown; }; body?: string; cluster?: string; container_name?: string; env?: string; format?: string; guid?: string; level?: string; namespace?: string; source?: string; span_id?: string; tags?: { [key: string]: string; }; time?: string; trace_id?: string; workload?: string; }; export type LogResponse = { done?: boolean; levels?: Array; limitReached?: boolean; logs?: Array; optimizedKeys?: Array; raiseAlert?: boolean; }; export type LogsContextRequestParams = { conditions?: Array; group?: Group; intervalSeconds?: number; limit?: number; query?: string; sources?: Array; time?: string; }; export type LogsErrorVelocityPeak = { anomaly_error_log_count?: number; anomaly_normalized_score?: number; anomaly_points_count?: number; anomaly_rolling_q25?: number; anomaly_rolling_q75?: number; anomaly_score?: number; anomaly_score_mean?: number; anomaly_score_std?: number; anomaly_timestamp?: string; avg_anomaly_score?: number; cluster?: string; container?: string; env?: string; namespace?: string; std_anomaly_score?: number; workload?: string; }; export type LogsErrorVelocityPeakResponse = { logs_error_velocity_peaks?: Array; }; export type LogsFiltersRequestParams = { conditions?: Array; enableEstimate?: boolean; enableStream?: boolean; /** * End time of the request range */ end: string; group?: Group; limitPerCategory?: number; query?: string; required?: Array; sources?: Array; /** * Start time of the request range */ start: string; }; export type LogsInsightType = string; export type LogsInsightsRequestParams = { bucketDurationSeconds?: BucketDurationSeconds; bucketResolution?: string; conditions?: Array; end?: string; group?: Group; insightType?: LogsInsightType; numResults?: number; query?: string; sources?: Array; start?: string; threshold?: number; }; /** * LogsMissingBucket covers units whose log dataset is absent, including the case * where the log source they filter on is not ingested into groundcover at all. */ export type LogsMissingBucket = { assets?: Array; count?: number; known_sources?: Array; missing_sources?: Array; /** * SourceNotIngested counts units filtering on a source: that * groundcover does not ingest, which no lookback widening can fix. */ source_not_ingested?: number; }; export type LogsPatternParamDistributionResponse = { values?: Array; }; export type LogsPatternsParamDistributionRequestParams = { conditions?: Array; /** * End time of the request range */ end: string; group?: Group; limit?: number; paramIndex?: number; pattern?: string; patternId?: number; query?: string; sources?: Array; /** * Start time of the request range */ start: string; }; export type LogsPatternsRequestParams = { bucketResolution?: string; conditions?: Array; /** * End time of the request range */ end: string; group?: Group; limit?: number; query?: string; selectors?: Array; skip?: number; sortOrder?: string; sources?: Array; /** * Start time of the request range */ start: string; }; export type LogsPatternsResponse = { limitReached?: boolean; patterns?: Array; }; /** * LogsPipelineConfig is the response model for logs pipeline configuration */ export type LogsPipelineConfig = { created_by?: string; created_timestamp?: string; uuid?: string; value?: string; }; export type LogsRequestParams = { conditions?: Array; enableStream?: boolean; /** * End time of the request range */ end: string; group?: Group; limit?: number; query?: string; selectors?: Array; skip?: number; /** * SortBy is the column/attribute key to order by. Empty means order by * timestamp (the historical behavior). Any root column or attribute is * allowed; string columns are sorted best-effort numerically with a * lexicographic fallback (see search.BuildOrderByColumn). */ sortBy?: string; sortOrder?: string; sources?: Array; /** * Start time of the request range */ start: string; truncateLine?: boolean; }; export type LogsSearchOverTimeStreamResponse = { data?: Array; done?: boolean; error?: string; estimate?: boolean; }; export type LogsSearchRequest = { /** * EnableStream indicates if the response should be streamed */ enableStream?: boolean; /** * End time of the request range */ end: string; /** * Extra filters to apply on the logs */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter logs */ query?: string; /** * Sources to filter logs */ sources?: Array; /** * Start time of the request range */ start: string; }; export type LogsSearchTimeSeriesRequest = { bucketDuration?: string; /** * EnableStream indicates if the response should be streamed */ enableStream?: boolean; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the logs */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter logs */ query?: string; /** * Sources to filter logs */ sources?: Array; /** * Start time of the request range */ start: string; /** * ValueField selects the numeric column(s) to project as time series. * A single field name (e.g. "total") emits one series per unique label * combination. A comma-separated list (e.g. "total,errors") emits one * parallel series per name with a synthetic metric_name label identifying * each. Whitespace around each name is trimmed. When multiple fields are * requested, the underlying query may not also emit a column literally * named "metric_name" — it would collide with the synthetic label. */ valueField?: string; }; export type LogsVelocity = { level?: string; velocity?: Array; }; export type LogsVelocityRequestParams = { bucketDurationSeconds?: BucketDurationSeconds; bucketResolution?: string; conditions?: Array; enableEstimate?: boolean; enableStream?: boolean; /** * End time of the request range */ end: string; group?: Group; query?: string; sources?: Array; /** * Start time of the request range */ start: string; }; export type LogsVelocityResponse = { isEstimate?: boolean; velocities?: Array; }; /** * MCPJSONRPCRequest is a JSON-RPC 2.0 request forwarded to an MCP server. */ export type McpjsonrpcRequest = { /** * Request identifier. Omitted for notifications. */ id?: unknown; /** * JSON-RPC protocol version. */ jsonrpc: string; /** * MCP method name. */ method: string; /** * Method-specific parameters. */ params?: unknown; }; export type MsTeamsData = { url: string; }; export type MsTeamsDataResponse = { [key: string]: unknown; }; export type MappingConfig = { default_rate_window?: string; key_mappings?: Array; metric_mappings?: Array; metric_name_char_replace?: { [key: string]: string; }; value_mappings?: Array; }; /** * MappingEvidence records why an automatically discovered mapping was safe to persist. */ export type MappingEvidence = { kind?: string; metric?: string; /** * PoolSize is the size of the pruned candidate pool the discovery query * returned, not the size of the tenant's metric catalog. */ pool_size?: number; }; export type MappingResponse = { config?: MappingConfig; /** * The timestamp when the mappings configuration was created. * Format: date-time */ createdAt?: string; /** * The data type for this mappings configuration. */ dataType?: string; /** * The timestamp when the mappings configuration was soft deleted. * Format: date-time */ deletedAt?: string; /** * The unique identifier of the mappings configuration. */ id?: string; /** * The provider type for this mappings configuration. */ provider?: 'datadog' | 'coralogix'; /** * The timestamp when the mappings configuration was last updated. * Format: date-time */ updatedAt?: string; /** * The version of this mappings configuration. */ version?: number; }; /** * MatchType is an enum for label matching types. */ export type MatchType = number; /** * Matcher models the matching of a label. */ export type Matcher = { Name?: string; Type?: MatchType; Value?: string; }; /** * Matchers is a slice of Matchers that is sortable, implements Stringer, and * provides a Matches method to match a LabelSet against all Matchers in the * slice. Note that some users of Matchers might require it to be sorted. */ export type Matchers = Array; export type MatchingRoute = { /** * The route ID */ id?: string; /** * The route name */ name?: string; /** * The gcQL query that matched */ query?: string; }; export type MathExpression = { alias?: string; args?: Array; column?: Column; keepExisting?: boolean; math_operator?: MathOperator; scalar?: string; }; export type MathOperator = string; export type MemberTenants = { [key: string]: Array; }; export type MemberView = { archivedTimestamp?: string; createdTimestamp?: string; description?: string; isDefault?: boolean; isFavorite?: boolean; isProvisioned?: boolean; name?: string; originId?: string; originType?: string; owner?: string; /** * PinOrder is the member's pin weight, higher sorts first; nil when not * pinned. The client owns the numbering, so ties and gaps are possible. */ pinOrder?: number; preset?: string; revisionNumber?: number; status?: string; tags?: Array; team?: string; tenantUuid?: string; updatedBy?: string; updatedTimestamp?: string; uuid?: string; viewType?: string; }; export type MemberViewsRequest = { favoritesOnly?: boolean; filter?: string; selfOwnedOnly?: boolean; type?: string; }; export type MemberWithRoleResponse = { Created?: string; Email?: string; FeaturePermissions?: EffectiveFeaturePermissions; FirstLogin?: string; LastSeen?: string; Owner?: boolean; RoleType?: string; }; /** * Metadata defines model for Metadata. */ export type Metadata = { executionId?: string; labels?: { [key: string]: string; }; syntheticId?: string; syntheticName?: string; target?: string; }; /** * MetricKeyGap aggregates missing label keys for one metric across units. */ export type MetricKeyGap = { count?: number; keys?: Array; metric?: string; }; export type MetricKeysRequestV2 = { end?: string; filter?: string; limit?: number; names?: Array; sources?: Array; start?: string; }; export type MetricKeysResponseV2 = { isLimitReached?: boolean; keys?: Array; }; export type MetricLabels = { [key: string]: string; }; /** * MetricListBucket counts units and lists the metrics responsible. */ export type MetricListBucket = { count?: number; metrics?: Array; }; export type MetricMapping = { evidence?: MappingEvidence; groundcover_metric?: string; /** * Origin is server-owned normalization provenance. */ readonly origin?: string; source_metric?: string; }; /** * MetricValueGap aggregates missing label values for one metric. */ export type MetricValueGap = { count?: number; metric?: string; values?: Array; }; export type MetricValuesRequestV2 = { conditions?: Array; end?: string; filter?: string; key?: string; limit?: number; names?: Array; sources?: Array; start?: string; }; export type MetricValuesResponseV2 = { isLimitReached?: boolean; values?: Array; }; export type MetricVelocity = { metric?: string; velocity?: Array; }; export type MetricVelocityWithLabels = { metric?: MetricLabels; velocity?: Array; }; export type MetricsAggregatorConfig = { created_by?: string; created_timestamp?: string; uuid?: string; value?: string; }; export type MetricsAggregatorDefaultConfig = { value?: string; }; export type MetricsDiscoveryRequest = { /** * Conditions filters discovery results by metadata conditions. */ conditions?: Array; /** * End specifies the end time for the discovery query. */ end?: string; /** * Filter applies a wildcard text filter on keys and values. */ filter?: string; /** * LimitByKey specifies the maximum number of values per key. */ limitByKey?: number; /** * Name optionally filters discovery results by metric name. */ name?: string; /** * Sources filters discovery results by source conditions. */ sources?: Array; /** * Start specifies the start time for the discovery query. */ start?: string; }; export type MetricsDiscoveryResponse = { name?: string; results?: Array; }; export type MetricsDiscoveryResult = { key?: string; value?: string; }; export type MetricsKeysRequest = { /** * End specifies the end time for the metric keys query. */ end?: string; /** * Filter specifies a search filter to apply to the metric keys. */ filter?: string; /** * Limit specifies the maximum number of results to return. */ limit?: number; /** * Name specifies the metric name to get keys for. */ name?: string; /** * Sources specifies the sources to filter the metric keys. */ sources?: Array; /** * Start specifies the start time for the metric keys query. */ start?: string; }; export type MetricsKeysResponse = { /** * IsLimitReached indicates whether the query limit was reached. */ isLimitReached?: boolean; /** * Keys is the list of metric keys. */ keys?: Array; /** * Name is the metric name. */ name?: string; }; export type MetricsNamesRequest = { /** * End specifies the end time for the metric names query. */ end?: string; /** * Filter specifies a search filter to apply to the metric names. */ filter?: string; /** * Limit specifies the maximum number of results to return. */ limit?: number; /** * Required specifies a list of metric names that must be included in the results. */ required?: Array; /** * Sources specifies the sources to filter the metric names. */ sources?: Array; /** * Start specifies the start time for the metric names query. */ start?: string; }; export type MetricsNamesResponse = { /** * IsLimitReached indicates whether the query limit was reached. */ isLimitReached?: boolean; /** * Metrics is the list of enriched metric results. */ metrics?: Array; }; export type MetricsNamesResultEnriched = { /** * Description is the metric description. */ description?: string; /** * Highlights contains the matching parts of the metric name based on the filter. */ highlights?: Array; /** * Name is the metric name. */ name?: string; /** * Type is the metric type (e.g., "gauge", "counter"). */ type?: string; /** * Unit is the metric unit (e.g., "bytes", "seconds"). */ unit?: string; }; /** * Represents a metrics pipeline relabeling configuration entry */ export type MetricsPipelineConfigInfo = { created_by?: string; created_timestamp?: string; rules?: RelabelConfig; uuid?: string; }; export type MetricsValuesRequest = { conditions?: Array; end?: string; filter?: string; key?: string; limit?: number; name?: string; sources?: Array; start?: string; }; export type MetricsValuesResponse = { isLimitReached?: boolean; key?: string; name?: string; values?: Array; }; export type Migration = { /** * The timestamp when the migration was created. * Format: date-time */ createdAt?: string; /** * The email of the user who created the migration. */ createdBy?: string; /** * The timestamp when the migration was deleted. * Format: date-time */ deletedAt?: string; /** * The timestamp when the migration was completed. * Format: date-time */ doneAt?: string; /** * The unique identifier of the migration. */ migrationId?: string; /** * The name of the migration. */ name?: string; /** * The provider type for this migration. */ provider?: string; /** * The current status of the migration. */ status?: string; /** * The timestamp when the migration was last updated. * Format: date-time */ updatedAt?: string; }; export type MigrationCloudIntegrationItem = { /** * The conversion status for this integration. */ conversionStatus: string; /** * The converted payload. */ convertedPayload?: string; /** * The install state for this integration. */ installState: string; /** * The integration name/identifier. */ integrationName: string; /** * The cloud provider type. */ provider: string; }; export type MigrationDataSourceItem = { /** * When the user connected this data source from the migrations UI. Absent * until then. A connected source with status todo is waiting for data. * Format: date-time */ connectedAt?: string; /** * The data source display name. For cloud integrations * (AWS / GCP / Azure) this is prefixed with the cloud label and a * space, e.g. "AWS 123456789012", "GCP sa@my-prod.iam.gserviceaccount.com", * "Azure prod-azure-tenant". For non-cloud integrations it is the raw * source-provider integration name (e.g. "redis", "kubelet"); ordinary * unmapped customer metrics are grouped under "Custom Metrics". */ datasourceName: string; /** * The stable unique identifier for this data source. */ id: string; /** * Number of dashboards impacted by this data source. */ impactedDashboardsCount: number; /** * Number of metrics impacted by this data source. */ impactedMetricsCount: number; /** * Number of monitors impacted by this data source. */ impactedMonitorsCount: number; /** * The matching groundcover integration type. Ordinary unmapped customer * metrics use "custom_metrics"; null is reserved for unsupported vendor telemetry. */ integrationType?: string | null; /** * Cloud or external resources referenced by this data source. */ referencedResources: Array; /** * The current migration status for this data source. */ status: 'todo' | 'partial' | 'active'; /** * Whether this data source is supported by migration. */ supportType: 'supported' | 'not_supported'; }; export type MigrationDetectedIntegration = { /** * The integration name detected from metrics. */ integration: string; /** * The number of metrics detected for this integration. */ metricCount: number; }; /** * Issue is an open migration issue with its distinct eligible asset count. */ export type MigrationIssue = { asset_count: number; category: string; datasource: string; evidence: { [key: string]: string; } | null; field_name: string; finding_type: 'missing_metric' | 'missing_key' | 'missing_value' | 'no_data'; integration: string; issue_id: string; label_key: string; label_key_dd: string; label_value: string; label_value_dd: string; message: string; severity: string; subject: MigrationIssueSubject; suggestions: Array; }; /** * IssueSubject identifies the subject on both sides of the migration. */ export type MigrationIssueSubject = { name_dd: string; name_gc: string; }; /** * IssueSuggestion is a candidate mapping for a migration issue. */ export type MigrationIssueSuggestion = { type: string; value: string; }; /** * MissingDataSetBucket covers converted units whose underlying dataset is absent. */ export type MissingDataSetBucket = { logs?: LogsMissingBucket; metrics?: MissingMetricsBreakdown; missing_env?: ValueMissingBucket; tail?: TailDataSetBreakdown; total?: number; }; export type MissingGroundcoverIntegration = { /** * Opaque offering ID supplied by the caller. */ id: string; /** * connector MissingGroundcoverIntegrationConnector * data_source MissingGroundcoverIntegrationDataSource */ kind: 'connector' | 'data_source'; /** * Additional evidence or telemetry that would help complete the assessment. */ reason?: string; }; export type MissingGroundcoverIntegrationRef = { id: string; /** * connector MissingGroundcoverIntegrationConnector * data_source MissingGroundcoverIntegrationDataSource */ kind: 'connector' | 'data_source'; }; /** * MissingMetricsBreakdown splits missing metrics into mutually exclusive buckets. * * A metric can qualify for several buckets at once (a datadog.* metric that is * also inactive, say). It is counted in exactly one — chosen by the priority * order in classifyMissingMetric — and carries a tag for every bucket that * applies, so nothing is lost to that choice. */ export type MissingMetricsBreakdown = { custom_metrics?: MetricListBucket; datadog_self_observability?: MetricListBucket; inactive_in_datadog?: MetricListBucket; integrations_we_dont_have?: IntegrationCountBucket; integrations_we_have?: IntegrationCountBucket; total?: number; }; /** * Model holds the core query/reducer/threshold definitions. */ export type Model = { /** * List of queries defining the data sources for the monitor. */ queries: Array; /** * List of reducers to aggregate or transform query results. */ reducers?: Array; /** * List of thresholds to evaluate against the final reduced value. */ thresholds: Array; }; /** * Monitor represents a Datadog monitor */ export type Monitor = { classification?: string; created?: string; creator?: Creator; id?: number; matching_downtimes?: Array; message?: string; modified?: string; multi?: boolean; name?: string; options?: MonitorOptions; overall_state?: string; overall_state_ts?: number; priority?: number; query?: string; restricted_roles?: Array; state?: MonitorState; tags?: Array; type?: string; }; export type MonitorDetailsResponse = { /** * Monitor definition YAML. */ data?: string; /** * Whether the monitor is provisioned by IaC. */ isProvisioned?: boolean; }; export type MonitorListItem = { /** * Title of the monitor. */ title?: string; /** * Type of the monitor. */ type?: string; /** * Unique identifier for the monitor. * Format: uuid */ uuid?: string; }; export type MonitorListRequest = { /** * Search conditions to filter monitors. */ conditions?: Array; /** * Maximum number of monitors to return (default 1000). */ limit?: number; /** * GCQL filter string (filters only, no pipes or aggregations). * Supported fields: monitor_name, type. */ query?: string; /** * Number of monitors to skip for pagination. */ skip?: number; /** * Field to sort by: "name" (default) or "type". */ sort?: string; }; export type MonitorListResponse = { /** * Whether all matching results have been returned (no more pages). */ done?: boolean; /** * List of monitors matching the criteria. */ monitors?: Array; }; /** * MonitorModel is internal model structure, not directly exposed via API */ export type MonitorModel = unknown; /** * MonitorOptions represents options for a monitor */ export type MonitorOptions = { device_ids?: Array; enable_logs_sample?: boolean; escalation_message?: string; evaluation_delay?: number; groupby_simple_monitor?: boolean; include_tags?: boolean; min_failure_duration?: number; min_location_failed?: number; new_group_delay?: number; new_host_delay?: number; no_data_timeframe?: number; notification_preset_name?: string; notify_audit?: boolean; notify_no_data?: boolean; on_missing_data?: string; renotify_interval?: number; renotify_occurrences?: number; renotify_statuses?: Array; require_full_window?: boolean; synthetics_check_id?: string; thresholds?: MonitorThresholds; timeout_h?: number; variables?: Array; }; /** * MonitorRevisionsResponse is a page of revisions, newest first. */ export type MonitorRevisionsResponse = { hasNextPage?: boolean; revisions?: Array; }; /** * MonitorState represents the state of a monitor */ export type MonitorState = { groups?: { [key: string]: unknown; }; }; /** * MonitorThresholds represents thresholds for a monitor */ export type MonitorThresholds = { critical?: number; critical_recovery?: number; ok?: number; unknown?: number; warning?: number; warning_recovery?: number; }; /** * MonitorVariable represents a monitor variable */ export type MonitorVariable = { available_values?: Array; compute?: { [key: string]: unknown; }; data_source?: string; default_value?: string; group_by?: Array; indexes?: Array; name?: string; prefix?: string; search?: VariableSearch; storage?: string; }; export type MonitorsCatalogItem = { catalogId?: string; category?: string; conditionDescription?: string; createdAt?: string; description?: string; /** * Integration is the technology family, or null for native monitors. * Same shape as the dashboards catalog so both feed one card component. */ integration?: string | null; lastUpdated?: string; monitorType?: string; tags?: Array; title?: string; version?: number; }; export type MonitorsCatalogItemByPack = { description?: string; displayName?: string; id?: string; monitors?: Array; }; export type MonitorsSearchRequest = { /** * End time of the request range */ end: string; /** * GCQL query over `_from monitors` (the default domain here) */ query: string; /** * Start time of the request range */ start: string; }; /** * NoDataBreakdown drills into units that did not come back fully working. * * A unit lands here when any of its queries returned no data, or when a static * key/value gap was found. For a multi-query unit — a widget with several series, * a monitor with a formula — that means "not all queries returned data" rather * than "nothing returned data"; SomeQueriesReturnedData on each entry records * which of the two it was. */ export type NoDataBreakdown = { count?: number; negative_key_missing?: KeyMissingBreakdown; negative_value_missing?: ValueMissingBucket; pct?: number; positive_all_keys_values_exist?: PositiveNoDataBucket; }; /** * NoDataNeededBucket counts units that need no query to render. */ export type NoDataNeededBucket = { by_type?: { [key: string]: number; }; count?: number; }; /** * NotSupportedBucket covers unsupported types, bucketed by type. */ export type NotSupportedBucket = { assets?: Array; by_type?: { [key: string]: number; }; total?: number; }; export type NotificationRouteListItemResponse = { /** * The creation timestamp */ createdAt?: string; /** * The email of the user who created the route */ createdBy?: string; /** * The route ID */ id?: string; /** * The last modification timestamp */ modifiedAt?: string; /** * The email of the user who last modified the route */ modifiedBy?: string; /** * The route name */ name?: string; /** * The gcQL query */ query?: string; /** * The route rules with status and connected apps */ routes?: Array; }; export type NotificationRouteListResponse = { /** * List of notification routes */ notificationRoutes?: Array; }; export type NotificationRouteResponse = { /** * The creation timestamp */ createdAt?: string; /** * The email of the user who created the route */ createdBy?: string; /** * The route ID */ id?: string; /** * The last modification timestamp */ modifiedAt?: string; /** * The email of the user who last modified the route */ modifiedBy?: string; /** * The route name */ name?: string; notificationSettings?: NotificationSettingsResponse; /** * The gcQL query */ query?: string; /** * The routing rules */ routes?: Array; }; /** * NotificationSettings defines the notification settings for the monitor. */ export type NotificationSettings = { connectedAppParams?: ConnectedAppParams; connectedApps?: Array; disableRenotification?: boolean; method?: 'notificationRoutes' | 'connectedApps' | 'noNotifications'; renotificationInterval?: RenotificationDuration; statusFilters?: Array; }; export type NotificationSettingsRequest = { /** * Disable re-notifications entirely */ disableRenotification?: boolean; /** * The interval between re-notifications (e.g., "4h", "30m") */ renotificationInterval?: string; }; export type NotificationSettingsResponse = { /** * Whether re-notifications are disabled */ disableRenotification?: boolean; /** * The interval between re-notifications */ renotificationInterval?: string; }; export type ObjectInfoResponse = { annotations?: Array; available?: number; completedAt?: string; completions?: number; conditions?: Array; creationTime?: string; data?: { [key: string]: string; }; desired?: number; desiredCompletions?: number; duration?: number; labels?: Array; name?: string; namespace?: string; ownerKind?: string; ownerName?: string; ownerUid?: string; ready?: number; replicas?: number; resourceVersion?: string; selector?: Array; startedAt?: string; status?: string; tolerations?: Array; uid?: string; workload?: string; }; export type ObjectYamlResponse = { objectYaml?: string; resourceVersion?: string; uid?: string; }; export type Op = string; export type OpsGenieData = { api_key: string; region?: string; severity_mapping?: { [key: string]: string; }; /** * Tags added to every alert sent through this destination. Supports up to 20 * non-empty tags of at most 50 Unicode characters. */ tags?: Array; }; export type OpsGenieDataResponse = { /** * The OpsGenie region (us or eu) */ region?: string; /** * Custom severity mapping (if configured) */ severity_mapping?: { [key: string]: string; }; /** * Tags added to every alert sent through this destination. Supports up to 20 * non-empty tags of at most 50 Unicode characters. */ tags?: Array; }; /** * OrderedReasons is a list of reason→count pairs that marshals as a JSON object * with keys in insertion order (preserving sort-by-count). */ export type OrderedReasons = Array; /** * OrgConnectorUpdateRequest wraps mutable org connector fields. * * For Slack, `name` may be set at the top level and `data` may include * `client_secret`, `app_token` and/or `manifest_json` (the Slack app manifest * to save; omit it to keep the saved one). For MCP, `data` carries OAuth client * fields only. Omitted `data` is treated as an empty object. */ export type OrgConnectorUpdateRequest = { /** * Provider-specific connector data. */ data?: { [key: string]: unknown; }; /** * Optional connector display name. */ name?: string; }; export type OttlFromLogsResponse = { condition_logic_operator?: string; ottl?: Array; ottl_conditions?: Array; rule_name?: string; statements_error_mode?: string; }; export type OttlStatsEntry = { avgProcessingTimeSeconds?: number; cluster?: string; conditionEvalErrorPercentage?: number; conditionMetPercentage?: number; configurationID?: string; contextType?: string; env?: string; isRuleDisabled?: boolean; isRuleValid?: boolean; logsConditionMetRate?: number; logsDroppedPercentage?: number; logsDroppedRate?: number; /** * Calculated rate and percentage metrics */ logsSeenRate?: number; logsTransformedRate?: number; maxProcessingTimeSeconds?: number; minProcessingTimeSeconds?: number; ruleIndex?: number; ruleName?: string; ruleSource?: string; statementExecErrorPercentage?: number; totalConditionEvalErrorsCount?: number; totalConditionMetCount?: number; totalLogsDropped?: number; /** * Aggregated count metrics */ totalLogsSeen?: number; totalLogsTransformed?: number; /** * Time-based metrics */ totalProcessingTimeSeconds?: number; totalStatementExecErrorsCount?: number; }; /** * Pack is a rail grouping for the catalog browse UI, authored in packs.json. */ export type Pack = { display?: string; id?: string; priority?: number; }; export type PagerDutyData = { routing_key: string; severity_mapping?: { [key: string]: string; }; }; export type PagerDutyDataResponse = { /** * Custom severity mapping (if configured) */ severity_mapping?: { [key: string]: string; }; }; export type PatternData = { additionalColumns?: { [key: string]: string; }; count?: number; level?: string; pattern?: string; patternId?: number; trend?: Array; workload?: string; }; export type PatternParamDistributionValue = { patternParamValue?: string; patternParamValueCount?: number; patternParamValuePercentage?: number; }; /** * Permissions contains explicit overrides only; a missing feature uses role authorization. */ export type Permissions = { [key: string]: 'no_access' | 'view' | 'edit'; }; /** * PinViewRequest is the body of POST /api/views/{id}/pin. */ export type PinViewRequest = { /** * Order is this view's weight in the member's pin list: higher sorts first, * so send the highest order currently pinned + 1 to put the new pin on top. * Do not send the length of the visible list — archiving clears pins * without packing the numbers, so a length can collide with a live pin. * The client owns the numbering, so the server stores it as sent. It is * int32 to match the pin_order column: a wider value would decode fine here * and then fail at encode time as a 500. */ order: number; }; /** * PinnedResource is one entry of a member's ordered pin list. PinOrder is * exposed so a client that only reads this endpoint can still compute the next * pin's number without also fetching the dashboards list. */ export type PinnedResource = { name?: string; pinOrder?: number; resourceType?: string; resourceUuid?: string; }; /** * Policy defines an access control policy. */ export type Policy = { /** * Optional claim role for the policy. */ claimRole?: string; /** * Email of the user who created the policy. */ readonly createdBy?: string; /** * Timestamp when the policy was created. */ readonly createdTimestamp?: string; dataScope?: DataScope; /** * Optional description of the policy. */ description?: string; featurePermissions?: Permissions; /** * Name of the policy. */ name: string; /** * Indicates if the policy is read-only (system managed). */ readonly readOnly?: boolean; /** * Revision number for optimistic locking. */ readonly revisionNumber?: number; role?: RoleMap; /** * Whether this policy grants access to sensitive (access-controlled) attributes. */ sensitiveAccess?: boolean; /** * Tenant associated with the policy. */ readonly tenantUuid?: string; /** * Email of the user who last updated the policy. */ readonly updatedBy?: string; /** * Timestamp when the policy was last updated. */ readonly updatedTimestamp?: string; /** * Unique identifier for the policy. */ readonly uuid?: string; }; /** * PolicyWithEntityCount includes the policy details along with the count of entities it's applied to. */ export type PolicyWithEntityCount = Policy & { /** * Number of entities (users/service accounts) this policy is applied to. */ readonly entityCount?: number; }; /** * PositiveNoDataBucket covers units where every dependency resolves yet no data * came back, broken down by the reason we could establish. */ export type PositiveNoDataBucket = { assets?: Array; by_reason?: OrderedReasons; count?: number; pct?: number; }; /** * PreflightReportResponse is the preflight report plus backend-only counters. */ export type PreflightReportResponse = { /** * AssetsReextracted counts assets converted before converted_queries was stored; a non-zero value means the tenant needs a reconvert. */ assets_reextracted?: number; coverage_plan?: CoveragePlan; funnel_by_asset?: FunnelByAsset; /** * GeneratedAt is when this report was produced, set once right before it is * written out. A report is often diffed against a later rerun after a fix, so * the file needs to say for itself when it was taken without relying on * filesystem mtimes, which a copy or a git checkout does not preserve. */ generated_at?: string; integrations_summary?: Array; raw_findings?: Array; summary?: UnifiedSummary; wet_results?: WetReport; }; /** * PreflightRequest defines the request body for running preflight validation. */ export type PreflightRequest = { /** * Asset types to include in the preflight check. * Optional: defaults to ["monitors", "dashboards"] if omitted. */ asset_types?: Array; }; export type Processor = { aliasType?: string; args?: Array; op?: string; }; /** * DiffFlameNode contains inclusive and self weight per side in the selected * sample unit. A frame present on one side only has zero weight on the other. */ export type ProfilingDiffFlameNode = { baseSelf?: number; baseValue?: number; children?: Array; name?: string; /** * Omitted identifies a synthetic bucket, distinct from a real frame named other. */ omitted?: boolean; /** * Weight sampled directly in this function. In inverted trees, caller * children partition the same weight and have zero self weight. */ self?: number; value?: number; }; /** * FlameNode contains inclusive and self weight in the selected sample unit. */ export type ProfilingFlameNode = { children?: Array; name?: string; /** * Omitted identifies a synthetic bucket, distinct from a real frame named other. */ omitted?: boolean; /** * Weight sampled directly in this function. In inverted trees, caller * children partition the same weight and have zero self weight. */ self?: number; value?: number; }; export type ProfilingFlamegraphDiffResponse = { baseFilteredValue?: number; basePeriod?: ProfilingPeriod; baseTotal?: number; /** * Weight removed by focus and frame filtering. */ filteredValue?: number; period?: ProfilingPeriod; profileType?: string; root?: ProfilingDiffFlameNode; sampleType?: string; stacks?: ProfilingStackCounts; /** * Original authorized selection weight before focus or frame filtering. */ total?: number; truncated?: boolean; unit?: string; }; export type ProfilingFlamegraphResponse = { /** * Signed weight removed by focus and frame filtering. */ filteredValue?: number; period?: ProfilingPeriod; profileType?: string; root?: ProfilingFlameNode; sampleType?: string; stacks?: ProfilingStackCounts; /** * Original authorized selection weight before focus or frame filtering. */ total?: number; truncated?: boolean; unit?: string; }; export type ProfilingPeriod = { end?: string; start?: string; }; /** * ProfilingRuleListResponse is a list of profiling rules. */ export type ProfilingRuleListResponse = { rules?: Array; }; /** * ProfilingRuleRequest creates or replaces a profiling rule. */ export type ProfilingRuleRequest = { /** * Why the rule exists; at most 500 characters. */ description?: string; /** * How long the rule applies from this request, as a Go duration such as * "30m" or "2h"; at least 5m. Mutually exclusive with expiresAt. */ duration?: string; /** * When the rule stops applying; at least 5m from now. Mutually exclusive * with duration; with neither, the rule applies until deleted. */ expiresAt?: string; /** * gcQL over namespace, workload, container_name, pod_name, node and * node_pool, such as `namespace:shop workload:checkout-*` or * `pod_name:checkout-7d9f8-*`. `*` selects every container. */ filter: string; scope: ProfilingRuleScope; /** * At most 20 tags. */ tags?: { [key: string]: string; }; }; /** * ProfilingRuleResponse is a stored profiling rule. */ export type ProfilingRuleResponse = { createdAt?: string; createdBy?: string; description?: string; /** * Absent when the rule applies until deleted. */ expiresAt?: string; filter?: string; id?: string; /** * How the rule was created: ui, api, terraform or agent. */ origin?: 'ui' | 'api' | 'terraform' | 'agent'; scope?: ProfilingRuleScope; /** * active or expired. */ status?: 'active' | 'expired'; tags?: { [key: string]: string; }; updatedAt?: string; updatedBy?: string; }; /** * ProfilingRuleScope is where a rule applies: "*" for both env and cluster * means every cluster; otherwise one env and cluster pair a sensor has * reported from. */ export type ProfilingRuleScope = { /** * The cluster, or "*". */ cluster: string; /** * The env, or "*". An empty env is a cluster installed without one. */ env: string; }; /** * StackCounts counts aggregated stacks, not samples or rendered tree nodes. */ export type ProfilingStackCounts = { /** * Stacks selected for detailed paths before depth, node, and small-branch * compaction. Inverted function totals also include stacks beyond this count. */ returned?: number; /** * Matching aggregated stacks before the top-stack limit or result truncation. */ total?: number; }; /** * PromqlFunction represents a function call in a PromQL query. */ export type PromqlFunction = { args?: Array; name?: string; pipelines?: Array; }; /** * PromqlPipeline represents a segment of a PromQL query, which can be a metric with conditions, a function, or a template. */ export type PromqlPipeline = { conditions?: Array; function?: PromqlFunction; /** * Pipeline can either have a metric OR a function OR a template */ metric?: string; template?: string; }; export type ProtocolType = string; export type Provider = { /** * Provider identifier */ id?: unknown; /** * Whether the provider is installed */ installed?: boolean; /** * Human-readable name of the provider */ name?: string; /** * Type of the provider */ type?: string; }; /** * ProviderStateResponse is returned after changing deployment-global provider availability. */ export type ProviderStateResponse = { /** * Whether the provider is globally enabled */ enabled?: boolean; /** * The provider name */ provider?: string; }; /** * QueriesSummary holds query-level statistics for the unified summary. */ export type QueriesSummary = { by_datasource?: { [key: string]: number; }; failed?: number; passed?: number; passed_pct?: number; total?: number; }; /** * QueryRequest represents a request to query metrics */ export type QueryRequest = { /** * Additional conditions to apply */ Conditions?: Array; /** * End time for the query */ End?: string; /** * GCQL filters to apply */ Filters?: string; Pipeline?: PromqlPipeline; /** * Direct PromQL query string */ Promql?: string; /** * Query type: either "range" or "instant" * range MetricsQueryTypeRange * instant MetricsQueryTypeInstant */ QueryType?: 'range' | 'instant'; /** * Start time for the query */ Start?: string; /** * Step duration for range queries (e.g., "1m", "5m") */ Step?: string; SubPipelines?: KnownPipelines; }; /** * QueryType distinguishes between range and instant queries. */ export type QueryType = string; export type RawConfig = { raw?: string; }; export type RbacTenantSettings = { defaultPolicyUUID?: string; /** * DefaultRole is the old settings, If DefaultPolicyUUID is not empty, this field will be ignored */ defaultRole?: string; }; export type ReadinessCount = { /** * Assets in this bucket that are excluded. */ excluded?: number; /** * Assets in this bucket that are not excluded. */ included?: number; }; export type RecurringSilenceResponse = { comment?: string; createdAt?: string; createdBy?: string; createdByEmail?: string; enabled?: boolean; id?: string; matchers?: Matchers; recurrenceType?: 'daily' | 'weekly' | 'monthly'; timeframes?: { [key: string]: Array; }; timezone?: string; updatedAt?: string; }; /** * ReducerModel defines how to aggregate or transform query results. */ export type ReducerModel = { /** * Math expression (if type is 'math'). */ expression?: string; /** * Name of the query or reducer output to use as input. */ inputName?: string; /** * Name of the reducer output. */ name: string; relativeTimerange?: RelativeTimerange; /** * Type of the reducer. */ type: 'last' | 'min' | 'max' | 'mean' | 'sum' | 'count' | 'math'; }; export type RelabelConfig = { addLabel?: { [key: string]: string; }; dropRegex?: Array; keepRegex?: Array; raw?: string; removeLabel?: Array; }; /** * RelativeTimerange defines a time range relative to the evaluation time. */ export type RelativeTimerange = { /** * Start of the range relative to now (e.g., "-5m", "-1h"). */ from?: string; /** * End of the range relative to now (e.g., "-1m", "now"). */ to?: string; }; export type RemoveLabelConfig = { removeLabel?: Array; }; export type RemoveMemberRequest = { email?: string; }; /** * RenotificationDuration is like Duration but marshals using model.Duration * for cleaner output (1d instead of 24h0m0s) to match Grafana notification policy settings. */ export type RenotificationDuration = unknown; /** * Request Check request configuration. Only one field should be set based on the check kind. */ export type Request = { dns?: DnsRequest; http?: HttpRequest; ssl?: SslRequest; tcp?: TcpRequest; udp?: UdpRequest; websocket?: WebsocketRequest; }; export type RetractFindingRequest = { reason: string; }; /** * RevisionEntry is one recorded write as the history read returns it: the spec * after it, who made it and the stamp it set. */ export type RevisionEntry = { operation?: string; spec?: V2MonitorSpec; updatedAt?: string; updatedBy?: string; }; /** * RoleDefaults are form presets; backend configuration and legacy checks still determine inherited access. */ export type RoleDefaults = { [key: string]: 'no_access' | 'view' | 'edit'; }; /** * RoleMap defines the mapping of roles to permissions. * * It is used within a Policy. */ export type RoleMap = { [key: string]: string; }; export type Rollup = { function?: string; time?: Duration; }; /** * RootSpanDetailsResponse is the envelope returned by POST /trace/root-span-details. */ export type RootSpanDetailsResponse = { details?: RootSpanResult; }; /** * RootSpanResult is the scan target for GET_ROOT_SPAN_DETAILS and the item * returned in the response. It contains only the fields consumed by the UI * header panel; full payload data (bodies, headers) is fetched separately * via /api/traces/v2/details when a span is selected. */ export type RootSpanResult = { cluster?: string; env?: string; isEncrypted?: boolean; isExternal?: boolean; isPii?: boolean; latency?: number; namespace?: string; resource?: string; resourceTruncated?: boolean; source?: string; spanId?: string; spanType?: ProtocolType; status?: string; statusCode?: string; time?: string; traceId?: string; workload?: string; }; export type RootlyData = { api_key: string; /** * Optional custom webhook URL. If empty, the default Rootly generic webhook endpoint is used. */ webhook_url?: string; }; export type RootlyDataResponse = { /** * Custom webhook URL (if configured) */ webhook_url?: string; }; export type RouteConnectedAppRequest = { /** * The connected app ID */ id: string; /** * Route-specific parameters for this connected app. * Slack App routes require params.channels with at least one channel object * of the form {"id":"C123456","name":"#alerts"}; name is an optional display name. * Linear routes require params.team_id and, when auto_resolve is true or unset, * params.resolved_status_id; optional params include project_id, label_ids, * assignee_id, delegate_id, and auto_resolve (defaults to true). * Connected app types that do not support route params must omit this field. */ params?: { [key: string]: unknown; }; /** * The type of the connected app. */ type: string; }; export type RouteConnectedAppResponse = { /** * The connected app ID */ id?: string; /** * The connected app name (resolved) */ name?: string; /** * Route-specific parameters for this connected app. * Slack App routes may include params.channels with the selected Slack channels * as {"id":"C123456","name":"#alerts"} objects; name is an optional display name. * Linear routes may include team_id, project_id, label_ids, assignee_id, * delegate_id, resolved_status_id, and auto_resolve. * Connected app types that do not support route params omit this field. */ params?: { [key: string]: unknown; }; /** * The type of the connected app. */ type?: string; }; export type RouteRuleRequest = { /** * The connected apps to send notifications to */ connectedApps: Array; /** * The issue statuses that trigger this route */ status: Array; }; export type RouteRuleResponse = { /** * The connected apps for this route */ connectedApps?: Array; /** * The issue statuses that trigger this route */ status?: Array; }; /** * RumSearchRequest is the shared body for the RUM GCQL search endpoints: a time * window, optional Sources scope, and a required GCQL Query. Only GCQL is * accepted — there is no raw-pipeline input, so every request is parsed (and its * identifiers validated) by the GCQL parser before any SQL is built. */ export type RumSearchRequest = { /** * End time of the request range */ end: string; /** * Extra raw filters appended to the scope. */ filters?: string; /** * GCQL query string. */ query: string; /** * Sources scope (cluster/env/namespace). Applied on BOTH sides of a * cross-domain join. */ sources?: Array; /** * Start time of the request range */ start: string; }; /** * RumSearchTimeSeriesRequest extends the RUM search request with the time-series * controls: a required BucketDuration, an optional ValueField projected as the * series value, and an optional FillValue for empty buckets. Like the raw * endpoints it is GCQL-only, and the query MUST include an aggregation * (e.g. "... | stats count() as total") — ApplyRollup adds the time bucket. */ export type RumSearchTimeSeriesRequest = { /** * Bucket duration for the time series (e.g. "1m" or "5 minutes"). Parsed by * clickhouse.IntervalToDuration (shared with every other search-time-series * endpoint): short units ("1m", "30s", "1h") and PLURAL word units * ("5 minutes", "2 hours") are accepted; singular word units ("1 minute") are * not. */ bucketDuration: string; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets. When omitted, empty buckets are null. */ fillValue?: number; /** * Extra raw filters appended to the scope. */ filters?: string; /** * GCQL query string. */ query: string; /** * Sources scope (cluster/env/namespace). Applied on BOTH sides of a * cross-domain join. */ sources?: Array; /** * Start time of the request range */ start: string; /** * ValueField selects the numeric column projected as the series value * (e.g. the "total" alias of a count()). When empty the single numeric * column of the result is used. */ valueField?: string; }; /** * SamplePair represents a timestamp and a sample value */ export type SamplePair = { timestamp?: Time; value?: SampleValue; }; /** * A SampleValue is a representation of a value for a given sample at a given * time. */ export type SampleValue = number; export type SearchDiscoveryRequest = { /** * Conditions specifies additional conditions to filter the discovery results. */ conditions?: Array; /** * Filter specifies a search filter to apply to the discovery results. */ filter?: string; filterGroup?: Group; /** * Limit specifies the maximum number of results to return. */ limit: number; /** * Sources specifies the sources to filter the discovery results. */ sources?: Array; /** * Type specifies the type of discovery to perform. */ type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'monitors' | 'dashboards' | 'rum_events' | 'rum_sessions' | 'autonomous_infra'; }; export type SearchKeysRequest = { /** * Filter is a string to filter the keys by */ filter?: string; /** * Limit is the maximum number of keys to return per type */ limit: number; /** * Sources is a list of sources to filter the keys by */ sources?: Array; type: StringOrStringSlice; }; export type SearchKeysRequestV2 = { /** * End is the end time for the metrics keys query */ end?: string; /** * Filter is a string to filter the keys by */ filterKey?: string; /** * Limit is the maximum number of keys to return */ limit: number; /** * Name specifies the metric name to get keys for. */ metricNames?: Array; /** * Sources is a list of sources to filter the keys by */ sources?: Array; /** * Start is the start time for the metrics keys query */ start?: string; /** * Types is a slice of types of search keys to retrieve */ types: Array; }; export type SearchKeysResponseV2 = { done?: boolean; isLimitReached?: boolean; keys?: Array; }; /** * SearchOrderBy defines the order for a search pipeline. */ export type SearchOrderBy = { direction?: string; selector?: Selector; }; /** * SearchRequest extends the monitor model with optional absolute time bounds. * * When Start/End are provided (e.g. from the frontend time picker), they override * the per-query RelativeTimerange for the notification-route preview flow. */ export type SearchRequest = { /** * Annotations to attach to the alert. */ annotations?: { [key: string]: string; }; /** * Whether the alert should auto-resolve. */ autoResolve?: boolean; catalog?: CatalogModel; /** * Category of the monitor. */ category?: string; display?: DisplayModel; /** * Absolute end time for query execution (ISO 8601). Overrides RelativeTimerange. */ end?: string; evaluationInterval?: EvaluationInterval; /** * State to enter if execution fails. */ executionErrorState?: 'OK' | 'Error' | 'Alerting'; /** * Whether Slack notifications should omit the issue graph preview. */ hideSlackPreviewGraph?: boolean; /** * Whether the monitor is paused. * Nullable: true */ isPaused?: boolean | null; /** * Labels to attach to the monitor/alert. */ labels?: { [key: string]: string; }; /** * Type of measurement (state or event). */ measurementType?: 'state' | 'event'; model?: Model; /** * State to enter if no data is returned. */ noDataState?: 'OK' | 'NoData' | 'Alerting'; notificationSettings?: NotificationSettings; /** * Routing information. */ routing?: Array; /** * Severity level (free-form; used as a notification/display label, not validated). */ severity?: string; /** * Absolute start time for query execution (ISO 8601). Overrides RelativeTimerange. */ start?: string; /** * Team associated with the monitor. */ team?: string; /** * Title of the monitor. */ title: string; }; export type SearchResponse = { /** * List of notification routes that match the monitor attributes */ matchingRoutes?: Array; }; /** * SearchV3ResponseWrapper wraps search responses with value field hints */ export type SearchV3ResponseWrapper = { /** * Data contains the search results */ data: Array<{ [key: string]: unknown; }>; /** * ValueFieldHints is a list of all numeric column names in the response */ valueFieldHints: Array; }; export type SearchValuesRequest = { /** * Conditions specifies additional conditions to filter the search values */ conditions?: Array; /** * EnableStream indicates whether to enable streaming of results */ enableStream?: boolean; /** * End time for the search * Required: true for logs, traces, events, issues; not required for entities */ end?: string; /** * Filter to apply to the search values */ filter?: string; filterGroup?: Group; /** * Key to search for values */ key: string; /** * Limit specifies the maximum number of results to return */ limit: number; /** * Query is an optional GCQL filter expression (filters only, no pipes). * Takes precedence over FilterGroup and Conditions. * Returns 400 if the expression fails to parse or contains pipes/stats. */ query?: string; /** * Sources specifies the sources to filter the search values */ sources?: Array; /** * Start time for the search * Required: true for logs, traces, events, issues; not required for entities */ start?: string; /** * Type of the search values */ type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'dbm_measurements_statement' | 'monitors' | 'aws_cur' | 'dashboards' | 'profiling_samples' | 'rum_events' | 'rum_sessions' | 'autonomous_infra'; }; export type SearchValuesRequestV2 = { /** * End time for the search */ end?: string; /** * Filter value to search for values */ filterValue?: string; /** * Key to search for values */ key: string; /** * Limit is the maximum number of results to return */ limit?: number; /** * Metric names to get values for */ metricNames?: Array; /** * Query is an optional GCQL filter expression (filters only, no pipes). * Takes precedence over any other filter inputs. * Returns 400 if the expression fails to parse or contains pipes/stats. */ query?: string; /** * Sources is a list of sources to filter the values by */ sources?: Array; /** * Start time for the search */ start?: string; /** * Types is a slice of types of search values to retrieve */ types: Array; }; export type SearchValuesResponseV2 = { done?: boolean; error?: string; isLimitReached?: boolean; key?: string; values?: Array; }; export type SeatsUsageItem = { email?: string; firstLogin?: string; isActive?: boolean; lastLogin?: string; policyNames?: Array; policyUUIDs?: Array; roleType?: string; ssoDriven?: boolean; }; export type SecretHashResponse = { /** * FNV1a hash of the secret content (hex encoded) */ contentHash?: string; /** * The unique identifier for the secret */ id?: string; /** * Indicates if this secret is managed by an external provider (e.g., terraform) */ managedByProvider?: string; /** * The name of the secret */ name?: string; /** * The type of the secret */ type?: string; }; export type SecretResponse = { /** * The unique identifier for the secret */ id?: string; /** * The name of the secret */ name?: string; /** * The type of the secret */ type?: string; }; export type Selector = { additionalFilter?: string; alias?: string; autoComplete?: boolean; conditionFilter?: Group; isNullable?: boolean; key?: string; origin?: string; processors?: Array; type?: string; windowSpec?: WindowSpec; }; export type ServiceAccountCreatePayload = { /** * The UUID of the created service account. */ serviceAccountId: string; }; export type ServiceAccountPolicyRef = { name?: string; uuid?: string; }; export type ServiceAccountsWithPolicy = { /** * Email of the user who created the service account. */ createdBy?: string; /** * Timestamp when the service account was created. * Format: date-time */ creationDate?: string; /** * Indicates if the service account has been marked for deletion. */ deleted?: boolean; /** * The email address of the service account. */ email?: string; /** * Timestamp of the last activity detected for this service account. */ lastActive?: string; /** * The name of the service account. */ name?: string; /** * Policies assigned to the service account. */ policies?: Array; /** * The UUID of the service account. */ serviceAccountId?: string; }; export type Session = { /** * AppVersion is the mobile application version. Empty for web sessions, which * report ReleaseID instead. */ appVersion?: string; browser?: string; country?: string; deviceBrand?: string; deviceModel?: string; durationMilli?: number; endTime?: string; hasSessionReplay?: number; isMobile?: string; /** * Mobile RUM. Empty for web sessions, which report browser.* instead. The client * platform is not returned: it is a filter dimension only. */ osName?: string; osVersion?: string; pageCount?: number; releaseId?: string; serviceName?: string; sessionErrors?: number; sessionID?: string; startTime?: string; userEmail?: string; userId?: string; userOrganization?: string; }; export type SessionDetailsRequestParams = { /** * Category selects the platform to query: 'rum' for web RUM, 'mobile-rum' for * React Native. Defaults to 'rum' when omitted. */ category?: 'rum' | 'mobile-rum'; conditions?: Array; end?: string; sessionID?: string; sources?: Array; start?: string; }; export type SessionDetailsResponse = { events?: Array; metrics?: SessionMetrics; }; export type SessionMetrics = { cls?: number; fcp?: number; inp?: number; lcp?: number; pageLoadTime?: number; ttfb?: number; }; /** * SessionReplayRequestParams holds the query parameters for fetching session replay events. */ export type SessionReplayRequestParams = { /** * End of the time range to query. Must be greater than or equal to Start. */ end: string; /** * SessionID is the RUM session identifier. */ sessionID: string; /** * Start of the time range to query. */ start: string; }; /** * SessionReplayResponse wraps the list of replay events returned to the client. */ export type SessionReplayResponse = { events?: Array; }; /** * SessionReplayRow represents a single replay event returned from ClickHouse. */ export type SessionReplayRow = { data?: string; eventID?: string; timestamp?: string; }; /** * SessionReplayVelocityRequestParams holds the query parameters for fetching session replay event velocity. */ export type SessionReplayVelocityRequestParams = { /** * BucketDuration is the duration string for time bucketing (e.g. "1m", "5m"). */ bucketDuration: string; /** * End of the time range to query. Must be greater than or equal to Start. */ end: string; /** * SessionID is the RUM session identifier. */ sessionID: string; /** * Start of the time range to query. */ start: string; }; /** * SessionReplayVelocityResponse wraps the velocity series returned to the client. */ export type SessionReplayVelocityResponse = { series?: Array; }; export type SessionsFiltersRequestParams = { /** * Category selects the platform to query: 'rum' for web RUM, 'mobile-rum' for * React Native. Defaults to 'rum' when omitted. */ category?: 'rum' | 'mobile-rum'; conditions?: Array; end?: string; required?: Array; sources?: Array; start?: string; }; export type SessionsFiltersResponse = { filters?: FiltersWithEstimatedMapResponse; }; export type SessionsQueryRequestParams = { /** * Category selects the platform to query: 'rum' for web RUM, 'mobile-rum' for * React Native. Defaults to 'rum' when omitted. */ category?: 'rum' | 'mobile-rum'; conditions?: Array; end?: string; limit?: number; skip?: number; /** * Interpolated raw into ORDER BY, so this list is the only guard - and it is * version-independent while the template is version-selected, so every value * needs an alias in all three variants. Keep the enum below in lockstep. */ sortBy?: 'sessionID' | 'startTime' | 'endTime' | 'userEmail' | 'userId' | 'country' | 'isMobile' | 'browser' | 'sessionErrors' | 'pageCount' | 'durationMilli' | 'osName' | 'deviceModel'; sortOrder?: string; sources?: Array; start?: string; }; export type SessionsQueryResponse = { sessions?: Array; }; export type SessionsSummaryRequestParams = { /** * Category selects the platform to query: 'rum' for web RUM, 'mobile-rum' for * React Native. Defaults to 'rum' when omitted. */ category?: 'rum' | 'mobile-rum'; conditions?: Array; end?: string; sources?: Array; start?: string; }; export type SessionsSummaryResponse = { cls?: number; errorRate?: number; inp?: number; pageLoadTime?: number; totalSessions?: number; uniqueUsers?: number; }; /** * SetAssessmentRequest replaces the caller's assessment on the node. */ export type SetAssessmentRequest = { details: string; /** * The full set of citations, each finding at most once; [] means none. */ evidence: Array; /** * Optional one-line plain-text heading for the assessment, at most 120 characters. */ title?: string; }; /** * SetMemberPinsOrderRequest is the body of PUT /api/views/member/pins/order. */ export type SetMemberPinsOrderRequest = { /** * Ids is the pinned resource UUIDs first-to-last, as the list should * render. Send the member's whole pin list: pins left out keep their old * number, and an id that is not pinned is dropped before numbering, so the * survivors are numbered N..1 with no gaps. No length cap: pins are * uncapped too, and the whole list must fit in one request to keep order. */ ids: Array; }; export type Silence = { active?: boolean; comment?: string; createdBy?: string; createdByEmail?: string; endsAt?: string; id?: string; matchers?: Matchers; recurringSilenceId?: string; startsAt?: string; }; export type SilenceMatcher = { isEqual: boolean; isRegex: boolean; name?: string; value?: string; }; export type SimulationRequest = { logRecord?: LogRecord; ruleYaml?: string; }; export type SimulationResponse = { error?: string; logDropped?: boolean; logRecord?: LogRecord; ruleRan?: boolean; ruleValid?: boolean; }; /** * SlackAppSecret stores the comm-hub Slack org connector id, which all Slack * functionality keys off of. TeamID/TeamName are optional legacy metadata written * only for older backends; Validate ignores them. */ export type SlackAppData = { connector_id: string; team_id?: string; team_name?: string; }; export type SlackAppDataResponse = { /** * Comm-hub Slack org connector ID used by dispatch-center. */ connector_id?: string; }; /** * SlackChannelPickerChannel is a Slack channel returned by the channel picker API. */ export type SlackChannelPickerChannel = { id?: string; is_archived?: boolean; is_private?: boolean; name?: string; }; /** * SlackChannelsResponse contains channel picker results for a Slack connector. */ export type SlackChannelsResponse = { channels?: Array; next_cursor?: string; }; export type SlackWebhookData = { url: string; }; export type SlackWebhookDataResponse = { [key: string]: unknown; }; /** * SourceMapUploadResponse is the JSON success body returned by the upload handler. */ export type SourceMapUploadResponse = { app_id?: string; filename?: string; release_id?: string; size_bytes?: number; status?: string; }; export type SpanEvent = { attributes?: { [key: string]: string; }; name?: string; timestamp?: string; }; export type SpanLink = { attributes?: { [key: string]: string; }; spanId?: string; traceId?: string; traceState?: string; }; export type SpanRecord = { attributes?: { [key: string]: unknown; }; client?: string; cluster?: string; end_time?: string; env?: string; is_pii?: boolean; kind?: string; namespace?: string; parent_id?: string; protocol_type?: string; query_parameters?: { [key: string]: unknown; }; request_body?: string; request_headers?: { [key: string]: unknown; }; response_body?: string; response_headers?: { [key: string]: unknown; }; server?: string; source?: string; span_id?: string; span_name?: string; start_time?: string; status?: string; tags?: { [key: string]: string; }; trace_id?: string; workload?: string; }; /** * SqlPipeline defines a pipeline for search queries. * * When Join is set, the pipeline acts as a container for the join operation ONLY. * When Union is set, the pipeline acts as a container for the union operation ONLY. * In these cases, no other fields should be used. */ export type SqlPipeline = { domain?: DomainType; except?: Array; filters?: Group; from?: SqlPipeline; groupBy?: Array; having?: Group; join?: Join; limit?: number; limitBy?: LimitBy; mathExpression?: Array; offset?: number; orderBy?: Array; sample?: number; selectors?: Array; timeOffset?: Duration; transforms?: Array; union?: Union; }; /** * SslRequest defines model for SslRequest. */ export type SslRequest = { host?: string; kind?: SslRequestKind; minVersion?: string; port?: number; sni?: string; timeout?: string; verify?: boolean; }; /** * SslRequestKind defines model for SslRequest.Kind. */ export type SslRequestKind = string; export type StatsRequest = { configId?: string; end?: string; sources?: Array; start?: string; }; export type StatsResponse = { stats?: Array; }; export type StorageManagementPolicyRequest = { cold_move_duration?: string; cold_volume?: string; created_by?: string; custom_rules?: Array; retention: string; version: number; }; /** * StorageManagementPolicyResponse is the API-facing policy representation. */ export type StorageManagementPolicyResponse = { cold_move_duration?: string; cold_volume?: string; created_by?: string; created_timestamp?: string; custom_rules?: Array; data_type?: string; retention?: string; uuid?: string; version?: number; }; /** * StreamResponseBase provides the common Done and Error fields for all streaming responses. * * Embed this struct in your streaming response types to automatically implement StreamResponse. */ export type StreamResponseBase = { done?: boolean; error?: string; }; export type StringOrStringSlice = Array; /** * Subject holds both Datadog and GC names for explainability. */ export type Subject = { name_dd?: string; name_gc?: string; }; /** * Suggestion proposes an alternative for a missing resource. */ export type Suggestion = { confidence?: number; reasons?: Array; type?: string; value?: string; }; /** * SuggestionReason is one scoring signal that contributed to a Suggestion. * * Weight is the signal's additive contribution within the scorer that produced * it. Name-similarity signals and value-overlap signals are scored * independently, so when both back the same candidate the suggestion carries * reasons from each and Confidence is the higher of the two estimates rather * than their sum — weights add up within a scorer, not across them. * * Detail carries the evidence behind the signal. For value-overlap signals that * means the matched values themselves, which is what makes the difference * between a suggestion worth acting on and one worth eyeballing. */ export type SuggestionReason = { code?: string; detail?: string; weight?: number; }; /** * SupportedConvertedBucket covers units that converted successfully. */ export type SupportedConvertedBucket = { data_set_available?: DataSetAvailableBucket; dd_metric_inactive?: DdMetricInactiveBucket; missing_underlying_data_set?: MissingDataSetBucket; no_data_needed?: NoDataNeededBucket; total?: number; }; /** * SupportedNotConvertedBucket covers supported types that failed conversion. */ export type SupportedNotConvertedBucket = { assets?: Array; by_error?: { [key: string]: number; }; total?: number; }; /** * SyncTargetTakenDetails is the details of a 409 SYNC_TARGET_TAKEN: the root that follows the thread. */ export type SyncTargetTakenDetails = { ownerInvestigationId: string; }; /** * SyntheticMonitorConfig represents optional monitor configuration overrides for a synthetic test. * * Fields left empty use the default values when creating the monitor. */ export type SyntheticMonitorConfig = { connectedAppParams?: ConnectedAppParams; /** * ConnectedApps lists connected app IDs for direct notification delivery (requires method "connectedApps"). */ connectedApps?: Array; /** * DisableRenotification disables repeated notifications for the same issue. */ disableRenotification?: boolean; enabledWorkflows?: Array; evaluationInterval?: SyntheticMonitorEvalInterval; executionErrorState?: string; issue_description?: string; issue_summary?: string; lookbehind_window?: string; monitor_name?: string; noDataState?: string; /** * NotificationMethod determines how the synthetic monitor delivers alert notifications. * Valid values: "notificationRoutes" (default), "connectedApps", "noNotifications". */ notificationMethod?: string; /** * Query is read-only: auto-generated from the synthetic test ID. */ query?: string; renotificationInterval?: string; severity?: string; /** * StatusFilters restricts which issue statuses trigger notifications (requires method "connectedApps"). */ statusFilters?: Array; }; /** * SyntheticMonitorEvalInterval represents the evaluation interval for a synthetic monitor. */ export type SyntheticMonitorEvalInterval = { interval?: string; pendingFor?: string; }; export type SyntheticTestConfig = { checkConfig?: WorkerRequest; enabled?: boolean; excludedClusters?: Array; /** * Deprecated: Exporters field is no longer used but kept for backward compatibility * to prevent parsing errors from clients that still send it. */ exporters?: Array; interval?: string; labelSettings?: LabelSettings; name?: string; version?: number; }; export type SyntheticTestCreateRequest = { checkConfig?: WorkerRequest; /** * Whether to create an associated monitor for this synthetic test. * On create, nil or true creates a monitor; false skips monitor creation. * On update, nil preserves current monitor state; true creates/keeps the monitor; false deletes it. * To create a monitor on a previously monitor-less synthetic, you must explicitly set createMonitor=true. * Providing a monitor block when createMonitor=false (or when no monitor exists and createMonitor is nil) returns 400. */ createMonitor?: boolean; enabled?: boolean; excludedClusters?: Array; /** * Deprecated: Exporters field is no longer used but kept for backward compatibility * to prevent parsing errors from clients that still send it. */ exporters?: Array; interval?: string; labelSettings?: LabelSettings; monitor?: SyntheticMonitorConfig; name?: string; version?: number; }; export type SyntheticTestCreateResponse = { /** * The UUID of the created synthetic test configuration */ id?: string; }; export type SyntheticTestListItem = { creator?: string; id?: string; interval?: string; lastCheckLatency?: string; lastCheckTime?: string; modifiedAt?: string; monitor?: SyntheticTestMonitor; name?: string; status?: string; syntheticType?: string; target?: string; }; export type SyntheticTestListResponse = { synthetics?: Array; }; export type SyntheticTestMonitor = { uuid?: string; }; export type SyntheticTestUpdateResponse = { [key: string]: unknown; }; /** * SyntheticsCheckInput defines model for SyntheticsCheckInput. */ export type SyntheticsCheckInput = { checkConfig?: WorkerRequest; interval?: string; }; /** * TaggedMetric names a metric plus every classification that applies to it. */ export type TaggedMetric = { metric?: string; tags?: Array; }; /** * TailDataSetBreakdown covers non-metrics/logs datasets. */ export type TailDataSetBreakdown = { events?: number; rum?: number; traces?: number; }; /** * +enum */ export type TaintEffect = string; /** * TcpRequest defines model for TcpRequest. */ export type TcpRequest = { expectResponse?: boolean; host?: string; kind?: TcpRequestKind; port?: number; receiveMaxBytes?: number; send?: string; timeout?: string; }; /** * TcpRequestKind defines model for TcpRequest.Kind. */ export type TcpRequestKind = string; /** * TemplateWidget is one entry of a template's authored topWidgets strip: a * preset query widget's display name and visualization kind (the preset * widget's visualizationConfig.type). */ export type TemplateWidget = { /** * Kind drives the card glyph; the CI gate restricts it to the * card-renderable set. */ kind?: 'time-series' | 'stat' | 'table' | 'top-list' | 'pie' | 'bar' | 'treemap'; name?: string; }; export type TenantAiSettingsResponse = { allowAIFeatures?: boolean; backendName?: string; customerAIFeaturesOptOut?: boolean; effectiveAIFeaturesEnabled?: boolean; }; export type TenantConnectorSettingsResponse = { /** * Whether connectors that first appear on a backend (for example in a later * release) start enabled. Existing connectors are never changed. */ newConnectorsEnabledByDefault?: boolean; }; export type TenantInfo = { GrafanaEnabled?: boolean; GrafanaOrgID?: string; IsPublic?: boolean; OrgName?: string; TenantName?: string; UUID?: string; }; export type TenantInvestigationsSettingsResponse = { /** * Whether the organization uses Investigations. Off until an authorized user turns it on. */ investigationsEnabled?: boolean; }; export type TenantResponse = { ClustersLimit?: number; OrgName?: string; Public?: boolean; Seats?: number; Subscription?: string; TenantName?: string; Used?: number; }; /** * TerraformDocument is one HCL document. */ export type TerraformDocument = string; export type TestConnectedAppRequest = { /** * The ID of an existing connected app (optional). * When provided, empty secret fields will be filled from the stored app. */ connected_app_id?: string; /** * The connected app-specific data. Schema depends on the 'type' field. */ data: { [key: string]: unknown; }; /** * The name of the connected app (for display purposes in the test notification) */ name?: string; /** * The type of the connected app */ type: 'slack-webhook' | 'pagerduty' | 'opsgenie' | 'incidentio' | 'rootly' | 'webhook' | 'ms-teams'; }; export type TestConnectedAppResponse = { /** * Optional message with details */ message?: string; /** * Whether the test notification was sent successfully */ success?: boolean; }; export type TestConnectionResponse = { message?: string; status?: string; statusCode?: number; }; /** * TestMonitorConnectedAppChannel identifies a Slack channel for slack-app delivery. */ export type TestMonitorConnectedAppChannel = { /** * ID is the Slack channel ID used for delivery. */ id: string; /** * Name is the channel display name; optional. */ name?: string; }; /** * TestMonitorConnectedAppDeliveryOptions carries per-app delivery options for a direct * connected-app test notification. Fields are app-type specific; unrelated fields are ignored. */ export type TestMonitorConnectedAppDeliveryOptions = { /** * AssigneeID optionally assigns created/updated Linear issues to a user. */ assignee_id?: string; /** * AutoResolve controls whether resolved monitor issues transition Linear issues. */ auto_resolve?: boolean; /** * Channels lists the Slack channels to post to (slack-app connected apps). * Multiple channels result in one test notification per channel. */ channels?: Array; /** * DelegateID optionally delegates created/updated Linear issues to an agent. */ delegate_id?: string; /** * LabelIDs optionally assigns Linear labels to created/updated issues. */ label_ids?: Array; /** * ProjectID optionally assigns created/updated Linear issues to a project. */ project_id?: string; /** * ResolvedStatusID optionally selects the Linear status used for auto-resolve. */ resolved_status_id?: string; /** * TeamID selects the Linear team that receives created issues. */ team_id?: string; }; /** * TestMonitorDisplay controls how the test notification is presented. * * Mirrors the monitor DisplayModel structure. */ export type TestMonitorDisplay = { /** * Jinja template for the issue description */ description?: string; /** * Jinja template for the issue title/header */ header?: string; }; /** * TestMonitorNotificationSettings specifies how the test notification should be delivered. * * Mirrors the monitor NotificationSettings structure. */ export type TestMonitorNotificationSettings = { /** * ConnectedAppParams provides per-app delivery options keyed by connected app ID. * Slack App options supply channels; Linear options supply team_id, optional * project_id, label_ids, assignee_id, delegate_id, resolved_status_id, * and auto_resolve. * Keys should reference IDs present in ConnectedApps; apps not listed here use * default delivery. Mirrors the monitor connectedAppParams field. */ connectedAppParams?: { [key: string]: TestMonitorConnectedAppDeliveryOptions; }; /** * List of connected app IDs to send test notifications to directly, * bypassing notification route matching. */ connectedApps?: Array; }; /** * TestMonitorRequest is the request body for the monitor test endpoint. */ export type TestMonitorRequest = { display?: TestMonitorDisplay; /** * Labels to match against notification routes */ labels?: { [key: string]: string; }; /** * The name of the monitor being tested */ monitor_name: string; notificationSettings?: TestMonitorNotificationSettings; /** * Query metadata from the monitor definition. * Keys match template variables: expression, data_type, instant_rollup. */ query?: { [key: string]: string; }; /** * Whether to actually send test notifications to providers. * When false, only returns matched routes without side effects. */ send_notifications?: boolean; /** * Severity for the test notification */ severity?: string; /** * Threshold value from the monitor definition. * Used to populate the {{threshold}} template variable in test notifications. */ threshold?: string; /** * The trigger state to simulate */ trigger: 'Alerting' | 'Normal'; /** * The username (email) of the user who initiated the test. * Populated automatically from the authenticated user context. */ username?: string; }; /** * TestMonitorResponse is the response body for the monitor test endpoint. */ export type TestMonitorResponse = { /** * Results for each matched route + connected app combination */ matched_routes?: Array; }; /** * TestMonitorRouteResult represents the result for a single matched route + connected app. */ export type TestMonitorRouteResult = { /** * The ID of the connected app that was notified */ connected_app_id?: string; /** * The name of the connected app */ connected_app_name?: string; /** * The type of the connected app */ connected_app_type?: 'slack-webhook' | 'pagerduty' | 'opsgenie' | 'incidentio' | 'webhook' | 'ms-teams'; /** * Optional message with details */ message?: string; /** * The ID of the matched notification route */ route_id?: string; /** * The name of the matched notification route */ route_name?: string; /** * Whether the test notification was sent successfully */ success?: boolean; }; /** * Threshold defines a condition to evaluate against a reduced value. */ export type Threshold = { customResolveThreshold?: CustomResolveThreshold; /** * Name of the reducer output this threshold applies to. */ inputName: string; /** * Name of the threshold. */ name: string; /** * Comparison operator. */ operator: 'gt' | ' lt' | ' gte' | ' lte' | ' eq' | ' neq' | ' within_range' | ' outside_range' | ' within_range_included' | ' outside_range_included'; relativeTimerange?: RelativeTimerange; /** * Values to compare against (one for gt/lt, two for range operators). */ values: Array; }; /** * Time is the number of milliseconds since the epoch * (1970-01-01 00:00 UTC) excluding leap seconds. */ export type Time = number; /** * TimeFilters is an embeddable struct for request types that need Start/End time bounds. * * It provides GCQL _time filter override: when GCQL contains _time filters, they replace * the request's Start/End. Original bounds are preserved for cross-domain fallback. */ export type TimeFilters = { /** * End time of the request range */ end: string; /** * Start time of the request range */ start: string; }; export type TimeRange = { endTime: string; startTime: string; }; /** * The pod this Toleration is attached to tolerates any taint that matches * the triple using the matching operator . */ export type Toleration = { effect?: TaintEffect; /** * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional */ key?: string; operator?: TolerationOperator; /** * TolerationSeconds represents the period of time the toleration (which must be * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, * it is not set, which means tolerate the taint forever (do not evict). Zero and * negative values will be treated as 0 (evict immediately) by the system. * +optional */ tolerationSeconds?: number; /** * Value is the taint value the toleration matches to. * If the operator is Exists, the value should be empty, otherwise just a regular string. * +optional */ value?: string; }; /** * A toleration operator is the set of operators that can be used in a toleration. * * +enum */ export type TolerationOperator = string; export type TotalStats = { avgProcessingTimeSeconds?: number; evalErrors?: number; evalErrorsPercentage?: number; execErrors?: number; execErrorsPercentage?: number; logsDropped?: number; logsDroppedRate?: number; logsSeen?: number; logsSeenRate?: number; processingTimeSeconds?: number; }; /** * Trace represents a trace record for graph transformation */ export type Trace = { client: string; client_is_external: boolean; client_namespace: string; cluster?: string; env?: string; protocol_type: string; server: string; server_is_external: boolean; server_namespace: string; source: string; status: string; }; export type TraceAttributesResponse = { attributes?: { [key: string]: unknown; }; resourceTruncated?: boolean; spanId?: string; tags?: { [key: string]: string; }; }; export type TraceDetailsItem = { client?: string; clientNamespace?: string; cluster?: string; containerName?: string; enrichedFields?: Array; env?: string; instanceUid?: string; isCrossAz?: boolean; isEncrypted?: boolean; isExternal?: boolean; isPii?: boolean; latency?: number; namespace?: string; nodeName?: string; operationName?: string; parentId?: string; parentIdName?: string; partnerIsExternal?: boolean; partnerNamespace?: string; partnerWorkload?: string; perspectiveEntityResourceId?: string; podName?: string; podUid?: string; request?: TraceDetailsRequestInfo; resource?: string; resourceId?: string; resourceTruncated?: boolean; response?: TraceDetailsResponseInfo; role?: string; server?: string; serverNamespace?: string; source?: string; spanEvents?: Array; spanId?: string; spanLinks?: Array; spanName?: string; spanType?: string; status?: string; statusCode?: string; statusCodeMessage?: string; time?: string; traceId?: string; traceIdName?: string; workload?: string; }; export type TraceDetailsRequest = { end?: string; group?: Group; sources?: Array; spanId?: string; start?: string; }; export type TraceDetailsRequestInfo = { body?: string; bodySizeBytes?: number; headers?: string; isTruncated?: boolean; queryParams?: string; }; export type TraceDetailsResponse = { details?: TraceDetailsItem; }; export type TraceDetailsResponseInfo = { body?: string; bodySizeBytes?: number; headers?: string; isTruncated?: boolean; }; export type TraceGraphEdge = { cluster?: string; duplicationCount?: number; id?: string; isError?: boolean; protocol?: ProtocolType; source?: string; spanTimestamp?: string; subtype?: string; target?: string; }; export type TraceGraphNode = { client?: string; clientNamespace?: string; duplicationCount?: number; id?: string; kind?: string; resource?: string; server?: string; serverNamespace?: string; spanTimestamp?: string; }; export type TraceGraphResponse = { edges?: Array; limitReached?: boolean; nodes?: Array; }; export type TraceInsightType = string; export type TraceItem = { additionalColumns?: { [key: string]: string; }; client?: string; clientNamespace?: string; cluster?: string; containerName?: string; env?: string; instanceUid?: string; isCrossAz?: boolean; isEncrypted?: boolean; isExternal?: boolean; isPii?: boolean; latency?: number; namespace?: string; nodeName?: string; operationName?: string; partnerIsExternal?: boolean; partnerNamespace?: string; partnerWorkload?: string; perspectiveEntityResourceId?: string; podName?: string; podUid?: string; request?: TraceDetailsRequestInfo; resource?: string; resourceId?: string; resourceTruncated?: boolean; response?: TraceDetailsResponseInfo; role?: string; server?: string; serverNamespace?: string; source?: string; spanId?: string; spanName?: string; spanType?: ProtocolType; status?: string; statusCode?: string; statusCodeMessage?: string; time?: string; traceId?: string; workload?: string; }; export type TracesErrorVelocityPeak = { anomaly_error_trace_count?: number; anomaly_normalized_score?: number; anomaly_points_count?: number; anomaly_rolling_q9?: number; anomaly_rolling_q25?: number; anomaly_rolling_q75?: number; anomaly_score?: number; anomaly_score_mean?: number; anomaly_score_std?: number; anomaly_timestamp?: string; cluster?: string; container_name?: string; env?: string; namespace?: string; role?: string; span_type?: string; status_code?: string; workload?: string; }; export type TracesErrorVelocityPeakResponse = { traces_error_velocity_peaks?: Array; }; export type TracesFiltersRequest = { conditions?: Array; enableStream?: boolean; /** * End time of the request range */ end: string; group?: Group; limitPerCategory?: number; query?: string; required?: Array; sources?: Array; /** * Start time of the request range */ start: string; }; export type TracesInsightsRequestParams = { bucketResolution?: string; conditions?: Array; end?: string; group?: Group; insightType?: TraceInsightType; numResults?: number; query?: string; sources?: Array; start?: string; threshold?: number; }; export type TracesMetricsRequest = { OptimizedEnd?: string; OptimizedStart?: string; bucketResolution?: string; conditions?: Array; enableStream?: boolean; /** * End time of the request range */ end: string; group?: Group; query?: string; sources?: Array; /** * Start time of the request range */ start: string; }; export type TracesMetricsResponse = Array; /** * TracesPipelineConfig is the response model for traces pipeline configuration */ export type TracesPipelineConfig = { created_by?: string; created_timestamp?: string; uuid?: string; value?: string; }; export type TracesRequest = { conditions?: Array; enableStream?: boolean; /** * End time of the request range */ end: string; group?: Group; limit?: number; order?: string; orderBy?: SearchOrderBy; query?: string; selectors?: Array; skip?: number; sortBy?: string; sources?: Array; /** * Start time of the request range */ start: string; }; export type TracesResponse = { done?: boolean; isLimitReached?: boolean; optimizedKeys?: Array; partialResult?: boolean; traces?: Array; }; export type TracesSearchOverTimeStreamResponse = { data?: Array; done?: boolean; error?: string; estimate?: boolean; }; export type TracesSearchRequest = { /** * EnableStream indicates if the response should be streamed */ enableStream?: boolean; /** * End time of the request range */ end: string; /** * Extra filters to apply on the traces */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter traces */ query?: string; /** * Sources to filter traces */ sources?: Array; /** * Start time of the request range */ start: string; }; export type TracesSearchTimeSeriesRequest = { bucketDuration?: string; /** * EnableStream indicates if the response should be streamed */ enableStream?: boolean; /** * End time of the request range */ end: string; /** * Value used to fill empty time buckets in the response. When omitted, empty buckets are filled with null. */ fillValue?: number; /** * Extra filters to apply on the traces */ filters?: string; pipeline?: SqlPipeline; /** * GCQL Query to filter traces */ query?: string; /** * Sources to filter traces */ sources?: Array; /** * Start time of the request range */ start: string; /** * ValueField selects the numeric column(s) to project as time series. * A single field name (e.g. "total") emits one series per unique label * combination. A comma-separated list (e.g. "p50,p95,p99") emits one * parallel series per name with a synthetic metric_name label identifying * each. Whitespace around each name is trimmed. When multiple fields are * requested, the underlying query may not also emit a column literally * named "metric_name" — it would collide with the synthetic label. */ valueField?: string; }; export type TracesSimulationRequest = { ruleYaml?: string; span?: SpanRecord; }; export type TracesSimulationResponse = { error?: string; ruleRan?: boolean; ruleValid?: boolean; spanDropped?: boolean; spanRecord?: SpanRecord; }; /** * Tracing defines model for Tracing. */ export type Tracing = { forceSampling?: boolean; traceId?: string; }; /** * Transform represents a column transform that registers in the alias registry. * Transforms don't create subqueries - they register handlers that resolve aliases to SQL expressions. * * Requirements by transform type: * json_unpack: Args is optional (not used) */ export type Transform = { /** * Alias is the name used to reference the transform result in subsequent pipes. */ alias: string; /** * Args contains transform-specific arguments. */ args?: Array; /** * SourceColumn is the column to transform. */ sourceColumn: string; /** * Type specifies the kind of transform to apply. * json_unpack TransformTypeJsonUnpack TransformTypeJsonUnpack unpacks JSON fields with prefix matching * datetime_extract TransformTypeDatetimeExtract TransformTypeDatetimeExtract extracts date/time parts from timestamps */ type: 'json_unpack' | 'datetime_extract'; }; export type Trigger = { /** * Type of the trigger */ type?: string; }; /** * UdpRequest defines model for UdpRequest. */ export type UdpRequest = { host?: string; kind?: UdpRequestKind; payload?: string; port?: number; receiveTimeout?: string; }; /** * UdpRequestKind defines model for UdpRequest.Kind. */ export type UdpRequestKind = string; /** * UnfurlCard is the provider-agnostic card POST /api/unfurl resolves a shared * link to. ExternalRefID is the resolved asset's stable identity — not * necessarily anything present verbatim in the URL. Fields is display-ordered: * the slice order IS the order a renderer shows them in. */ export type UnfurlCard = { displayType?: string; externalRefId?: string; fields?: Array; title?: string; type?: string; }; /** * UnfurlCardField is one labeled value on an unfurl card. Value is typed per * ValueType ("string" or "integer") so a provider-side renderer (Slack Work * Object today) can pick the right field type without inspecting the Go * value's kind. Link is omitted when the field carries no follow-up URL. */ export type UnfurlCardField = { key?: string; label?: string; link?: string; value?: unknown; valueType?: string; }; /** * UnfurlRequest is the request body: the shared frontend URL, already * HTML-unescaped by the caller (Slack's link_shared event carries an * HTML-escaped URL; unescaping it before this endpoint sees it is what keeps * literal & and < out of the resolved card). */ export type UnfurlRequest = { url: string; }; /** * UnfurlSlowestSpan is the slowest span of the trace excluding the card's root * (which would just restate the trace duration). */ export type UnfurlSlowestSpan = { durationSeconds?: number; name?: string; }; /** * UnfurlTraceRequest identifies the trace a shared link points at, verbatim * from the link's drawer state. SpanID and Source drive the eBPF resolution: * an eBPF drawer's traceId is the span's own raw id, so the propagated id must * be resolved via span details before the waterfall is queried. */ export type UnfurlTraceRequest = { /** * SourceType is the trace's source type ("eBPF", "rum", …). */ sourceType?: string; spanId?: string; time: string; traceId: string; }; /** * UnfurlTraceSummary is the flat card-ready summary of a trace: exactly what a * link-unfurl card renders, nothing more. TraceID is the resolved (propagated) * id — the trace's stable identity regardless of which span the link came from. */ export type UnfurlTraceSummary = { durationSeconds?: number; errorCount?: number; /** * LimitReached marks a trace that reached UnfurlSpanLimit: SpanCount is then * a floor, not the trace's size. */ limitReached?: boolean; operationName?: string; resource?: string; slowestSpan?: UnfurlSlowestSpan; spanCount?: number; spanName?: string; /** * StatusCode is the root span's protocol return code ("200", "500", a gRPC * code, …), empty for a protocol that has none. */ statusCode?: string; traceId?: string; }; /** * UnifiedSummary is the single hierarchical summary included in JSON output. */ export type UnifiedSummary = { assets?: AssetsSummary; /** * AssetsByFindingType is the distribution of affected assets per finding * type, keyed by asset type. */ assets_by_finding_type?: { [key: string]: { [key: string]: number; }; }; conversion?: ConversionSummary; dashboards?: AssetFunnel; monitors?: AssetFunnel; queries?: QueriesSummary; wet_validation?: WetValidationSummary; }; /** * Union defines a union operation between two pipelines (UNION ALL). */ export type Union = { leftPipeline?: SqlPipeline; rightPipeline?: SqlPipeline; }; /** * UnsupportedAssetTypeBreakdown groups unsupported findings for a single asset type. */ export type UnsupportedAssetTypeBreakdown = { affected_assets?: number; by_reason?: OrderedReasons; count?: number; unit?: string; }; /** * UnsupportedBreakdown is the Level 4 summary: why are things unsupported? * * Grouped first by asset type, then by the specific reason (conversion error message). */ export type UnsupportedBreakdown = { by_type?: { [key: string]: UnsupportedAssetTypeBreakdown; }; }; /** * UnsupportedScope is what a converter decided it could not migrate. */ export type UnsupportedScope = string; /** * UpdateConnectedAppRequest is the request body for updating an existing connected app. */ export type UpdateConnectedAppRequest = { /** * The connected app-specific data. Schema depends on type field: * For type "slack-webhook": use SlackWebhookData schema * For type "pagerduty": use PagerDutyData schema * For type "opsgenie": use OpsGenieData schema * For type "incidentio": use IncidentIOData schema * For type "rootly": use RootlyData schema * For type "webhook": use WebhookData schema ({"url": "https://...", "method": "POST", "headers": {...}, "auth_type": "bearer", "api_key": "..."}) * For type "ms-teams": use MSTeamsData schema */ data: { [key: string]: unknown; }; /** * The name of the connected app */ name: string; /** * The type of the connected app */ type: 'slack-webhook' | 'pagerduty' | 'opsgenie' | 'incidentio' | 'rootly' | 'webhook' | 'ms-teams'; }; export type UpdateDashboardRequest = { currentRevision?: number; description?: string; isProvisioned?: boolean; name?: string; override?: boolean; preset?: string; /** * Tags to attach to the dashboard (array of free-text strings; whitespace-trimmed, original casing preserved) */ tags?: Array; team?: string; }; export type UpdateDataIntegrationConfigRequest = { cluster?: string; config?: string; is_paused?: boolean; name?: string; tags?: { [key: string]: unknown; }; }; export type UpdateIntegrationResponse = { id?: string; type?: string; }; export type UpdateMappingsRequest = { config: MappingConfig; /** * The provider type for this mappings configuration. */ provider: 'datadog' | 'coralogix'; /** * The current version of the mappings configuration (for optimistic concurrency control). */ version: number; }; export type UpdateMemberItem = { email?: string; role?: string; }; export type UpdateMemberRequest = { members?: Array; }; export type UpdateMigrationStatusRequest = { /** * The new status for the migration. Valid values: in_progress, done, failed, paused, archived, deleted */ status: string; }; export type UpdateMonitorRequest = { /** * Annotations to attach to the alert. */ annotations?: { [key: string]: string; }; /** * Whether the alert should auto-resolve. */ autoResolve?: boolean; catalog?: CatalogModel; /** * Category of the monitor. */ category?: string; display?: DisplayModel; evaluationInterval?: EvaluationInterval; /** * State to enter if execution fails. */ executionErrorState?: 'OK' | 'Error' | 'Alerting'; /** * Whether Slack notifications should omit the issue graph preview. */ hideSlackPreviewGraph?: boolean; /** * Whether the monitor is paused. * Nullable: true */ isPaused?: boolean | null; /** * Labels to attach to the monitor/alert. */ labels?: { [key: string]: string; }; /** * Type of measurement (state or event). */ measurementType?: 'state' | 'event'; model?: Model; /** * State to enter if no data is returned. */ noDataState?: 'OK' | 'NoData' | 'Alerting'; notificationSettings?: NotificationSettings; /** * Routing information. */ routing?: Array; /** * Severity level (free-form; used as a notification/display label, not validated). */ severity?: string; /** * Team associated with the monitor. */ team?: string; /** * Title of the monitor. */ title: string; }; export type UpdateNotificationRouteRequest = { /** * The name of the notification route */ name: string; notificationSettings?: NotificationSettingsRequest; /** * The gcQL query to filter issues */ query: string; /** * The routing rules for notifications */ routes: Array; }; export type UpdatePolicyRequest = { /** * Optional new claim role for the policy. */ claimRole?: string; /** * The current revision number of the policy being updated (for optimistic locking). */ currentRevision?: number; dataScope?: DataScope; /** * Optional new description for the policy. */ description?: string; featurePermissions?: Permissions; /** * New name for the policy. */ name: string; role?: RoleMap; /** * Whether this policy grants access to sensitive (access-controlled) attributes. */ sensitiveAccess?: boolean; }; export type UpdateRecurringSilenceRequest = { comment?: string; enabled?: boolean; matchers?: Matchers; recurrenceType?: 'daily' | 'weekly' | 'monthly'; timeframes?: { [key: string]: Array; }; timezone?: string; }; export type UpdateSecretRequest = { /** * The secret content (base64 encoded for binary data) */ content: string; /** * Indicates if this secret is managed by an external provider (e.g., terraform) */ managedByProvider?: 'none' | 'terraform'; /** * The name of the secret */ name: string; /** * The type of the secret (e.g., api_key, password, basic_auth) */ type: string; }; export type UpdateServiceAccountRequest = { /** * The new email address for the service account (optional). */ email?: string; overridePolicies?: boolean; /** * A list of policy UUIDs to set for the service account (optional, replaces existing). Provide empty list to remove all. */ policyUUIDs?: Array; /** * The UUID of the service account to update. */ serviceAccountId: string; }; export type UpdateServiceAccountResponse = { /** * The UUID of the updated service account. */ serviceAccountId?: string; }; export type UpdateSilenceRequest = { BackendID?: string; ClientID?: string; /** * Optional comment for the silence */ comment?: string; /** * End time for the silence (must be after StartsAt) */ endsAt?: string; matchers?: Matchers; /** * Start time for the silence */ startsAt?: string; }; export type UpdateTenantAiSettingsRequest = { customerAIFeaturesOptOut: boolean; }; export type UpdateTenantConnectorSettingsRequest = { /** * Whether connectors that first appear on a backend (for example in a later * release) start enabled. Existing connectors are never changed. */ newConnectorsEnabledByDefault: boolean; }; export type UpdateTenantInvestigationsSettingsRequest = { /** * Whether the organization uses Investigations. While off, the investigation and * trigger APIs and tools refuse changes; reads stay available and nothing stored is deleted. */ investigationsEnabled: boolean; }; /** * UpdateUserCredentialRequest is the request body for updating a user-level credential. */ export type UpdateUserCredentialRequest = { /** * Provider-specific credential data */ data: { [key: string]: unknown; }; /** * Optional description for this credential */ description?: string; /** * Human-readable name for this credential */ name?: string; }; export type UpdateViewRequest = { currentRevision?: number; description?: string; name?: string; override?: boolean; preset?: string; tags?: Array; team?: string; viewType?: string; }; export type UsedByResponse = { /** * The ID of the notification route or monitor */ id?: string; /** * The name of the notification route or monitor */ name?: string; /** * The type of the reference: "notification_route" or "monitor" */ type?: string; }; /** * Channel identifies a Slack channel. */ export type V2Channel = { id?: string; name?: string; }; export type V2CreateSilenceRequest = { /** * Optional comment */ comment?: string; /** * Optional when type=recurring. Whether the recurring silence is active. */ enabled?: boolean; /** * Required when type=one_time. End time of the silence window. */ endsAt?: string; matchers: Matchers; /** * Required when type=recurring. Recurrence cadence for the silence. * daily RecurrenceTypeDaily * weekly RecurrenceTypeWeekly * monthly RecurrenceTypeMonthly */ recurrenceType?: 'daily' | 'weekly' | 'monthly'; /** * Required when type=one_time. Start time of the silence window. */ startsAt?: string; /** * Required when type=recurring. Map of day identifiers to time ranges. */ timeframes?: { [key: string]: Array; }; /** * Required when type=recurring. IANA timezone for the recurrence schedule. */ timezone?: string; /** * one_time V2SilenceTypeOneTime * recurring V2SilenceTypeRecurring */ type: 'one_time' | 'recurring'; }; /** * DestinationApp carries at most one delivery-options block. The spec cannot * check the block against the app id's integration type; the write service does. */ export type V2DestinationApp = { id?: string; linear?: V2LinearDeliveryOptions; slack?: V2SlackDeliveryOptions; }; /** * Destinations is direct delivery. StatusFilters omitted = all. */ export type V2Destinations = { apps?: Array; statusFilters?: Array; }; /** * EvaluationInterval carries the evaluation cadence and pending window. The * prom_duration tag param is the example in the error text, not a bound; the * real bounds are struct-level rules. */ export type V2EvaluationInterval = { /** * Whole seconds, >= 1m (plus rollup floors — see the struct-level rules). */ interval?: string; /** * nil = default applied on read. Whole seconds. */ pendingFor?: string; }; /** * FiringThreshold is the static-threshold condition. Values cardinality is * per-operator: 1 scalar, 2 ascending. */ export type V2FiringThreshold = { operator?: string; recovery?: V2RecoveryThreshold; values?: Array; }; /** * IssueDisplay controls how the resulting issue is rendered. */ export type V2IssueDisplay = { contextLabels?: Array; description?: string; templateLanguage?: string; title?: string; }; /** * LinearDeliveryOptions requires TeamID when present. Delivery treats an * omitted ResolveTicket as true, so ResolvedStatusID is required unless it is * explicitly false. */ export type V2LinearDeliveryOptions = { assigneeId?: string; delegateId?: string; labelIds?: Array; projectId?: string; resolveTicket?: boolean; resolvedStatusId?: string; teamId?: string; }; /** * MonitorEntity is the wire shape of one monitor in the router's v2 batch-read * response: the envelope fields callers use, plus the spec. A type of its own, * not Monitor — a column added to that storage row does not automatically * reach this response. */ export type V2MonitorEntity = { backendId?: string; createdAt?: string; createdByEmail?: string; grafanaMonitorId?: string; isProvisioned?: boolean; originId?: string; originType?: string; spec?: V2MonitorSpec; updatedAt?: string; uuid?: string; }; /** * Model wraps the single query and the thresholds list, capped at one item. */ export type V2MonitorModel = { query?: V2Query; thresholds?: Array; }; /** * MonitorSpec is the v2 monitor document. Value = required outright. * Pointer = optional: nil means the author omitted it, and that intent is * PRESERVED in the stored document — defaults are applied on read, never * baked in at write. * * The validate tags include custom ones registered only by this package. * Validate through ValidateSpec — a bare validator panics. */ export type V2MonitorSpec = { /** * Deprecated: workflows-only. Reserved _gc_* keys are rejected. */ annotations?: { [key: string]: string; }; /** * nil = default (true) applied on read. */ autoResolve?: boolean; /** * Category is free-form — the built-ins use Infrastructure|API|… but custom * values exist in the fleet, so there is no enum. "" is omitted/no-data. */ category?: string; evaluationErrorState?: string; evaluationInterval?: V2EvaluationInterval; evaluationNoDataState?: string; isPaused?: boolean; issueDisplay?: V2IssueDisplay; /** * Reserved _gc_* keys are rejected. */ labels?: { [key: string]: string; }; /** * MeasurementType switches the timeline query builder; nil = derived on read. */ measurementType?: string; model?: V2MonitorModel; name?: string; notificationSettings?: V2NotificationSettings; /** * Severity is "" when omitted; that intent is preserved, defaults are * applied on read. */ severity?: string; /** * Tags are free-form; items must not be blank. At most MaxTags (20). */ tags?: Array; team?: string; /** * Type is the dataType; query language and datasource are inferred from it. * monitor_type defers to the registry — see registry.go for the set. */ type?: string; }; /** * NoNotifications is the suppress-everything mode marker. */ export type V2NoNotifications = { [key: string]: unknown; }; /** * NotificationRoutes is the route-based delivery mode marker. */ export type V2NotificationRoutes = { [key: string]: unknown; }; /** * NotificationSettings requires exactly one mode block; there is no default. * * The renotification knobs apply to any mode. */ export type V2NotificationSettings = { destinations?: V2Destinations; disableRenotification?: boolean; hidePreviewGraph?: boolean; noNotifications?: V2NoNotifications; notificationRoutes?: V2NotificationRoutes; renotificationInterval?: string; }; /** * Query is the whole expression, in the language MonitorSpec.Type implies. */ export type V2Query = { /** * Shifts the eval window back, length unchanged. Whole seconds, at most 7d. * Rejected where Rollup is. */ evaluationDelay?: string; expression?: string; /** * Lookback window: whole seconds, positive. Required when the type has a * time axis, rejected otherwise (sql, timeless datasets). */ rollup?: string; /** * Required iff metrics, rejected otherwise. */ rollupFunction?: string; }; /** * RecoveryThreshold is the hysteresis condition; its region must not overlap * the firing one. Operator is the author's choice from the recovery-capable * set — required, never defaulted. */ export type V2RecoveryThreshold = { operator?: string; values?: Array; }; export type V2SilenceResponse = { active?: boolean; comment?: string; createdAt?: string; createdBy?: string; createdByEmail?: string; enabled?: boolean; endsAt?: string; id?: string; matchers?: Matchers; /** * Recurring silence fields * daily RecurrenceTypeDaily * weekly RecurrenceTypeWeekly * monthly RecurrenceTypeMonthly */ recurrenceType?: 'daily' | 'weekly' | 'monthly'; recurringSilenceId?: string; /** * One-time silence fields */ startsAt?: string; timeframes?: { [key: string]: Array; }; timezone?: string; type?: 'one_time' | 'recurring'; updatedAt?: string; }; export type V2SilencesListResponse = { /** * Whether all matching results have been returned (no more pages after this one). */ done?: boolean; /** * Page of silences matching the request. */ silences?: Array; }; /** * SlackDeliveryOptions requires a non-empty Channels when present. */ export type V2SlackDeliveryOptions = { channels?: Array; }; /** * ThresholdSpec is one condition block; Firing is its only arm today. */ export type V2ThresholdSpec = { firing?: V2FiringThreshold; }; export type V2UpdateSilenceRequest = { comment?: string; /** * Applicable when type=recurring. Whether the recurring silence is active. */ enabled?: boolean; /** * Applicable when type=one_time. End time of the silence window. */ endsAt?: string; matchers?: Matchers; /** * Applicable when type=recurring. Recurrence cadence for the silence. * daily RecurrenceTypeDaily * weekly RecurrenceTypeWeekly * monthly RecurrenceTypeMonthly */ recurrenceType?: 'daily' | 'weekly' | 'monthly'; /** * Applicable when type=one_time. Start time of the silence window. */ startsAt?: string; /** * Applicable when type=recurring. Map of day identifiers to time ranges. */ timeframes?: { [key: string]: Array; }; /** * Applicable when type=recurring. IANA timezone for the recurrence schedule. */ timezone?: string; /** * Optional. When set to a different type than the existing silence, converts between one-time and recurring. * one_time V2SilenceTypeOneTime * recurring V2SilenceTypeRecurring */ type?: 'one_time' | 'recurring'; }; export type ValueItem = { description?: string; types?: Array; value?: string; }; export type ValueMapping = { evidence?: MappingEvidence; /** * GroundcoverKey is derived from SourceKey and the applicable key mapping. * It is returned for display but is never applied as a separate key-mapping rule. */ groundcover_key?: string; /** * GroundcoverValue is the replacement value in the converted query. */ groundcover_value: string; /** * MetricPattern optionally scopes this mapping to groundcover metric names (not source metric names). * It is not supported for logs, traces, or events. */ metric_pattern?: string; /** * Origin is server-owned normalization provenance. */ readonly origin?: string; /** * SourceKey is the exact Datadog key whose value should be mapped. */ source_key: string; /** * SourceValue is the exact Datadog value to replace. */ source_value: string; }; /** * ValueMissingBucket lists units whose filter values are absent in groundcover. */ export type ValueMissingBucket = { assets?: Array; by_metric?: Array; count?: number; }; export type ValuesDistributionRequest = { conditions?: Array; /** * End time of the request range */ end: string; group?: Group; limit?: number; query?: string; score_weight?: number; selectors?: Array; sources?: Array; /** * Start time of the request range */ start: string; }; export type ValuesDistributionResult = { key?: string; key_count?: number; presence_ratio?: number; score?: number; values?: Array; }; export type ValuesResponse = { done?: boolean; isLimitReached?: boolean; results?: Array; }; export type ValuesResponseItem = { key?: string; name?: string; values?: Array; }; export type ValuesResult = { value?: string; }; export type ValuesSplitDistributionRequest = { /** * End time of the request range */ end: string; group?: Group; limit?: number; score_weight?: number; selection_group?: Group; selectors?: Array; sources?: Array; /** * Start time of the request range */ start: string; }; export type ValuesSplitDistributionResult = { baseline_key_count?: number; baseline_presence_ratio?: number; baseline_score?: number; key?: string; kl_score?: number; score?: number; selection_key_count?: number; selection_presence_ratio?: number; selection_score?: number; values?: Array; }; /** * VariableGroupBy defines Datadog group_by details for formula monitor variables. */ export type VariableGroupBy = { facet?: string; }; /** * VariableSearch holds the variable search query for formula monitors. */ export type VariableSearch = { query?: string; }; /** * Vendor represents a supported observability vendor */ export type Vendor = string; export type View = { archivedTimestamp?: string; createdTimestamp?: string; description?: string; isProvisioned?: boolean; name?: string; originId?: string; originType?: string; owner?: string; preset?: string; revisionNumber?: number; status?: string; tags?: Array; team?: string; tenantUuid?: string; updatedBy?: string; updatedTimestamp?: string; uuid?: string; viewType?: string; }; /** * WarningSeverity grades how serious a conversion warning is. It is not a * monitor severity. */ export type WarningSeverity = string; export type WebhookData = { /** * API key / token for bearer authentication. */ api_key?: string; /** * Authentication type: "", "basic", or "bearer". */ auth_type?: 'basic' | 'bearer'; /** * Optional custom JSON payload template using Jinja2 syntax. * When set, the rendered template replaces the default webhook payload. * Available variables: status, alert_name, summary, description, severity, fingerprint, * monitor_name, monitor_id, cluster, env, namespace, workload, timestamp, * notification_count, labels, urls, value, threshold, state, query, creator. */ custom_payload?: string; /** * Custom HTTP headers to include in the request. */ headers?: { [key: string]: string; }; /** * HTTP method to use (GET, POST, PUT, or DELETE). Defaults to POST. */ method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; /** * Password for basic authentication. */ password?: string; url: string; /** * Username for basic authentication. */ username?: string; }; export type WebhookDataResponse = { auth_type?: 'basic' | 'bearer'; /** * Optional custom JSON payload template using Jinja2 syntax. * When set, the rendered template replaces the default webhook payload. */ custom_payload?: string; headers?: { [key: string]: string; }; method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; url?: string; username?: string; }; /** * WebsocketRequest defines model for WebsocketRequest. */ export type WebsocketRequest = { expectMessages?: Array<{ contains?: string; within?: string; }>; headers?: { [key: string]: string; }; kind?: WebsocketRequestKind; sendMessages?: Array<{ binary?: string; text?: string; }>; subprotocols?: Array; url?: string; }; /** * WebsocketRequestKind defines model for WebsocketRequest.Kind. */ export type WebsocketRequestKind = string; /** * WetBreakdownEntry holds wet-mode stats for a single dimension (asset type or datasource). */ export type WetBreakdownEntry = { errors?: number; returned_data?: number; returned_data_pct?: number; returned_empty?: number; tested?: number; }; /** * WetReport holds the complete wet-mode results for inclusion in PreflightReport. */ export type WetReport = { errors?: Array; no_data?: Array; }; /** * WetResult holds the outcome of executing a single wet query. */ export type WetResult = { asset_id?: string; asset_name?: string; asset_type?: string; datasource?: Datasource; error?: string; /** * HasFreeText mirrors WetQuery.HasFreeText. */ has_free_text?: boolean; latency?: Duration; /** * Metric mirrors WetQuery.Metric. */ metric?: string; original_dd?: string; query?: string; query_id?: string; query_type?: QueryType; resolved_query?: string; status?: WetStatus; widget_id?: string; widget_title?: string; /** * Window is the span actually queried: * "5m" progressive first pass * "30m" dashboard long pass * "7d" monitor long pass (or whatever --wet-monitor-lookback sets) * "instant" instant query answered at a single point in time * "instant→7d" instant query was empty, so it was re-run as a range */ window?: string; }; /** * WetStatus represents the outcome of a wet-mode query execution. */ export type WetStatus = string; /** * WetSummaryCounts summarizes the wet-mode execution pass, if any. */ export type WetSummaryCounts = { errors?: number; no_data?: number; ok?: number; queries_total?: number; skipped?: number; tested?: number; unique_executed?: number; }; /** * WetValidationSummary holds wet-mode validation results for the unified summary. * * Two "with data" rates provide different perspectives: * WithDataPct: of tested queries only (denominator = wet-tested, including dedup fan-out) * WithDataOfTotalPct: of all extractable queries from supported assets (broadest available * denominator; note this undercounts because queries inside unsupported widgets and * unsupported asset types are not included) */ export type WetValidationSummary = { by_datasource?: { [key: string]: WetBreakdownEntry; }; by_type?: { [key: string]: WetBreakdownEntry; }; errors?: number; not_tested?: number; not_tested_reasons?: { [key: string]: number; }; returned_data?: number; returned_data_pct_of_tested?: number; returned_data_pct_of_total?: number; returned_empty?: number; tested?: number; total_queries?: number; }; /** * WindowSpec specifies window function parameters for OVER clause */ export type WindowSpec = { partitionBy?: Array; }; /** * WorkerRequest defines model for WorkerRequest. */ export type WorkerRequest = { executionPolicy?: ExecutionPolicy; kind?: WorkerRequestKind; metadata?: Metadata; request?: Request; tracing?: Tracing; }; /** * WorkerRequestKind Type of synthetic check to perform */ export type WorkerRequestKind = string; export type Workflow = { /** * User who created the workflow */ created_by?: string; /** * Timestamp when the workflow was created */ creation_time?: string; /** * Description of the workflow */ description?: string; /** * Unique identifier of the workflow */ id?: string; /** * Execution interval in seconds */ interval?: number; /** * Whether the workflow configuration is invalid */ invalid?: boolean; /** * Timestamp when the last execution started */ last_execution_started?: string; /** * Status of the last execution */ last_execution_status?: string; /** * Timestamp of the last execution */ last_execution_time?: string; /** * Timestamp when the workflow was last updated */ last_updated?: string; /** * Human-readable name of the workflow */ name?: string; /** * List of providers used by the workflow */ providers?: Array; /** * Current revision number of the workflow */ revision?: number; /** * List of triggers associated with the workflow */ triggers?: Array; /** * Raw workflow definition */ workflow_raw?: string; /** * Raw workflow identifier */ workflow_raw_id?: string; }; export type WorkflowsResponse = { /** * List of workflows */ workflows?: Array; }; export type WorkloadsListItem = { cluster?: string; cpuLimit?: number; cpuUsage?: number; env?: string; envType?: string; errorRate?: number; identifiers?: { [key: string]: string; }; issueCount?: number; kind?: string; memoryLimit?: number; memoryUsage?: number; namespace?: string; ownerKind?: string; p50?: number; p95?: number; p99?: number; podsCount?: number; ready?: boolean; resourceVersion?: string; rps?: number; runningPodsCount?: number; uid?: string; workload?: string; }; export type WorkloadsListRequest = { conditions?: Array; /** * GCQL filter expression for workload filtering. When set, conditions are ignored. */ gcqlFilter?: string; limit?: number; order?: string; skip?: number; sortBy?: string; sources?: Array; }; export type WorkloadsListResponse = { total?: number; workloads?: Array; }; /** * WriteTriggerRequest is a trigger's full content on create and update. */ export type WriteInvestigationTriggerRequest = { /** * The same values a notification route's renotificationInterval takes; empty: once per firing cycle. */ cooldownInterval?: string; /** * Plain text the investigator gets after its statement; empty for none. An update saves what it sends, * so one without instructions clears them. */ instructions?: string; /** * At most this many of the trigger's investigations are open at once; a firing issue over the cap waits for * one to close. Omitted: 100. */ maxConcurrent?: number; modelSelection?: InvestigationModelSelection; name: string; /** * The gcQL issue selector notification routes use. */ query: string; }; /** * CreateOrUpdateLogsPipelineConfigRequest defines the request structure for creating or updating a logs pipeline configuration */ export type CreateUpdateLogsPipelineConfigRequest = { value?: string; }; /** * CreateOrUpdateMetricsAggregatorConfigRequest defines the request structure for creating or updating a metrics aggregator configuration */ export type CreateUpdateMetricsAggregatorConfigRequest = { value?: string; }; /** * Defines the request for creating or updating a metrics pipeline configuration */ export type CreateUpdateMetricsPipelineConfigRequest = { rules?: RelabelConfig; }; /** * CreateOrUpdateTracesPipelineConfigRequest defines the request structure for creating or updating a traces pipeline configuration */ export type CreateUpdateTracesPipelineConfigRequest = { value?: string; }; export type ReasonEntry = { Count?: number; Reason?: string; }; export type CreateMappingsRequestWritable = { config: MappingConfigWritable; /** * The data type for this mappings configuration. */ dataType: 'metrics' | 'logs' | 'traces' | 'events'; }; export type CreateMonitorRequestWritable = { /** * Annotations to attach to the alert. */ annotations?: { [key: string]: string; }; /** * Whether the alert should auto-resolve. */ autoResolve?: boolean; catalog?: CatalogModel; /** * Category of the monitor. */ category?: string; display?: DisplayModel; evaluationInterval?: EvaluationInterval; /** * State to enter if execution fails. */ executionErrorState?: 'OK' | 'Error' | 'Alerting'; /** * Whether Slack notifications should omit the issue graph preview. */ hideSlackPreviewGraph?: boolean; /** * Whether the monitor is paused. * Nullable: true */ isPaused?: boolean | null; /** * Labels to attach to the monitor/alert. */ labels?: { [key: string]: string; }; /** * Type of measurement (state or event). */ measurementType?: 'state' | 'event'; model?: Model; /** * State to enter if no data is returned. */ noDataState?: 'OK' | 'NoData' | 'Alerting'; notificationSettings?: NotificationSettings; /** * Routing information. */ routing?: Array; /** * Severity level (free-form; used as a notification/display label, not validated). */ severity?: string; /** * Team associated with the monitor. */ team?: string; /** * Title of the monitor. */ title: string; }; export type KeyMappingWritable = { evidence?: MappingEvidence; groundcover_key?: string; /** * MetricPattern optionally scopes this mapping to groundcover metric names (not source metric names). */ metric_pattern?: string; source_key?: string; }; export type MappingConfigWritable = { default_rate_window?: string; key_mappings?: Array; metric_mappings?: Array; metric_name_char_replace?: { [key: string]: string; }; value_mappings?: Array; }; export type MappingResponseWritable = { config?: MappingConfigWritable; /** * The timestamp when the mappings configuration was created. * Format: date-time */ createdAt?: string; /** * The data type for this mappings configuration. */ dataType?: string; /** * The timestamp when the mappings configuration was soft deleted. * Format: date-time */ deletedAt?: string; /** * The unique identifier of the mappings configuration. */ id?: string; /** * The provider type for this mappings configuration. */ provider?: 'datadog' | 'coralogix'; /** * The timestamp when the mappings configuration was last updated. * Format: date-time */ updatedAt?: string; /** * The version of this mappings configuration. */ version?: number; }; export type MetricMappingWritable = { evidence?: MappingEvidence; groundcover_metric?: string; source_metric?: string; }; /** * Policy defines an access control policy. */ export type PolicyWritable = { /** * Optional claim role for the policy. */ claimRole?: string; dataScope?: DataScope; /** * Optional description of the policy. */ description?: string; featurePermissions?: Permissions; /** * Name of the policy. */ name: string; role?: RoleMap; /** * Whether this policy grants access to sensitive (access-controlled) attributes. */ sensitiveAccess?: boolean; }; /** * PolicyWithEntityCount includes the policy details along with the count of entities it's applied to. */ export type PolicyWithEntityCountWritable = PolicyWritable; export type UpdateMappingsRequestWritable = { config: MappingConfigWritable; /** * The provider type for this mappings configuration. */ provider: 'datadog' | 'coralogix'; /** * The current version of the mappings configuration (for optimistic concurrency control). */ version: number; }; export type ValueMappingWritable = { evidence?: MappingEvidence; /** * GroundcoverKey is derived from SourceKey and the applicable key mapping. * It is returned for display but is never applied as a separate key-mapping rule. */ groundcover_key?: string; /** * GroundcoverValue is the replacement value in the converted query. */ groundcover_value: string; /** * MetricPattern optionally scopes this mapping to groundcover metric names (not source metric names). * It is not supported for logs, traces, or events. */ metric_pattern?: string; /** * SourceKey is the exact Datadog key whose value should be mapped. */ source_key: string; /** * SourceValue is the exact Datadog value to replace. */ source_value: string; }; export type AgentSkillRequest2 = AgentSkillRequest; export type CreateUpdateLogsPipelineConfigRequest2 = CreateUpdateLogsPipelineConfigRequest; export type StorageManagementPolicyRequest2 = StorageManagementPolicyRequest; export type CreateUpdateMetricsAggregatorConfigRequest2 = CreateUpdateMetricsAggregatorConfigRequest; export type CreateDataIntegrationConfigRequest2 = CreateDataIntegrationConfigRequest; export type CreateUpdateTracesPipelineConfigRequest2 = CreateUpdateTracesPipelineConfigRequest; export type CreateUpdateMetricsPipelineConfigRequest2 = CreateUpdateMetricsPipelineConfigRequest; export type ProfilingRuleRequest2 = ProfilingRuleRequest; export type AgentListSkillsData = { body?: never; path?: never; query?: { /** * Optional search query. */ q?: string; /** * Maximum number of Skills to return. */ limit?: number; }; url: '/api/agent/skills'; }; export type AgentListSkillsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 401: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 502: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type AgentListSkillsError = AgentListSkillsErrors[keyof AgentListSkillsErrors]; export type AgentListSkillsResponses = { /** * AgentSkillsListResponse is returned by the Skill list endpoint. */ 200: { skills: Array; status: string; }; }; export type AgentListSkillsResponse = AgentListSkillsResponses[keyof AgentListSkillsResponses]; export type AgentCreateSkillData = { /** * Skill payload forwarded to agent-service. */ body: AgentSkillRequest2; path?: never; query?: never; url: '/api/agent/skills'; }; export type AgentCreateSkillErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 401: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 413: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 422: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 502: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type AgentCreateSkillError = AgentCreateSkillErrors[keyof AgentCreateSkillErrors]; export type AgentCreateSkillResponses = { /** * AgentSkillResponse is returned by Skill read/write endpoints. */ 200: { skill: AgentSkillDetail; status: string; }; }; export type AgentCreateSkillResponse = AgentCreateSkillResponses[keyof AgentCreateSkillResponses]; export type AgentDeleteSkillData = { body?: never; path: { /** * Skill ID. */ skill_id: string; }; query?: never; url: '/api/agent/skills/{skill_id}'; }; export type AgentDeleteSkillErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 401: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 502: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type AgentDeleteSkillError = AgentDeleteSkillErrors[keyof AgentDeleteSkillErrors]; export type AgentDeleteSkillResponses = { /** * AgentSkillDeleteResponse is returned by the Skill delete endpoint. */ 200: { skill_id: string; status: string; }; }; export type AgentDeleteSkillResponse = AgentDeleteSkillResponses[keyof AgentDeleteSkillResponses]; export type AgentGetSkillData = { body?: never; path: { /** * Skill ID. */ skill_id: string; }; query?: never; url: '/api/agent/skills/{skill_id}'; }; export type AgentGetSkillErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 401: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 502: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type AgentGetSkillError = AgentGetSkillErrors[keyof AgentGetSkillErrors]; export type AgentGetSkillResponses = { /** * AgentSkillResponse is returned by Skill read/write endpoints. */ 200: { skill: AgentSkillDetail; status: string; }; }; export type AgentGetSkillResponse = AgentGetSkillResponses[keyof AgentGetSkillResponses]; export type AgentUpdateSkillData = { /** * Skill payload forwarded to agent-service. */ body: AgentSkillRequest2; path: { /** * Skill ID. */ skill_id: string; }; query?: never; url: '/api/agent/skills/{skill_id}'; }; export type AgentUpdateSkillErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 401: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 413: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 422: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 502: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type AgentUpdateSkillError = AgentUpdateSkillErrors[keyof AgentUpdateSkillErrors]; export type AgentUpdateSkillResponses = { /** * AgentSkillResponse is returned by Skill read/write endpoints. */ 200: { skill: AgentSkillDetail; status: string; }; }; export type AgentUpdateSkillResponse = AgentUpdateSkillResponses[keyof AgentUpdateSkillResponses]; export type DeleteMetricsAggregatorConfigData = { body?: never; path?: never; query?: never; url: '/api/aggregations/v1/metrics/config'; }; export type DeleteMetricsAggregatorConfigErrors = { /** * metricsAggregatorErrorResponse is used for error responses */ 400: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 500: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 503: ErrorResponse; }; export type DeleteMetricsAggregatorConfigError = DeleteMetricsAggregatorConfigErrors[keyof DeleteMetricsAggregatorConfigErrors]; export type DeleteMetricsAggregatorConfigResponses = { /** * emptyMetricsAggregatorConfigResponse is used for empty responses */ 200: { [key: string]: unknown; }; }; export type DeleteMetricsAggregatorConfigResponse = DeleteMetricsAggregatorConfigResponses[keyof DeleteMetricsAggregatorConfigResponses]; export type GetMetricsAggregatorConfigData = { body?: never; path?: never; query?: never; url: '/api/aggregations/v1/metrics/config'; }; export type GetMetricsAggregatorConfigErrors = { /** * metricsAggregatorErrorResponse is used for error responses */ 400: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 500: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 503: ErrorResponse; }; export type GetMetricsAggregatorConfigError = GetMetricsAggregatorConfigErrors[keyof GetMetricsAggregatorConfigErrors]; export type GetMetricsAggregatorConfigResponses = { /** * metricsAggregatorConfigResponse contains a metrics aggregator configuration entry */ 200: MetricsAggregatorConfig; /** * emptyMetricsAggregatorConfigResponse is used for empty responses */ 204: { [key: string]: unknown; }; }; export type GetMetricsAggregatorConfigResponse = GetMetricsAggregatorConfigResponses[keyof GetMetricsAggregatorConfigResponses]; export type CreateMetricsAggregatorConfigData = { /** * The configuration to create or update */ body: CreateUpdateMetricsAggregatorConfigRequest2; path?: never; query?: never; url: '/api/aggregations/v1/metrics/config'; }; export type CreateMetricsAggregatorConfigErrors = { /** * metricsAggregatorErrorResponse is used for error responses */ 400: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 500: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 503: ErrorResponse; }; export type CreateMetricsAggregatorConfigError = CreateMetricsAggregatorConfigErrors[keyof CreateMetricsAggregatorConfigErrors]; export type CreateMetricsAggregatorConfigResponses = { /** * metricsAggregatorConfigResponse contains a metrics aggregator configuration entry */ 201: MetricsAggregatorConfig; }; export type CreateMetricsAggregatorConfigResponse = CreateMetricsAggregatorConfigResponses[keyof CreateMetricsAggregatorConfigResponses]; export type UpdateMetricsAggregatorConfigData = { /** * The configuration to create or update */ body: CreateUpdateMetricsAggregatorConfigRequest2; path?: never; query?: never; url: '/api/aggregations/v1/metrics/config'; }; export type UpdateMetricsAggregatorConfigErrors = { /** * metricsAggregatorErrorResponse is used for error responses */ 400: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 500: ErrorResponse; /** * metricsAggregatorErrorResponse is used for error responses */ 503: ErrorResponse; }; export type UpdateMetricsAggregatorConfigError = UpdateMetricsAggregatorConfigErrors[keyof UpdateMetricsAggregatorConfigErrors]; export type UpdateMetricsAggregatorConfigResponses = { /** * metricsAggregatorConfigResponse contains a metrics aggregator configuration entry */ 200: MetricsAggregatorConfig; }; export type UpdateMetricsAggregatorConfigResponse = UpdateMetricsAggregatorConfigResponses[keyof UpdateMetricsAggregatorConfigResponses]; export type CreateConnectedAppData = { /** * Connected app creation request */ body: CreateConnectedAppRequest; path?: never; query?: never; url: '/api/connected-apps/v1'; }; export type CreateConnectedAppErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateConnectedAppError = CreateConnectedAppErrors[keyof CreateConnectedAppErrors]; export type CreateConnectedAppResponses = { 201: CreateConnectedAppResponse; }; export type CreateConnectedAppResponse2 = CreateConnectedAppResponses[keyof CreateConnectedAppResponses]; export type DeleteConnectedAppData = { body?: never; path: { /** * The connected app ID */ id: string; }; query?: never; url: '/api/connected-apps/v1/{id}'; }; export type DeleteConnectedAppErrors = { /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteConnectedAppError = DeleteConnectedAppErrors[keyof DeleteConnectedAppErrors]; export type DeleteConnectedAppResponses = { 204: void; }; export type DeleteConnectedAppResponse = DeleteConnectedAppResponses[keyof DeleteConnectedAppResponses]; export type GetConnectedAppData = { body?: never; path: { /** * The connected app ID */ id: string; }; query?: never; url: '/api/connected-apps/v1/{id}'; }; export type GetConnectedAppErrors = { /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetConnectedAppError = GetConnectedAppErrors[keyof GetConnectedAppErrors]; export type GetConnectedAppResponses = { 200: ConnectedAppResponse; }; export type GetConnectedAppResponse = GetConnectedAppResponses[keyof GetConnectedAppResponses]; export type UpdateConnectedAppData = { /** * Connected app update request */ body: UpdateConnectedAppRequest; path: { /** * The connected app ID */ id: string; }; query?: never; url: '/api/connected-apps/v1/{id}'; }; export type UpdateConnectedAppErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateConnectedAppError = UpdateConnectedAppErrors[keyof UpdateConnectedAppErrors]; export type UpdateConnectedAppResponses = { 200: ConnectedAppResponse; }; export type UpdateConnectedAppResponse = UpdateConnectedAppResponses[keyof UpdateConnectedAppResponses]; export type ListConnectedAppsData = { /** * List connected apps request */ body?: ListConnectedAppsRequest; path?: never; query?: never; url: '/api/connected-apps/v1/list'; }; export type ListConnectedAppsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListConnectedAppsError = ListConnectedAppsErrors[keyof ListConnectedAppsErrors]; export type ListConnectedAppsResponses = { 200: ListConnectedAppsResponse; }; export type ListConnectedAppsResponse2 = ListConnectedAppsResponses[keyof ListConnectedAppsResponses]; export type GetDashboardsData = { body?: never; path?: never; query?: { /** * Dashboard status filter */ status?: string; /** * Dashboard source filter. */ source?: 'gc-catalog' | 'terraform' | 'regular'; /** * gcQL filter query (filters only, no pipes). Supported keys: name, tags, owner, source, description, team. `status` and `favorites` (e.g. favorites:true, scoped to the authenticated member) are also accepted but intentionally not suggested by the filter-bar autocomplete — the status selector owns status via the top-level status param (the two are ANDed, so a query status that contradicts the param yields an empty list), and the facet panel owns favorites. Unkeyed terms are free text, matched as a case-insensitive substring across name, description, owner and tags. */ query?: string; }; url: '/api/dashboards'; }; export type GetDashboardsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetDashboardsError = GetDashboardsErrors[keyof GetDashboardsErrors]; export type GetDashboardsResponses = { /** * GetDashboardsResponseWrapper defines the response structure for getting dashboards list. */ 200: Array; }; export type GetDashboardsResponse = GetDashboardsResponses[keyof GetDashboardsResponses]; export type CreateDashboardData = { /** * Dashboard definition to create */ body: CreateDashboardRequest; path?: never; query?: never; url: '/api/dashboards'; }; export type CreateDashboardErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateDashboardError = CreateDashboardErrors[keyof CreateDashboardErrors]; export type CreateDashboardResponses = { /** * CreateDashboardResponseWrapper defines the response structure for creating a dashboard. */ 201: View; }; export type CreateDashboardResponse = CreateDashboardResponses[keyof CreateDashboardResponses]; export type DeleteDashboardData = { body?: never; path: { /** * UUID of the dashboard to delete */ id: string; }; query?: never; url: '/api/dashboards/{id}'; }; export type DeleteDashboardErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteDashboardError = DeleteDashboardErrors[keyof DeleteDashboardErrors]; export type DeleteDashboardResponses = { /** * DeleteDashboardResponseWrapper defines the response structure for deleting a dashboard. */ 200: unknown; }; export type GetDashboardData = { body?: never; path: { /** * UUID of the dashboard to retrieve */ id: string; }; query?: { /** * When true, excludes the preset field from the response */ excludePreset?: boolean; }; url: '/api/dashboards/{id}'; }; export type GetDashboardErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 410: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetDashboardError = GetDashboardErrors[keyof GetDashboardErrors]; export type GetDashboardResponses = { /** * GetDashboardResponseWrapper defines the response structure for getting a dashboard. */ 200: View; }; export type GetDashboardResponse = GetDashboardResponses[keyof GetDashboardResponses]; export type UpdateDashboardData = { /** * Updated dashboard definition */ body: UpdateDashboardRequest; path: { /** * UUID of the dashboard to update */ id: string; }; query?: never; url: '/api/dashboards/{id}'; }; export type UpdateDashboardErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateDashboardError = UpdateDashboardErrors[keyof UpdateDashboardErrors]; export type UpdateDashboardResponses = { /** * UpdateDashboardResponseWrapper defines the response structure for updating a dashboard. */ 202: View; }; export type UpdateDashboardResponse = UpdateDashboardResponses[keyof UpdateDashboardResponses]; export type ArchiveDashboardData = { body?: never; path: { /** * UUID of the dashboard to archive */ id: string; }; query: { /** * Current revision number of the dashboard */ currentRevision: number; }; url: '/api/dashboards/{id}/archive'; }; export type ArchiveDashboardErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ArchiveDashboardError = ArchiveDashboardErrors[keyof ArchiveDashboardErrors]; export type ArchiveDashboardResponses = { /** * ArchiveDashboardResponseWrapper defines the response structure for archiving a dashboard. */ 202: View; }; export type ArchiveDashboardResponse = ArchiveDashboardResponses[keyof ArchiveDashboardResponses]; export type RestoreDashboardData = { body?: never; path: { /** * UUID of the dashboard to restore */ id: string; }; query: { /** * Current revision number of the dashboard */ currentRevision: number; }; url: '/api/dashboards/{id}/restore'; }; export type RestoreDashboardErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type RestoreDashboardError = RestoreDashboardErrors[keyof RestoreDashboardErrors]; export type RestoreDashboardResponses = { /** * RestoreDashboardResponseWrapper defines the response structure for restoring a dashboard. */ 202: View; }; export type RestoreDashboardResponse = RestoreDashboardResponses[keyof RestoreDashboardResponses]; export type GetDataIntegrationConfigsData = { body?: never; path?: never; query?: { /** * Include archived (deleted) configurations */ includeArchived?: boolean; }; url: '/api/integrations/v1/data/config'; }; export type GetDataIntegrationConfigsErrors = { 400: ErrorResponse; 500: ErrorResponse; 503: ErrorResponse; }; export type GetDataIntegrationConfigsError = GetDataIntegrationConfigsErrors[keyof GetDataIntegrationConfigsErrors]; export type GetDataIntegrationConfigsResponses = { 200: Array; }; export type GetDataIntegrationConfigsResponse = GetDataIntegrationConfigsResponses[keyof GetDataIntegrationConfigsResponses]; export type GetDataIntegrationConfigsByTypeData = { body?: never; path: { /** * Data Integration type */ type: string; }; query?: { /** * Include archived (deleted) configurations */ includeArchived?: boolean; }; url: '/api/integrations/v1/data/config/{type}'; }; export type GetDataIntegrationConfigsByTypeErrors = { 400: ErrorResponse; 500: ErrorResponse; 503: ErrorResponse; }; export type GetDataIntegrationConfigsByTypeError = GetDataIntegrationConfigsByTypeErrors[keyof GetDataIntegrationConfigsByTypeErrors]; export type GetDataIntegrationConfigsByTypeResponses = { 200: Array; }; export type GetDataIntegrationConfigsByTypeResponse = GetDataIntegrationConfigsByTypeResponses[keyof GetDataIntegrationConfigsByTypeResponses]; export type CreateDataIntegrationConfigData = { body: CreateDataIntegrationConfigRequest2; path: { /** * Data Integration type */ type: string; }; query?: never; url: '/api/integrations/v1/data/config/{type}'; }; export type CreateDataIntegrationConfigErrors = { 400: ErrorResponse; 500: ErrorResponse; 503: ErrorResponse; }; export type CreateDataIntegrationConfigError = CreateDataIntegrationConfigErrors[keyof CreateDataIntegrationConfigErrors]; export type CreateDataIntegrationConfigResponses = { 201: DataIntegrationConfig; }; export type CreateDataIntegrationConfigResponse = CreateDataIntegrationConfigResponses[keyof CreateDataIntegrationConfigResponses]; export type DeleteDataIntegrationConfigData = { body?: never; path: { /** * Data Integration type */ type: string; /** * Data Integration ID */ id: string; }; query?: { /** * Environment name */ env?: string; /** * Cluster name */ cluster?: string; /** * Instance name */ instance?: string; }; url: '/api/integrations/v1/data/config/{type}/{id}'; }; export type DeleteDataIntegrationConfigErrors = { 400: ErrorResponse; 404: ErrorResponse; 500: ErrorResponse; 503: ErrorResponse; }; export type DeleteDataIntegrationConfigError = DeleteDataIntegrationConfigErrors[keyof DeleteDataIntegrationConfigErrors]; export type DeleteDataIntegrationConfigResponses = { 200: { [key: string]: unknown; }; }; export type DeleteDataIntegrationConfigResponse = DeleteDataIntegrationConfigResponses[keyof DeleteDataIntegrationConfigResponses]; export type GetDataIntegrationConfigData = { body?: never; path: { /** * Data Integration type */ type: string; /** * Data Integration ID */ id: string; }; query?: { /** * Include archived (deleted) configurations */ includeArchived?: boolean; }; url: '/api/integrations/v1/data/config/{type}/{id}'; }; export type GetDataIntegrationConfigErrors = { 400: ErrorResponse; 404: ErrorResponse; 500: ErrorResponse; 503: ErrorResponse; }; export type GetDataIntegrationConfigError = GetDataIntegrationConfigErrors[keyof GetDataIntegrationConfigErrors]; export type GetDataIntegrationConfigResponses = { 200: DataIntegrationConfig; }; export type GetDataIntegrationConfigResponse = GetDataIntegrationConfigResponses[keyof GetDataIntegrationConfigResponses]; export type UpdateDataIntegrationConfigData = { body: CreateDataIntegrationConfigRequest2; path: { /** * Data Integration type */ type: string; /** * Data Integration ID */ id: string; }; query?: never; url: '/api/integrations/v1/data/config/{type}/{id}'; }; export type UpdateDataIntegrationConfigErrors = { 400: ErrorResponse; 404: ErrorResponse; 500: ErrorResponse; 503: ErrorResponse; }; export type UpdateDataIntegrationConfigError = UpdateDataIntegrationConfigErrors[keyof UpdateDataIntegrationConfigErrors]; export type UpdateDataIntegrationConfigResponses = { 200: DataIntegrationConfig; }; export type UpdateDataIntegrationConfigResponse = UpdateDataIntegrationConfigResponses[keyof UpdateDataIntegrationConfigResponses]; export type DescribeDataIntegrationData = { body?: never; path: { /** * Data Integration type (e.g., cloudwatch, azure_metrics, gcp_metrics, dynamodb, rds_enhanced) */ type: string; }; query?: never; url: '/api/integrations/v1/data/describe/{type}'; }; export type DescribeDataIntegrationErrors = { 400: ErrorResponse; 500: ErrorResponse; }; export type DescribeDataIntegrationError = DescribeDataIntegrationErrors[keyof DescribeDataIntegrationErrors]; export type DescribeDataIntegrationResponses = { 200: Description; }; export type DescribeDataIntegrationResponse = DescribeDataIntegrationResponses[keyof DescribeDataIntegrationResponses]; export type GetEventsOverTimeData = { /** * Request body for fetching events over time. */ body: GetEventsOverTimeRequest; path?: never; query?: never; url: '/api/k8s/v2/events-over-time'; }; export type GetEventsOverTimeErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetEventsOverTimeError = GetEventsOverTimeErrors[keyof GetEventsOverTimeErrors]; export type GetEventsOverTimeResponses = { 200: GetEventsOverTimeResponse; }; export type GetEventsOverTimeResponse2 = GetEventsOverTimeResponses[keyof GetEventsOverTimeResponses]; export type EventsSearchData = { /** * Events search request */ body: EventsSearchRequest; path?: never; query?: never; url: '/api/k8s/v2/events/search'; }; export type EventsSearchErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type EventsSearchError = EventsSearchErrors[keyof EventsSearchErrors]; export type EventsSearchResponses = { 200: unknown; }; export type ClustersListData = { /** * Request body for listing clusters. * Contains source filters to apply. */ body: ClustersListRequest; path?: never; query?: never; url: '/api/k8s/v3/clusters/list'; }; export type ClustersListErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ClustersListError = ClustersListErrors[keyof ClustersListErrors]; export type ClustersListResponses = { /** * Add response wrapper definition --- */ 200: ClustersListResponse; }; export type ClustersListResponse2 = ClustersListResponses[keyof ClustersListResponses]; export type WorkloadsListData = { /** * Request body for listing workloads. * Contains source filters, conditions, sorting, and pagination parameters. */ body: WorkloadsListRequest; path?: never; query?: never; url: '/api/k8s/v3/workloads/list'; }; export type WorkloadsListErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type WorkloadsListError = WorkloadsListErrors[keyof WorkloadsListErrors]; export type WorkloadsListResponses = { 200: WorkloadsListResponse; }; export type WorkloadsListResponse2 = WorkloadsListResponses[keyof WorkloadsListResponses]; export type SearchLogsData = { /** * Logs search request */ body: LogsSearchRequest; path?: never; query?: never; url: '/api/logs/v2/search'; }; export type SearchLogsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type SearchLogsError = SearchLogsErrors[keyof SearchLogsErrors]; export type SearchLogsResponses = { 200: unknown; }; export type GetMetricKeysData = { /** * Keys request */ body: MetricsKeysRequest; path?: never; query?: never; url: '/api/metrics/keys'; }; export type GetMetricKeysErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetMetricKeysError = GetMetricKeysErrors[keyof GetMetricKeysErrors]; export type GetMetricKeysResponses = { 200: MetricsKeysResponse; }; export type GetMetricKeysResponse = GetMetricKeysResponses[keyof GetMetricKeysResponses]; export type GetMetricNamesData = { /** * Names request */ body: MetricsNamesRequest; path?: never; query?: never; url: '/api/metrics/names'; }; export type GetMetricNamesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetMetricNamesError = GetMetricNamesErrors[keyof GetMetricNamesErrors]; export type GetMetricNamesResponses = { 200: MetricsNamesResponse; }; export type GetMetricNamesResponse = GetMetricNamesResponses[keyof GetMetricNamesResponses]; export type MetricsQueryData = { /** * Query request parameters for executing Prometheus queries. * Contains fields like time range, step, query type, and either promql or components to build it. */ body: QueryRequest; path?: never; query?: never; url: '/api/metrics/query'; }; export type MetricsQueryErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type MetricsQueryError = MetricsQueryErrors[keyof MetricsQueryErrors]; export type MetricsQueryResponses = { 200: unknown; }; export type GetMetricValuesData = { /** * Values request */ body: MetricsValuesRequest; path?: never; query?: never; url: '/api/metrics/values'; }; export type GetMetricValuesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetMetricValuesError = GetMetricValuesErrors[keyof GetMetricValuesErrors]; export type GetMetricValuesResponses = { 200: MetricsValuesResponse; }; export type GetMetricValuesResponse = GetMetricValuesResponses[keyof GetMetricValuesResponses]; export type CreateMonitorData = { /** * Monitor definition based on MonitorModel */ body: CreateMonitorRequestWritable; path?: never; query?: never; url: '/api/monitors'; }; export type CreateMonitorErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 422: { message?: string; }; /** * NoContentResponse indicates success but that no response body is expected or included. */ 500: unknown; }; export type CreateMonitorError = CreateMonitorErrors[keyof CreateMonitorErrors]; export type CreateMonitorResponses = { /** * CreateMonitorResponseWrapper defines the response structure for creating a monitor. */ 200: CreateMonitorResponse; }; export type CreateMonitorResponse2 = CreateMonitorResponses[keyof CreateMonitorResponses]; export type DeleteMonitorData = { body?: never; path: { /** * UUID of the monitor to delete */ id: string; }; query?: never; url: '/api/monitors/{id}'; }; export type DeleteMonitorErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteMonitorError = DeleteMonitorErrors[keyof DeleteMonitorErrors]; export type DeleteMonitorResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 200: unknown; }; export type GetMonitorData = { body?: never; path: { /** * UUID of the monitor to retrieve */ id: string; }; query?: never; url: '/api/monitors/{id}'; }; export type GetMonitorErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetMonitorError = GetMonitorErrors[keyof GetMonitorErrors]; export type GetMonitorResponses = { /** * MonitorYamlResponse defines the response structure for getting a monitor's YAML. */ 200: Array; }; export type GetMonitorResponse = GetMonitorResponses[keyof GetMonitorResponses]; export type UpdateMonitorData = { /** * Updated monitor definition */ body: UpdateMonitorRequest; path: { /** * UUID of the monitor to update */ id: string; }; query?: never; url: '/api/monitors/{id}'; }; export type UpdateMonitorErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 422: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateMonitorError = UpdateMonitorErrors[keyof UpdateMonitorErrors]; export type UpdateMonitorResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 202: unknown; }; export type ListMonitorsData = { /** * Request body with optional GCQL query, conditions, pagination, and sorting. */ body: MonitorListRequest; path?: never; query?: never; url: '/api/monitors/list'; }; export type ListMonitorsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListMonitorsError = ListMonitorsErrors[keyof ListMonitorsErrors]; export type ListMonitorsResponses = { /** * MonitorListResponseWrapper defines the response structure for listing monitors. */ 200: MonitorListResponse; }; export type ListMonitorsResponse = ListMonitorsResponses[keyof ListMonitorsResponses]; export type GetAllRecurringSilencesData = { body?: never; path?: never; query?: { limit?: number; skip?: number; enabledOnly?: boolean; }; url: '/api/monitors/recurring-silences'; }; export type GetAllRecurringSilencesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetAllRecurringSilencesError = GetAllRecurringSilencesErrors[keyof GetAllRecurringSilencesErrors]; export type GetAllRecurringSilencesResponses = { 200: Array; }; export type GetAllRecurringSilencesResponse = GetAllRecurringSilencesResponses[keyof GetAllRecurringSilencesResponses]; export type CreateRecurringSilenceData = { body: CreateRecurringSilenceRequest; path?: never; query?: never; url: '/api/monitors/recurring-silences'; }; export type CreateRecurringSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateRecurringSilenceError = CreateRecurringSilenceErrors[keyof CreateRecurringSilenceErrors]; export type CreateRecurringSilenceResponses = { 200: RecurringSilenceResponse; }; export type CreateRecurringSilenceResponse = CreateRecurringSilenceResponses[keyof CreateRecurringSilenceResponses]; export type DeleteRecurringSilenceData = { body?: never; path: { id: string; }; query?: never; url: '/api/monitors/recurring-silences/{id}'; }; export type DeleteRecurringSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteRecurringSilenceError = DeleteRecurringSilenceErrors[keyof DeleteRecurringSilenceErrors]; export type DeleteRecurringSilenceResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 200: unknown; }; export type GetRecurringSilenceData = { body?: never; path: { id: string; }; query?: never; url: '/api/monitors/recurring-silences/{id}'; }; export type GetRecurringSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetRecurringSilenceError = GetRecurringSilenceErrors[keyof GetRecurringSilenceErrors]; export type GetRecurringSilenceResponses = { 200: RecurringSilenceResponse; }; export type GetRecurringSilenceResponse = GetRecurringSilenceResponses[keyof GetRecurringSilenceResponses]; export type UpdateRecurringSilenceData = { body: UpdateRecurringSilenceRequest; path: { id: string; }; query?: never; url: '/api/monitors/recurring-silences/{id}'; }; export type UpdateRecurringSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateRecurringSilenceError = UpdateRecurringSilenceErrors[keyof UpdateRecurringSilenceErrors]; export type UpdateRecurringSilenceResponses = { 200: RecurringSilenceResponse; }; export type UpdateRecurringSilenceResponse = UpdateRecurringSilenceResponses[keyof UpdateRecurringSilenceResponses]; export type GetAllSilencesData = { body?: never; path?: never; query?: { /** * Filter to show only active silences */ active?: boolean; /** * Include silences generated by recurring silence rules */ includeRecurring?: boolean; /** * Maximum number of silences to return */ limit?: number; /** * Number of silences to skip */ skip?: number; }; url: '/api/monitors/silences'; }; export type GetAllSilencesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetAllSilencesError = GetAllSilencesErrors[keyof GetAllSilencesErrors]; export type GetAllSilencesResponses = { 200: Array; }; export type GetAllSilencesResponse = GetAllSilencesResponses[keyof GetAllSilencesResponses]; export type CreateSilenceData = { /** * Silence creation information */ body: CreateSilenceRequest; path?: never; query?: never; url: '/api/monitors/silences'; }; export type CreateSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateSilenceError = CreateSilenceErrors[keyof CreateSilenceErrors]; export type CreateSilenceResponses = { 200: Silence; }; export type CreateSilenceResponse = CreateSilenceResponses[keyof CreateSilenceResponses]; export type DeleteSilenceData = { body?: never; path: { /** * UUID of the silence to delete */ id: string; }; query?: never; url: '/api/monitors/silences/{id}'; }; export type DeleteSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteSilenceError = DeleteSilenceErrors[keyof DeleteSilenceErrors]; export type DeleteSilenceResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 200: unknown; }; export type GetSilenceData = { body?: never; path: { /** * UUID of the silence to retrieve */ id: string; }; query?: never; url: '/api/monitors/silences/{id}'; }; export type GetSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetSilenceError = GetSilenceErrors[keyof GetSilenceErrors]; export type GetSilenceResponses = { 200: Silence; }; export type GetSilenceResponse = GetSilenceResponses[keyof GetSilenceResponses]; export type UpdateSilenceData = { /** * Silence update information */ body: UpdateSilenceRequest; path: { /** * UUID of the silence to update */ id: string; }; query?: never; url: '/api/monitors/silences/{id}'; }; export type UpdateSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateSilenceError = UpdateSilenceErrors[keyof UpdateSilenceErrors]; export type UpdateSilenceResponses = { 200: Silence; }; export type UpdateSilenceResponse = UpdateSilenceResponses[keyof UpdateSilenceResponses]; export type V2GetAllSilencesData = { body?: never; path?: never; query?: { type?: 'one_time' | 'recurring'; active?: boolean; /** * Include one-time silence instances that were generated by a recurring silence rule. * Does not affect whether recurring rules themselves are returned. */ includeRecurring?: boolean; limit?: number; skip?: number; /** * Comma-separated silence UUIDs to return. Narrows the result like the other filters, which still apply. */ ids?: string; }; url: '/api/monitors/v2/silences'; }; export type V2GetAllSilencesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type V2GetAllSilencesError = V2GetAllSilencesErrors[keyof V2GetAllSilencesErrors]; export type V2GetAllSilencesResponses = { 200: V2SilencesListResponse; }; export type V2GetAllSilencesResponse = V2GetAllSilencesResponses[keyof V2GetAllSilencesResponses]; export type V2CreateSilenceData = { body: V2CreateSilenceRequest; path?: never; query?: never; url: '/api/monitors/v2/silences'; }; export type V2CreateSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type V2CreateSilenceError = V2CreateSilenceErrors[keyof V2CreateSilenceErrors]; export type V2CreateSilenceResponses = { 200: V2SilenceResponse; }; export type V2CreateSilenceResponse = V2CreateSilenceResponses[keyof V2CreateSilenceResponses]; export type V2DeleteSilenceData = { body?: never; path: { id: string; }; query?: never; url: '/api/monitors/v2/silences/{id}'; }; export type V2DeleteSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type V2DeleteSilenceError = V2DeleteSilenceErrors[keyof V2DeleteSilenceErrors]; export type V2DeleteSilenceResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 200: unknown; }; export type V2GetSilenceData = { body?: never; path: { id: string; }; query?: never; url: '/api/monitors/v2/silences/{id}'; }; export type V2GetSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type V2GetSilenceError = V2GetSilenceErrors[keyof V2GetSilenceErrors]; export type V2GetSilenceResponses = { 200: V2SilenceResponse; }; export type V2GetSilenceResponse = V2GetSilenceResponses[keyof V2GetSilenceResponses]; export type V2UpdateSilenceData = { body: V2UpdateSilenceRequest; path: { id: string; }; query?: never; url: '/api/monitors/v2/silences/{id}'; }; export type V2UpdateSilenceErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type V2UpdateSilenceError = V2UpdateSilenceErrors[keyof V2UpdateSilenceErrors]; export type V2UpdateSilenceResponses = { 200: V2SilenceResponse; }; export type V2UpdateSilenceResponse = V2UpdateSilenceResponses[keyof V2UpdateSilenceResponses]; export type CreateNotificationRouteData = { /** * Route creation request */ body: CreateNotificationRouteRequest; path?: never; query?: never; url: '/api/notification-routes/v1'; }; export type CreateNotificationRouteErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateNotificationRouteError = CreateNotificationRouteErrors[keyof CreateNotificationRouteErrors]; export type CreateNotificationRouteResponses = { 201: CreateNotificationRouteResponse; }; export type CreateNotificationRouteResponse2 = CreateNotificationRouteResponses[keyof CreateNotificationRouteResponses]; export type DeleteNotificationRouteData = { body?: never; path: { /** * The route ID */ id: string; }; query?: never; url: '/api/notification-routes/v1/{id}'; }; export type DeleteNotificationRouteErrors = { /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteNotificationRouteError = DeleteNotificationRouteErrors[keyof DeleteNotificationRouteErrors]; export type DeleteNotificationRouteResponses = { 204: void; }; export type DeleteNotificationRouteResponse = DeleteNotificationRouteResponses[keyof DeleteNotificationRouteResponses]; export type GetNotificationRouteData = { body?: never; path: { /** * The route ID */ id: string; }; query?: never; url: '/api/notification-routes/v1/{id}'; }; export type GetNotificationRouteErrors = { /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetNotificationRouteError = GetNotificationRouteErrors[keyof GetNotificationRouteErrors]; export type GetNotificationRouteResponses = { 200: NotificationRouteResponse; }; export type GetNotificationRouteResponse = GetNotificationRouteResponses[keyof GetNotificationRouteResponses]; export type UpdateNotificationRouteData = { /** * Route update request */ body: UpdateNotificationRouteRequest; path: { /** * The route ID */ id: string; }; query?: never; url: '/api/notification-routes/v1/{id}'; }; export type UpdateNotificationRouteErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateNotificationRouteError = UpdateNotificationRouteErrors[keyof UpdateNotificationRouteErrors]; export type UpdateNotificationRouteResponses = { 200: NotificationRouteResponse; }; export type UpdateNotificationRouteResponse = UpdateNotificationRouteResponses[keyof UpdateNotificationRouteResponses]; export type ListNotificationRoutesData = { /** * List filters */ body?: ListNotificationRoutesRequest; path?: never; query?: never; url: '/api/notification-routes/v1/list'; }; export type ListNotificationRoutesErrors = { /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListNotificationRoutesError = ListNotificationRoutesErrors[keyof ListNotificationRoutesErrors]; export type ListNotificationRoutesResponses = { 200: NotificationRouteListResponse; }; export type ListNotificationRoutesResponse = ListNotificationRoutesResponses[keyof ListNotificationRoutesResponses]; export type DeleteLogsPipelineConfigData = { body?: never; path?: never; query?: never; url: '/api/pipelines/logs/config'; }; export type DeleteLogsPipelineConfigErrors = { /** * logsPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * logsPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type DeleteLogsPipelineConfigError = DeleteLogsPipelineConfigErrors[keyof DeleteLogsPipelineConfigErrors]; export type DeleteLogsPipelineConfigResponses = { /** * emptyLogsPipelineConfigResponse is used for empty responses */ 200: { [key: string]: unknown; }; }; export type DeleteLogsPipelineConfigResponse = DeleteLogsPipelineConfigResponses[keyof DeleteLogsPipelineConfigResponses]; export type GetLogsPipelineConfigData = { body?: never; path?: never; query?: never; url: '/api/pipelines/logs/config'; }; export type GetLogsPipelineConfigErrors = { /** * logsPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * logsPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type GetLogsPipelineConfigError = GetLogsPipelineConfigErrors[keyof GetLogsPipelineConfigErrors]; export type GetLogsPipelineConfigResponses = { /** * logsPipelineConfigResponse contains a logs pipeline configuration entry */ 200: LogsPipelineConfig; /** * emptyLogsPipelineConfigResponse is used for empty responses */ 204: { [key: string]: unknown; }; }; export type GetLogsPipelineConfigResponse = GetLogsPipelineConfigResponses[keyof GetLogsPipelineConfigResponses]; export type CreateLogsPipelineConfigData = { /** * The configuration to create or update */ body: CreateUpdateLogsPipelineConfigRequest2; path?: never; query?: never; url: '/api/pipelines/logs/config'; }; export type CreateLogsPipelineConfigErrors = { /** * logsPipelineErrorResponse is used for error responses */ 400: ErrorResponse; /** * logsPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * logsPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type CreateLogsPipelineConfigError = CreateLogsPipelineConfigErrors[keyof CreateLogsPipelineConfigErrors]; export type CreateLogsPipelineConfigResponses = { /** * logsPipelineConfigResponse contains a logs pipeline configuration entry */ 201: LogsPipelineConfig; }; export type CreateLogsPipelineConfigResponse = CreateLogsPipelineConfigResponses[keyof CreateLogsPipelineConfigResponses]; export type UpdateLogsPipelineConfigData = { /** * The configuration to create or update */ body: CreateUpdateLogsPipelineConfigRequest2; path?: never; query?: never; url: '/api/pipelines/logs/config'; }; export type UpdateLogsPipelineConfigErrors = { /** * logsPipelineErrorResponse is used for error responses */ 400: ErrorResponse; /** * logsPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * logsPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type UpdateLogsPipelineConfigError = UpdateLogsPipelineConfigErrors[keyof UpdateLogsPipelineConfigErrors]; export type UpdateLogsPipelineConfigResponses = { /** * logsPipelineConfigResponse contains a logs pipeline configuration entry */ 200: LogsPipelineConfig; }; export type UpdateLogsPipelineConfigResponse = UpdateLogsPipelineConfigResponses[keyof UpdateLogsPipelineConfigResponses]; export type DeleteTracesPipelineConfigData = { body?: never; path?: never; query?: never; url: '/api/pipelines/traces/config'; }; export type DeleteTracesPipelineConfigErrors = { /** * tracesPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * tracesPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type DeleteTracesPipelineConfigError = DeleteTracesPipelineConfigErrors[keyof DeleteTracesPipelineConfigErrors]; export type DeleteTracesPipelineConfigResponses = { /** * emptyTracesPipelineConfigResponse is used for empty responses */ 200: { [key: string]: unknown; }; }; export type DeleteTracesPipelineConfigResponse = DeleteTracesPipelineConfigResponses[keyof DeleteTracesPipelineConfigResponses]; export type GetTracesPipelineConfigData = { body?: never; path?: never; query?: never; url: '/api/pipelines/traces/config'; }; export type GetTracesPipelineConfigErrors = { /** * tracesPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * tracesPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type GetTracesPipelineConfigError = GetTracesPipelineConfigErrors[keyof GetTracesPipelineConfigErrors]; export type GetTracesPipelineConfigResponses = { /** * tracesPipelineConfigResponse contains a traces pipeline configuration entry */ 200: TracesPipelineConfig; /** * emptyTracesPipelineConfigResponse is used for empty responses */ 204: { [key: string]: unknown; }; }; export type GetTracesPipelineConfigResponse = GetTracesPipelineConfigResponses[keyof GetTracesPipelineConfigResponses]; export type CreateTracesPipelineConfigData = { /** * The configuration to create or update */ body: CreateUpdateTracesPipelineConfigRequest2; path?: never; query?: never; url: '/api/pipelines/traces/config'; }; export type CreateTracesPipelineConfigErrors = { /** * tracesPipelineErrorResponse is used for error responses */ 400: ErrorResponse; /** * tracesPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * tracesPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type CreateTracesPipelineConfigError = CreateTracesPipelineConfigErrors[keyof CreateTracesPipelineConfigErrors]; export type CreateTracesPipelineConfigResponses = { /** * tracesPipelineConfigResponse contains a traces pipeline configuration entry */ 201: TracesPipelineConfig; }; export type CreateTracesPipelineConfigResponse = CreateTracesPipelineConfigResponses[keyof CreateTracesPipelineConfigResponses]; export type UpdateTracesPipelineConfigData = { /** * The configuration to create or update */ body: CreateUpdateTracesPipelineConfigRequest2; path?: never; query?: never; url: '/api/pipelines/traces/config'; }; export type UpdateTracesPipelineConfigErrors = { /** * tracesPipelineErrorResponse is used for error responses */ 400: ErrorResponse; /** * tracesPipelineErrorResponse is used for error responses */ 500: ErrorResponse; /** * tracesPipelineErrorResponse is used for error responses */ 503: ErrorResponse; }; export type UpdateTracesPipelineConfigError = UpdateTracesPipelineConfigErrors[keyof UpdateTracesPipelineConfigErrors]; export type UpdateTracesPipelineConfigResponses = { /** * tracesPipelineConfigResponse contains a traces pipeline configuration entry */ 200: TracesPipelineConfig; }; export type UpdateTracesPipelineConfigResponse = UpdateTracesPipelineConfigResponses[keyof UpdateTracesPipelineConfigResponses]; export type DeleteMetricsPipelineConfigData = { body?: never; path?: never; query?: never; url: '/api/pipelines/v1/metrics/config'; }; export type DeleteMetricsPipelineConfigErrors = { /** * Used for error responses */ 400: ErrorResponse; /** * Used for error responses */ 500: ErrorResponse; /** * Used for error responses */ 503: ErrorResponse; }; export type DeleteMetricsPipelineConfigError = DeleteMetricsPipelineConfigErrors[keyof DeleteMetricsPipelineConfigErrors]; export type DeleteMetricsPipelineConfigResponses = { /** * Used for empty responses */ 200: { [key: string]: unknown; }; }; export type DeleteMetricsPipelineConfigResponse = DeleteMetricsPipelineConfigResponses[keyof DeleteMetricsPipelineConfigResponses]; export type GetMetricsPipelineConfigData = { body?: never; path?: never; query?: never; url: '/api/pipelines/v1/metrics/config'; }; export type GetMetricsPipelineConfigErrors = { /** * Used for error responses */ 400: ErrorResponse; /** * Used for error responses */ 500: ErrorResponse; /** * Used for error responses */ 503: ErrorResponse; }; export type GetMetricsPipelineConfigError = GetMetricsPipelineConfigErrors[keyof GetMetricsPipelineConfigErrors]; export type GetMetricsPipelineConfigResponses = { /** * Represents a metrics pipeline configuration entry */ 200: MetricsPipelineConfigInfo; /** * Used for empty responses */ 204: { [key: string]: unknown; }; }; export type GetMetricsPipelineConfigResponse = GetMetricsPipelineConfigResponses[keyof GetMetricsPipelineConfigResponses]; export type CreateMetricsPipelineConfigData = { /** * The configuration to create or update */ body: CreateUpdateMetricsPipelineConfigRequest2; path?: never; query?: never; url: '/api/pipelines/v1/metrics/config'; }; export type CreateMetricsPipelineConfigErrors = { /** * Used for error responses */ 400: ErrorResponse; /** * Used for error responses */ 500: ErrorResponse; /** * Used for error responses */ 503: ErrorResponse; }; export type CreateMetricsPipelineConfigError = CreateMetricsPipelineConfigErrors[keyof CreateMetricsPipelineConfigErrors]; export type CreateMetricsPipelineConfigResponses = { /** * Represents a metrics pipeline configuration entry */ 201: MetricsPipelineConfigInfo; }; export type CreateMetricsPipelineConfigResponse = CreateMetricsPipelineConfigResponses[keyof CreateMetricsPipelineConfigResponses]; export type UpdateMetricsPipelineConfigData = { /** * The configuration to create or update */ body: CreateUpdateMetricsPipelineConfigRequest2; path?: never; query?: never; url: '/api/pipelines/v1/metrics/config'; }; export type UpdateMetricsPipelineConfigErrors = { /** * Used for error responses */ 400: ErrorResponse; /** * Used for error responses */ 500: ErrorResponse; /** * Used for error responses */ 503: ErrorResponse; }; export type UpdateMetricsPipelineConfigError = UpdateMetricsPipelineConfigErrors[keyof UpdateMetricsPipelineConfigErrors]; export type UpdateMetricsPipelineConfigResponses = { /** * Represents a metrics pipeline configuration entry */ 200: MetricsPipelineConfigInfo; }; export type UpdateMetricsPipelineConfigResponse = UpdateMetricsPipelineConfigResponses[keyof UpdateMetricsPipelineConfigResponses]; export type GetProfilingFlamegraphData = { body?: never; path?: never; query: { /** * Start time of the request range */ start: string; /** * End time of the request range */ end: string; /** * GCQL filter expression pinning workload, profile_type, and sample_type. */ query: string; /** * Maximum detailed stacks, at most 50000. Omitted on /flamegraph without * focus, frameFilter or invert, the tree folds every matching stack; * otherwise it defaults to 50000. Inverted function totals include all * matching stacks. */ limit?: number; /** * JSON array of exact root-to-leaf frame names. The selected frame becomes * the first level beneath root. Omit or pass [] for the full tree. */ focus?: string; /** * Case-sensitive substring matched against any frame in a stack. */ frameFilter?: string; /** * Return leaves first, after applying focus and frameFilter. Sampled-function * totals use all matching stacks, before the caller-detail limit. */ invert?: boolean; }; url: '/api/profiling/v1/flamegraph'; }; export type GetProfilingFlamegraphErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 422: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 504: { message?: string; }; }; export type GetProfilingFlamegraphError = GetProfilingFlamegraphErrors[keyof GetProfilingFlamegraphErrors]; export type GetProfilingFlamegraphResponses = { 200: ProfilingFlamegraphResponse; }; export type GetProfilingFlamegraphResponse = GetProfilingFlamegraphResponses[keyof GetProfilingFlamegraphResponses]; export type GetProfilingFlamegraphDiffData = { body?: never; path?: never; query: { /** * Start time of the request range */ start: string; /** * End time of the request range */ end: string; /** * GCQL filter expression pinning workload, profile_type, and sample_type. */ query: string; /** * Maximum detailed stacks, at most 50000. Omitted on /flamegraph without * focus, frameFilter or invert, the tree folds every matching stack; * otherwise it defaults to 50000. Inverted function totals include all * matching stacks. */ limit?: number; /** * JSON array of exact root-to-leaf frame names. The selected frame becomes * the first level beneath root. Omit or pass [] for the full tree. */ focus?: string; /** * Case-sensitive substring matched against any frame in a stack. */ frameFilter?: string; /** * Return leaves first, after applying focus and frameFilter. Sampled-function * totals use all matching stacks, before the caller-detail limit. */ invert?: boolean; /** * Baseline window start (RFC3339). Set together with baseEnd; without * both, the baseline uses start and end. */ baseStart?: string; /** * Baseline window end (RFC3339). Set together with baseStart. */ baseEnd?: string; /** * GCQL filter for the baseline side. Defaults to query. It must pin the * same workload, profile_type, and sample_type as query. */ baseQuery?: string; }; url: '/api/profiling/v1/flamegraph-diff'; }; export type GetProfilingFlamegraphDiffErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 422: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 504: { message?: string; }; }; export type GetProfilingFlamegraphDiffError = GetProfilingFlamegraphDiffErrors[keyof GetProfilingFlamegraphDiffErrors]; export type GetProfilingFlamegraphDiffResponses = { 200: ProfilingFlamegraphDiffResponse; }; export type GetProfilingFlamegraphDiffResponse = GetProfilingFlamegraphDiffResponses[keyof GetProfilingFlamegraphDiffResponses]; export type ListProfilingRulesData = { body?: never; path?: never; query?: { /** * Rules that apply in this env, including rules for every cluster. */ env?: string; /** * Rules that apply in this cluster, including rules for every cluster. */ cluster?: string; /** * active or expired; both when absent. */ status?: 'active' | 'expired'; }; url: '/api/profiling/v1/rules'; }; export type ListProfilingRulesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type ListProfilingRulesError = ListProfilingRulesErrors[keyof ListProfilingRulesErrors]; export type ListProfilingRulesResponses = { 200: ProfilingRuleListResponse; }; export type ListProfilingRulesResponse = ListProfilingRulesResponses[keyof ListProfilingRulesResponses]; export type CreateProfilingRuleData = { body: ProfilingRuleRequest2; path?: never; query?: never; url: '/api/profiling/v1/rules'; }; export type CreateProfilingRuleErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 501: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type CreateProfilingRuleError = CreateProfilingRuleErrors[keyof CreateProfilingRuleErrors]; export type CreateProfilingRuleResponses = { 201: ProfilingRuleResponse; }; export type CreateProfilingRuleResponse = CreateProfilingRuleResponses[keyof CreateProfilingRuleResponses]; export type DeleteProfilingRuleData = { body?: never; path: { id: string; }; query?: never; url: '/api/profiling/v1/rules/{id}'; }; export type DeleteProfilingRuleErrors = { /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type DeleteProfilingRuleError = DeleteProfilingRuleErrors[keyof DeleteProfilingRuleErrors]; export type DeleteProfilingRuleResponses = { 204: void; }; export type DeleteProfilingRuleResponse = DeleteProfilingRuleResponses[keyof DeleteProfilingRuleResponses]; export type GetProfilingRuleData = { body?: never; path: { id: string; }; query?: never; url: '/api/profiling/v1/rules/{id}'; }; export type GetProfilingRuleErrors = { /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type GetProfilingRuleError = GetProfilingRuleErrors[keyof GetProfilingRuleErrors]; export type GetProfilingRuleResponses = { 200: ProfilingRuleResponse; }; export type GetProfilingRuleResponse = GetProfilingRuleResponses[keyof GetProfilingRuleResponses]; export type UpdateProfilingRuleData = { body: ProfilingRuleRequest2; path: { id: string; }; query?: never; url: '/api/profiling/v1/rules/{id}'; }; export type UpdateProfilingRuleErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 403: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 503: { message?: string; }; }; export type UpdateProfilingRuleError = UpdateProfilingRuleErrors[keyof UpdateProfilingRuleErrors]; export type UpdateProfilingRuleResponses = { 200: ProfilingRuleResponse; }; export type UpdateProfilingRuleResponse = UpdateProfilingRuleResponses[keyof UpdateProfilingRuleResponses]; export type DeleteApiKeyData = { body?: never; path: { /** * ID of the API key to delete (revoke) */ id: string; }; query?: never; url: '/api/rbac/apikey/{id}'; }; export type DeleteApiKeyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteApiKeyError = DeleteApiKeyErrors[keyof DeleteApiKeyErrors]; export type DeleteApiKeyResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 202: unknown; }; export type CreateApiKeyData = { /** * API Key creation details */ body: CreateApiKeyRequest; path?: never; query?: never; url: '/api/rbac/apikey/create'; }; export type CreateApiKeyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateApiKeyError = CreateApiKeyErrors[keyof CreateApiKeyErrors]; export type CreateApiKeyResponses = { /** * CreateApiKeyResponseWrapper defines the response structure for creating an API key. */ 200: CreateApiKeyResponse; }; export type CreateApiKeyResponse2 = CreateApiKeyResponses[keyof CreateApiKeyResponses]; export type ListApiKeysData = { body?: never; path?: never; query?: { /** * Include revoked API keys in the response. */ withRevoked?: boolean; /** * Include expired API keys in the response. */ withExpired?: boolean; }; url: '/api/rbac/apikeys/list'; }; export type ListApiKeysErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListApiKeysError = ListApiKeysErrors[keyof ListApiKeysErrors]; export type ListApiKeysResponses = { 200: Array; }; export type ListApiKeysResponse = ListApiKeysResponses[keyof ListApiKeysResponses]; export type CreateIngestionKeyData = { /** * Ingestion key creation information */ body: CreateIngestionKeyRequest; path?: never; query?: never; url: '/api/rbac/ingestion-keys/create'; }; export type CreateIngestionKeyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateIngestionKeyError = CreateIngestionKeyErrors[keyof CreateIngestionKeyErrors]; export type CreateIngestionKeyResponses = { 201: IngestionKeyResult; }; export type CreateIngestionKeyResponse = CreateIngestionKeyResponses[keyof CreateIngestionKeyResponses]; export type DeleteIngestionKeyData = { /** * Ingestion key deletion request */ body: DeleteIngestionKeyRequest; path?: never; query?: never; url: '/api/rbac/ingestion-keys/delete'; }; export type DeleteIngestionKeyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteIngestionKeyError = DeleteIngestionKeyErrors[keyof DeleteIngestionKeyErrors]; export type DeleteIngestionKeyResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 202: unknown; }; export type ListIngestionKeysData = { /** * Ingestion keys request */ body: ListIngestionKeysRequest; path?: never; query?: never; url: '/api/rbac/ingestion-keys/list'; }; export type ListIngestionKeysErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListIngestionKeysError = ListIngestionKeysErrors[keyof ListIngestionKeysErrors]; export type ListIngestionKeysResponses = { 200: Array; }; export type ListIngestionKeysResponse = ListIngestionKeysResponses[keyof ListIngestionKeysResponses]; export type ListPoliciesData = { body?: never; path?: never; query?: never; url: '/api/rbac/policies/list'; }; export type ListPoliciesErrors = { /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListPoliciesError = ListPoliciesErrors[keyof ListPoliciesErrors]; export type ListPoliciesResponses = { /** * ListPoliciesResponse contains a list of policies with entity counts. */ 200: Array; }; export type ListPoliciesResponse = ListPoliciesResponses[keyof ListPoliciesResponses]; export type DeletePolicyData = { body?: never; path: { /** * UUID of the policy to delete */ id: string; }; query?: never; url: '/api/rbac/policy/{id}'; }; export type DeletePolicyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeletePolicyError = DeletePolicyErrors[keyof DeletePolicyErrors]; export type DeletePolicyResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 200: unknown; }; export type GetPolicyData = { body?: never; path: { /** * UUID of the policy to retrieve */ id: string; }; query?: never; url: '/api/rbac/policy/{id}'; }; export type GetPolicyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetPolicyError = GetPolicyErrors[keyof GetPolicyErrors]; export type GetPolicyResponses = { /** * Add response wrapper definition --- */ 200: Policy; }; export type GetPolicyResponse = GetPolicyResponses[keyof GetPolicyResponses]; export type UpdatePolicyData = { /** * Policy update information */ body: UpdatePolicyRequest; path: { /** * UUID of the policy to update */ id: string; }; query?: never; url: '/api/rbac/policy/{id}'; }; export type UpdatePolicyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdatePolicyError = UpdatePolicyErrors[keyof UpdatePolicyErrors]; export type UpdatePolicyResponses = { /** * Add response wrapper definition --- */ 202: Policy; }; export type UpdatePolicyResponse = UpdatePolicyResponses[keyof UpdatePolicyResponses]; export type GetPolicyAuditTrailData = { body?: never; path: { /** * UUID of the policy to get audit trail for */ id: string; }; query?: never; url: '/api/rbac/policy/{id}/auditTrail'; }; export type GetPolicyAuditTrailErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetPolicyAuditTrailError = GetPolicyAuditTrailErrors[keyof GetPolicyAuditTrailErrors]; export type GetPolicyAuditTrailResponses = { /** * PolicyAuditTrailResponse contains the audit trail for a policy. */ 200: Array; }; export type GetPolicyAuditTrailResponse = GetPolicyAuditTrailResponses[keyof GetPolicyAuditTrailResponses]; export type ApplyPolicyData = { /** * Policy application details */ body: ApplyPolicyRequest; path?: never; query?: never; url: '/api/rbac/policy/apply'; }; export type ApplyPolicyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ApplyPolicyError = ApplyPolicyErrors[keyof ApplyPolicyErrors]; export type ApplyPolicyResponses = { 200: unknown; }; export type CreatePolicyData = { /** * Policy creation information */ body: CreatePolicyRequest; path?: never; query?: never; url: '/api/rbac/policy/create'; }; export type CreatePolicyErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreatePolicyError = CreatePolicyErrors[keyof CreatePolicyErrors]; export type CreatePolicyResponses = { /** * Add response wrapper definition --- Correct location for response wrapper */ 201: Policy; }; export type CreatePolicyResponse = CreatePolicyResponses[keyof CreatePolicyResponses]; export type DeleteServiceAccountData = { body?: never; path: { /** * ID of the service account to delete */ id: string; }; query?: never; url: '/api/rbac/service-account/{id}'; }; export type DeleteServiceAccountErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteServiceAccountError = DeleteServiceAccountErrors[keyof DeleteServiceAccountErrors]; export type DeleteServiceAccountResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 202: unknown; }; export type GetServiceAccountData = { body?: never; path: { /** * ID of the service account to retrieve */ id: string; }; query?: never; url: '/api/rbac/service-account/{id}'; }; export type GetServiceAccountErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetServiceAccountError = GetServiceAccountErrors[keyof GetServiceAccountErrors]; export type GetServiceAccountResponses = { /** * ServiceAccountsWithPolicyResponse defines the response structure for getting a single service account. */ 200: ServiceAccountsWithPolicy; }; export type GetServiceAccountResponse = GetServiceAccountResponses[keyof GetServiceAccountResponses]; export type CreateServiceAccountData = { /** * Service account creation information */ body: CreateServiceAccountRequest; path?: never; query?: never; url: '/api/rbac/service-account/create'; }; export type CreateServiceAccountErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 409: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateServiceAccountError = CreateServiceAccountErrors[keyof CreateServiceAccountErrors]; export type CreateServiceAccountResponses = { 200: ServiceAccountCreatePayload; }; export type CreateServiceAccountResponse = CreateServiceAccountResponses[keyof CreateServiceAccountResponses]; export type UpdateServiceAccountData = { /** * Service account update information */ body: UpdateServiceAccountRequest; path?: never; query?: never; url: '/api/rbac/service-account/update'; }; export type UpdateServiceAccountErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateServiceAccountError = UpdateServiceAccountErrors[keyof UpdateServiceAccountErrors]; export type UpdateServiceAccountResponses = { /** * UpdateServiceAccountResponseWrapper defines the response structure for updating a service account. */ 200: UpdateServiceAccountResponse; }; export type UpdateServiceAccountResponse2 = UpdateServiceAccountResponses[keyof UpdateServiceAccountResponses]; export type ListServiceAccountsData = { body?: never; path?: never; query?: never; url: '/api/rbac/service-accounts/list'; }; export type ListServiceAccountsErrors = { /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ListServiceAccountsError = ListServiceAccountsErrors[keyof ListServiceAccountsErrors]; export type ListServiceAccountsResponses = { /** * ListServiceAccountsResponse contains a list of service accounts. */ 200: Array; }; export type ListServiceAccountsResponse = ListServiceAccountsResponses[keyof ListServiceAccountsResponses]; export type GetTenantAiSettingsData = { body?: never; headers: { /** * Backend ID */ 'X-Backend-Id': string; }; path?: never; query?: never; url: '/api/rbac/v2/tenant/ai-settings'; }; export type GetTenantAiSettingsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetTenantAiSettingsError = GetTenantAiSettingsErrors[keyof GetTenantAiSettingsErrors]; export type GetTenantAiSettingsResponses = { 200: TenantAiSettingsResponse; }; export type GetTenantAiSettingsResponse = GetTenantAiSettingsResponses[keyof GetTenantAiSettingsResponses]; export type UpdateTenantAiSettingsData = { body: UpdateTenantAiSettingsRequest; headers: { /** * Backend ID */ 'X-Backend-Id': string; }; path?: never; query?: never; url: '/api/rbac/v2/tenant/ai-settings'; }; export type UpdateTenantAiSettingsErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateTenantAiSettingsError = UpdateTenantAiSettingsErrors[keyof UpdateTenantAiSettingsErrors]; export type UpdateTenantAiSettingsResponses = { 200: TenantAiSettingsResponse; }; export type UpdateTenantAiSettingsResponse = UpdateTenantAiSettingsResponses[keyof UpdateTenantAiSettingsResponses]; export type UploadSourceMapData = { body?: never; path?: never; query?: never; url: '/api/rum/sourcemaps'; }; export type UploadSourceMapErrors = { 400: ErrorResponse; 413: ErrorResponse; 500: ErrorResponse; 502: ErrorResponse; 503: ErrorResponse; }; export type UploadSourceMapError = UploadSourceMapErrors[keyof UploadSourceMapErrors]; export type UploadSourceMapResponses = { 201: SourceMapUploadResponse; }; export type UploadSourceMapResponse = UploadSourceMapResponses[keyof UploadSourceMapResponses]; export type GetDiscoveryData = { /** * Discovery request */ body: SearchDiscoveryRequest; path?: never; query?: never; url: '/api/search/discovery'; }; export type GetDiscoveryErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetDiscoveryError = GetDiscoveryErrors[keyof GetDiscoveryErrors]; export type GetDiscoveryResponses = { 200: DiscoveryResponse; }; export type GetDiscoveryResponse = GetDiscoveryResponses[keyof GetDiscoveryResponses]; export type GetKeysData = { /** * Keys request */ body: SearchKeysRequest; path?: never; query?: never; url: '/api/search/keys'; }; export type GetKeysErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetKeysError = GetKeysErrors[keyof GetKeysErrors]; export type GetKeysResponses = { 200: KeysResponse; }; export type GetKeysResponse = GetKeysResponses[keyof GetKeysResponses]; export type GetValuesData = { /** * Values request */ body?: SearchValuesRequest; path?: never; query?: never; url: '/api/search/values'; }; export type GetValuesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetValuesError = GetValuesErrors[keyof GetValuesErrors]; export type GetValuesResponses = { 200: ValuesResponse; }; export type GetValuesResponse = GetValuesResponses[keyof GetValuesResponses]; export type CreateSecretData = { /** * Secret creation information */ body: CreateSecretRequest; path?: never; query?: never; url: '/api/secret'; }; export type CreateSecretErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type CreateSecretError = CreateSecretErrors[keyof CreateSecretErrors]; export type CreateSecretResponses = { 201: SecretResponse; }; export type CreateSecretResponse = CreateSecretResponses[keyof CreateSecretResponses]; export type DeleteSecretData = { body?: never; path: { /** * Secret ID */ id: string; }; query?: never; url: '/api/secret/{id}'; }; export type DeleteSecretErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type DeleteSecretError = DeleteSecretErrors[keyof DeleteSecretErrors]; export type DeleteSecretResponses = { /** * NoContentResponse indicates success but that no response body is expected or included. */ 204: void; }; export type DeleteSecretResponse = DeleteSecretResponses[keyof DeleteSecretResponses]; export type UpdateSecretData = { /** * Secret update information */ body: UpdateSecretRequest; path: { /** * Secret ID */ id: string; }; query?: never; url: '/api/secret/{id}'; }; export type UpdateSecretErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type UpdateSecretError = UpdateSecretErrors[keyof UpdateSecretErrors]; export type UpdateSecretResponses = { 200: SecretResponse; }; export type UpdateSecretResponse = UpdateSecretResponses[keyof UpdateSecretResponses]; export type GetSecretHashData = { body?: never; path: { /** * Secret ID */ id: string; }; query?: never; url: '/api/secret/{id}/hash'; }; export type GetSecretHashErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 404: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type GetSecretHashError = GetSecretHashErrors[keyof GetSecretHashErrors]; export type GetSecretHashResponses = { 200: SecretHashResponse; }; export type GetSecretHashResponse = GetSecretHashResponses[keyof GetSecretHashResponses]; export type GetStorageManagementPoliciesData = { body?: never; path?: never; query?: never; url: '/api/storage-management'; }; export type GetStorageManagementPoliciesErrors = { /** * storageManagementErrorResponse is used for error responses */ 404: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 500: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 502: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 503: ErrorResponse; }; export type GetStorageManagementPoliciesError = GetStorageManagementPoliciesErrors[keyof GetStorageManagementPoliciesErrors]; export type GetStorageManagementPoliciesResponses = { /** * storageManagementPolicyListResponse wraps a list of policy responses */ 200: Array; }; export type GetStorageManagementPoliciesResponse = GetStorageManagementPoliciesResponses[keyof GetStorageManagementPoliciesResponses]; export type GetStorageManagementPolicyByTypeData = { body?: never; path: { /** * The data type to retrieve */ data_type: string; }; query?: never; url: '/api/storage-management/{data_type}'; }; export type GetStorageManagementPolicyByTypeErrors = { /** * storageManagementErrorResponse is used for error responses */ 400: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 404: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 500: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 502: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 503: ErrorResponse; }; export type GetStorageManagementPolicyByTypeError = GetStorageManagementPolicyByTypeErrors[keyof GetStorageManagementPolicyByTypeErrors]; export type GetStorageManagementPolicyByTypeResponses = { /** * storageManagementPolicyResponse wraps a single policy response */ 200: StorageManagementPolicyResponse; }; export type GetStorageManagementPolicyByTypeResponse = GetStorageManagementPolicyByTypeResponses[keyof GetStorageManagementPolicyByTypeResponses]; export type CreateStorageManagementPolicyByTypeData = { /** * The policy to update */ body: StorageManagementPolicyRequest2; path: { /** * The data type to update */ data_type: string; }; query?: never; url: '/api/storage-management/{data_type}'; }; export type CreateStorageManagementPolicyByTypeErrors = { /** * storageManagementErrorResponse is used for error responses */ 400: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 404: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 409: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 500: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 502: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 503: ErrorResponse; }; export type CreateStorageManagementPolicyByTypeError = CreateStorageManagementPolicyByTypeErrors[keyof CreateStorageManagementPolicyByTypeErrors]; export type CreateStorageManagementPolicyByTypeResponses = { /** * storageManagementPolicyResponse wraps a single policy response */ 200: StorageManagementPolicyResponse; }; export type CreateStorageManagementPolicyByTypeResponse = CreateStorageManagementPolicyByTypeResponses[keyof CreateStorageManagementPolicyByTypeResponses]; export type UpdateStorageManagementPolicyByTypeData = { /** * The policy to update */ body: StorageManagementPolicyRequest2; path: { /** * The data type to update */ data_type: string; }; query?: never; url: '/api/storage-management/{data_type}'; }; export type UpdateStorageManagementPolicyByTypeErrors = { /** * storageManagementErrorResponse is used for error responses */ 400: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 404: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 409: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 500: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 502: ErrorResponse; /** * storageManagementErrorResponse is used for error responses */ 503: ErrorResponse; }; export type UpdateStorageManagementPolicyByTypeError = UpdateStorageManagementPolicyByTypeErrors[keyof UpdateStorageManagementPolicyByTypeErrors]; export type UpdateStorageManagementPolicyByTypeResponses = { /** * storageManagementPolicyResponse wraps a single policy response */ 200: StorageManagementPolicyResponse; }; export type UpdateStorageManagementPolicyByTypeResponse = UpdateStorageManagementPolicyByTypeResponses[keyof UpdateStorageManagementPolicyByTypeResponses]; export type ListSyntheticTestsData = { body?: never; path?: never; query?: never; url: '/api/synthetics/v1/rules'; }; export type ListSyntheticTestsErrors = { 500: ErrorResponse; }; export type ListSyntheticTestsError = ListSyntheticTestsErrors[keyof ListSyntheticTestsErrors]; export type ListSyntheticTestsResponses = { 200: SyntheticTestListResponse; }; export type ListSyntheticTestsResponse = ListSyntheticTestsResponses[keyof ListSyntheticTestsResponses]; export type CreateSyntheticTestData = { /** * Synthetic test creation request */ body: SyntheticTestCreateRequest; path?: never; query?: never; url: '/api/synthetics/v1/rules'; }; export type CreateSyntheticTestErrors = { 400: ErrorResponse; 409: ErrorResponse; 500: ErrorResponse; }; export type CreateSyntheticTestError = CreateSyntheticTestErrors[keyof CreateSyntheticTestErrors]; export type CreateSyntheticTestResponses = { 201: SyntheticTestCreateResponse; }; export type CreateSyntheticTestResponse = CreateSyntheticTestResponses[keyof CreateSyntheticTestResponses]; export type DeleteSyntheticTestData = { body?: never; path: { /** * UUID of the synthetic test to delete */ id: string; }; query?: never; url: '/api/synthetics/v1/rules/{id}'; }; export type DeleteSyntheticTestErrors = { 400: ErrorResponse; 404: ErrorResponse; 500: ErrorResponse; }; export type DeleteSyntheticTestError = DeleteSyntheticTestErrors[keyof DeleteSyntheticTestErrors]; export type DeleteSyntheticTestResponses = { 204: DeleteSyntheticTestResponse; }; export type DeleteSyntheticTestResponse2 = DeleteSyntheticTestResponses[keyof DeleteSyntheticTestResponses]; export type GetSyntheticTestData = { body?: never; path: { /** * UUID of the synthetic test to retrieve */ id: string; }; query?: never; url: '/api/synthetics/v1/rules/{id}'; }; export type GetSyntheticTestErrors = { 400: ErrorResponse; 404: ErrorResponse; 500: ErrorResponse; }; export type GetSyntheticTestError = GetSyntheticTestErrors[keyof GetSyntheticTestErrors]; export type GetSyntheticTestResponses = { 200: SyntheticTestCreateRequest; }; export type GetSyntheticTestResponse = GetSyntheticTestResponses[keyof GetSyntheticTestResponses]; export type UpdateSyntheticTestData = { /** * Synthetic test update request */ body: SyntheticTestCreateRequest; path: { /** * UUID of the synthetic test to update */ id: string; }; query?: never; url: '/api/synthetics/v1/rules/{id}'; }; export type UpdateSyntheticTestErrors = { 400: ErrorResponse; 404: ErrorResponse; 409: ErrorResponse; 500: ErrorResponse; }; export type UpdateSyntheticTestError = UpdateSyntheticTestErrors[keyof UpdateSyntheticTestErrors]; export type UpdateSyntheticTestResponses = { 200: SyntheticTestUpdateResponse; }; export type UpdateSyntheticTestResponse = UpdateSyntheticTestResponses[keyof UpdateSyntheticTestResponses]; export type SearchTracesData = { /** * Traces search request */ body: TracesSearchRequest; path?: never; query?: never; url: '/api/traces/v2/search'; }; export type SearchTracesErrors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type SearchTracesError = SearchTracesErrors[keyof SearchTracesErrors]; export type SearchTracesResponses = { 200: unknown; }; export type ExportMonitorsV2Data = { body: ExportMonitorsV2Request; path?: never; query?: never; url: '/api/v2/monitors/export'; }; export type ExportMonitorsV2Errors = { /** * ErrorResponse defines a common error response structure. */ 400: { message?: string; }; /** * ErrorResponse defines a common error response structure. */ 500: { message?: string; }; }; export type ExportMonitorsV2Error = ExportMonitorsV2Errors[keyof ExportMonitorsV2Errors]; export type ExportMonitorsV2Responses = { /** * ExportMonitorsV2ResponseWrapper is the HCL document, served as text/plain. */ 200: TerraformDocument; }; export type ExportMonitorsV2Response = ExportMonitorsV2Responses[keyof ExportMonitorsV2Responses];