vw_resource_healths
Creates, updates, deletes, gets or lists a vw_resource_healths
resource.
Overview
Name | vw_resource_healths |
Type | View |
Id | azure_stack.infrastructure_insights_admin.vw_resource_healths |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
location as location,
tags as tags,
JSON_EXTRACT(properties, '$.resourceLocation') as "resource_location",
JSON_EXTRACT(properties, '$.resourceName') as "resource_name",
JSON_EXTRACT(properties, '$.resourceDisplayName') as "resource_display_name",
JSON_EXTRACT(properties, '$.resourceType') as "resource_type",
JSON_EXTRACT(properties, '$.resourceURI') as "resource_uri",
JSON_EXTRACT(properties, '$.rpRegistrationId') as "rp_registration_id",
JSON_EXTRACT(properties, '$.usageMetrics') as "usage_metrics",
JSON_EXTRACT(properties, '$.alertSummary') as "alert_summary",
JSON_EXTRACT(properties, '$.healthState') as "health_state",
JSON_EXTRACT(properties, '$.namespace') as "namespace",
JSON_EXTRACT(properties, '$.registrationId') as "registration_id",
JSON_EXTRACT(properties, '$.routePrefix') as "route_prefix",
subscriptionId,
resourceGroupName,
location,
serviceRegistrationId,
resourceRegistrationId
FROM azure_stack.infrastructure_insights_admin.resource_healths
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND location = 'replace-me' AND serviceRegistrationId = 'replace-me';
SELECT
location as location,
tags as tags,
json_extract_path_text(properties, '$.resourceLocation') as "resource_location",
json_extract_path_text(properties, '$.resourceName') as "resource_name",
json_extract_path_text(properties, '$.resourceDisplayName') as "resource_display_name",
json_extract_path_text(properties, '$.resourceType') as "resource_type",
json_extract_path_text(properties, '$.resourceURI') as "resource_uri",
json_extract_path_text(properties, '$.rpRegistrationId') as "rp_registration_id",
json_extract_path_text(properties, '$.usageMetrics') as "usage_metrics",
json_extract_path_text(properties, '$.alertSummary') as "alert_summary",
json_extract_path_text(properties, '$.healthState') as "health_state",
json_extract_path_text(properties, '$.namespace') as "namespace",
json_extract_path_text(properties, '$.registrationId') as "registration_id",
json_extract_path_text(properties, '$.routePrefix') as "route_prefix",
subscriptionId,
resourceGroupName,
location,
serviceRegistrationId,
resourceRegistrationId
FROM azure_stack.infrastructure_insights_admin.resource_healths
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND location = 'replace-me' AND serviceRegistrationId = 'replace-me';