@groundcover/api-client 0.21.0 → 0.22.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 +485 -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 +523 -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
|
/**
|
|
@@ -2458,6 +2499,60 @@ export type CustomRule = {
|
|
|
2458
2499
|
retention: string;
|
|
2459
2500
|
};
|
|
2460
2501
|
|
|
2502
|
+
/**
|
|
2503
|
+
* DBMMeasurementsSearchRequest queries raw statement measurement intervals.
|
|
2504
|
+
*
|
|
2505
|
+
* A GCQL query is required. count() counts intervals;
|
|
2506
|
+
* sum(calls) counts database executions.
|
|
2507
|
+
*/
|
|
2508
|
+
export type DbmMeasurementsSearchRequest = {
|
|
2509
|
+
/**
|
|
2510
|
+
* End time of the request range
|
|
2511
|
+
*/
|
|
2512
|
+
end: string;
|
|
2513
|
+
query: string;
|
|
2514
|
+
sources?: Array<Condition>;
|
|
2515
|
+
/**
|
|
2516
|
+
* Start time of the request range
|
|
2517
|
+
*/
|
|
2518
|
+
start: string;
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
export type DbmMeasurementsSearchTimeSeriesRequest = {
|
|
2522
|
+
/**
|
|
2523
|
+
* Positive interval used to group measurements into time buckets.
|
|
2524
|
+
*/
|
|
2525
|
+
bucketDuration: string;
|
|
2526
|
+
/**
|
|
2527
|
+
* End time of the request range
|
|
2528
|
+
*/
|
|
2529
|
+
end: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* Empty buckets contain null unless fillValue is supplied.
|
|
2532
|
+
*/
|
|
2533
|
+
fillValue?: number;
|
|
2534
|
+
query: string;
|
|
2535
|
+
sources?: Array<Condition>;
|
|
2536
|
+
/**
|
|
2537
|
+
* Start time of the request range
|
|
2538
|
+
*/
|
|
2539
|
+
start: string;
|
|
2540
|
+
valueField?: string;
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* DDMetricInactiveBucket counts units whose only unmet metric dependency is
|
|
2545
|
+
* confirmed inactive/missing in Datadog itself, tagging every metric involved
|
|
2546
|
+
* (a unit can mix a confirmed-inactive metric with a self-observability one;
|
|
2547
|
+
* see unitMissingMetricsAreDDInactiveOnly). Datadog itself never had data for
|
|
2548
|
+
* these metrics, so groundcover correctly has none either — a genuine,
|
|
2549
|
+
* successful migration outcome, not a gap to fix.
|
|
2550
|
+
*/
|
|
2551
|
+
export type DdMetricInactiveBucket = {
|
|
2552
|
+
count?: number;
|
|
2553
|
+
metrics?: Array<TaggedMetric>;
|
|
2554
|
+
};
|
|
2555
|
+
|
|
2461
2556
|
/**
|
|
2462
2557
|
* DashboardFiltersRequest is the POST /api/dashboards/filters request body.
|
|
2463
2558
|
*/
|
|
@@ -2925,14 +3020,21 @@ export type EventsSearchTimeSeriesRequest = {
|
|
|
2925
3020
|
|
|
2926
3021
|
/**
|
|
2927
3022
|
* 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
|
-
*
|
|
3023
|
+
* dependency is Datadog's own telemetry: a self-observability metric. Migration
|
|
3024
|
+
* quality has no bearing on it — it was never going to return data — so it is
|
|
3025
|
+
* reported separately rather than weighing on supported/unsupported like a
|
|
3026
|
+
* real gap would.
|
|
3027
|
+
*
|
|
3028
|
+
* A unit confirmed inactive in Datadog (IssueDDInactiveOrMissing) no longer
|
|
3029
|
+
* lands here — see StageDDMetricInactive and DDMetricInactiveBucket, its own
|
|
3030
|
+
* green success bucket under SupportedConverted. The former InactiveInDatadog
|
|
3031
|
+
* field here was removed rather than kept as an always-zero counter: nothing
|
|
3032
|
+
* outside this package ever read it (the funnelviz decoder only reads Total,
|
|
3033
|
+
* and the CLI summary printer never printed Excluded at all), so there was no
|
|
3034
|
+
* reader to preserve compatibility for.
|
|
2932
3035
|
*/
|
|
2933
3036
|
export type ExcludedBucket = {
|
|
2934
3037
|
datadog_self_observability?: MetricListBucket;
|
|
2935
|
-
inactive_in_datadog?: MetricListBucket;
|
|
2936
3038
|
total?: number;
|
|
2937
3039
|
};
|
|
2938
3040
|
|
|
@@ -2990,6 +3092,20 @@ export type ExportCapture = {
|
|
|
2990
3092
|
fullscreen?: boolean;
|
|
2991
3093
|
};
|
|
2992
3094
|
|
|
3095
|
+
/**
|
|
3096
|
+
* ExportMonitorsV2Request is the POST /api/v2/monitors/export body.
|
|
3097
|
+
*/
|
|
3098
|
+
export type ExportMonitorsV2Request = {
|
|
3099
|
+
/**
|
|
3100
|
+
* Format names the emitted resource.
|
|
3101
|
+
*/
|
|
3102
|
+
format: 'terraform';
|
|
3103
|
+
/**
|
|
3104
|
+
* UUIDs of the monitors to export, rendered in this order.
|
|
3105
|
+
*/
|
|
3106
|
+
uuids: Array<string>;
|
|
3107
|
+
};
|
|
3108
|
+
|
|
2993
3109
|
/**
|
|
2994
3110
|
* ExportRequestBody represents the request body proxied to export-service.
|
|
2995
3111
|
*/
|
|
@@ -3159,11 +3275,21 @@ export type Finding = {
|
|
|
3159
3275
|
*/
|
|
3160
3276
|
export type FunnelAssetEntry = {
|
|
3161
3277
|
asset_id?: string;
|
|
3278
|
+
/**
|
|
3279
|
+
* AssetKind names the unsupported widget/monitor type when the unit never
|
|
3280
|
+
* reached conversion, e.g. "heatmap" or "slo".
|
|
3281
|
+
*/
|
|
3282
|
+
asset_kind?: string;
|
|
3162
3283
|
asset_name?: string;
|
|
3163
3284
|
asset_type?: string;
|
|
3164
3285
|
metrics?: Array<string>;
|
|
3165
3286
|
missing_keys?: Array<string>;
|
|
3166
3287
|
missing_values?: Array<string>;
|
|
3288
|
+
/**
|
|
3289
|
+
* PrimaryDataset is the one missing dataset the unit is counted under, when
|
|
3290
|
+
* the terminal stage is a missing-dataset gap.
|
|
3291
|
+
*/
|
|
3292
|
+
primary_dataset?: string;
|
|
3167
3293
|
queries?: Array<ExecutedQuery>;
|
|
3168
3294
|
reason?: string;
|
|
3169
3295
|
stage?: string;
|
|
@@ -3277,7 +3403,7 @@ export type GetEventsOverTimeRequest = {
|
|
|
3277
3403
|
/**
|
|
3278
3404
|
* Field to sort events by.
|
|
3279
3405
|
*/
|
|
3280
|
-
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'count' | 'workload' | 'cluster';
|
|
3406
|
+
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'message' | 'count' | 'workload' | 'cluster';
|
|
3281
3407
|
/**
|
|
3282
3408
|
* Sort order.
|
|
3283
3409
|
*/
|
|
@@ -3500,6 +3626,10 @@ export type InstallAssetsResponse = {
|
|
|
3500
3626
|
* The number of assets that were already installed.
|
|
3501
3627
|
*/
|
|
3502
3628
|
alreadyInstalledCount?: number;
|
|
3629
|
+
/**
|
|
3630
|
+
* The number of assets that were not installed because they are excluded.
|
|
3631
|
+
*/
|
|
3632
|
+
excludedCount?: number;
|
|
3503
3633
|
/**
|
|
3504
3634
|
* The number of assets that failed to install.
|
|
3505
3635
|
*/
|
|
@@ -5851,6 +5981,51 @@ export type Processor = {
|
|
|
5851
5981
|
op?: string;
|
|
5852
5982
|
};
|
|
5853
5983
|
|
|
5984
|
+
/**
|
|
5985
|
+
* FlameNode contains inclusive and self weight in the selected sample unit.
|
|
5986
|
+
*/
|
|
5987
|
+
export type ProfilingFlameNode = {
|
|
5988
|
+
children?: Array<ProfilingFlameNode>;
|
|
5989
|
+
name?: string;
|
|
5990
|
+
/**
|
|
5991
|
+
* Omitted identifies a synthetic bucket, distinct from a real frame named other.
|
|
5992
|
+
*/
|
|
5993
|
+
omitted?: boolean;
|
|
5994
|
+
self?: number;
|
|
5995
|
+
value?: number;
|
|
5996
|
+
};
|
|
5997
|
+
|
|
5998
|
+
export type ProfilingFlamegraphResponse = {
|
|
5999
|
+
filteredValue?: number;
|
|
6000
|
+
period?: ProfilingPeriod;
|
|
6001
|
+
profileType?: string;
|
|
6002
|
+
root?: ProfilingFlameNode;
|
|
6003
|
+
sampleType?: string;
|
|
6004
|
+
stacks?: ProfilingStackCounts;
|
|
6005
|
+
total?: number;
|
|
6006
|
+
truncated?: boolean;
|
|
6007
|
+
unit?: string;
|
|
6008
|
+
};
|
|
6009
|
+
|
|
6010
|
+
export type ProfilingPeriod = {
|
|
6011
|
+
end?: string;
|
|
6012
|
+
start?: string;
|
|
6013
|
+
};
|
|
6014
|
+
|
|
6015
|
+
/**
|
|
6016
|
+
* StackCounts counts aggregated stacks, not samples or rendered tree nodes.
|
|
6017
|
+
*/
|
|
6018
|
+
export type ProfilingStackCounts = {
|
|
6019
|
+
/**
|
|
6020
|
+
* Stacks included in the tree before depth, node, and small-branch compaction.
|
|
6021
|
+
*/
|
|
6022
|
+
returned?: number;
|
|
6023
|
+
/**
|
|
6024
|
+
* Matching aggregated stacks before the top-stack limit or result truncation.
|
|
6025
|
+
*/
|
|
6026
|
+
total?: number;
|
|
6027
|
+
};
|
|
6028
|
+
|
|
5854
6029
|
/**
|
|
5855
6030
|
* PromqlFunction represents a function call in a PromQL query.
|
|
5856
6031
|
*/
|
|
@@ -6444,7 +6619,7 @@ export type SearchValuesRequest = {
|
|
|
6444
6619
|
/**
|
|
6445
6620
|
* Type of the search values
|
|
6446
6621
|
*/
|
|
6447
|
-
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'monitors' | 'aws_cur' | 'dashboards';
|
|
6622
|
+
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'dbm_measurements_statement' | 'monitors' | 'aws_cur' | 'dashboards' | 'profiling_samples';
|
|
6448
6623
|
};
|
|
6449
6624
|
|
|
6450
6625
|
export type SearchValuesRequestV2 = {
|
|
@@ -7116,6 +7291,7 @@ export type SuggestionReason = {
|
|
|
7116
7291
|
*/
|
|
7117
7292
|
export type SupportedConvertedBucket = {
|
|
7118
7293
|
data_set_available?: DataSetAvailableBucket;
|
|
7294
|
+
dd_metric_inactive?: DdMetricInactiveBucket;
|
|
7119
7295
|
missing_underlying_data_set?: MissingDataSetBucket;
|
|
7120
7296
|
no_data_needed?: NoDataNeededBucket;
|
|
7121
7297
|
total?: number;
|
|
@@ -7337,6 +7513,11 @@ export type TenantResponse = {
|
|
|
7337
7513
|
Used?: number;
|
|
7338
7514
|
};
|
|
7339
7515
|
|
|
7516
|
+
/**
|
|
7517
|
+
* TerraformDocument is one HCL document.
|
|
7518
|
+
*/
|
|
7519
|
+
export type TerraformDocument = string;
|
|
7520
|
+
|
|
7340
7521
|
export type TestConnectedAppRequest = {
|
|
7341
7522
|
/**
|
|
7342
7523
|
* The ID of an existing connected app (optional).
|
|
@@ -8554,6 +8735,14 @@ export type UsedByResponse = {
|
|
|
8554
8735
|
type?: string;
|
|
8555
8736
|
};
|
|
8556
8737
|
|
|
8738
|
+
/**
|
|
8739
|
+
* Channel identifies a Slack channel.
|
|
8740
|
+
*/
|
|
8741
|
+
export type V2Channel = {
|
|
8742
|
+
id?: string;
|
|
8743
|
+
name?: string;
|
|
8744
|
+
};
|
|
8745
|
+
|
|
8557
8746
|
export type V2CreateSilenceRequest = {
|
|
8558
8747
|
/**
|
|
8559
8748
|
* Optional comment
|
|
@@ -8596,6 +8785,220 @@ export type V2CreateSilenceRequest = {
|
|
|
8596
8785
|
type: 'one_time' | 'recurring';
|
|
8597
8786
|
};
|
|
8598
8787
|
|
|
8788
|
+
/**
|
|
8789
|
+
* DestinationApp carries at most one delivery-options block. The spec cannot
|
|
8790
|
+
* check the block against the app id's integration type; the write service does.
|
|
8791
|
+
*/
|
|
8792
|
+
export type V2DestinationApp = {
|
|
8793
|
+
id?: string;
|
|
8794
|
+
linear?: V2LinearDeliveryOptions;
|
|
8795
|
+
slack?: V2SlackDeliveryOptions;
|
|
8796
|
+
};
|
|
8797
|
+
|
|
8798
|
+
/**
|
|
8799
|
+
* Destinations is direct delivery. StatusFilters omitted = all.
|
|
8800
|
+
*/
|
|
8801
|
+
export type V2Destinations = {
|
|
8802
|
+
apps?: Array<V2DestinationApp>;
|
|
8803
|
+
statusFilters?: Array<IssueStatus>;
|
|
8804
|
+
};
|
|
8805
|
+
|
|
8806
|
+
/**
|
|
8807
|
+
* EvaluationInterval carries the evaluation cadence and pending window. The
|
|
8808
|
+
* prom_duration tag param is the example in the error text, not a bound; the
|
|
8809
|
+
* real bounds are struct-level rules.
|
|
8810
|
+
*/
|
|
8811
|
+
export type V2EvaluationInterval = {
|
|
8812
|
+
/**
|
|
8813
|
+
* Whole seconds, >= 1m (plus rollup floors — see the struct-level rules).
|
|
8814
|
+
*/
|
|
8815
|
+
interval?: string;
|
|
8816
|
+
/**
|
|
8817
|
+
* nil = default applied on read. Whole seconds.
|
|
8818
|
+
*/
|
|
8819
|
+
pendingFor?: string;
|
|
8820
|
+
};
|
|
8821
|
+
|
|
8822
|
+
/**
|
|
8823
|
+
* FiringThreshold is the static-threshold condition. Values cardinality is
|
|
8824
|
+
* per-operator: 1 scalar, 2 ascending.
|
|
8825
|
+
*/
|
|
8826
|
+
export type V2FiringThreshold = {
|
|
8827
|
+
operator?: string;
|
|
8828
|
+
recovery?: V2RecoveryThreshold;
|
|
8829
|
+
values?: Array<number>;
|
|
8830
|
+
};
|
|
8831
|
+
|
|
8832
|
+
/**
|
|
8833
|
+
* IssueDisplay controls how the resulting issue is rendered.
|
|
8834
|
+
*/
|
|
8835
|
+
export type V2IssueDisplay = {
|
|
8836
|
+
contextLabels?: Array<string>;
|
|
8837
|
+
description?: string;
|
|
8838
|
+
templateLanguage?: string;
|
|
8839
|
+
title?: string;
|
|
8840
|
+
};
|
|
8841
|
+
|
|
8842
|
+
/**
|
|
8843
|
+
* LinearDeliveryOptions requires TeamID when present. Delivery treats an
|
|
8844
|
+
* omitted ResolveTicket as true, so ResolvedStatusID is required unless it is
|
|
8845
|
+
* explicitly false.
|
|
8846
|
+
*/
|
|
8847
|
+
export type V2LinearDeliveryOptions = {
|
|
8848
|
+
assigneeId?: string;
|
|
8849
|
+
delegateId?: string;
|
|
8850
|
+
labelIds?: Array<string>;
|
|
8851
|
+
projectId?: string;
|
|
8852
|
+
resolveTicket?: boolean;
|
|
8853
|
+
resolvedStatusId?: string;
|
|
8854
|
+
teamId?: string;
|
|
8855
|
+
};
|
|
8856
|
+
|
|
8857
|
+
/**
|
|
8858
|
+
* V2MonitorEntity is the wire shape of one monitor in the batch-read
|
|
8859
|
+
* response: the envelope fields callers use, plus the spec. A type of its
|
|
8860
|
+
* own, not model.Monitor — a column added to that storage row does not
|
|
8861
|
+
* automatically reach this response.
|
|
8862
|
+
*/
|
|
8863
|
+
export type V2MonitorEntity = {
|
|
8864
|
+
backendId?: string;
|
|
8865
|
+
createdAt?: string;
|
|
8866
|
+
createdByEmail?: string;
|
|
8867
|
+
grafanaMonitorId?: string;
|
|
8868
|
+
isProvisioned?: boolean;
|
|
8869
|
+
originId?: string;
|
|
8870
|
+
originType?: string;
|
|
8871
|
+
spec?: V2MonitorSpec;
|
|
8872
|
+
updatedAt?: string;
|
|
8873
|
+
uuid?: string;
|
|
8874
|
+
};
|
|
8875
|
+
|
|
8876
|
+
/**
|
|
8877
|
+
* Model wraps the single query and the thresholds list, capped at one item.
|
|
8878
|
+
*/
|
|
8879
|
+
export type V2MonitorModel = {
|
|
8880
|
+
query?: V2Query;
|
|
8881
|
+
thresholds?: Array<V2ThresholdSpec>;
|
|
8882
|
+
};
|
|
8883
|
+
|
|
8884
|
+
/**
|
|
8885
|
+
* MonitorSpec is the v2 monitor document. Value = required outright.
|
|
8886
|
+
* Pointer = optional: nil means the author omitted it, and that intent is
|
|
8887
|
+
* PRESERVED in the stored document — defaults are applied on read, never
|
|
8888
|
+
* baked in at write.
|
|
8889
|
+
*
|
|
8890
|
+
* The validate tags include custom ones registered only by this package.
|
|
8891
|
+
* Validate through ValidateSpec — a bare validator panics.
|
|
8892
|
+
*/
|
|
8893
|
+
export type V2MonitorSpec = {
|
|
8894
|
+
/**
|
|
8895
|
+
* Deprecated: workflows-only. Reserved _gc_* keys are rejected.
|
|
8896
|
+
*/
|
|
8897
|
+
annotations?: {
|
|
8898
|
+
[key: string]: string;
|
|
8899
|
+
};
|
|
8900
|
+
/**
|
|
8901
|
+
* nil = default (true) applied on read.
|
|
8902
|
+
*/
|
|
8903
|
+
autoResolve?: boolean;
|
|
8904
|
+
/**
|
|
8905
|
+
* Category is free-form — the built-ins use Infrastructure|API|… but custom
|
|
8906
|
+
* values exist in the fleet, so there is no enum. "" is omitted/no-data.
|
|
8907
|
+
*/
|
|
8908
|
+
category?: string;
|
|
8909
|
+
evaluationErrorState?: string;
|
|
8910
|
+
evaluationInterval?: V2EvaluationInterval;
|
|
8911
|
+
evaluationNoDataState?: string;
|
|
8912
|
+
isPaused?: boolean;
|
|
8913
|
+
issueDisplay?: V2IssueDisplay;
|
|
8914
|
+
/**
|
|
8915
|
+
* Reserved _gc_* keys are rejected.
|
|
8916
|
+
*/
|
|
8917
|
+
labels?: {
|
|
8918
|
+
[key: string]: string;
|
|
8919
|
+
};
|
|
8920
|
+
/**
|
|
8921
|
+
* MeasurementType switches the timeline query builder; nil = derived on read.
|
|
8922
|
+
*/
|
|
8923
|
+
measurementType?: string;
|
|
8924
|
+
model?: V2MonitorModel;
|
|
8925
|
+
name?: string;
|
|
8926
|
+
notificationSettings?: V2NotificationSettings;
|
|
8927
|
+
/**
|
|
8928
|
+
* Severity is "" when omitted; that intent is preserved, defaults are
|
|
8929
|
+
* applied on read.
|
|
8930
|
+
*/
|
|
8931
|
+
severity?: string;
|
|
8932
|
+
/**
|
|
8933
|
+
* Tags are free-form; items must not be blank.
|
|
8934
|
+
*/
|
|
8935
|
+
tags?: Array<string>;
|
|
8936
|
+
team?: string;
|
|
8937
|
+
/**
|
|
8938
|
+
* Type is the dataType; query language and datasource are inferred from it.
|
|
8939
|
+
* monitor_type defers to the registry — see registry.go for the set.
|
|
8940
|
+
*/
|
|
8941
|
+
type?: string;
|
|
8942
|
+
};
|
|
8943
|
+
|
|
8944
|
+
/**
|
|
8945
|
+
* NoNotifications is the suppress-everything mode marker.
|
|
8946
|
+
*/
|
|
8947
|
+
export type V2NoNotifications = {
|
|
8948
|
+
[key: string]: unknown;
|
|
8949
|
+
};
|
|
8950
|
+
|
|
8951
|
+
/**
|
|
8952
|
+
* NotificationRoutes is the route-based delivery mode marker.
|
|
8953
|
+
*/
|
|
8954
|
+
export type V2NotificationRoutes = {
|
|
8955
|
+
[key: string]: unknown;
|
|
8956
|
+
};
|
|
8957
|
+
|
|
8958
|
+
/**
|
|
8959
|
+
* NotificationSettings requires exactly one mode block; there is no default.
|
|
8960
|
+
*
|
|
8961
|
+
* The renotification knobs apply to any mode.
|
|
8962
|
+
*/
|
|
8963
|
+
export type V2NotificationSettings = {
|
|
8964
|
+
destinations?: V2Destinations;
|
|
8965
|
+
disableRenotification?: boolean;
|
|
8966
|
+
noNotifications?: V2NoNotifications;
|
|
8967
|
+
notificationRoutes?: V2NotificationRoutes;
|
|
8968
|
+
renotificationInterval?: string;
|
|
8969
|
+
};
|
|
8970
|
+
|
|
8971
|
+
/**
|
|
8972
|
+
* Query is the whole expression, in the language MonitorSpec.Type implies.
|
|
8973
|
+
*/
|
|
8974
|
+
export type V2Query = {
|
|
8975
|
+
/**
|
|
8976
|
+
* Shifts the eval window back, length unchanged. Whole seconds, at most 7d.
|
|
8977
|
+
* Rejected where Rollup is.
|
|
8978
|
+
*/
|
|
8979
|
+
evaluationDelay?: string;
|
|
8980
|
+
expression?: string;
|
|
8981
|
+
/**
|
|
8982
|
+
* Lookback window: whole seconds, positive. Required when the type has a
|
|
8983
|
+
* time axis, rejected otherwise (sql, timeless datasets).
|
|
8984
|
+
*/
|
|
8985
|
+
rollup?: string;
|
|
8986
|
+
/**
|
|
8987
|
+
* Required iff metrics, rejected otherwise.
|
|
8988
|
+
*/
|
|
8989
|
+
rollupFunction?: string;
|
|
8990
|
+
};
|
|
8991
|
+
|
|
8992
|
+
/**
|
|
8993
|
+
* RecoveryThreshold is the hysteresis condition; its region must not overlap
|
|
8994
|
+
* the firing one. Operator is the author's choice from the recovery-capable
|
|
8995
|
+
* set — required, never defaulted.
|
|
8996
|
+
*/
|
|
8997
|
+
export type V2RecoveryThreshold = {
|
|
8998
|
+
operator?: string;
|
|
8999
|
+
values?: Array<number>;
|
|
9000
|
+
};
|
|
9001
|
+
|
|
8599
9002
|
export type V2SilenceResponse = {
|
|
8600
9003
|
active?: boolean;
|
|
8601
9004
|
comment?: string;
|
|
@@ -8637,6 +9040,20 @@ export type V2SilencesListResponse = {
|
|
|
8637
9040
|
silences?: Array<V2SilenceResponse>;
|
|
8638
9041
|
};
|
|
8639
9042
|
|
|
9043
|
+
/**
|
|
9044
|
+
* SlackDeliveryOptions requires a non-empty Channels when present.
|
|
9045
|
+
*/
|
|
9046
|
+
export type V2SlackDeliveryOptions = {
|
|
9047
|
+
channels?: Array<V2Channel>;
|
|
9048
|
+
};
|
|
9049
|
+
|
|
9050
|
+
/**
|
|
9051
|
+
* ThresholdSpec is one condition block; Firing is its only arm today.
|
|
9052
|
+
*/
|
|
9053
|
+
export type V2ThresholdSpec = {
|
|
9054
|
+
firing?: V2FiringThreshold;
|
|
9055
|
+
};
|
|
9056
|
+
|
|
8640
9057
|
export type V2UpdateSilenceRequest = {
|
|
8641
9058
|
comment?: string;
|
|
8642
9059
|
/**
|
|
@@ -12343,6 +12760,71 @@ export type UpdateMetricsPipelineConfigResponses = {
|
|
|
12343
12760
|
|
|
12344
12761
|
export type UpdateMetricsPipelineConfigResponse = UpdateMetricsPipelineConfigResponses[keyof UpdateMetricsPipelineConfigResponses];
|
|
12345
12762
|
|
|
12763
|
+
export type GetProfilingFlamegraphData = {
|
|
12764
|
+
body?: never;
|
|
12765
|
+
path?: never;
|
|
12766
|
+
query: {
|
|
12767
|
+
/**
|
|
12768
|
+
* Start time of the request range
|
|
12769
|
+
*/
|
|
12770
|
+
start: string;
|
|
12771
|
+
/**
|
|
12772
|
+
* End time of the request range
|
|
12773
|
+
*/
|
|
12774
|
+
end: string;
|
|
12775
|
+
/**
|
|
12776
|
+
* GCQL filter expression pinning workload, profile_type, and sample_type.
|
|
12777
|
+
*/
|
|
12778
|
+
query: string;
|
|
12779
|
+
/**
|
|
12780
|
+
* Maximum distinct stacks. Defaults to 6000 and is capped at 50000.
|
|
12781
|
+
*/
|
|
12782
|
+
limit?: number;
|
|
12783
|
+
};
|
|
12784
|
+
url: '/api/profiling/flamegraph';
|
|
12785
|
+
};
|
|
12786
|
+
|
|
12787
|
+
export type GetProfilingFlamegraphErrors = {
|
|
12788
|
+
/**
|
|
12789
|
+
* ErrorResponse defines a common error response structure.
|
|
12790
|
+
*/
|
|
12791
|
+
400: {
|
|
12792
|
+
message?: string;
|
|
12793
|
+
};
|
|
12794
|
+
/**
|
|
12795
|
+
* ErrorResponse defines a common error response structure.
|
|
12796
|
+
*/
|
|
12797
|
+
404: {
|
|
12798
|
+
message?: string;
|
|
12799
|
+
};
|
|
12800
|
+
/**
|
|
12801
|
+
* ErrorResponse defines a common error response structure.
|
|
12802
|
+
*/
|
|
12803
|
+
422: {
|
|
12804
|
+
message?: string;
|
|
12805
|
+
};
|
|
12806
|
+
/**
|
|
12807
|
+
* ErrorResponse defines a common error response structure.
|
|
12808
|
+
*/
|
|
12809
|
+
500: {
|
|
12810
|
+
message?: string;
|
|
12811
|
+
};
|
|
12812
|
+
/**
|
|
12813
|
+
* ErrorResponse defines a common error response structure.
|
|
12814
|
+
*/
|
|
12815
|
+
504: {
|
|
12816
|
+
message?: string;
|
|
12817
|
+
};
|
|
12818
|
+
};
|
|
12819
|
+
|
|
12820
|
+
export type GetProfilingFlamegraphError = GetProfilingFlamegraphErrors[keyof GetProfilingFlamegraphErrors];
|
|
12821
|
+
|
|
12822
|
+
export type GetProfilingFlamegraphResponses = {
|
|
12823
|
+
200: ProfilingFlamegraphResponse;
|
|
12824
|
+
};
|
|
12825
|
+
|
|
12826
|
+
export type GetProfilingFlamegraphResponse = GetProfilingFlamegraphResponses[keyof GetProfilingFlamegraphResponses];
|
|
12827
|
+
|
|
12346
12828
|
export type DeleteApiKeyData = {
|
|
12347
12829
|
body?: never;
|
|
12348
12830
|
path: {
|
|
@@ -13743,3 +14225,36 @@ export type SearchTracesError = SearchTracesErrors[keyof SearchTracesErrors];
|
|
|
13743
14225
|
export type SearchTracesResponses = {
|
|
13744
14226
|
200: unknown;
|
|
13745
14227
|
};
|
|
14228
|
+
|
|
14229
|
+
export type ExportMonitorsV2Data = {
|
|
14230
|
+
body: ExportMonitorsV2Request;
|
|
14231
|
+
path?: never;
|
|
14232
|
+
query?: never;
|
|
14233
|
+
url: '/api/v2/monitors/export';
|
|
14234
|
+
};
|
|
14235
|
+
|
|
14236
|
+
export type ExportMonitorsV2Errors = {
|
|
14237
|
+
/**
|
|
14238
|
+
* ErrorResponse defines a common error response structure.
|
|
14239
|
+
*/
|
|
14240
|
+
400: {
|
|
14241
|
+
message?: string;
|
|
14242
|
+
};
|
|
14243
|
+
/**
|
|
14244
|
+
* ErrorResponse defines a common error response structure.
|
|
14245
|
+
*/
|
|
14246
|
+
500: {
|
|
14247
|
+
message?: string;
|
|
14248
|
+
};
|
|
14249
|
+
};
|
|
14250
|
+
|
|
14251
|
+
export type ExportMonitorsV2Error = ExportMonitorsV2Errors[keyof ExportMonitorsV2Errors];
|
|
14252
|
+
|
|
14253
|
+
export type ExportMonitorsV2Responses = {
|
|
14254
|
+
/**
|
|
14255
|
+
* ExportMonitorsV2ResponseWrapper is the HCL document, served as text/plain.
|
|
14256
|
+
*/
|
|
14257
|
+
200: TerraformDocument;
|
|
14258
|
+
};
|
|
14259
|
+
|
|
14260
|
+
export type ExportMonitorsV2Response = ExportMonitorsV2Responses[keyof ExportMonitorsV2Responses];
|