@maxim_mazurok/gapi.client.monitoring-v3 0.0.20240905 → 0.0.20240929
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/index.d.ts +53 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://monitoring.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240929
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -99,6 +99,10 @@ declare namespace gapi.client {
|
|
|
99
99
|
/** OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don't support breaking down by version, setting this field will result in an error. */
|
|
100
100
|
version?: string[];
|
|
101
101
|
}
|
|
102
|
+
interface BooleanTest {
|
|
103
|
+
/** Required. The name of the column containing the boolean value. If the value in a row is NULL, that row is ignored. */
|
|
104
|
+
column?: string;
|
|
105
|
+
}
|
|
102
106
|
interface BucketOptions {
|
|
103
107
|
/** The explicit buckets. */
|
|
104
108
|
explicitBuckets?: Explicit;
|
|
@@ -182,6 +186,8 @@ declare namespace gapi.client {
|
|
|
182
186
|
conditionMonitoringQueryLanguage?: MonitoringQueryLanguageCondition;
|
|
183
187
|
/** A condition that uses the Prometheus query language to define alerts. */
|
|
184
188
|
conditionPrometheusQueryLanguage?: PrometheusQueryLanguageCondition;
|
|
189
|
+
/** A condition that uses SQL to define alerts in Logs Analytics. */
|
|
190
|
+
conditionSql?: SqlCondition;
|
|
185
191
|
/** A condition that compares a time series against a threshold. */
|
|
186
192
|
conditionThreshold?: MetricThreshold;
|
|
187
193
|
/** A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy. */
|
|
@@ -228,6 +234,12 @@ declare namespace gapi.client {
|
|
|
228
234
|
policies?: string[];
|
|
229
235
|
}
|
|
230
236
|
interface Custom {}
|
|
237
|
+
interface Daily {
|
|
238
|
+
/** Optional. The time of day (in UTC) at which the query should run. If left unspecified, the server picks an arbitrary time of day and runs the query at the same time each day. */
|
|
239
|
+
executionTime?: TimeOfDay;
|
|
240
|
+
/** Required. LINT.IfChange The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc) */
|
|
241
|
+
periodicity?: number;
|
|
242
|
+
}
|
|
231
243
|
interface Distribution {
|
|
232
244
|
/** Required in the Cloud Monitoring API v3. The values for each bucket specified in bucket_options. The sum of the values in bucketCounts must equal the value in the count field of the Distribution object. The order of the bucket counts follows the numbering schemes described for the three bucket types. The underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; and the overflow bucket has number N-1. The size of bucket_counts must not be greater than N. If the size is less than N, then the remaining buckets are assigned values of zero. */
|
|
233
245
|
bucketCounts?: string[];
|
|
@@ -381,6 +393,12 @@ declare namespace gapi.client {
|
|
|
381
393
|
/** The name of the group's parent, if it has one. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] For groups with no parent, parent_name is the empty string, "". */
|
|
382
394
|
parentName?: string;
|
|
383
395
|
}
|
|
396
|
+
interface Hourly {
|
|
397
|
+
/** Optional. LINT.IfChange The number of minutes after the hour (in UTC) to run the query. Must be between 0 and 59 inclusive. If left unspecified, then an arbitrary offset is used. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc) */
|
|
398
|
+
minuteOffset?: number;
|
|
399
|
+
/** Required. LINT.IfChange The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc) */
|
|
400
|
+
periodicity?: number;
|
|
401
|
+
}
|
|
384
402
|
interface HttpCheck {
|
|
385
403
|
/** If present, the check will only pass if the HTTP response status code is in this set of status codes. If empty, the HTTP status code will only pass if the HTTP status code is 200-299. */
|
|
386
404
|
acceptedResponseStatusCodes?: ResponseStatusCode[];
|
|
@@ -655,6 +673,10 @@ declare namespace gapi.client {
|
|
|
655
673
|
/** The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by filter and aggregations, or by the ratio, if denominator_filter and denominator_aggregations are specified. */
|
|
656
674
|
trigger?: Trigger;
|
|
657
675
|
}
|
|
676
|
+
interface Minutes {
|
|
677
|
+
/** Required. LINT.IfChange Number of minutes between runs. The interval must be between 5 minutes and 1440 minutes. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc) */
|
|
678
|
+
periodicity?: number;
|
|
679
|
+
}
|
|
658
680
|
interface MonitoredResource {
|
|
659
681
|
/** Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone". */
|
|
660
682
|
labels?: {[P in string]: string};
|
|
@@ -839,6 +861,12 @@ declare namespace gapi.client {
|
|
|
839
861
|
/** A status code to accept. */
|
|
840
862
|
statusValue?: number;
|
|
841
863
|
}
|
|
864
|
+
interface RowCountTest {
|
|
865
|
+
/** Required. The comparison to apply between the number of rows returned by the query and the threshold. */
|
|
866
|
+
comparison?: string;
|
|
867
|
+
/** Required. The value against which to compare the row count. */
|
|
868
|
+
threshold?: string;
|
|
869
|
+
}
|
|
842
870
|
interface SendNotificationChannelVerificationCodeRequest {}
|
|
843
871
|
interface Service {
|
|
844
872
|
/** Type used for App Engine services. */
|
|
@@ -918,6 +946,20 @@ declare namespace gapi.client {
|
|
|
918
946
|
/** The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array.[SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. */
|
|
919
947
|
spanName?: string;
|
|
920
948
|
}
|
|
949
|
+
interface SqlCondition {
|
|
950
|
+
/** Test the boolean value in the indicated column. */
|
|
951
|
+
booleanTest?: BooleanTest;
|
|
952
|
+
/** Schedule the query to execute every so many days. */
|
|
953
|
+
daily?: Daily;
|
|
954
|
+
/** Schedule the query to execute every so many hours. */
|
|
955
|
+
hourly?: Hourly;
|
|
956
|
+
/** Schedule the query to execute every so many minutes. */
|
|
957
|
+
minutes?: Minutes;
|
|
958
|
+
/** Required. The Log Analytics SQL query to run, as a string. The query must conform to the required shape. Specifically, the query must not try to filter the input by time. A filter will automatically be applied to filter the input so that the query receives all rows received since the last time the query was run.E.g. Extract all log entries containing an HTTP request:SELECT timestamp, log_name, severity, http_request, resource, labels FROM my-project.global._Default._AllLogs WHERE http_request IS NOT NULL */
|
|
959
|
+
query?: string;
|
|
960
|
+
/** Test the row count against a threshold. */
|
|
961
|
+
rowCountTest?: RowCountTest;
|
|
962
|
+
}
|
|
921
963
|
interface Status {
|
|
922
964
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
923
965
|
code?: number;
|
|
@@ -946,6 +988,16 @@ declare namespace gapi.client {
|
|
|
946
988
|
/** Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. */
|
|
947
989
|
startTime?: string;
|
|
948
990
|
}
|
|
991
|
+
interface TimeOfDay {
|
|
992
|
+
/** Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. */
|
|
993
|
+
hours?: number;
|
|
994
|
+
/** Minutes of hour of day. Must be from 0 to 59. */
|
|
995
|
+
minutes?: number;
|
|
996
|
+
/** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */
|
|
997
|
+
nanos?: number;
|
|
998
|
+
/** Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. */
|
|
999
|
+
seconds?: number;
|
|
1000
|
+
}
|
|
949
1001
|
interface TimeSeries {
|
|
950
1002
|
/** Input only. A detailed description of the time series that will be associated with the google.api.MetricDescriptor for the metric. Once set, this field cannot be changed through CreateTimeSeries. */
|
|
951
1003
|
description?: string;
|