vw_replication_events
Creates, updates, deletes, gets or lists a vw_replication_events
resource.
Overview
Name | vw_replication_events |
Type | View |
Id | azure.recovery_services_site_recovery.vw_replication_events |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
location as location,
type as type,
JSON_EXTRACT(properties, '$.eventCode') as "event_code",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.eventType') as "event_type",
JSON_EXTRACT(properties, '$.affectedObjectFriendlyName') as "affected_object_friendly_name",
JSON_EXTRACT(properties, '$.affectedObjectCorrelationId') as "affected_object_correlation_id",
JSON_EXTRACT(properties, '$.severity') as "severity",
JSON_EXTRACT(properties, '$.timeOfOccurrence') as "time_of_occurrence",
JSON_EXTRACT(properties, '$.fabricId') as "fabric_id",
JSON_EXTRACT(properties, '$.providerSpecificDetails') as "provider_specific_details",
JSON_EXTRACT(properties, '$.eventSpecificDetails') as "event_specific_details",
JSON_EXTRACT(properties, '$.healthErrors') as "health_errors",
subscriptionId,
resourceGroupName,
resourceName,
eventName
FROM azure.recovery_services_site_recovery.replication_events
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND resourceName = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
json_extract_path_text(properties, '$.eventCode') as "event_code",
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.eventType') as "event_type",
json_extract_path_text(properties, '$.affectedObjectFriendlyName') as "affected_object_friendly_name",
json_extract_path_text(properties, '$.affectedObjectCorrelationId') as "affected_object_correlation_id",
json_extract_path_text(properties, '$.severity') as "severity",
json_extract_path_text(properties, '$.timeOfOccurrence') as "time_of_occurrence",
json_extract_path_text(properties, '$.fabricId') as "fabric_id",
json_extract_path_text(properties, '$.providerSpecificDetails') as "provider_specific_details",
json_extract_path_text(properties, '$.eventSpecificDetails') as "event_specific_details",
json_extract_path_text(properties, '$.healthErrors') as "health_errors",
subscriptionId,
resourceGroupName,
resourceName,
eventName
FROM azure.recovery_services_site_recovery.replication_events
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND resourceName = 'replace-me';