Skip to main content

vw_resource_healths

Creates, updates, deletes, gets or lists a vw_resource_healths resource.

Overview

Namevw_resource_healths
TypeView
Idazure_stack.infrastructure_insights_admin.vw_resource_healths

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

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';