@maxim_mazurok/gapi.client.monitoring-v3 0.0.20230708 → 0.0.20230724
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 +25 -5
- package/package.json +1 -1
- package/tests.ts +23 -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: 20230724
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -78,8 +78,9 @@ declare namespace gapi.client {
|
|
|
78
78
|
MutationRecord;
|
|
79
79
|
/**
|
|
80
80
|
* A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same
|
|
81
|
-
* project. The name is limited to 512 Unicode characters.The convention for the display_name of a PrometheusQueryLanguageCondition is "/", where the
|
|
82
|
-
* corresponding Prometheus configuration file. This convention is not enforced. In any case the display_name is not a unique key
|
|
81
|
+
* project. The name is limited to 512 Unicode characters.The convention for the display_name of a PrometheusQueryLanguageCondition is "{rule group name}/{alert name}", where the {rule
|
|
82
|
+
* group name} and {alert name} should be taken from the corresponding Prometheus configuration file. This convention is not enforced. In any case the display_name is not a unique key
|
|
83
|
+
* of the AlertPolicy.
|
|
83
84
|
*/
|
|
84
85
|
displayName?:
|
|
85
86
|
string;
|
|
@@ -114,8 +115,8 @@ declare namespace gapi.client {
|
|
|
114
115
|
/**
|
|
115
116
|
* User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode
|
|
116
117
|
* characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.Note that
|
|
117
|
-
* Prometheus and are valid Prometheus label names (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). This means that they cannot
|
|
118
|
-
* labels, because Prometheus labels may contain upper-case letters.
|
|
118
|
+
* Prometheus {rule group name} and {alert name} are valid Prometheus label names (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). This means that they cannot
|
|
119
|
+
* be stored as-is in user labels, because Prometheus labels may contain upper-case letters.
|
|
119
120
|
*/
|
|
120
121
|
userLabels?:
|
|
121
122
|
{ [P in string]: string };
|
|
@@ -212,6 +213,17 @@ declare namespace gapi.client {
|
|
|
212
213
|
service?:
|
|
213
214
|
string;
|
|
214
215
|
}
|
|
216
|
+
interface CloudFunctionV2Target {
|
|
217
|
+
/**
|
|
218
|
+
* Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this
|
|
219
|
+
* Monitored Resource. This field is output only.
|
|
220
|
+
*/
|
|
221
|
+
cloudRunRevision?:
|
|
222
|
+
MonitoredResource;
|
|
223
|
+
/** Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required. */
|
|
224
|
+
name?:
|
|
225
|
+
string;
|
|
226
|
+
}
|
|
215
227
|
interface CloudRun {
|
|
216
228
|
/**
|
|
217
229
|
* The location the service is run. Corresponds to the location resource label in the cloud_run_revision monitored resource
|
|
@@ -1698,6 +1710,11 @@ declare namespace gapi.client {
|
|
|
1698
1710
|
message?:
|
|
1699
1711
|
string;
|
|
1700
1712
|
}
|
|
1713
|
+
interface SyntheticMonitorTarget {
|
|
1714
|
+
/** Target a Synthetic Monitor GCFv2 instance. */
|
|
1715
|
+
cloudFunctionV2?:
|
|
1716
|
+
CloudFunctionV2Target;
|
|
1717
|
+
}
|
|
1701
1718
|
interface TcpCheck {
|
|
1702
1719
|
/** Contains information needed to add pings to a TCP check. */
|
|
1703
1720
|
pingConfig?:
|
|
@@ -1908,6 +1925,9 @@ declare namespace gapi.client {
|
|
|
1908
1925
|
*/
|
|
1909
1926
|
selectedRegions?:
|
|
1910
1927
|
string[];
|
|
1928
|
+
/** Specifies a Synthetic Monitor to invoke. */
|
|
1929
|
+
syntheticMonitor?:
|
|
1930
|
+
SyntheticMonitorTarget;
|
|
1911
1931
|
/** Contains information needed to make a TCP check. */
|
|
1912
1932
|
tcpCheck?:
|
|
1913
1933
|
TcpCheck;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230724
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1037,6 +1037,17 @@ gapi.load('client', async () => {
|
|
|
1037
1037
|
selectedRegions: [
|
|
1038
1038
|
"Test string"
|
|
1039
1039
|
],
|
|
1040
|
+
syntheticMonitor: {
|
|
1041
|
+
cloudFunctionV2: {
|
|
1042
|
+
cloudRunRevision: {
|
|
1043
|
+
labels: {
|
|
1044
|
+
A: "Test string"
|
|
1045
|
+
},
|
|
1046
|
+
type: "Test string",
|
|
1047
|
+
},
|
|
1048
|
+
name: "Test string",
|
|
1049
|
+
},
|
|
1050
|
+
},
|
|
1040
1051
|
tcpCheck: {
|
|
1041
1052
|
pingConfig: {
|
|
1042
1053
|
pingsCount: 42,
|
|
@@ -1139,6 +1150,17 @@ gapi.load('client', async () => {
|
|
|
1139
1150
|
selectedRegions: [
|
|
1140
1151
|
"Test string"
|
|
1141
1152
|
],
|
|
1153
|
+
syntheticMonitor: {
|
|
1154
|
+
cloudFunctionV2: {
|
|
1155
|
+
cloudRunRevision: {
|
|
1156
|
+
labels: {
|
|
1157
|
+
A: "Test string"
|
|
1158
|
+
},
|
|
1159
|
+
type: "Test string",
|
|
1160
|
+
},
|
|
1161
|
+
name: "Test string",
|
|
1162
|
+
},
|
|
1163
|
+
},
|
|
1142
1164
|
tcpCheck: {
|
|
1143
1165
|
pingConfig: {
|
|
1144
1166
|
pingsCount: 42,
|