Skip to content

Commit

Permalink
feat(monitoring): update the API
Browse files Browse the repository at this point in the history
#### monitoring:v1

The following keys were added:
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.description
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.flatPath
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.httpMethod
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.id
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameterOrder
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.location.description
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.location.location
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.location.required
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.location.type
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.name.description
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.name.location
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.name.pattern
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.name.required
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.parameters.name.type
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.path
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.request.$ref
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.response.$ref
- resources.projects.resources.location.resources.prometheus.resources.api.resources.v1.methods.query_exemplars.scopes
- schemas.QueryExemplarsRequest.description
- schemas.QueryExemplarsRequest.id
- schemas.QueryExemplarsRequest.properties.end.description
- schemas.QueryExemplarsRequest.properties.end.type
- schemas.QueryExemplarsRequest.properties.query.description
- schemas.QueryExemplarsRequest.properties.query.type
- schemas.QueryExemplarsRequest.properties.start.description
- schemas.QueryExemplarsRequest.properties.start.type
- schemas.QueryExemplarsRequest.type

#### monitoring:v3

The following keys were changed:
- schemas.Criteria.properties.policies.description
- schemas.UptimeCheckConfig.properties.selectedRegions.items.enum
- schemas.UptimeCheckConfig.properties.selectedRegions.items.enumDescriptions
- schemas.UptimeCheckIp.properties.region.enum
- schemas.UptimeCheckIp.properties.region.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 9, 2023
1 parent 2ae0fb5 commit 98e55c0
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 8 deletions.
58 changes: 57 additions & 1 deletion discovery/monitoring-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,43 @@
"https://www.googleapis.com/auth/monitoring.read"
]
},
"query_exemplars": {
"description": "Lists exemplars relevant to a given PromQL query,",
"flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/query_exemplars",
"httpMethod": "POST",
"id": "monitoring.projects.location.prometheus.api.v1.query_exemplars",
"parameterOrder": [
"name",
"location"
],
"parameters": {
"location": {
"description": "Location of the resource information. Has to be \"global\" now.",
"location": "path",
"required": true,
"type": "string"
},
"name": {
"description": "The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}/location/{location}/prometheus/api/v1/query_exemplars",
"request": {
"$ref": "QueryExemplarsRequest"
},
"response": {
"$ref": "HttpBody"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"
]
},
"query_range": {
"description": "Evaluate a PromQL query with start, end time range.",
"flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/query_range",
Expand Down Expand Up @@ -769,7 +806,7 @@
}
}
},
"revision": "20221219",
"revision": "20230206",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
"Aggregation": {
Expand Down Expand Up @@ -1591,6 +1628,25 @@
},
"type": "object"
},
"QueryExemplarsRequest": {
"description": "QueryExemplarsRequest holds all parameters of the Prometheus upstream API for querying exemplars.",
"id": "QueryExemplarsRequest",
"properties": {
"end": {
"description": "The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.",
"type": "string"
},
"query": {
"description": "A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.",
"type": "string"
},
"start": {
"description": "The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.",
"type": "string"
}
},
"type": "object"
},
"QueryInstantRequest": {
"description": "QueryInstantRequest holds all parameters of the Prometheus upstream instant query API plus GCM specific parameters.",
"id": "QueryInstantRequest",
Expand Down
24 changes: 18 additions & 6 deletions discovery/monitoring-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,7 +2714,7 @@
}
}
},
"revision": "20230123",
"revision": "20230206",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
"Aggregation": {
Expand Down Expand Up @@ -3334,7 +3334,7 @@
"id": "Criteria",
"properties": {
"policies": {
"description": "The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 100 policies per snooze. This limit is checked during snooze creation.",
"description": "The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -5760,14 +5760,20 @@
"USA",
"EUROPE",
"SOUTH_AMERICA",
"ASIA_PACIFIC"
"ASIA_PACIFIC",
"USA_OREGON",
"USA_IOWA",
"USA_VIRGINIA"
],
"enumDescriptions": [
"Default value if no region is specified. Will result in Uptime checks running from all regions.",
"Allows checks to run from locations within the United States of America.",
"Allows checks to run from locations within the continent of Europe.",
"Allows checks to run from locations within the continent of South America.",
"Allows checks to run from locations within the Asia Pacific area (ex: Singapore)."
"Allows checks to run from locations within the Asia Pacific area (ex: Singapore).",
"Allows checks to run from locations within the western United States of America",
"Allows checks to run from locations within the central United States of America",
"Allows checks to run from locations within the eastern United States of America"
],
"type": "string"
},
Expand Down Expand Up @@ -5811,14 +5817,20 @@
"USA",
"EUROPE",
"SOUTH_AMERICA",
"ASIA_PACIFIC"
"ASIA_PACIFIC",
"USA_OREGON",
"USA_IOWA",
"USA_VIRGINIA"
],
"enumDescriptions": [
"Default value if no region is specified. Will result in Uptime checks running from all regions.",
"Allows checks to run from locations within the United States of America.",
"Allows checks to run from locations within the continent of Europe.",
"Allows checks to run from locations within the continent of South America.",
"Allows checks to run from locations within the Asia Pacific area (ex: Singapore)."
"Allows checks to run from locations within the Asia Pacific area (ex: Singapore).",
"Allows checks to run from locations within the western United States of America",
"Allows checks to run from locations within the central United States of America",
"Allows checks to run from locations within the eastern United States of America"
],
"type": "string"
}
Expand Down
2 changes: 1 addition & 1 deletion src/apis/monitoring/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export namespace monitoring_v3 {
*/
export interface Schema$Criteria {
/**
* The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 100 policies per snooze. This limit is checked during snooze creation.
* The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
*/
policies?: string[] | null;
}
Expand Down

0 comments on commit 98e55c0

Please sign in to comment.