@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
|
@@ -362,6 +362,25 @@ export type AssertionSeverity = string;
|
|
|
362
362
|
*/
|
|
363
363
|
export type AssertionSource = string;
|
|
364
364
|
|
|
365
|
+
export type AssetExclusion = {
|
|
366
|
+
/**
|
|
367
|
+
* The type of the excluded asset.
|
|
368
|
+
*/
|
|
369
|
+
asset_type: string;
|
|
370
|
+
/**
|
|
371
|
+
* When the asset was excluded.
|
|
372
|
+
*/
|
|
373
|
+
excluded_at: string;
|
|
374
|
+
/**
|
|
375
|
+
* Email of the user who excluded the asset.
|
|
376
|
+
*/
|
|
377
|
+
excluded_by: string;
|
|
378
|
+
/**
|
|
379
|
+
* The provider's asset identifier.
|
|
380
|
+
*/
|
|
381
|
+
source_resource_id: string;
|
|
382
|
+
};
|
|
383
|
+
|
|
365
384
|
export type AssetFetchResult = {
|
|
366
385
|
/**
|
|
367
386
|
* Error code if the fetch failed (e.g., "RATE_LIMITED", "UNAUTHORIZED").
|
|
@@ -477,7 +496,7 @@ export type AssetInstallResult = {
|
|
|
477
496
|
/**
|
|
478
497
|
* The status of the installation.
|
|
479
498
|
*/
|
|
480
|
-
status: 'installed' | 'already_installed' | 'not_found' | 'not_convertible' | 'failed';
|
|
499
|
+
status: 'installed' | 'already_installed' | 'not_found' | 'not_convertible' | 'failed' | 'excluded';
|
|
481
500
|
};
|
|
482
501
|
|
|
483
502
|
export type AssetItem = {
|
|
@@ -539,6 +558,14 @@ export type AssetListItem = {
|
|
|
539
558
|
* Format: date-time
|
|
540
559
|
*/
|
|
541
560
|
discovered_at?: string;
|
|
561
|
+
/**
|
|
562
|
+
* When the asset was excluded. Absent when not excluded.
|
|
563
|
+
*/
|
|
564
|
+
excluded_at?: string;
|
|
565
|
+
/**
|
|
566
|
+
* Email of the user who excluded this asset from the migration. Absent when not excluded.
|
|
567
|
+
*/
|
|
568
|
+
excluded_by?: string;
|
|
542
569
|
/**
|
|
543
570
|
* The groundcover resource ID if installed.
|
|
544
571
|
*/
|
|
@@ -868,6 +895,20 @@ export type BatchGetMonitorsResponse = {
|
|
|
868
895
|
};
|
|
869
896
|
};
|
|
870
897
|
|
|
898
|
+
/**
|
|
899
|
+
* BatchReadMonitorsV2Response is the v2 twin of BatchGetMonitorsResponse: the
|
|
900
|
+
* stored entity (envelope + spec) per uuid instead of YAML text, with the same
|
|
901
|
+
* per-uuid partial success — a miss lands in Errors and never fails the batch.
|
|
902
|
+
*/
|
|
903
|
+
export type BatchReadMonitorsV2Response = {
|
|
904
|
+
errors?: Array<BatchGetMonitorsError>;
|
|
905
|
+
failedCount?: number;
|
|
906
|
+
fetchedCount?: number;
|
|
907
|
+
monitors?: {
|
|
908
|
+
[key: string]: V2MonitorEntity;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
|
|
871
912
|
export type BatchUpdateDashboardTagsRequest = {
|
|
872
913
|
dashboardUuids: Array<string>;
|
|
873
914
|
/**
|
|
@@ -2091,6 +2132,10 @@ export type CreatePolicyRequest = {
|
|
|
2091
2132
|
*/
|
|
2092
2133
|
name: string;
|
|
2093
2134
|
role?: RoleMap;
|
|
2135
|
+
/**
|
|
2136
|
+
* Whether this policy grants access to sensitive (access-controlled) attributes.
|
|
2137
|
+
*/
|
|
2138
|
+
sensitiveAccess?: boolean;
|
|
2094
2139
|
};
|
|
2095
2140
|
|
|
2096
2141
|
export type CreateRecurringSilenceRequest = {
|
|
@@ -2458,6 +2503,60 @@ export type CustomRule = {
|
|
|
2458
2503
|
retention: string;
|
|
2459
2504
|
};
|
|
2460
2505
|
|
|
2506
|
+
/**
|
|
2507
|
+
* DBMMeasurementsSearchRequest queries raw statement measurement intervals.
|
|
2508
|
+
*
|
|
2509
|
+
* A GCQL query is required. count() counts intervals;
|
|
2510
|
+
* sum(calls) counts database executions.
|
|
2511
|
+
*/
|
|
2512
|
+
export type DbmMeasurementsSearchRequest = {
|
|
2513
|
+
/**
|
|
2514
|
+
* End time of the request range
|
|
2515
|
+
*/
|
|
2516
|
+
end: string;
|
|
2517
|
+
query: string;
|
|
2518
|
+
sources?: Array<Condition>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Start time of the request range
|
|
2521
|
+
*/
|
|
2522
|
+
start: string;
|
|
2523
|
+
};
|
|
2524
|
+
|
|
2525
|
+
export type DbmMeasurementsSearchTimeSeriesRequest = {
|
|
2526
|
+
/**
|
|
2527
|
+
* Positive interval used to group measurements into time buckets.
|
|
2528
|
+
*/
|
|
2529
|
+
bucketDuration: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* End time of the request range
|
|
2532
|
+
*/
|
|
2533
|
+
end: string;
|
|
2534
|
+
/**
|
|
2535
|
+
* Empty buckets contain null unless fillValue is supplied.
|
|
2536
|
+
*/
|
|
2537
|
+
fillValue?: number;
|
|
2538
|
+
query: string;
|
|
2539
|
+
sources?: Array<Condition>;
|
|
2540
|
+
/**
|
|
2541
|
+
* Start time of the request range
|
|
2542
|
+
*/
|
|
2543
|
+
start: string;
|
|
2544
|
+
valueField?: string;
|
|
2545
|
+
};
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* DDMetricInactiveBucket counts units whose only unmet metric dependency is
|
|
2549
|
+
* confirmed inactive/missing in Datadog itself, tagging every metric involved
|
|
2550
|
+
* (a unit can mix a confirmed-inactive metric with a self-observability one;
|
|
2551
|
+
* see unitMissingMetricsAreDDInactiveOnly). Datadog itself never had data for
|
|
2552
|
+
* these metrics, so groundcover correctly has none either — a genuine,
|
|
2553
|
+
* successful migration outcome, not a gap to fix.
|
|
2554
|
+
*/
|
|
2555
|
+
export type DdMetricInactiveBucket = {
|
|
2556
|
+
count?: number;
|
|
2557
|
+
metrics?: Array<TaggedMetric>;
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2461
2560
|
/**
|
|
2462
2561
|
* DashboardFiltersRequest is the POST /api/dashboards/filters request body.
|
|
2463
2562
|
*/
|
|
@@ -2925,14 +3024,21 @@ export type EventsSearchTimeSeriesRequest = {
|
|
|
2925
3024
|
|
|
2926
3025
|
/**
|
|
2927
3026
|
* ExcludedBucket counts units held out of the funnel because their only unmet
|
|
2928
|
-
* dependency is Datadog's own telemetry: a self-observability metric
|
|
2929
|
-
*
|
|
2930
|
-
*
|
|
2931
|
-
*
|
|
3027
|
+
* dependency is Datadog's own telemetry: a self-observability metric. Migration
|
|
3028
|
+
* quality has no bearing on it — it was never going to return data — so it is
|
|
3029
|
+
* reported separately rather than weighing on supported/unsupported like a
|
|
3030
|
+
* real gap would.
|
|
3031
|
+
*
|
|
3032
|
+
* A unit confirmed inactive in Datadog (IssueDDInactiveOrMissing) no longer
|
|
3033
|
+
* lands here — see StageDDMetricInactive and DDMetricInactiveBucket, its own
|
|
3034
|
+
* green success bucket under SupportedConverted. The former InactiveInDatadog
|
|
3035
|
+
* field here was removed rather than kept as an always-zero counter: nothing
|
|
3036
|
+
* outside this package ever read it (the funnelviz decoder only reads Total,
|
|
3037
|
+
* and the CLI summary printer never printed Excluded at all), so there was no
|
|
3038
|
+
* reader to preserve compatibility for.
|
|
2932
3039
|
*/
|
|
2933
3040
|
export type ExcludedBucket = {
|
|
2934
3041
|
datadog_self_observability?: MetricListBucket;
|
|
2935
|
-
inactive_in_datadog?: MetricListBucket;
|
|
2936
3042
|
total?: number;
|
|
2937
3043
|
};
|
|
2938
3044
|
|
|
@@ -2990,6 +3096,20 @@ export type ExportCapture = {
|
|
|
2990
3096
|
fullscreen?: boolean;
|
|
2991
3097
|
};
|
|
2992
3098
|
|
|
3099
|
+
/**
|
|
3100
|
+
* ExportMonitorsV2Request is the POST /api/v2/monitors/export body.
|
|
3101
|
+
*/
|
|
3102
|
+
export type ExportMonitorsV2Request = {
|
|
3103
|
+
/**
|
|
3104
|
+
* Format names the emitted resource.
|
|
3105
|
+
*/
|
|
3106
|
+
format: 'terraform';
|
|
3107
|
+
/**
|
|
3108
|
+
* UUIDs of the monitors to export, rendered in this order.
|
|
3109
|
+
*/
|
|
3110
|
+
uuids: Array<string>;
|
|
3111
|
+
};
|
|
3112
|
+
|
|
2993
3113
|
/**
|
|
2994
3114
|
* ExportRequestBody represents the request body proxied to export-service.
|
|
2995
3115
|
*/
|
|
@@ -3159,11 +3279,21 @@ export type Finding = {
|
|
|
3159
3279
|
*/
|
|
3160
3280
|
export type FunnelAssetEntry = {
|
|
3161
3281
|
asset_id?: string;
|
|
3282
|
+
/**
|
|
3283
|
+
* AssetKind names the unsupported widget/monitor type when the unit never
|
|
3284
|
+
* reached conversion, e.g. "heatmap" or "slo".
|
|
3285
|
+
*/
|
|
3286
|
+
asset_kind?: string;
|
|
3162
3287
|
asset_name?: string;
|
|
3163
3288
|
asset_type?: string;
|
|
3164
3289
|
metrics?: Array<string>;
|
|
3165
3290
|
missing_keys?: Array<string>;
|
|
3166
3291
|
missing_values?: Array<string>;
|
|
3292
|
+
/**
|
|
3293
|
+
* PrimaryDataset is the one missing dataset the unit is counted under, when
|
|
3294
|
+
* the terminal stage is a missing-dataset gap.
|
|
3295
|
+
*/
|
|
3296
|
+
primary_dataset?: string;
|
|
3167
3297
|
queries?: Array<ExecutedQuery>;
|
|
3168
3298
|
reason?: string;
|
|
3169
3299
|
stage?: string;
|
|
@@ -3277,7 +3407,7 @@ export type GetEventsOverTimeRequest = {
|
|
|
3277
3407
|
/**
|
|
3278
3408
|
* Field to sort events by.
|
|
3279
3409
|
*/
|
|
3280
|
-
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'count' | 'workload' | 'cluster';
|
|
3410
|
+
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'message' | 'count' | 'workload' | 'cluster';
|
|
3281
3411
|
/**
|
|
3282
3412
|
* Sort order.
|
|
3283
3413
|
*/
|
|
@@ -3500,6 +3630,10 @@ export type InstallAssetsResponse = {
|
|
|
3500
3630
|
* The number of assets that were already installed.
|
|
3501
3631
|
*/
|
|
3502
3632
|
alreadyInstalledCount?: number;
|
|
3633
|
+
/**
|
|
3634
|
+
* The number of assets that were not installed because they are excluded.
|
|
3635
|
+
*/
|
|
3636
|
+
excludedCount?: number;
|
|
3503
3637
|
/**
|
|
3504
3638
|
* The number of assets that failed to install.
|
|
3505
3639
|
*/
|
|
@@ -5772,6 +5906,7 @@ export type Policy = {
|
|
|
5772
5906
|
*/
|
|
5773
5907
|
readonly revisionNumber?: number;
|
|
5774
5908
|
role?: RoleMap;
|
|
5909
|
+
sensitiveAccess?: boolean;
|
|
5775
5910
|
/**
|
|
5776
5911
|
* Tenant associated with the policy.
|
|
5777
5912
|
*/
|
|
@@ -5851,6 +5986,51 @@ export type Processor = {
|
|
|
5851
5986
|
op?: string;
|
|
5852
5987
|
};
|
|
5853
5988
|
|
|
5989
|
+
/**
|
|
5990
|
+
* FlameNode contains inclusive and self weight in the selected sample unit.
|
|
5991
|
+
*/
|
|
5992
|
+
export type ProfilingFlameNode = {
|
|
5993
|
+
children?: Array<ProfilingFlameNode>;
|
|
5994
|
+
name?: string;
|
|
5995
|
+
/**
|
|
5996
|
+
* Omitted identifies a synthetic bucket, distinct from a real frame named other.
|
|
5997
|
+
*/
|
|
5998
|
+
omitted?: boolean;
|
|
5999
|
+
self?: number;
|
|
6000
|
+
value?: number;
|
|
6001
|
+
};
|
|
6002
|
+
|
|
6003
|
+
export type ProfilingFlamegraphResponse = {
|
|
6004
|
+
filteredValue?: number;
|
|
6005
|
+
period?: ProfilingPeriod;
|
|
6006
|
+
profileType?: string;
|
|
6007
|
+
root?: ProfilingFlameNode;
|
|
6008
|
+
sampleType?: string;
|
|
6009
|
+
stacks?: ProfilingStackCounts;
|
|
6010
|
+
total?: number;
|
|
6011
|
+
truncated?: boolean;
|
|
6012
|
+
unit?: string;
|
|
6013
|
+
};
|
|
6014
|
+
|
|
6015
|
+
export type ProfilingPeriod = {
|
|
6016
|
+
end?: string;
|
|
6017
|
+
start?: string;
|
|
6018
|
+
};
|
|
6019
|
+
|
|
6020
|
+
/**
|
|
6021
|
+
* StackCounts counts aggregated stacks, not samples or rendered tree nodes.
|
|
6022
|
+
*/
|
|
6023
|
+
export type ProfilingStackCounts = {
|
|
6024
|
+
/**
|
|
6025
|
+
* Stacks included in the tree before depth, node, and small-branch compaction.
|
|
6026
|
+
*/
|
|
6027
|
+
returned?: number;
|
|
6028
|
+
/**
|
|
6029
|
+
* Matching aggregated stacks before the top-stack limit or result truncation.
|
|
6030
|
+
*/
|
|
6031
|
+
total?: number;
|
|
6032
|
+
};
|
|
6033
|
+
|
|
5854
6034
|
/**
|
|
5855
6035
|
* PromqlFunction represents a function call in a PromQL query.
|
|
5856
6036
|
*/
|
|
@@ -6444,7 +6624,7 @@ export type SearchValuesRequest = {
|
|
|
6444
6624
|
/**
|
|
6445
6625
|
* Type of the search values
|
|
6446
6626
|
*/
|
|
6447
|
-
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'monitors' | 'aws_cur' | 'dashboards';
|
|
6627
|
+
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'dbm_measurements_statement' | 'monitors' | 'aws_cur' | 'dashboards' | 'profiling_samples';
|
|
6448
6628
|
};
|
|
6449
6629
|
|
|
6450
6630
|
export type SearchValuesRequestV2 = {
|
|
@@ -7116,6 +7296,7 @@ export type SuggestionReason = {
|
|
|
7116
7296
|
*/
|
|
7117
7297
|
export type SupportedConvertedBucket = {
|
|
7118
7298
|
data_set_available?: DataSetAvailableBucket;
|
|
7299
|
+
dd_metric_inactive?: DdMetricInactiveBucket;
|
|
7119
7300
|
missing_underlying_data_set?: MissingDataSetBucket;
|
|
7120
7301
|
no_data_needed?: NoDataNeededBucket;
|
|
7121
7302
|
total?: number;
|
|
@@ -7337,6 +7518,11 @@ export type TenantResponse = {
|
|
|
7337
7518
|
Used?: number;
|
|
7338
7519
|
};
|
|
7339
7520
|
|
|
7521
|
+
/**
|
|
7522
|
+
* TerraformDocument is one HCL document.
|
|
7523
|
+
*/
|
|
7524
|
+
export type TerraformDocument = string;
|
|
7525
|
+
|
|
7340
7526
|
export type TestConnectedAppRequest = {
|
|
7341
7527
|
/**
|
|
7342
7528
|
* The ID of an existing connected app (optional).
|
|
@@ -8431,6 +8617,10 @@ export type UpdatePolicyRequest = {
|
|
|
8431
8617
|
*/
|
|
8432
8618
|
name: string;
|
|
8433
8619
|
role?: RoleMap;
|
|
8620
|
+
/**
|
|
8621
|
+
* Whether this policy grants access to sensitive (access-controlled) attributes.
|
|
8622
|
+
*/
|
|
8623
|
+
sensitiveAccess?: boolean;
|
|
8434
8624
|
};
|
|
8435
8625
|
|
|
8436
8626
|
export type UpdateRecurringSilenceRequest = {
|
|
@@ -8554,6 +8744,14 @@ export type UsedByResponse = {
|
|
|
8554
8744
|
type?: string;
|
|
8555
8745
|
};
|
|
8556
8746
|
|
|
8747
|
+
/**
|
|
8748
|
+
* Channel identifies a Slack channel.
|
|
8749
|
+
*/
|
|
8750
|
+
export type V2Channel = {
|
|
8751
|
+
id?: string;
|
|
8752
|
+
name?: string;
|
|
8753
|
+
};
|
|
8754
|
+
|
|
8557
8755
|
export type V2CreateSilenceRequest = {
|
|
8558
8756
|
/**
|
|
8559
8757
|
* Optional comment
|
|
@@ -8596,6 +8794,220 @@ export type V2CreateSilenceRequest = {
|
|
|
8596
8794
|
type: 'one_time' | 'recurring';
|
|
8597
8795
|
};
|
|
8598
8796
|
|
|
8797
|
+
/**
|
|
8798
|
+
* DestinationApp carries at most one delivery-options block. The spec cannot
|
|
8799
|
+
* check the block against the app id's integration type; the write service does.
|
|
8800
|
+
*/
|
|
8801
|
+
export type V2DestinationApp = {
|
|
8802
|
+
id?: string;
|
|
8803
|
+
linear?: V2LinearDeliveryOptions;
|
|
8804
|
+
slack?: V2SlackDeliveryOptions;
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8807
|
+
/**
|
|
8808
|
+
* Destinations is direct delivery. StatusFilters omitted = all.
|
|
8809
|
+
*/
|
|
8810
|
+
export type V2Destinations = {
|
|
8811
|
+
apps?: Array<V2DestinationApp>;
|
|
8812
|
+
statusFilters?: Array<IssueStatus>;
|
|
8813
|
+
};
|
|
8814
|
+
|
|
8815
|
+
/**
|
|
8816
|
+
* EvaluationInterval carries the evaluation cadence and pending window. The
|
|
8817
|
+
* prom_duration tag param is the example in the error text, not a bound; the
|
|
8818
|
+
* real bounds are struct-level rules.
|
|
8819
|
+
*/
|
|
8820
|
+
export type V2EvaluationInterval = {
|
|
8821
|
+
/**
|
|
8822
|
+
* Whole seconds, >= 1m (plus rollup floors — see the struct-level rules).
|
|
8823
|
+
*/
|
|
8824
|
+
interval?: string;
|
|
8825
|
+
/**
|
|
8826
|
+
* nil = default applied on read. Whole seconds.
|
|
8827
|
+
*/
|
|
8828
|
+
pendingFor?: string;
|
|
8829
|
+
};
|
|
8830
|
+
|
|
8831
|
+
/**
|
|
8832
|
+
* FiringThreshold is the static-threshold condition. Values cardinality is
|
|
8833
|
+
* per-operator: 1 scalar, 2 ascending.
|
|
8834
|
+
*/
|
|
8835
|
+
export type V2FiringThreshold = {
|
|
8836
|
+
operator?: string;
|
|
8837
|
+
recovery?: V2RecoveryThreshold;
|
|
8838
|
+
values?: Array<number>;
|
|
8839
|
+
};
|
|
8840
|
+
|
|
8841
|
+
/**
|
|
8842
|
+
* IssueDisplay controls how the resulting issue is rendered.
|
|
8843
|
+
*/
|
|
8844
|
+
export type V2IssueDisplay = {
|
|
8845
|
+
contextLabels?: Array<string>;
|
|
8846
|
+
description?: string;
|
|
8847
|
+
templateLanguage?: string;
|
|
8848
|
+
title?: string;
|
|
8849
|
+
};
|
|
8850
|
+
|
|
8851
|
+
/**
|
|
8852
|
+
* LinearDeliveryOptions requires TeamID when present. Delivery treats an
|
|
8853
|
+
* omitted ResolveTicket as true, so ResolvedStatusID is required unless it is
|
|
8854
|
+
* explicitly false.
|
|
8855
|
+
*/
|
|
8856
|
+
export type V2LinearDeliveryOptions = {
|
|
8857
|
+
assigneeId?: string;
|
|
8858
|
+
delegateId?: string;
|
|
8859
|
+
labelIds?: Array<string>;
|
|
8860
|
+
projectId?: string;
|
|
8861
|
+
resolveTicket?: boolean;
|
|
8862
|
+
resolvedStatusId?: string;
|
|
8863
|
+
teamId?: string;
|
|
8864
|
+
};
|
|
8865
|
+
|
|
8866
|
+
/**
|
|
8867
|
+
* V2MonitorEntity is the wire shape of one monitor in the batch-read
|
|
8868
|
+
* response: the envelope fields callers use, plus the spec. A type of its
|
|
8869
|
+
* own, not model.Monitor — a column added to that storage row does not
|
|
8870
|
+
* automatically reach this response.
|
|
8871
|
+
*/
|
|
8872
|
+
export type V2MonitorEntity = {
|
|
8873
|
+
backendId?: string;
|
|
8874
|
+
createdAt?: string;
|
|
8875
|
+
createdByEmail?: string;
|
|
8876
|
+
grafanaMonitorId?: string;
|
|
8877
|
+
isProvisioned?: boolean;
|
|
8878
|
+
originId?: string;
|
|
8879
|
+
originType?: string;
|
|
8880
|
+
spec?: V2MonitorSpec;
|
|
8881
|
+
updatedAt?: string;
|
|
8882
|
+
uuid?: string;
|
|
8883
|
+
};
|
|
8884
|
+
|
|
8885
|
+
/**
|
|
8886
|
+
* Model wraps the single query and the thresholds list, capped at one item.
|
|
8887
|
+
*/
|
|
8888
|
+
export type V2MonitorModel = {
|
|
8889
|
+
query?: V2Query;
|
|
8890
|
+
thresholds?: Array<V2ThresholdSpec>;
|
|
8891
|
+
};
|
|
8892
|
+
|
|
8893
|
+
/**
|
|
8894
|
+
* MonitorSpec is the v2 monitor document. Value = required outright.
|
|
8895
|
+
* Pointer = optional: nil means the author omitted it, and that intent is
|
|
8896
|
+
* PRESERVED in the stored document — defaults are applied on read, never
|
|
8897
|
+
* baked in at write.
|
|
8898
|
+
*
|
|
8899
|
+
* The validate tags include custom ones registered only by this package.
|
|
8900
|
+
* Validate through ValidateSpec — a bare validator panics.
|
|
8901
|
+
*/
|
|
8902
|
+
export type V2MonitorSpec = {
|
|
8903
|
+
/**
|
|
8904
|
+
* Deprecated: workflows-only. Reserved _gc_* keys are rejected.
|
|
8905
|
+
*/
|
|
8906
|
+
annotations?: {
|
|
8907
|
+
[key: string]: string;
|
|
8908
|
+
};
|
|
8909
|
+
/**
|
|
8910
|
+
* nil = default (true) applied on read.
|
|
8911
|
+
*/
|
|
8912
|
+
autoResolve?: boolean;
|
|
8913
|
+
/**
|
|
8914
|
+
* Category is free-form — the built-ins use Infrastructure|API|… but custom
|
|
8915
|
+
* values exist in the fleet, so there is no enum. "" is omitted/no-data.
|
|
8916
|
+
*/
|
|
8917
|
+
category?: string;
|
|
8918
|
+
evaluationErrorState?: string;
|
|
8919
|
+
evaluationInterval?: V2EvaluationInterval;
|
|
8920
|
+
evaluationNoDataState?: string;
|
|
8921
|
+
isPaused?: boolean;
|
|
8922
|
+
issueDisplay?: V2IssueDisplay;
|
|
8923
|
+
/**
|
|
8924
|
+
* Reserved _gc_* keys are rejected.
|
|
8925
|
+
*/
|
|
8926
|
+
labels?: {
|
|
8927
|
+
[key: string]: string;
|
|
8928
|
+
};
|
|
8929
|
+
/**
|
|
8930
|
+
* MeasurementType switches the timeline query builder; nil = derived on read.
|
|
8931
|
+
*/
|
|
8932
|
+
measurementType?: string;
|
|
8933
|
+
model?: V2MonitorModel;
|
|
8934
|
+
name?: string;
|
|
8935
|
+
notificationSettings?: V2NotificationSettings;
|
|
8936
|
+
/**
|
|
8937
|
+
* Severity is "" when omitted; that intent is preserved, defaults are
|
|
8938
|
+
* applied on read.
|
|
8939
|
+
*/
|
|
8940
|
+
severity?: string;
|
|
8941
|
+
/**
|
|
8942
|
+
* Tags are free-form; items must not be blank.
|
|
8943
|
+
*/
|
|
8944
|
+
tags?: Array<string>;
|
|
8945
|
+
team?: string;
|
|
8946
|
+
/**
|
|
8947
|
+
* Type is the dataType; query language and datasource are inferred from it.
|
|
8948
|
+
* monitor_type defers to the registry — see registry.go for the set.
|
|
8949
|
+
*/
|
|
8950
|
+
type?: string;
|
|
8951
|
+
};
|
|
8952
|
+
|
|
8953
|
+
/**
|
|
8954
|
+
* NoNotifications is the suppress-everything mode marker.
|
|
8955
|
+
*/
|
|
8956
|
+
export type V2NoNotifications = {
|
|
8957
|
+
[key: string]: unknown;
|
|
8958
|
+
};
|
|
8959
|
+
|
|
8960
|
+
/**
|
|
8961
|
+
* NotificationRoutes is the route-based delivery mode marker.
|
|
8962
|
+
*/
|
|
8963
|
+
export type V2NotificationRoutes = {
|
|
8964
|
+
[key: string]: unknown;
|
|
8965
|
+
};
|
|
8966
|
+
|
|
8967
|
+
/**
|
|
8968
|
+
* NotificationSettings requires exactly one mode block; there is no default.
|
|
8969
|
+
*
|
|
8970
|
+
* The renotification knobs apply to any mode.
|
|
8971
|
+
*/
|
|
8972
|
+
export type V2NotificationSettings = {
|
|
8973
|
+
destinations?: V2Destinations;
|
|
8974
|
+
disableRenotification?: boolean;
|
|
8975
|
+
noNotifications?: V2NoNotifications;
|
|
8976
|
+
notificationRoutes?: V2NotificationRoutes;
|
|
8977
|
+
renotificationInterval?: string;
|
|
8978
|
+
};
|
|
8979
|
+
|
|
8980
|
+
/**
|
|
8981
|
+
* Query is the whole expression, in the language MonitorSpec.Type implies.
|
|
8982
|
+
*/
|
|
8983
|
+
export type V2Query = {
|
|
8984
|
+
/**
|
|
8985
|
+
* Shifts the eval window back, length unchanged. Whole seconds, at most 7d.
|
|
8986
|
+
* Rejected where Rollup is.
|
|
8987
|
+
*/
|
|
8988
|
+
evaluationDelay?: string;
|
|
8989
|
+
expression?: string;
|
|
8990
|
+
/**
|
|
8991
|
+
* Lookback window: whole seconds, positive. Required when the type has a
|
|
8992
|
+
* time axis, rejected otherwise (sql, timeless datasets).
|
|
8993
|
+
*/
|
|
8994
|
+
rollup?: string;
|
|
8995
|
+
/**
|
|
8996
|
+
* Required iff metrics, rejected otherwise.
|
|
8997
|
+
*/
|
|
8998
|
+
rollupFunction?: string;
|
|
8999
|
+
};
|
|
9000
|
+
|
|
9001
|
+
/**
|
|
9002
|
+
* RecoveryThreshold is the hysteresis condition; its region must not overlap
|
|
9003
|
+
* the firing one. Operator is the author's choice from the recovery-capable
|
|
9004
|
+
* set — required, never defaulted.
|
|
9005
|
+
*/
|
|
9006
|
+
export type V2RecoveryThreshold = {
|
|
9007
|
+
operator?: string;
|
|
9008
|
+
values?: Array<number>;
|
|
9009
|
+
};
|
|
9010
|
+
|
|
8599
9011
|
export type V2SilenceResponse = {
|
|
8600
9012
|
active?: boolean;
|
|
8601
9013
|
comment?: string;
|
|
@@ -8637,6 +9049,20 @@ export type V2SilencesListResponse = {
|
|
|
8637
9049
|
silences?: Array<V2SilenceResponse>;
|
|
8638
9050
|
};
|
|
8639
9051
|
|
|
9052
|
+
/**
|
|
9053
|
+
* SlackDeliveryOptions requires a non-empty Channels when present.
|
|
9054
|
+
*/
|
|
9055
|
+
export type V2SlackDeliveryOptions = {
|
|
9056
|
+
channels?: Array<V2Channel>;
|
|
9057
|
+
};
|
|
9058
|
+
|
|
9059
|
+
/**
|
|
9060
|
+
* ThresholdSpec is one condition block; Firing is its only arm today.
|
|
9061
|
+
*/
|
|
9062
|
+
export type V2ThresholdSpec = {
|
|
9063
|
+
firing?: V2FiringThreshold;
|
|
9064
|
+
};
|
|
9065
|
+
|
|
8640
9066
|
export type V2UpdateSilenceRequest = {
|
|
8641
9067
|
comment?: string;
|
|
8642
9068
|
/**
|
|
@@ -9328,6 +9754,7 @@ export type PolicyWritable = {
|
|
|
9328
9754
|
*/
|
|
9329
9755
|
name: string;
|
|
9330
9756
|
role?: RoleMap;
|
|
9757
|
+
sensitiveAccess?: boolean;
|
|
9331
9758
|
};
|
|
9332
9759
|
|
|
9333
9760
|
/**
|
|
@@ -12343,6 +12770,71 @@ export type UpdateMetricsPipelineConfigResponses = {
|
|
|
12343
12770
|
|
|
12344
12771
|
export type UpdateMetricsPipelineConfigResponse = UpdateMetricsPipelineConfigResponses[keyof UpdateMetricsPipelineConfigResponses];
|
|
12345
12772
|
|
|
12773
|
+
export type GetProfilingFlamegraphData = {
|
|
12774
|
+
body?: never;
|
|
12775
|
+
path?: never;
|
|
12776
|
+
query: {
|
|
12777
|
+
/**
|
|
12778
|
+
* Start time of the request range
|
|
12779
|
+
*/
|
|
12780
|
+
start: string;
|
|
12781
|
+
/**
|
|
12782
|
+
* End time of the request range
|
|
12783
|
+
*/
|
|
12784
|
+
end: string;
|
|
12785
|
+
/**
|
|
12786
|
+
* GCQL filter expression pinning workload, profile_type, and sample_type.
|
|
12787
|
+
*/
|
|
12788
|
+
query: string;
|
|
12789
|
+
/**
|
|
12790
|
+
* Maximum distinct stacks. Defaults to 6000 and is capped at 50000.
|
|
12791
|
+
*/
|
|
12792
|
+
limit?: number;
|
|
12793
|
+
};
|
|
12794
|
+
url: '/api/profiling/flamegraph';
|
|
12795
|
+
};
|
|
12796
|
+
|
|
12797
|
+
export type GetProfilingFlamegraphErrors = {
|
|
12798
|
+
/**
|
|
12799
|
+
* ErrorResponse defines a common error response structure.
|
|
12800
|
+
*/
|
|
12801
|
+
400: {
|
|
12802
|
+
message?: string;
|
|
12803
|
+
};
|
|
12804
|
+
/**
|
|
12805
|
+
* ErrorResponse defines a common error response structure.
|
|
12806
|
+
*/
|
|
12807
|
+
404: {
|
|
12808
|
+
message?: string;
|
|
12809
|
+
};
|
|
12810
|
+
/**
|
|
12811
|
+
* ErrorResponse defines a common error response structure.
|
|
12812
|
+
*/
|
|
12813
|
+
422: {
|
|
12814
|
+
message?: string;
|
|
12815
|
+
};
|
|
12816
|
+
/**
|
|
12817
|
+
* ErrorResponse defines a common error response structure.
|
|
12818
|
+
*/
|
|
12819
|
+
500: {
|
|
12820
|
+
message?: string;
|
|
12821
|
+
};
|
|
12822
|
+
/**
|
|
12823
|
+
* ErrorResponse defines a common error response structure.
|
|
12824
|
+
*/
|
|
12825
|
+
504: {
|
|
12826
|
+
message?: string;
|
|
12827
|
+
};
|
|
12828
|
+
};
|
|
12829
|
+
|
|
12830
|
+
export type GetProfilingFlamegraphError = GetProfilingFlamegraphErrors[keyof GetProfilingFlamegraphErrors];
|
|
12831
|
+
|
|
12832
|
+
export type GetProfilingFlamegraphResponses = {
|
|
12833
|
+
200: ProfilingFlamegraphResponse;
|
|
12834
|
+
};
|
|
12835
|
+
|
|
12836
|
+
export type GetProfilingFlamegraphResponse = GetProfilingFlamegraphResponses[keyof GetProfilingFlamegraphResponses];
|
|
12837
|
+
|
|
12346
12838
|
export type DeleteApiKeyData = {
|
|
12347
12839
|
body?: never;
|
|
12348
12840
|
path: {
|
|
@@ -13743,3 +14235,36 @@ export type SearchTracesError = SearchTracesErrors[keyof SearchTracesErrors];
|
|
|
13743
14235
|
export type SearchTracesResponses = {
|
|
13744
14236
|
200: unknown;
|
|
13745
14237
|
};
|
|
14238
|
+
|
|
14239
|
+
export type ExportMonitorsV2Data = {
|
|
14240
|
+
body: ExportMonitorsV2Request;
|
|
14241
|
+
path?: never;
|
|
14242
|
+
query?: never;
|
|
14243
|
+
url: '/api/v2/monitors/export';
|
|
14244
|
+
};
|
|
14245
|
+
|
|
14246
|
+
export type ExportMonitorsV2Errors = {
|
|
14247
|
+
/**
|
|
14248
|
+
* ErrorResponse defines a common error response structure.
|
|
14249
|
+
*/
|
|
14250
|
+
400: {
|
|
14251
|
+
message?: string;
|
|
14252
|
+
};
|
|
14253
|
+
/**
|
|
14254
|
+
* ErrorResponse defines a common error response structure.
|
|
14255
|
+
*/
|
|
14256
|
+
500: {
|
|
14257
|
+
message?: string;
|
|
14258
|
+
};
|
|
14259
|
+
};
|
|
14260
|
+
|
|
14261
|
+
export type ExportMonitorsV2Error = ExportMonitorsV2Errors[keyof ExportMonitorsV2Errors];
|
|
14262
|
+
|
|
14263
|
+
export type ExportMonitorsV2Responses = {
|
|
14264
|
+
/**
|
|
14265
|
+
* ExportMonitorsV2ResponseWrapper is the HCL document, served as text/plain.
|
|
14266
|
+
*/
|
|
14267
|
+
200: TerraformDocument;
|
|
14268
|
+
};
|
|
14269
|
+
|
|
14270
|
+
export type ExportMonitorsV2Response = ExportMonitorsV2Responses[keyof ExportMonitorsV2Responses];
|