Skip to main content

child_availability_statuses

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

Overview

Namechild_availability_statuses
TypeResource
Idazure.resource_health.child_availability_statuses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringAzure Resource Manager Identity for the availabilityStatuses resource.
namestring:vartype name: str
articleIdstringThe Article Id.
availabilityStatestringAvailability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event. Known values are: "Available", "Unavailable", "Degraded", and "Unknown". (Available, Unavailable, Degraded, Unknown)
categorystringWhen a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored.
contextstringWhen an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object.
detailedStatusstringDetails of the availability status.
healthEventCategorystringIn case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc.
healthEventCausestringIn case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc.
healthEventIdstringIt is a unique Id that identifies the event.
healthEventTypestringIn case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc.
locationstringAzure Resource Manager geo location of the resource.
occuredTimestring (date-time)Timestamp for when last change in health status occurred.
reasonChronicitystringChronicity of the availability transition. Known values are: "Transient" and "Persistent". (Transient, Persistent)
reasonTypestringWhen the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc.
recentlyResolvedobjectAn annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned.
recommendedActionsarrayLists actions the user can take based on the current availabilityState of the resource.
reportedTimestring (date-time)Timestamp for when the health was last checked.
resolutionETAstring (date-time)When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved.
rootCauseAttributionTimestring (date-time)When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.
serviceImpactingEventsarrayLists the service impacting events that may be affecting the health of the resource.
summarystringSummary description of the availability status.
titlestringTitle description of the availability status.
typestringMicrosoft.ResourceHealth/AvailabilityStatuses.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_uri$filter, $expandLists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status.
get_by_resourceexecresource_uri$filter, $expandGets current availability status for a single resource.

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.

NameDatatypeDescription
resource_uristringundefined. Required.
$expandstringSetting $expand=recommendedactions in url query expands the recommendedactions in the response. Default value is None.
$filterstringThe filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN _. Default value is None.

SELECT examples

Lists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status.

SELECT
id,
name,
articleId,
availabilityState,
category,
context,
detailedStatus,
healthEventCategory,
healthEventCause,
healthEventId,
healthEventType,
location,
occuredTime,
reasonChronicity,
reasonType,
recentlyResolved,
recommendedActions,
reportedTime,
resolutionETA,
rootCauseAttributionTime,
serviceImpactingEvents,
summary,
title,
type
FROM azure.resource_health.child_availability_statuses
WHERE resource_uri = '{{ resource_uri }}' -- required
AND $filter = '{{ $filter }}'
AND $expand = '{{ $expand }}'
;

Lifecycle Methods

Gets current availability status for a single resource.

EXEC azure.resource_health.child_availability_statuses.get_by_resource 
@resource_uri='{{ resource_uri }}' --required,
@$filter='{{ $filter }}',
@$expand='{{ $expand }}'
;