@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
|
@@ -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
|
/**
|
|
@@ -2303,6 +2342,57 @@ export type CustomRule = {
|
|
|
2303
2342
|
name: string;
|
|
2304
2343
|
retention: string;
|
|
2305
2344
|
};
|
|
2345
|
+
/**
|
|
2346
|
+
* DBMMeasurementsSearchRequest queries raw statement measurement intervals.
|
|
2347
|
+
*
|
|
2348
|
+
* A GCQL query is required. count() counts intervals;
|
|
2349
|
+
* sum(calls) counts database executions.
|
|
2350
|
+
*/
|
|
2351
|
+
export type DbmMeasurementsSearchRequest = {
|
|
2352
|
+
/**
|
|
2353
|
+
* End time of the request range
|
|
2354
|
+
*/
|
|
2355
|
+
end: string;
|
|
2356
|
+
query: string;
|
|
2357
|
+
sources?: Array<Condition>;
|
|
2358
|
+
/**
|
|
2359
|
+
* Start time of the request range
|
|
2360
|
+
*/
|
|
2361
|
+
start: string;
|
|
2362
|
+
};
|
|
2363
|
+
export type DbmMeasurementsSearchTimeSeriesRequest = {
|
|
2364
|
+
/**
|
|
2365
|
+
* Positive interval used to group measurements into time buckets.
|
|
2366
|
+
*/
|
|
2367
|
+
bucketDuration: string;
|
|
2368
|
+
/**
|
|
2369
|
+
* End time of the request range
|
|
2370
|
+
*/
|
|
2371
|
+
end: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* Empty buckets contain null unless fillValue is supplied.
|
|
2374
|
+
*/
|
|
2375
|
+
fillValue?: number;
|
|
2376
|
+
query: string;
|
|
2377
|
+
sources?: Array<Condition>;
|
|
2378
|
+
/**
|
|
2379
|
+
* Start time of the request range
|
|
2380
|
+
*/
|
|
2381
|
+
start: string;
|
|
2382
|
+
valueField?: string;
|
|
2383
|
+
};
|
|
2384
|
+
/**
|
|
2385
|
+
* DDMetricInactiveBucket counts units whose only unmet metric dependency is
|
|
2386
|
+
* confirmed inactive/missing in Datadog itself, tagging every metric involved
|
|
2387
|
+
* (a unit can mix a confirmed-inactive metric with a self-observability one;
|
|
2388
|
+
* see unitMissingMetricsAreDDInactiveOnly). Datadog itself never had data for
|
|
2389
|
+
* these metrics, so groundcover correctly has none either — a genuine,
|
|
2390
|
+
* successful migration outcome, not a gap to fix.
|
|
2391
|
+
*/
|
|
2392
|
+
export type DdMetricInactiveBucket = {
|
|
2393
|
+
count?: number;
|
|
2394
|
+
metrics?: Array<TaggedMetric>;
|
|
2395
|
+
};
|
|
2306
2396
|
/**
|
|
2307
2397
|
* DashboardFiltersRequest is the POST /api/dashboards/filters request body.
|
|
2308
2398
|
*/
|
|
@@ -2728,14 +2818,21 @@ export type EventsSearchTimeSeriesRequest = {
|
|
|
2728
2818
|
};
|
|
2729
2819
|
/**
|
|
2730
2820
|
* 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
|
-
*
|
|
2821
|
+
* dependency is Datadog's own telemetry: a self-observability metric. Migration
|
|
2822
|
+
* quality has no bearing on it — it was never going to return data — so it is
|
|
2823
|
+
* reported separately rather than weighing on supported/unsupported like a
|
|
2824
|
+
* real gap would.
|
|
2825
|
+
*
|
|
2826
|
+
* A unit confirmed inactive in Datadog (IssueDDInactiveOrMissing) no longer
|
|
2827
|
+
* lands here — see StageDDMetricInactive and DDMetricInactiveBucket, its own
|
|
2828
|
+
* green success bucket under SupportedConverted. The former InactiveInDatadog
|
|
2829
|
+
* field here was removed rather than kept as an always-zero counter: nothing
|
|
2830
|
+
* outside this package ever read it (the funnelviz decoder only reads Total,
|
|
2831
|
+
* and the CLI summary printer never printed Excluded at all), so there was no
|
|
2832
|
+
* reader to preserve compatibility for.
|
|
2735
2833
|
*/
|
|
2736
2834
|
export type ExcludedBucket = {
|
|
2737
2835
|
datadog_self_observability?: MetricListBucket;
|
|
2738
|
-
inactive_in_datadog?: MetricListBucket;
|
|
2739
2836
|
total?: number;
|
|
2740
2837
|
};
|
|
2741
2838
|
/**
|
|
@@ -2788,6 +2885,19 @@ export type ExportCapture = {
|
|
|
2788
2885
|
*/
|
|
2789
2886
|
fullscreen?: boolean;
|
|
2790
2887
|
};
|
|
2888
|
+
/**
|
|
2889
|
+
* ExportMonitorsV2Request is the POST /api/v2/monitors/export body.
|
|
2890
|
+
*/
|
|
2891
|
+
export type ExportMonitorsV2Request = {
|
|
2892
|
+
/**
|
|
2893
|
+
* Format names the emitted resource.
|
|
2894
|
+
*/
|
|
2895
|
+
format: 'terraform';
|
|
2896
|
+
/**
|
|
2897
|
+
* UUIDs of the monitors to export, rendered in this order.
|
|
2898
|
+
*/
|
|
2899
|
+
uuids: Array<string>;
|
|
2900
|
+
};
|
|
2791
2901
|
/**
|
|
2792
2902
|
* ExportRequestBody represents the request body proxied to export-service.
|
|
2793
2903
|
*/
|
|
@@ -2946,11 +3056,21 @@ export type Finding = {
|
|
|
2946
3056
|
*/
|
|
2947
3057
|
export type FunnelAssetEntry = {
|
|
2948
3058
|
asset_id?: string;
|
|
3059
|
+
/**
|
|
3060
|
+
* AssetKind names the unsupported widget/monitor type when the unit never
|
|
3061
|
+
* reached conversion, e.g. "heatmap" or "slo".
|
|
3062
|
+
*/
|
|
3063
|
+
asset_kind?: string;
|
|
2949
3064
|
asset_name?: string;
|
|
2950
3065
|
asset_type?: string;
|
|
2951
3066
|
metrics?: Array<string>;
|
|
2952
3067
|
missing_keys?: Array<string>;
|
|
2953
3068
|
missing_values?: Array<string>;
|
|
3069
|
+
/**
|
|
3070
|
+
* PrimaryDataset is the one missing dataset the unit is counted under, when
|
|
3071
|
+
* the terminal stage is a missing-dataset gap.
|
|
3072
|
+
*/
|
|
3073
|
+
primary_dataset?: string;
|
|
2954
3074
|
queries?: Array<ExecutedQuery>;
|
|
2955
3075
|
reason?: string;
|
|
2956
3076
|
stage?: string;
|
|
@@ -3054,7 +3174,7 @@ export type GetEventsOverTimeRequest = {
|
|
|
3054
3174
|
/**
|
|
3055
3175
|
* Field to sort events by.
|
|
3056
3176
|
*/
|
|
3057
|
-
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'count' | 'workload' | 'cluster';
|
|
3177
|
+
sortBy: 'timestamp' | 'namespace' | 'instance' | 'object_kind' | 'firstSeen' | 'lastSeen' | 'type' | 'reason' | 'message' | 'count' | 'workload' | 'cluster';
|
|
3058
3178
|
/**
|
|
3059
3179
|
* Sort order.
|
|
3060
3180
|
*/
|
|
@@ -3260,6 +3380,10 @@ export type InstallAssetsResponse = {
|
|
|
3260
3380
|
* The number of assets that were already installed.
|
|
3261
3381
|
*/
|
|
3262
3382
|
alreadyInstalledCount?: number;
|
|
3383
|
+
/**
|
|
3384
|
+
* The number of assets that were not installed because they are excluded.
|
|
3385
|
+
*/
|
|
3386
|
+
excludedCount?: number;
|
|
3263
3387
|
/**
|
|
3264
3388
|
* The number of assets that failed to install.
|
|
3265
3389
|
*/
|
|
@@ -5430,6 +5554,47 @@ export type Processor = {
|
|
|
5430
5554
|
args?: Array<unknown>;
|
|
5431
5555
|
op?: string;
|
|
5432
5556
|
};
|
|
5557
|
+
/**
|
|
5558
|
+
* FlameNode contains inclusive and self weight in the selected sample unit.
|
|
5559
|
+
*/
|
|
5560
|
+
export type ProfilingFlameNode = {
|
|
5561
|
+
children?: Array<ProfilingFlameNode>;
|
|
5562
|
+
name?: string;
|
|
5563
|
+
/**
|
|
5564
|
+
* Omitted identifies a synthetic bucket, distinct from a real frame named other.
|
|
5565
|
+
*/
|
|
5566
|
+
omitted?: boolean;
|
|
5567
|
+
self?: number;
|
|
5568
|
+
value?: number;
|
|
5569
|
+
};
|
|
5570
|
+
export type ProfilingFlamegraphResponse = {
|
|
5571
|
+
filteredValue?: number;
|
|
5572
|
+
period?: ProfilingPeriod;
|
|
5573
|
+
profileType?: string;
|
|
5574
|
+
root?: ProfilingFlameNode;
|
|
5575
|
+
sampleType?: string;
|
|
5576
|
+
stacks?: ProfilingStackCounts;
|
|
5577
|
+
total?: number;
|
|
5578
|
+
truncated?: boolean;
|
|
5579
|
+
unit?: string;
|
|
5580
|
+
};
|
|
5581
|
+
export type ProfilingPeriod = {
|
|
5582
|
+
end?: string;
|
|
5583
|
+
start?: string;
|
|
5584
|
+
};
|
|
5585
|
+
/**
|
|
5586
|
+
* StackCounts counts aggregated stacks, not samples or rendered tree nodes.
|
|
5587
|
+
*/
|
|
5588
|
+
export type ProfilingStackCounts = {
|
|
5589
|
+
/**
|
|
5590
|
+
* Stacks included in the tree before depth, node, and small-branch compaction.
|
|
5591
|
+
*/
|
|
5592
|
+
returned?: number;
|
|
5593
|
+
/**
|
|
5594
|
+
* Matching aggregated stacks before the top-stack limit or result truncation.
|
|
5595
|
+
*/
|
|
5596
|
+
total?: number;
|
|
5597
|
+
};
|
|
5433
5598
|
/**
|
|
5434
5599
|
* PromqlFunction represents a function call in a PromQL query.
|
|
5435
5600
|
*/
|
|
@@ -5985,7 +6150,7 @@ export type SearchValuesRequest = {
|
|
|
5985
6150
|
/**
|
|
5986
6151
|
* Type of the search values
|
|
5987
6152
|
*/
|
|
5988
|
-
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'monitors' | 'aws_cur' | 'dashboards';
|
|
6153
|
+
type: 'logs' | 'traces' | 'events' | 'issues' | 'entities' | 'apm' | 'ingestion_measurements' | 'dbm_measurements_statement' | 'monitors' | 'aws_cur' | 'dashboards' | 'profiling_samples';
|
|
5989
6154
|
};
|
|
5990
6155
|
export type SearchValuesRequestV2 = {
|
|
5991
6156
|
/**
|
|
@@ -6602,6 +6767,7 @@ export type SuggestionReason = {
|
|
|
6602
6767
|
*/
|
|
6603
6768
|
export type SupportedConvertedBucket = {
|
|
6604
6769
|
data_set_available?: DataSetAvailableBucket;
|
|
6770
|
+
dd_metric_inactive?: DdMetricInactiveBucket;
|
|
6605
6771
|
missing_underlying_data_set?: MissingDataSetBucket;
|
|
6606
6772
|
no_data_needed?: NoDataNeededBucket;
|
|
6607
6773
|
total?: number;
|
|
@@ -6802,6 +6968,10 @@ export type TenantResponse = {
|
|
|
6802
6968
|
TenantName?: string;
|
|
6803
6969
|
Used?: number;
|
|
6804
6970
|
};
|
|
6971
|
+
/**
|
|
6972
|
+
* TerraformDocument is one HCL document.
|
|
6973
|
+
*/
|
|
6974
|
+
export type TerraformDocument = string;
|
|
6805
6975
|
export type TestConnectedAppRequest = {
|
|
6806
6976
|
/**
|
|
6807
6977
|
* The ID of an existing connected app (optional).
|
|
@@ -7941,6 +8111,13 @@ export type UsedByResponse = {
|
|
|
7941
8111
|
*/
|
|
7942
8112
|
type?: string;
|
|
7943
8113
|
};
|
|
8114
|
+
/**
|
|
8115
|
+
* Channel identifies a Slack channel.
|
|
8116
|
+
*/
|
|
8117
|
+
export type V2Channel = {
|
|
8118
|
+
id?: string;
|
|
8119
|
+
name?: string;
|
|
8120
|
+
};
|
|
7944
8121
|
export type V2CreateSilenceRequest = {
|
|
7945
8122
|
/**
|
|
7946
8123
|
* Optional comment
|
|
@@ -7982,6 +8159,206 @@ export type V2CreateSilenceRequest = {
|
|
|
7982
8159
|
*/
|
|
7983
8160
|
type: 'one_time' | 'recurring';
|
|
7984
8161
|
};
|
|
8162
|
+
/**
|
|
8163
|
+
* DestinationApp carries at most one delivery-options block. The spec cannot
|
|
8164
|
+
* check the block against the app id's integration type; the write service does.
|
|
8165
|
+
*/
|
|
8166
|
+
export type V2DestinationApp = {
|
|
8167
|
+
id?: string;
|
|
8168
|
+
linear?: V2LinearDeliveryOptions;
|
|
8169
|
+
slack?: V2SlackDeliveryOptions;
|
|
8170
|
+
};
|
|
8171
|
+
/**
|
|
8172
|
+
* Destinations is direct delivery. StatusFilters omitted = all.
|
|
8173
|
+
*/
|
|
8174
|
+
export type V2Destinations = {
|
|
8175
|
+
apps?: Array<V2DestinationApp>;
|
|
8176
|
+
statusFilters?: Array<IssueStatus>;
|
|
8177
|
+
};
|
|
8178
|
+
/**
|
|
8179
|
+
* EvaluationInterval carries the evaluation cadence and pending window. The
|
|
8180
|
+
* prom_duration tag param is the example in the error text, not a bound; the
|
|
8181
|
+
* real bounds are struct-level rules.
|
|
8182
|
+
*/
|
|
8183
|
+
export type V2EvaluationInterval = {
|
|
8184
|
+
/**
|
|
8185
|
+
* Whole seconds, >= 1m (plus rollup floors — see the struct-level rules).
|
|
8186
|
+
*/
|
|
8187
|
+
interval?: string;
|
|
8188
|
+
/**
|
|
8189
|
+
* nil = default applied on read. Whole seconds.
|
|
8190
|
+
*/
|
|
8191
|
+
pendingFor?: string;
|
|
8192
|
+
};
|
|
8193
|
+
/**
|
|
8194
|
+
* FiringThreshold is the static-threshold condition. Values cardinality is
|
|
8195
|
+
* per-operator: 1 scalar, 2 ascending.
|
|
8196
|
+
*/
|
|
8197
|
+
export type V2FiringThreshold = {
|
|
8198
|
+
operator?: string;
|
|
8199
|
+
recovery?: V2RecoveryThreshold;
|
|
8200
|
+
values?: Array<number>;
|
|
8201
|
+
};
|
|
8202
|
+
/**
|
|
8203
|
+
* IssueDisplay controls how the resulting issue is rendered.
|
|
8204
|
+
*/
|
|
8205
|
+
export type V2IssueDisplay = {
|
|
8206
|
+
contextLabels?: Array<string>;
|
|
8207
|
+
description?: string;
|
|
8208
|
+
templateLanguage?: string;
|
|
8209
|
+
title?: string;
|
|
8210
|
+
};
|
|
8211
|
+
/**
|
|
8212
|
+
* LinearDeliveryOptions requires TeamID when present. Delivery treats an
|
|
8213
|
+
* omitted ResolveTicket as true, so ResolvedStatusID is required unless it is
|
|
8214
|
+
* explicitly false.
|
|
8215
|
+
*/
|
|
8216
|
+
export type V2LinearDeliveryOptions = {
|
|
8217
|
+
assigneeId?: string;
|
|
8218
|
+
delegateId?: string;
|
|
8219
|
+
labelIds?: Array<string>;
|
|
8220
|
+
projectId?: string;
|
|
8221
|
+
resolveTicket?: boolean;
|
|
8222
|
+
resolvedStatusId?: string;
|
|
8223
|
+
teamId?: string;
|
|
8224
|
+
};
|
|
8225
|
+
/**
|
|
8226
|
+
* V2MonitorEntity is the wire shape of one monitor in the batch-read
|
|
8227
|
+
* response: the envelope fields callers use, plus the spec. A type of its
|
|
8228
|
+
* own, not model.Monitor — a column added to that storage row does not
|
|
8229
|
+
* automatically reach this response.
|
|
8230
|
+
*/
|
|
8231
|
+
export type V2MonitorEntity = {
|
|
8232
|
+
backendId?: string;
|
|
8233
|
+
createdAt?: string;
|
|
8234
|
+
createdByEmail?: string;
|
|
8235
|
+
grafanaMonitorId?: string;
|
|
8236
|
+
isProvisioned?: boolean;
|
|
8237
|
+
originId?: string;
|
|
8238
|
+
originType?: string;
|
|
8239
|
+
spec?: V2MonitorSpec;
|
|
8240
|
+
updatedAt?: string;
|
|
8241
|
+
uuid?: string;
|
|
8242
|
+
};
|
|
8243
|
+
/**
|
|
8244
|
+
* Model wraps the single query and the thresholds list, capped at one item.
|
|
8245
|
+
*/
|
|
8246
|
+
export type V2MonitorModel = {
|
|
8247
|
+
query?: V2Query;
|
|
8248
|
+
thresholds?: Array<V2ThresholdSpec>;
|
|
8249
|
+
};
|
|
8250
|
+
/**
|
|
8251
|
+
* MonitorSpec is the v2 monitor document. Value = required outright.
|
|
8252
|
+
* Pointer = optional: nil means the author omitted it, and that intent is
|
|
8253
|
+
* PRESERVED in the stored document — defaults are applied on read, never
|
|
8254
|
+
* baked in at write.
|
|
8255
|
+
*
|
|
8256
|
+
* The validate tags include custom ones registered only by this package.
|
|
8257
|
+
* Validate through ValidateSpec — a bare validator panics.
|
|
8258
|
+
*/
|
|
8259
|
+
export type V2MonitorSpec = {
|
|
8260
|
+
/**
|
|
8261
|
+
* Deprecated: workflows-only. Reserved _gc_* keys are rejected.
|
|
8262
|
+
*/
|
|
8263
|
+
annotations?: {
|
|
8264
|
+
[key: string]: string;
|
|
8265
|
+
};
|
|
8266
|
+
/**
|
|
8267
|
+
* nil = default (true) applied on read.
|
|
8268
|
+
*/
|
|
8269
|
+
autoResolve?: boolean;
|
|
8270
|
+
/**
|
|
8271
|
+
* Category is free-form — the built-ins use Infrastructure|API|… but custom
|
|
8272
|
+
* values exist in the fleet, so there is no enum. "" is omitted/no-data.
|
|
8273
|
+
*/
|
|
8274
|
+
category?: string;
|
|
8275
|
+
evaluationErrorState?: string;
|
|
8276
|
+
evaluationInterval?: V2EvaluationInterval;
|
|
8277
|
+
evaluationNoDataState?: string;
|
|
8278
|
+
isPaused?: boolean;
|
|
8279
|
+
issueDisplay?: V2IssueDisplay;
|
|
8280
|
+
/**
|
|
8281
|
+
* Reserved _gc_* keys are rejected.
|
|
8282
|
+
*/
|
|
8283
|
+
labels?: {
|
|
8284
|
+
[key: string]: string;
|
|
8285
|
+
};
|
|
8286
|
+
/**
|
|
8287
|
+
* MeasurementType switches the timeline query builder; nil = derived on read.
|
|
8288
|
+
*/
|
|
8289
|
+
measurementType?: string;
|
|
8290
|
+
model?: V2MonitorModel;
|
|
8291
|
+
name?: string;
|
|
8292
|
+
notificationSettings?: V2NotificationSettings;
|
|
8293
|
+
/**
|
|
8294
|
+
* Severity is "" when omitted; that intent is preserved, defaults are
|
|
8295
|
+
* applied on read.
|
|
8296
|
+
*/
|
|
8297
|
+
severity?: string;
|
|
8298
|
+
/**
|
|
8299
|
+
* Tags are free-form; items must not be blank.
|
|
8300
|
+
*/
|
|
8301
|
+
tags?: Array<string>;
|
|
8302
|
+
team?: string;
|
|
8303
|
+
/**
|
|
8304
|
+
* Type is the dataType; query language and datasource are inferred from it.
|
|
8305
|
+
* monitor_type defers to the registry — see registry.go for the set.
|
|
8306
|
+
*/
|
|
8307
|
+
type?: string;
|
|
8308
|
+
};
|
|
8309
|
+
/**
|
|
8310
|
+
* NoNotifications is the suppress-everything mode marker.
|
|
8311
|
+
*/
|
|
8312
|
+
export type V2NoNotifications = {
|
|
8313
|
+
[key: string]: unknown;
|
|
8314
|
+
};
|
|
8315
|
+
/**
|
|
8316
|
+
* NotificationRoutes is the route-based delivery mode marker.
|
|
8317
|
+
*/
|
|
8318
|
+
export type V2NotificationRoutes = {
|
|
8319
|
+
[key: string]: unknown;
|
|
8320
|
+
};
|
|
8321
|
+
/**
|
|
8322
|
+
* NotificationSettings requires exactly one mode block; there is no default.
|
|
8323
|
+
*
|
|
8324
|
+
* The renotification knobs apply to any mode.
|
|
8325
|
+
*/
|
|
8326
|
+
export type V2NotificationSettings = {
|
|
8327
|
+
destinations?: V2Destinations;
|
|
8328
|
+
disableRenotification?: boolean;
|
|
8329
|
+
noNotifications?: V2NoNotifications;
|
|
8330
|
+
notificationRoutes?: V2NotificationRoutes;
|
|
8331
|
+
renotificationInterval?: string;
|
|
8332
|
+
};
|
|
8333
|
+
/**
|
|
8334
|
+
* Query is the whole expression, in the language MonitorSpec.Type implies.
|
|
8335
|
+
*/
|
|
8336
|
+
export type V2Query = {
|
|
8337
|
+
/**
|
|
8338
|
+
* Shifts the eval window back, length unchanged. Whole seconds, at most 7d.
|
|
8339
|
+
* Rejected where Rollup is.
|
|
8340
|
+
*/
|
|
8341
|
+
evaluationDelay?: string;
|
|
8342
|
+
expression?: string;
|
|
8343
|
+
/**
|
|
8344
|
+
* Lookback window: whole seconds, positive. Required when the type has a
|
|
8345
|
+
* time axis, rejected otherwise (sql, timeless datasets).
|
|
8346
|
+
*/
|
|
8347
|
+
rollup?: string;
|
|
8348
|
+
/**
|
|
8349
|
+
* Required iff metrics, rejected otherwise.
|
|
8350
|
+
*/
|
|
8351
|
+
rollupFunction?: string;
|
|
8352
|
+
};
|
|
8353
|
+
/**
|
|
8354
|
+
* RecoveryThreshold is the hysteresis condition; its region must not overlap
|
|
8355
|
+
* the firing one. Operator is the author's choice from the recovery-capable
|
|
8356
|
+
* set — required, never defaulted.
|
|
8357
|
+
*/
|
|
8358
|
+
export type V2RecoveryThreshold = {
|
|
8359
|
+
operator?: string;
|
|
8360
|
+
values?: Array<number>;
|
|
8361
|
+
};
|
|
7985
8362
|
export type V2SilenceResponse = {
|
|
7986
8363
|
active?: boolean;
|
|
7987
8364
|
comment?: string;
|
|
@@ -8021,6 +8398,18 @@ export type V2SilencesListResponse = {
|
|
|
8021
8398
|
*/
|
|
8022
8399
|
silences?: Array<V2SilenceResponse>;
|
|
8023
8400
|
};
|
|
8401
|
+
/**
|
|
8402
|
+
* SlackDeliveryOptions requires a non-empty Channels when present.
|
|
8403
|
+
*/
|
|
8404
|
+
export type V2SlackDeliveryOptions = {
|
|
8405
|
+
channels?: Array<V2Channel>;
|
|
8406
|
+
};
|
|
8407
|
+
/**
|
|
8408
|
+
* ThresholdSpec is one condition block; Firing is its only arm today.
|
|
8409
|
+
*/
|
|
8410
|
+
export type V2ThresholdSpec = {
|
|
8411
|
+
firing?: V2FiringThreshold;
|
|
8412
|
+
};
|
|
8024
8413
|
export type V2UpdateSilenceRequest = {
|
|
8025
8414
|
comment?: string;
|
|
8026
8415
|
/**
|
|
@@ -11312,6 +11701,66 @@ export type UpdateMetricsPipelineConfigResponses = {
|
|
|
11312
11701
|
200: MetricsPipelineConfigInfo;
|
|
11313
11702
|
};
|
|
11314
11703
|
export type UpdateMetricsPipelineConfigResponse = UpdateMetricsPipelineConfigResponses[keyof UpdateMetricsPipelineConfigResponses];
|
|
11704
|
+
export type GetProfilingFlamegraphData = {
|
|
11705
|
+
body?: never;
|
|
11706
|
+
path?: never;
|
|
11707
|
+
query: {
|
|
11708
|
+
/**
|
|
11709
|
+
* Start time of the request range
|
|
11710
|
+
*/
|
|
11711
|
+
start: string;
|
|
11712
|
+
/**
|
|
11713
|
+
* End time of the request range
|
|
11714
|
+
*/
|
|
11715
|
+
end: string;
|
|
11716
|
+
/**
|
|
11717
|
+
* GCQL filter expression pinning workload, profile_type, and sample_type.
|
|
11718
|
+
*/
|
|
11719
|
+
query: string;
|
|
11720
|
+
/**
|
|
11721
|
+
* Maximum distinct stacks. Defaults to 6000 and is capped at 50000.
|
|
11722
|
+
*/
|
|
11723
|
+
limit?: number;
|
|
11724
|
+
};
|
|
11725
|
+
url: '/api/profiling/flamegraph';
|
|
11726
|
+
};
|
|
11727
|
+
export type GetProfilingFlamegraphErrors = {
|
|
11728
|
+
/**
|
|
11729
|
+
* ErrorResponse defines a common error response structure.
|
|
11730
|
+
*/
|
|
11731
|
+
400: {
|
|
11732
|
+
message?: string;
|
|
11733
|
+
};
|
|
11734
|
+
/**
|
|
11735
|
+
* ErrorResponse defines a common error response structure.
|
|
11736
|
+
*/
|
|
11737
|
+
404: {
|
|
11738
|
+
message?: string;
|
|
11739
|
+
};
|
|
11740
|
+
/**
|
|
11741
|
+
* ErrorResponse defines a common error response structure.
|
|
11742
|
+
*/
|
|
11743
|
+
422: {
|
|
11744
|
+
message?: string;
|
|
11745
|
+
};
|
|
11746
|
+
/**
|
|
11747
|
+
* ErrorResponse defines a common error response structure.
|
|
11748
|
+
*/
|
|
11749
|
+
500: {
|
|
11750
|
+
message?: string;
|
|
11751
|
+
};
|
|
11752
|
+
/**
|
|
11753
|
+
* ErrorResponse defines a common error response structure.
|
|
11754
|
+
*/
|
|
11755
|
+
504: {
|
|
11756
|
+
message?: string;
|
|
11757
|
+
};
|
|
11758
|
+
};
|
|
11759
|
+
export type GetProfilingFlamegraphError = GetProfilingFlamegraphErrors[keyof GetProfilingFlamegraphErrors];
|
|
11760
|
+
export type GetProfilingFlamegraphResponses = {
|
|
11761
|
+
200: ProfilingFlamegraphResponse;
|
|
11762
|
+
};
|
|
11763
|
+
export type GetProfilingFlamegraphResponse = GetProfilingFlamegraphResponses[keyof GetProfilingFlamegraphResponses];
|
|
11315
11764
|
export type DeleteApiKeyData = {
|
|
11316
11765
|
body?: never;
|
|
11317
11766
|
path: {
|
|
@@ -12529,3 +12978,31 @@ export type SearchTracesError = SearchTracesErrors[keyof SearchTracesErrors];
|
|
|
12529
12978
|
export type SearchTracesResponses = {
|
|
12530
12979
|
200: unknown;
|
|
12531
12980
|
};
|
|
12981
|
+
export type ExportMonitorsV2Data = {
|
|
12982
|
+
body: ExportMonitorsV2Request;
|
|
12983
|
+
path?: never;
|
|
12984
|
+
query?: never;
|
|
12985
|
+
url: '/api/v2/monitors/export';
|
|
12986
|
+
};
|
|
12987
|
+
export type ExportMonitorsV2Errors = {
|
|
12988
|
+
/**
|
|
12989
|
+
* ErrorResponse defines a common error response structure.
|
|
12990
|
+
*/
|
|
12991
|
+
400: {
|
|
12992
|
+
message?: string;
|
|
12993
|
+
};
|
|
12994
|
+
/**
|
|
12995
|
+
* ErrorResponse defines a common error response structure.
|
|
12996
|
+
*/
|
|
12997
|
+
500: {
|
|
12998
|
+
message?: string;
|
|
12999
|
+
};
|
|
13000
|
+
};
|
|
13001
|
+
export type ExportMonitorsV2Error = ExportMonitorsV2Errors[keyof ExportMonitorsV2Errors];
|
|
13002
|
+
export type ExportMonitorsV2Responses = {
|
|
13003
|
+
/**
|
|
13004
|
+
* ExportMonitorsV2ResponseWrapper is the HCL document, served as text/plain.
|
|
13005
|
+
*/
|
|
13006
|
+
200: TerraformDocument;
|
|
13007
|
+
};
|
|
13008
|
+
export type ExportMonitorsV2Response = ExportMonitorsV2Responses[keyof ExportMonitorsV2Responses];
|