api_observations
Creates, updates, deletes, gets or lists a api_observations
resource.
Overview
Name | api_observations |
Type | Resource |
Id | google.apim.api_observations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of resource |
apiOperationCount | string | The number of observed API Operations. |
createTime | string | Create time stamp |
hostname | string | The hostname of requests processed for this Observation. |
lastEventDetectedTime | string | Last event detected time stamp |
serverIps | array | The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: "192.168.1.1" , "10.0.0.1:80" , "FE80::0202:B3FF:FE1E:8329" . |
sourceLocations | array | Location of the Observation Source, for example "us-central1" or "europe-west1." |
style | string | Style of ApiObservation |
tags | array | User-defined tags to organize and sort |
updateTime | string | Update time stamp |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiObservationsId, locationsId, observationJobsId, projectsId | GetApiObservation retrieves a single ApiObservation by name. |
list | SELECT | locationsId, observationJobsId, projectsId | ListApiObservations gets all ApiObservations for a given project and location and ObservationJob. |
batch_edit_tags | EXEC | locationsId, observationJobsId, projectsId | BatchEditTagsApiObservations adds or removes Tags for ApiObservations. |
SELECT
examples
ListApiObservations gets all ApiObservations for a given project and location and ObservationJob.
SELECT
name,
apiOperationCount,
createTime,
hostname,
lastEventDetectedTime,
serverIps,
sourceLocations,
style,
tags,
updateTime
FROM google.apim.api_observations
WHERE locationsId = '{{ locationsId }}'
AND observationJobsId = '{{ observationJobsId }}'
AND projectsId = '{{ projectsId }}';