@groundcover/api-client 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_generated/index.d.ts +2 -2
- package/dist/_generated/index.js +1 -1
- package/dist/_generated/sdk.gen.d.ts +15 -1
- package/dist/_generated/sdk.gen.js +26 -0
- package/dist/_generated/types.gen.d.ts +495 -8
- package/package.json +1 -1
- package/src/_generated/index.ts +2 -2
- package/src/_generated/sdk.gen.ts +29 -1
- package/src/_generated/types.gen.ts +533 -8
|
@@ -337,6 +337,24 @@ export type AssertionSeverity = string;
|
|
|
337
337
|
* AssertionSource defines model for Assertion.Source.
|
|
338
338
|
*/
|
|
339
339
|
export type AssertionSource = string;
|
|
340
|
+
export type AssetExclusion = {
|
|
341
|
+
/**
|
|
342
|
+
* The type of the excluded asset.
|
|
343
|
+
*/
|
|
344
|
+
asset_type: string;
|
|
345
|
+
/**
|
|
346
|
+
* When the asset was excluded.
|
|
347
|
+
*/
|
|
348
|
+
excluded_at: string;
|
|
349
|
+
/**
|
|
350
|
+
* Email of the user who excluded the asset.
|
|
351
|
+
*/
|
|
352
|
+
excluded_by: string;
|
|
353
|
+
/**
|
|
354
|
+
* The provider's asset identifier.
|
|
355
|
+
*/
|
|
356
|
+
source_resource_id: string;
|
|
357
|
+
};
|
|
340
358
|
export type AssetFetchResult = {
|
|
341
359
|
/**
|
|
342
360
|
* Error code if the fetch failed (e.g., "RATE_LIMITED", "UNAUTHORIZED").
|
|
@@ -449,7 +467,7 @@ export type AssetInstallResult = {
|
|
|
449
467
|
/**
|
|
450
468
|
* The status of the installation.
|
|
451
469
|
*/
|
|
452
|
-
status: 'installed' | 'already_installed' | 'not_found' | 'not_convertible' | 'failed';
|
|
470
|
+
status: 'installed' | 'already_installed' | 'not_found' | 'not_convertible' | 'failed' | 'excluded';
|
|
453
471
|
};
|
|
454
472
|
export type AssetItem = {
|
|
455
473
|
/**
|
|
@@ -509,6 +527,14 @@ export type AssetListItem = {
|
|
|
509
527
|
* Format: date-time
|
|
510
528
|
*/
|
|
511
529
|
discovered_at?: string;
|
|
530
|
+
/**
|
|
531
|
+
* When the asset was excluded. Absent when not excluded.
|
|
532
|
+
*/
|
|
533
|
+
excluded_at?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Email of the user who excluded this asset from the migration. Absent when not excluded.
|
|
536
|
+
*/
|
|
537
|
+
excluded_by?: string;
|
|
512
538
|
/**
|
|
513
539
|
* The groundcover resource ID if installed.
|
|
514
540
|
*/
|
|
@@ -821,6 +847,19 @@ export type BatchGetMonitorsResponse = {
|
|
|
821
847
|
[key: string]: string;
|
|
822
848
|
};
|
|
823
849
|
};
|
|
850
|
+
/**
|
|
851
|
+
* BatchReadMonitorsV2Response is the v2 twin of BatchGetMonitorsResponse: the
|
|
852
|
+
* stored entity (envelope + spec) per uuid instead of YAML text, with the same
|
|
853
|
+
* per-uuid partial success — a miss lands in Errors and never fails the batch.
|
|
854
|
+
*/
|
|
855
|
+
export type BatchReadMonitorsV2Response = {
|
|
856
|
+
errors?: Array<BatchGetMonitorsError>;
|
|
857
|
+
failedCount?: number;
|
|
858
|
+
fetchedCount?: number;
|
|
859
|
+
monitors?: {
|
|
860
|
+
[key: string]: V2MonitorEntity;
|
|
861
|
+
};
|
|
862
|
+
};
|
|
824
863
|
export type BatchUpdateDashboardTagsRequest = {
|
|
825
864
|
dashboardUuids: Array<string>;
|
|
826
865
|
/**
|
|
@@ -1968,6 +2007,10 @@ export type CreatePolicyRequest = {
|
|
|
1968
2007
|
*/
|
|
1969
2008
|
name: string;
|
|
1970
2009
|
role?: RoleMap;
|
|
2010
|
+
/**
|
|
2011
|
+
* Whether this policy grants access to sensitive (access-controlled) attributes.
|
|
2012
|
+
*/
|
|
2013
|
+
sensitiveAccess?: boolean;
|
|
1971
2014
|
};
|
|
1972
2015
|
export type CreateRecurringSilenceRequest = {
|
|
1973
2016
|
/**
|
|
@@ -2303,6 +2346,57 @@ export type CustomRule = {
|
|
|
2303
2346
|
name: string;
|
|
2304
2347
|
retention: string;
|
|
2305
2348
|
};
|
|
2349
|
+
/**
|
|
2350
|
+
* DBMMeasurementsSearchRequest queries raw statement measurement intervals.
|
|
2351
|
+
*
|
|
2352
|
+
* A GCQL query is required. count() counts intervals;
|
|
2353
|
+
* sum(calls) counts database executions.
|
|
2354
|
+
*/
|
|
2355
|
+
export type DbmMeasurementsSearchRequest = {
|
|
2356
|
+
/**
|
|
2357
|
+
* End time of the request range
|
|
2358
|
+
*/
|
|
2359
|
+
end: string;
|
|
2360
|
+
query: string;
|
|
2361
|
+
sources?: Array<Condition>;
|
|
2362
|
+
/**
|
|
2363
|
+
* Start time of the request range
|
|
2364
|
+
*/
|
|
2365
|
+
start: string;
|
|
2366
|
+
};
|
|
2367
|
+
export type DbmMeasurementsSearchTimeSeriesRequest = {
|
|
2368
|
+
/**
|
|
2369
|
+
* Positive interval used to group measurements into time buckets.
|
|
2370
|
+
*/
|
|
2371
|
+
bucketDuration: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* End time of the request range
|
|
2374
|
+
*/
|
|
2375
|
+
end: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Empty buckets contain null unless fillValue is supplied.
|
|
2378
|
+
*/
|
|
2379
|
+
fillValue?: number;
|
|
2380
|
+
query: string;
|
|
2381
|
+
sources?: Array<Condition>;
|
|
2382
|
+
/**
|
|
2383
|
+
* Start time of the request range
|
|
2384
|
+
*/
|
|
2385
|
+
start: string;
|
|
2386
|
+
valueField?: string;
|
|
2387
|
+
};
|
|
2388
|
+
/**
|
|
2389
|
+
* DDMetricInactiveBucket counts units whose only unmet metric dependency is
|
|
2390
|
+
* confirmed inactive/missing in Datadog itself, tagging every metric involved
|
|
2391
|
+
* (a unit can mix a confirmed-inactive metric with a self-observability one;
|
|
2392
|
+
* see unitMissingMetricsAreDDInactiveOnly). Datadog itself never had data for
|
|
2393
|
+
* these metrics, so groundcover correctly has none either — a genuine,
|
|
2394
|
+
* successful migration outcome, not a gap to fix.
|
|
2395
|
+
*/
|
|
2396
|
+
export type DdMetricInactiveBucket = {
|
|
2397
|
+
count?: number;
|
|
2398
|
+
metrics?: Array<TaggedMetric>;
|
|
2399
|
+
};
|
|
2306
2400
|
/**
|
|
2307
2401
|
* DashboardFiltersRequest is the POST /api/dashboards/filters request body.
|
|
2308
2402
|
*/
|
|
@@ -2728,14 +2822,21 @@ export type EventsSearchTimeSeriesRequest = {
|
|
|
2728
2822
|
};
|
|
2729
2823
|
/**
|
|
2730
2824
|
* ExcludedBucket counts units held out of the funnel because their only unmet
|
|
2731
|
-
* dependency is Datadog's own telemetry: a self-observability metric
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2734
|
-
*
|
|
2825
|
+
* dependency is Datadog's own telemetry: a self-observability metric. Migration
|
|
2826
|
+
* quality has no bearing on it — it was never going to return data — so it is
|
|
2827
|
+
* reported separately rather than weighing on supported/unsupported like a
|
|
2828
|
+
* real gap would.
|
|
2829
|
+
*
|
|
2830
|
+
* A unit confirmed inactive in Datadog (IssueDDInactiveOrMissing) no longer
|
|
2831
|
+
* lands here — see StageDDMetricInactive and DDMetricInactiveBucket, its own
|
|
2832
|
+
* green success bucket under SupportedConverted. The former InactiveInDatadog
|
|
2833
|
+
* field here was removed rather than kept as an always-zero counter: nothing
|
|
2834
|
+
* outside this package ever read it (the funnelviz decoder only reads Total,
|
|
2835
|
+
* and the CLI summary printer never printed Excluded at all), so there was no
|
|
2836
|
+
* reader to preserve compatibility for.
|
|
2735
2837
|
*/
|
|
2736
2838
|
export type ExcludedBucket = {
|
|
2737
2839
|
datadog_self_observability?: MetricListBucket;
|
|
2738
|
-
inactive_in_datadog?: MetricListBucket;
|
|
2739
2840
|
total?: number;
|
|
2740
2841
|
};
|
|
2741
2842
|
/**
|
|
@@ -2788,6 +2889,19 @@ export type ExportCapture = {
|
|
|
2788
2889
|
*/
|
|
2789
2890
|
fullscreen?: boolean;
|
|
2790
2891
|
};
|
|
2892
|
+
/**
|
|
2893
|
+
* ExportMonitorsV2Request is the POST /api/v2/monitors/export body.
|
|
2894
|
+
*/
|
|
2895
|
+
export type ExportMonitorsV2Request = {
|
|
2896
|
+
/**
|
|
2897
|
+
* Format names the emitted resource.
|
|
2898
|
+
*/
|
|
2899
|
+
format: 'terraform';
|
|
2900
|
+
/**
|
|
2901
|
+
* UUIDs of the monitors to export, rendered in this order.
|
|
2902
|
+
*/
|
|
2903
|
+
uuids: Array<string>;
|
|
2904
|
+
};
|
|
2791
2905
|
/**
|
|
2792
2906
|
* ExportRequestBody represents the request body proxied to export-service.
|
|
2793
2907
|
*/
|
|
@@ -2946,11 +3060,21 @@ export type Finding = {
|
|
|
2946
3060
|
*/
|
|
2947
3061
|
export type FunnelAssetEntry = {
|
|
2948
3062
|
asset_id?: string;
|
|
3063
|
+
/**
|
|
3064
|
+
* AssetKind names the unsupported widget/monitor type when the unit never
|
|
3065
|
+
* reached conversion, e.g. "heatmap" or "slo".
|
|
3066
|
+
*/
|
|
3067
|
+
asset_kind?: string;
|
|
2949
3068
|
asset_name?: string;
|
|
2950
3069
|
asset_type?: string;
|
|
2951
3070
|
metrics?: Array<string>;
|
|
2952
3071
|
missing_keys?: Array<string>;
|
|
2953
3072
|
missing_values?: Array<string>;
|
|
3073
|
+
/**
|
|
3074
|
+
* PrimaryDataset is the one missing dataset the unit is counted under, when
|
|
3075
|
+
* the terminal stage is a missing-dataset gap.
|
|
3076
|
+
*/
|
|
3077
|
+
primary_dataset?: string;
|
|
2954
3078
|
queries?: Array<ExecutedQuery>;
|
|
2955
3079
|
reason?: string;
|
|
2956
3080
|
stage?: string;
|
|
@@ -3054,7 +3178,7 @@ export type GetEventsOverTimeRequest = {
|
|
|
3054
3178
|
/**
|
|
3055
3179
|
* Field to sort events by.
|
|
3056
3180
|
*/
|
|
3057
|
-
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'count' | 'workload' | 'cluster';
|
|
3181
|
+
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'message' | 'count' | 'workload' | 'cluster';
|
|
3058
3182
|
/**
|
|
3059
3183
|
* Sort order.
|
|
3060
3184
|
*/
|
|
@@ -3260,6 +3384,10 @@ export type InstallAssetsResponse = {
|
|
|
3260
3384
|
* The number of assets that were already installed.
|
|
3261
3385
|
*/
|
|
3262
3386
|
alreadyInstalledCount?: number;
|
|
3387
|
+
/**
|
|
3388
|
+
* The number of assets that were not installed because they are excluded.
|
|
3389
|
+
*/
|
|
3390
|
+
excludedCount?: number;
|
|
3263
3391
|
/**
|
|
3264
3392
|
* The number of assets that failed to install.
|
|
3265
3393
|
*/
|
|
@@ -5357,6 +5485,7 @@ export type Policy = {
|
|
|
5357
5485
|
*/
|
|
5358
5486
|
readonly revisionNumber?: number;
|
|
5359
5487
|
role?: RoleMap;
|
|
5488
|
+
sensitiveAccess?: boolean;
|
|
5360
5489
|
/**
|
|
5361
5490
|
* Tenant associated with the policy.
|
|
5362
5491
|
*/
|
|
@@ -5430,6 +5559,47 @@ export type Processor = {
|
|
|
5430
5559
|
args?: Array<unknown>;
|
|
5431
5560
|
op?: string;
|
|
5432
5561
|
};
|
|
5562
|
+
/**
|
|
5563
|
+
* FlameNode contains inclusive and self weight in the selected sample unit.
|
|
5564
|
+
*/
|
|
5565
|
+
export type ProfilingFlameNode = {
|
|
5566
|
+
children?: Array<ProfilingFlameNode>;
|
|
5567
|
+
name?: string;
|
|
5568
|
+
/**
|
|
5569
|
+
* Omitted identifies a synthetic bucket, distinct from a real frame named other.
|
|
5570
|
+
*/
|
|
5571
|
+
omitted?: boolean;
|
|
5572
|
+
self?: number;
|
|
5573
|
+
value?: number;
|
|
5574
|
+
};
|
|
5575
|
+
export type ProfilingFlamegraphResponse = {
|
|
5576
|
+
filteredValue?: number;
|
|
5577
|
+
period?: ProfilingPeriod;
|
|
5578
|
+
profileType?: string;
|
|
5579
|
+
root?: ProfilingFlameNode;
|
|
5580
|
+
sampleType?: string;
|
|
5581
|
+
stacks?: ProfilingStackCounts;
|
|
5582
|
+
total?: number;
|
|
5583
|
+
truncated?: boolean;
|
|
5584
|
+
unit?: string;
|
|
5585
|
+
};
|
|
5586
|
+
export type ProfilingPeriod = {
|
|
5587
|
+
end?: string;
|
|
5588
|
+
start?: string;
|
|
5589
|
+
};
|
|
5590
|
+
/**
|
|
5591
|
+
* StackCounts counts aggregated stacks, not samples or rendered tree nodes.
|
|
5592
|
+
*/
|
|
5593
|
+
export type ProfilingStackCounts = {
|
|
5594
|
+
/**
|
|
5595
|
+
* Stacks included in the tree before depth, node, and small-branch compaction.
|
|
5596
|
+
*/
|
|
5597
|
+
returned?: number;
|
|
5598
|
+
/**
|
|
5599
|
+
* Matching aggregated stacks before the top-stack limit or result truncation.
|
|
5600
|
+
*/
|
|
5601
|
+
total?: number;
|
|
5602
|
+
};
|
|
5433
5603
|
/**
|
|
5434
5604
|
* PromqlFunction represents a function call in a PromQL query.
|
|
5435
5605
|
*/
|
|
@@ -5985,7 +6155,7 @@ export type SearchValuesRequest = {
|
|
|
5985
6155
|
/**
|
|
5986
6156
|
* Type of the search values
|
|
5987
6157
|
*/
|
|
5988
|
-
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'monitors' | 'aws_cur' | 'dashboards';
|
|
6158
|
+
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'dbm_measurements_statement' | 'monitors' | 'aws_cur' | 'dashboards' | 'profiling_samples';
|
|
5989
6159
|
};
|
|
5990
6160
|
export type SearchValuesRequestV2 = {
|
|
5991
6161
|
/**
|
|
@@ -6602,6 +6772,7 @@ export type SuggestionReason = {
|
|
|
6602
6772
|
*/
|
|
6603
6773
|
export type SupportedConvertedBucket = {
|
|
6604
6774
|
data_set_available?: DataSetAvailableBucket;
|
|
6775
|
+
dd_metric_inactive?: DdMetricInactiveBucket;
|
|
6605
6776
|
missing_underlying_data_set?: MissingDataSetBucket;
|
|
6606
6777
|
no_data_needed?: NoDataNeededBucket;
|
|
6607
6778
|
total?: number;
|
|
@@ -6802,6 +6973,10 @@ export type TenantResponse = {
|
|
|
6802
6973
|
TenantName?: string;
|
|
6803
6974
|
Used?: number;
|
|
6804
6975
|
};
|
|
6976
|
+
/**
|
|
6977
|
+
* TerraformDocument is one HCL document.
|
|
6978
|
+
*/
|
|
6979
|
+
export type TerraformDocument = string;
|
|
6805
6980
|
export type TestConnectedAppRequest = {
|
|
6806
6981
|
/**
|
|
6807
6982
|
* The ID of an existing connected app (optional).
|
|
@@ -7828,6 +8003,10 @@ export type UpdatePolicyRequest = {
|
|
|
7828
8003
|
*/
|
|
7829
8004
|
name: string;
|
|
7830
8005
|
role?: RoleMap;
|
|
8006
|
+
/**
|
|
8007
|
+
* Whether this policy grants access to sensitive (access-controlled) attributes.
|
|
8008
|
+
*/
|
|
8009
|
+
sensitiveAccess?: boolean;
|
|
7831
8010
|
};
|
|
7832
8011
|
export type UpdateRecurringSilenceRequest = {
|
|
7833
8012
|
comment?: string;
|
|
@@ -7941,6 +8120,13 @@ export type UsedByResponse = {
|
|
|
7941
8120
|
*/
|
|
7942
8121
|
type?: string;
|
|
7943
8122
|
};
|
|
8123
|
+
/**
|
|
8124
|
+
* Channel identifies a Slack channel.
|
|
8125
|
+
*/
|
|
8126
|
+
export type V2Channel = {
|
|
8127
|
+
id?: string;
|
|
8128
|
+
name?: string;
|
|
8129
|
+
};
|
|
7944
8130
|
export type V2CreateSilenceRequest = {
|
|
7945
8131
|
/**
|
|
7946
8132
|
* Optional comment
|
|
@@ -7982,6 +8168,206 @@ export type V2CreateSilenceRequest = {
|
|
|
7982
8168
|
*/
|
|
7983
8169
|
type: 'one_time' | 'recurring';
|
|
7984
8170
|
};
|
|
8171
|
+
/**
|
|
8172
|
+
* DestinationApp carries at most one delivery-options block. The spec cannot
|
|
8173
|
+
* check the block against the app id's integration type; the write service does.
|
|
8174
|
+
*/
|
|
8175
|
+
export type V2DestinationApp = {
|
|
8176
|
+
id?: string;
|
|
8177
|
+
linear?: V2LinearDeliveryOptions;
|
|
8178
|
+
slack?: V2SlackDeliveryOptions;
|
|
8179
|
+
};
|
|
8180
|
+
/**
|
|
8181
|
+
* Destinations is direct delivery. StatusFilters omitted = all.
|
|
8182
|
+
*/
|
|
8183
|
+
export type V2Destinations = {
|
|
8184
|
+
apps?: Array<V2DestinationApp>;
|
|
8185
|
+
statusFilters?: Array<IssueStatus>;
|
|
8186
|
+
};
|
|
8187
|
+
/**
|
|
8188
|
+
* EvaluationInterval carries the evaluation cadence and pending window. The
|
|
8189
|
+
* prom_duration tag param is the example in the error text, not a bound; the
|
|
8190
|
+
* real bounds are struct-level rules.
|
|
8191
|
+
*/
|
|
8192
|
+
export type V2EvaluationInterval = {
|
|
8193
|
+
/**
|
|
8194
|
+
* Whole seconds, >= 1m (plus rollup floors — see the struct-level rules).
|
|
8195
|
+
*/
|
|
8196
|
+
interval?: string;
|
|
8197
|
+
/**
|
|
8198
|
+
* nil = default applied on read. Whole seconds.
|
|
8199
|
+
*/
|
|
8200
|
+
pendingFor?: string;
|
|
8201
|
+
};
|
|
8202
|
+
/**
|
|
8203
|
+
* FiringThreshold is the static-threshold condition. Values cardinality is
|
|
8204
|
+
* per-operator: 1 scalar, 2 ascending.
|
|
8205
|
+
*/
|
|
8206
|
+
export type V2FiringThreshold = {
|
|
8207
|
+
operator?: string;
|
|
8208
|
+
recovery?: V2RecoveryThreshold;
|
|
8209
|
+
values?: Array<number>;
|
|
8210
|
+
};
|
|
8211
|
+
/**
|
|
8212
|
+
* IssueDisplay controls how the resulting issue is rendered.
|
|
8213
|
+
*/
|
|
8214
|
+
export type V2IssueDisplay = {
|
|
8215
|
+
contextLabels?: Array<string>;
|
|
8216
|
+
description?: string;
|
|
8217
|
+
templateLanguage?: string;
|
|
8218
|
+
title?: string;
|
|
8219
|
+
};
|
|
8220
|
+
/**
|
|
8221
|
+
* LinearDeliveryOptions requires TeamID when present. Delivery treats an
|
|
8222
|
+
* omitted ResolveTicket as true, so ResolvedStatusID is required unless it is
|
|
8223
|
+
* explicitly false.
|
|
8224
|
+
*/
|
|
8225
|
+
export type V2LinearDeliveryOptions = {
|
|
8226
|
+
assigneeId?: string;
|
|
8227
|
+
delegateId?: string;
|
|
8228
|
+
labelIds?: Array<string>;
|
|
8229
|
+
projectId?: string;
|
|
8230
|
+
resolveTicket?: boolean;
|
|
8231
|
+
resolvedStatusId?: string;
|
|
8232
|
+
teamId?: string;
|
|
8233
|
+
};
|
|
8234
|
+
/**
|
|
8235
|
+
* V2MonitorEntity is the wire shape of one monitor in the batch-read
|
|
8236
|
+
* response: the envelope fields callers use, plus the spec. A type of its
|
|
8237
|
+
* own, not model.Monitor — a column added to that storage row does not
|
|
8238
|
+
* automatically reach this response.
|
|
8239
|
+
*/
|
|
8240
|
+
export type V2MonitorEntity = {
|
|
8241
|
+
backendId?: string;
|
|
8242
|
+
createdAt?: string;
|
|
8243
|
+
createdByEmail?: string;
|
|
8244
|
+
grafanaMonitorId?: string;
|
|
8245
|
+
isProvisioned?: boolean;
|
|
8246
|
+
originId?: string;
|
|
8247
|
+
originType?: string;
|
|
8248
|
+
spec?: V2MonitorSpec;
|
|
8249
|
+
updatedAt?: string;
|
|
8250
|
+
uuid?: string;
|
|
8251
|
+
};
|
|
8252
|
+
/**
|
|
8253
|
+
* Model wraps the single query and the thresholds list, capped at one item.
|
|
8254
|
+
*/
|
|
8255
|
+
export type V2MonitorModel = {
|
|
8256
|
+
query?: V2Query;
|
|
8257
|
+
thresholds?: Array<V2ThresholdSpec>;
|
|
8258
|
+
};
|
|
8259
|
+
/**
|
|
8260
|
+
* MonitorSpec is the v2 monitor document. Value = required outright.
|
|
8261
|
+
* Pointer = optional: nil means the author omitted it, and that intent is
|
|
8262
|
+
* PRESERVED in the stored document — defaults are applied on read, never
|
|
8263
|
+
* baked in at write.
|
|
8264
|
+
*
|
|
8265
|
+
* The validate tags include custom ones registered only by this package.
|
|
8266
|
+
* Validate through ValidateSpec — a bare validator panics.
|
|
8267
|
+
*/
|
|
8268
|
+
export type V2MonitorSpec = {
|
|
8269
|
+
/**
|
|
8270
|
+
* Deprecated: workflows-only. Reserved _gc_* keys are rejected.
|
|
8271
|
+
*/
|
|
8272
|
+
annotations?: {
|
|
8273
|
+
[key: string]: string;
|
|
8274
|
+
};
|
|
8275
|
+
/**
|
|
8276
|
+
* nil = default (true) applied on read.
|
|
8277
|
+
*/
|
|
8278
|
+
autoResolve?: boolean;
|
|
8279
|
+
/**
|
|
8280
|
+
* Category is free-form — the built-ins use Infrastructure|API|… but custom
|
|
8281
|
+
* values exist in the fleet, so there is no enum. "" is omitted/no-data.
|
|
8282
|
+
*/
|
|
8283
|
+
category?: string;
|
|
8284
|
+
evaluationErrorState?: string;
|
|
8285
|
+
evaluationInterval?: V2EvaluationInterval;
|
|
8286
|
+
evaluationNoDataState?: string;
|
|
8287
|
+
isPaused?: boolean;
|
|
8288
|
+
issueDisplay?: V2IssueDisplay;
|
|
8289
|
+
/**
|
|
8290
|
+
* Reserved _gc_* keys are rejected.
|
|
8291
|
+
*/
|
|
8292
|
+
labels?: {
|
|
8293
|
+
[key: string]: string;
|
|
8294
|
+
};
|
|
8295
|
+
/**
|
|
8296
|
+
* MeasurementType switches the timeline query builder; nil = derived on read.
|
|
8297
|
+
*/
|
|
8298
|
+
measurementType?: string;
|
|
8299
|
+
model?: V2MonitorModel;
|
|
8300
|
+
name?: string;
|
|
8301
|
+
notificationSettings?: V2NotificationSettings;
|
|
8302
|
+
/**
|
|
8303
|
+
* Severity is "" when omitted; that intent is preserved, defaults are
|
|
8304
|
+
* applied on read.
|
|
8305
|
+
*/
|
|
8306
|
+
severity?: string;
|
|
8307
|
+
/**
|
|
8308
|
+
* Tags are free-form; items must not be blank.
|
|
8309
|
+
*/
|
|
8310
|
+
tags?: Array<string>;
|
|
8311
|
+
team?: string;
|
|
8312
|
+
/**
|
|
8313
|
+
* Type is the dataType; query language and datasource are inferred from it.
|
|
8314
|
+
* monitor_type defers to the registry — see registry.go for the set.
|
|
8315
|
+
*/
|
|
8316
|
+
type?: string;
|
|
8317
|
+
};
|
|
8318
|
+
/**
|
|
8319
|
+
* NoNotifications is the suppress-everything mode marker.
|
|
8320
|
+
*/
|
|
8321
|
+
export type V2NoNotifications = {
|
|
8322
|
+
[key: string]: unknown;
|
|
8323
|
+
};
|
|
8324
|
+
/**
|
|
8325
|
+
* NotificationRoutes is the route-based delivery mode marker.
|
|
8326
|
+
*/
|
|
8327
|
+
export type V2NotificationRoutes = {
|
|
8328
|
+
[key: string]: unknown;
|
|
8329
|
+
};
|
|
8330
|
+
/**
|
|
8331
|
+
* NotificationSettings requires exactly one mode block; there is no default.
|
|
8332
|
+
*
|
|
8333
|
+
* The renotification knobs apply to any mode.
|
|
8334
|
+
*/
|
|
8335
|
+
export type V2NotificationSettings = {
|
|
8336
|
+
destinations?: V2Destinations;
|
|
8337
|
+
disableRenotification?: boolean;
|
|
8338
|
+
noNotifications?: V2NoNotifications;
|
|
8339
|
+
notificationRoutes?: V2NotificationRoutes;
|
|
8340
|
+
renotificationInterval?: string;
|
|
8341
|
+
};
|
|
8342
|
+
/**
|
|
8343
|
+
* Query is the whole expression, in the language MonitorSpec.Type implies.
|
|
8344
|
+
*/
|
|
8345
|
+
export type V2Query = {
|
|
8346
|
+
/**
|
|
8347
|
+
* Shifts the eval window back, length unchanged. Whole seconds, at most 7d.
|
|
8348
|
+
* Rejected where Rollup is.
|
|
8349
|
+
*/
|
|
8350
|
+
evaluationDelay?: string;
|
|
8351
|
+
expression?: string;
|
|
8352
|
+
/**
|
|
8353
|
+
* Lookback window: whole seconds, positive. Required when the type has a
|
|
8354
|
+
* time axis, rejected otherwise (sql, timeless datasets).
|
|
8355
|
+
*/
|
|
8356
|
+
rollup?: string;
|
|
8357
|
+
/**
|
|
8358
|
+
* Required iff metrics, rejected otherwise.
|
|
8359
|
+
*/
|
|
8360
|
+
rollupFunction?: string;
|
|
8361
|
+
};
|
|
8362
|
+
/**
|
|
8363
|
+
* RecoveryThreshold is the hysteresis condition; its region must not overlap
|
|
8364
|
+
* the firing one. Operator is the author's choice from the recovery-capable
|
|
8365
|
+
* set — required, never defaulted.
|
|
8366
|
+
*/
|
|
8367
|
+
export type V2RecoveryThreshold = {
|
|
8368
|
+
operator?: string;
|
|
8369
|
+
values?: Array<number>;
|
|
8370
|
+
};
|
|
7985
8371
|
export type V2SilenceResponse = {
|
|
7986
8372
|
active?: boolean;
|
|
7987
8373
|
comment?: string;
|
|
@@ -8021,6 +8407,18 @@ export type V2SilencesListResponse = {
|
|
|
8021
8407
|
*/
|
|
8022
8408
|
silences?: Array<V2SilenceResponse>;
|
|
8023
8409
|
};
|
|
8410
|
+
/**
|
|
8411
|
+
* SlackDeliveryOptions requires a non-empty Channels when present.
|
|
8412
|
+
*/
|
|
8413
|
+
export type V2SlackDeliveryOptions = {
|
|
8414
|
+
channels?: Array<V2Channel>;
|
|
8415
|
+
};
|
|
8416
|
+
/**
|
|
8417
|
+
* ThresholdSpec is one condition block; Firing is its only arm today.
|
|
8418
|
+
*/
|
|
8419
|
+
export type V2ThresholdSpec = {
|
|
8420
|
+
firing?: V2FiringThreshold;
|
|
8421
|
+
};
|
|
8024
8422
|
export type V2UpdateSilenceRequest = {
|
|
8025
8423
|
comment?: string;
|
|
8026
8424
|
/**
|
|
@@ -8669,6 +9067,7 @@ export type PolicyWritable = {
|
|
|
8669
9067
|
*/
|
|
8670
9068
|
name: string;
|
|
8671
9069
|
role?: RoleMap;
|
|
9070
|
+
sensitiveAccess?: boolean;
|
|
8672
9071
|
};
|
|
8673
9072
|
/**
|
|
8674
9073
|
* PolicyWithEntityCount includes the policy details along with the count of entities it's applied to.
|
|
@@ -11312,6 +11711,66 @@ export type UpdateMetricsPipelineConfigResponses = {
|
|
|
11312
11711
|
200: MetricsPipelineConfigInfo;
|
|
11313
11712
|
};
|
|
11314
11713
|
export type UpdateMetricsPipelineConfigResponse = UpdateMetricsPipelineConfigResponses[keyof UpdateMetricsPipelineConfigResponses];
|
|
11714
|
+
export type GetProfilingFlamegraphData = {
|
|
11715
|
+
body?: never;
|
|
11716
|
+
path?: never;
|
|
11717
|
+
query: {
|
|
11718
|
+
/**
|
|
11719
|
+
* Start time of the request range
|
|
11720
|
+
*/
|
|
11721
|
+
start: string;
|
|
11722
|
+
/**
|
|
11723
|
+
* End time of the request range
|
|
11724
|
+
*/
|
|
11725
|
+
end: string;
|
|
11726
|
+
/**
|
|
11727
|
+
* GCQL filter expression pinning workload, profile_type, and sample_type.
|
|
11728
|
+
*/
|
|
11729
|
+
query: string;
|
|
11730
|
+
/**
|
|
11731
|
+
* Maximum distinct stacks. Defaults to 6000 and is capped at 50000.
|
|
11732
|
+
*/
|
|
11733
|
+
limit?: number;
|
|
11734
|
+
};
|
|
11735
|
+
url: '/api/profiling/flamegraph';
|
|
11736
|
+
};
|
|
11737
|
+
export type GetProfilingFlamegraphErrors = {
|
|
11738
|
+
/**
|
|
11739
|
+
* ErrorResponse defines a common error response structure.
|
|
11740
|
+
*/
|
|
11741
|
+
400: {
|
|
11742
|
+
message?: string;
|
|
11743
|
+
};
|
|
11744
|
+
/**
|
|
11745
|
+
* ErrorResponse defines a common error response structure.
|
|
11746
|
+
*/
|
|
11747
|
+
404: {
|
|
11748
|
+
message?: string;
|
|
11749
|
+
};
|
|
11750
|
+
/**
|
|
11751
|
+
* ErrorResponse defines a common error response structure.
|
|
11752
|
+
*/
|
|
11753
|
+
422: {
|
|
11754
|
+
message?: string;
|
|
11755
|
+
};
|
|
11756
|
+
/**
|
|
11757
|
+
* ErrorResponse defines a common error response structure.
|
|
11758
|
+
*/
|
|
11759
|
+
500: {
|
|
11760
|
+
message?: string;
|
|
11761
|
+
};
|
|
11762
|
+
/**
|
|
11763
|
+
* ErrorResponse defines a common error response structure.
|
|
11764
|
+
*/
|
|
11765
|
+
504: {
|
|
11766
|
+
message?: string;
|
|
11767
|
+
};
|
|
11768
|
+
};
|
|
11769
|
+
export type GetProfilingFlamegraphError = GetProfilingFlamegraphErrors[keyof GetProfilingFlamegraphErrors];
|
|
11770
|
+
export type GetProfilingFlamegraphResponses = {
|
|
11771
|
+
200: ProfilingFlamegraphResponse;
|
|
11772
|
+
};
|
|
11773
|
+
export type GetProfilingFlamegraphResponse = GetProfilingFlamegraphResponses[keyof GetProfilingFlamegraphResponses];
|
|
11315
11774
|
export type DeleteApiKeyData = {
|
|
11316
11775
|
body?: never;
|
|
11317
11776
|
path: {
|
|
@@ -12529,3 +12988,31 @@ export type SearchTracesError = SearchTracesErrors[keyof SearchTracesErrors];
|
|
|
12529
12988
|
export type SearchTracesResponses = {
|
|
12530
12989
|
200: unknown;
|
|
12531
12990
|
};
|
|
12991
|
+
export type ExportMonitorsV2Data = {
|
|
12992
|
+
body: ExportMonitorsV2Request;
|
|
12993
|
+
path?: never;
|
|
12994
|
+
query?: never;
|
|
12995
|
+
url: '/api/v2/monitors/export';
|
|
12996
|
+
};
|
|
12997
|
+
export type ExportMonitorsV2Errors = {
|
|
12998
|
+
/**
|
|
12999
|
+
* ErrorResponse defines a common error response structure.
|
|
13000
|
+
*/
|
|
13001
|
+
400: {
|
|
13002
|
+
message?: string;
|
|
13003
|
+
};
|
|
13004
|
+
/**
|
|
13005
|
+
* ErrorResponse defines a common error response structure.
|
|
13006
|
+
*/
|
|
13007
|
+
500: {
|
|
13008
|
+
message?: string;
|
|
13009
|
+
};
|
|
13010
|
+
};
|
|
13011
|
+
export type ExportMonitorsV2Error = ExportMonitorsV2Errors[keyof ExportMonitorsV2Errors];
|
|
13012
|
+
export type ExportMonitorsV2Responses = {
|
|
13013
|
+
/**
|
|
13014
|
+
* ExportMonitorsV2ResponseWrapper is the HCL document, served as text/plain.
|
|
13015
|
+
*/
|
|
13016
|
+
200: TerraformDocument;
|
|
13017
|
+
};
|
|
13018
|
+
export type ExportMonitorsV2Response = ExportMonitorsV2Responses[keyof ExportMonitorsV2Responses];
|