health
Creates, updates, deletes, gets or lists a health resource.
Overview
| Name | health |
| Type | Resource |
| Id | google.workloadmanager.health |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
checkTime | string (google-datetime) | The time when the health check was performed. |
componentsHealth | array | The detailed condition reports of each component. |
state | string | Output only. The health state of the workload. (HEALTH_STATE_UNSPECIFIED, HEALTHY, UNHEALTHY, CRITICAL, UNSUPPORTED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, discoveredprofilesId, healthId | Get the health of a discovered workload profile. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
discoveredprofilesId | string | |
healthId | string | |
locationsId | string | |
projectsId | string |
SELECT examples
- get
Get the health of a discovered workload profile.
SELECT
checkTime,
componentsHealth,
state
FROM google.workloadmanager.health
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND discoveredprofilesId = '{{ discoveredprofilesId }}' -- required
AND healthId = '{{ healthId }}' -- required
;