@maxim_mazurok/gapi.client.monitoring-v3 0.2.20260310 → 0.2.20260604
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 +3 -3
- package/package.json +1 -1
- package/readme.md +12 -0
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: 20260604
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -361,7 +361,7 @@ declare namespace gapi.client {
|
|
|
361
361
|
}
|
|
362
362
|
interface Exemplar {
|
|
363
363
|
/** Contextual information about the example value. Examples are:Trace: type.googleapis.com/google.monitoring.v3.SpanContextLiteral string: type.googleapis.com/google.protobuf.StringValueLabels dropped during aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabelsThere may be only a single attachment of any given message type in a single exemplar, and this is enforced by the system. */
|
|
364
|
-
attachments?:
|
|
364
|
+
attachments?: {[P in string]: any}[];
|
|
365
365
|
/** The observation (sampling) time of the above value. */
|
|
366
366
|
timestamp?: string;
|
|
367
367
|
/** Value of the exemplar point. This value determines to which bucket the exemplar belongs. */
|
|
@@ -1186,7 +1186,7 @@ declare namespace gapi.client {
|
|
|
1186
1186
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1187
1187
|
code?: number;
|
|
1188
1188
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1189
|
-
details?:
|
|
1189
|
+
details?: {[P in string]: any}[];
|
|
1190
1190
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
1191
1191
|
message?: string;
|
|
1192
1192
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Cloud Monitoring API:
|
|
|
11
11
|
npm install @types/gapi.client.monitoring-v3 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.monitoring-v3"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|