Documentation ¶
Index ¶
- type AvailabilityStateValues
- type AvailabilityStatus
- type AvailabilityStatusListResult
- type AvailabilityStatusProperties
- type AvailabilityStatusPropertiesRecentlyResolved
- type AvailabilityStatusesClient
- func (client *AvailabilityStatusesClient) GetByResource(ctx context.Context, resourceURI string, ...) (AvailabilityStatusesClientGetByResourceResponse, error)
- func (client *AvailabilityStatusesClient) List(resourceURI string, options *AvailabilityStatusesClientListOptions) *runtime.Pager[AvailabilityStatusesClientListResponse]
- func (client *AvailabilityStatusesClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[AvailabilityStatusesClientListByResourceGroupResponse]
- func (client *AvailabilityStatusesClient) ListBySubscriptionID(options *AvailabilityStatusesClientListBySubscriptionIDOptions) *runtime.Pager[AvailabilityStatusesClientListBySubscriptionIDResponse]
- type AvailabilityStatusesClientGetByResourceOptions
- type AvailabilityStatusesClientGetByResourceResponse
- type AvailabilityStatusesClientListByResourceGroupOptions
- type AvailabilityStatusesClientListByResourceGroupResponse
- type AvailabilityStatusesClientListBySubscriptionIDOptions
- type AvailabilityStatusesClientListBySubscriptionIDResponse
- type AvailabilityStatusesClientListOptions
- type AvailabilityStatusesClientListResponse
- type ErrorResponse
- type ErrorResponseError
- type ImpactedRegion
- type ImpactedResourceStatus
- type ImpactedResourceStatusProperties
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type ReasonChronicityTypes
- type ReasonTypeValues
- type RecommendedAction
- type Resource
- type ServiceImpactingEvent
- type ServiceImpactingEventIncidentProperties
- type ServiceImpactingEventStatus
- type StatusBanner
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityStateValues ¶
type AvailabilityStateValues string
AvailabilityStateValues - Impacted resource status of the resource.
const ( AvailabilityStateValuesAvailable AvailabilityStateValues = "Available" AvailabilityStateValuesDegraded AvailabilityStateValues = "Degraded" AvailabilityStateValuesUnknown AvailabilityStateValues = "Unknown" )
func PossibleAvailabilityStateValuesValues ¶
func PossibleAvailabilityStateValuesValues() []AvailabilityStateValues
PossibleAvailabilityStateValuesValues returns the possible values for the AvailabilityStateValues const type.
type AvailabilityStatus ¶
type AvailabilityStatus struct { // Azure Resource Manager Identity for the availabilityStatuses resource. ID *string `json:"id,omitempty"` // Azure Resource Manager geo location of the resource. Location *string `json:"location,omitempty"` // current. Name *string `json:"name,omitempty"` // Properties of availability state. Properties *AvailabilityStatusProperties `json:"properties,omitempty"` // Microsoft.ResourceHealth/AvailabilityStatuses. Type *string `json:"type,omitempty"` }
AvailabilityStatus - availabilityStatus of a resource.
type AvailabilityStatusListResult ¶
type AvailabilityStatusListResult struct { // REQUIRED; The list of availabilityStatuses. Value []*AvailabilityStatus `json:"value,omitempty"` // The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch the next page of availabilityStatuses. NextLink *string `json:"nextLink,omitempty"` }
AvailabilityStatusListResult - The List availabilityStatus operation response.
func (AvailabilityStatusListResult) MarshalJSON ¶
func (a AvailabilityStatusListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailabilityStatusListResult.
type AvailabilityStatusProperties ¶
type AvailabilityStatusProperties struct { // Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting // event AvailabilityState *AvailabilityStateValues `json:"availabilityState,omitempty"` // Details of the availability status. DetailedStatus *string `json:"detailedStatus,omitempty"` // In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples // are Planned, Unplanned etc. HealthEventCategory *string `json:"healthEventCategory,omitempty"` // In case of an availability impacting event, it describes where the health impacting event was originated. Examples are // PlatformInitiated, UserInitiated etc. HealthEventCause *string `json:"healthEventCause,omitempty"` // It is a unique Id that identifies the event HealthEventID *string `json:"healthEventId,omitempty"` // In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, // Downtime, Fault Analysis etc. HealthEventType *string `json:"healthEventType,omitempty"` // Timestamp for when last change in health status occurred. OccurredTime *time.Time `json:"occurredTime,omitempty"` // Chronicity of the availability transition. ReasonChronicity *ReasonChronicityTypes `json:"reasonChronicity,omitempty"` // When 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. ReasonType *string `json:"reasonType,omitempty"` // An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned RecentlyResolved *AvailabilityStatusPropertiesRecentlyResolved `json:"recentlyResolved,omitempty"` // Lists actions the user can take based on the current availabilityState of the resource. RecommendedActions []*RecommendedAction `json:"recommendedActions,omitempty"` // Timestamp for when the health was last checked. ReportedTime *time.Time `json:"reportedTime,omitempty"` // 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. ResolutionETA *time.Time `json:"resolutionETA,omitempty"` // When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was // received. RootCauseAttributionTime *time.Time `json:"rootCauseAttributionTime,omitempty"` // Lists the service impacting events that may be affecting the health of the resource. ServiceImpactingEvents []*ServiceImpactingEvent `json:"serviceImpactingEvents,omitempty"` // Summary description of the availability status. Summary *string `json:"summary,omitempty"` // Title description of the availability status. Title *string `json:"title,omitempty"` }
AvailabilityStatusProperties - Properties of availability state.
func (AvailabilityStatusProperties) MarshalJSON ¶
func (a AvailabilityStatusProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailabilityStatusProperties.
func (*AvailabilityStatusProperties) UnmarshalJSON ¶
func (a *AvailabilityStatusProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityStatusProperties.
type AvailabilityStatusPropertiesRecentlyResolved ¶ added in v0.5.0
type AvailabilityStatusPropertiesRecentlyResolved struct { // Timestamp when the availabilityState changes to Available. ResolvedTime *time.Time `json:"resolvedTime,omitempty"` UnavailabilitySummary *string `json:"unavailabilitySummary,omitempty"` UnavailableOccurredTime *time.Time `json:"unavailableOccurredTime,omitempty"` }
AvailabilityStatusPropertiesRecentlyResolved - An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned
func (AvailabilityStatusPropertiesRecentlyResolved) MarshalJSON ¶ added in v0.5.0
func (a AvailabilityStatusPropertiesRecentlyResolved) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailabilityStatusPropertiesRecentlyResolved.
func (*AvailabilityStatusPropertiesRecentlyResolved) UnmarshalJSON ¶ added in v0.5.0
func (a *AvailabilityStatusPropertiesRecentlyResolved) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityStatusPropertiesRecentlyResolved.
type AvailabilityStatusesClient ¶
type AvailabilityStatusesClient struct {
// contains filtered or unexported fields
}
AvailabilityStatusesClient contains the methods for the AvailabilityStatuses group. Don't use this type directly, use NewAvailabilityStatusesClient() instead.
func NewAvailabilityStatusesClient ¶
func NewAvailabilityStatusesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailabilityStatusesClient, error)
NewAvailabilityStatusesClient creates a new instance of AvailabilityStatusesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AvailabilityStatusesClient) GetByResource ¶
func (client *AvailabilityStatusesClient) GetByResource(ctx context.Context, resourceURI string, options *AvailabilityStatusesClientGetByResourceOptions) (AvailabilityStatusesClientGetByResourceResponse, error)
GetByResource - Gets current availability status for a single resource If the operation fails it returns an *azcore.ResponseError type. resourceURI - The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} options - AvailabilityStatusesClientGetByResourceOptions contains the optional parameters for the AvailabilityStatusesClient.GetByResource method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armresourcehealth.NewAvailabilityStatusesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetByResource(ctx, "<resource-uri>", &armresourcehealth.AvailabilityStatusesClientGetByResourceOptions{Filter: nil, Expand: to.Ptr("<expand>"), }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AvailabilityStatusesClient) List ¶
func (client *AvailabilityStatusesClient) List(resourceURI string, options *AvailabilityStatusesClientListOptions) *runtime.Pager[AvailabilityStatusesClientListResponse]
List - Lists all historical availability transitions and impacting events for a single resource. If the operation fails it returns an *azcore.ResponseError type. resourceURI - The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} options - AvailabilityStatusesClientListOptions contains the optional parameters for the AvailabilityStatusesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armresourcehealth.NewAvailabilityStatusesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<resource-uri>", &armresourcehealth.AvailabilityStatusesClientListOptions{Filter: nil, Expand: nil, }) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AvailabilityStatusesClient) ListByResourceGroup ¶
func (client *AvailabilityStatusesClient) ListByResourceGroup(resourceGroupName string, options *AvailabilityStatusesClientListByResourceGroupOptions) *runtime.Pager[AvailabilityStatusesClientListByResourceGroupResponse]
ListByResourceGroup - Lists the current availability status for all the resources in the resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. options - AvailabilityStatusesClientListByResourceGroupOptions contains the optional parameters for the AvailabilityStatusesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armresourcehealth.NewAvailabilityStatusesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", &armresourcehealth.AvailabilityStatusesClientListByResourceGroupOptions{Filter: nil, Expand: to.Ptr("<expand>"), }) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AvailabilityStatusesClient) ListBySubscriptionID ¶
func (client *AvailabilityStatusesClient) ListBySubscriptionID(options *AvailabilityStatusesClientListBySubscriptionIDOptions) *runtime.Pager[AvailabilityStatusesClientListBySubscriptionIDResponse]
ListBySubscriptionID - Lists the current availability status for all the resources in the subscription. If the operation fails it returns an *azcore.ResponseError type. options - AvailabilityStatusesClientListBySubscriptionIDOptions contains the optional parameters for the AvailabilityStatusesClient.ListBySubscriptionID method.
type AvailabilityStatusesClientGetByResourceOptions ¶ added in v0.3.0
type AvailabilityStatusesClientGetByResourceOptions struct { // Setting $expand=recommendedactions in url query expands the recommendedactions in the response. Expand *string // The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN Filter *string }
AvailabilityStatusesClientGetByResourceOptions contains the optional parameters for the AvailabilityStatusesClient.GetByResource method.
type AvailabilityStatusesClientGetByResourceResponse ¶ added in v0.3.0
type AvailabilityStatusesClientGetByResourceResponse struct {
AvailabilityStatus
}
AvailabilityStatusesClientGetByResourceResponse contains the response from method AvailabilityStatusesClient.GetByResource.
type AvailabilityStatusesClientListByResourceGroupOptions ¶ added in v0.3.0
type AvailabilityStatusesClientListByResourceGroupOptions struct { // Setting $expand=recommendedactions in url query expands the recommendedactions in the response. Expand *string // The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN Filter *string }
AvailabilityStatusesClientListByResourceGroupOptions contains the optional parameters for the AvailabilityStatusesClient.ListByResourceGroup method.
type AvailabilityStatusesClientListByResourceGroupResponse ¶ added in v0.3.0
type AvailabilityStatusesClientListByResourceGroupResponse struct {
AvailabilityStatusListResult
}
AvailabilityStatusesClientListByResourceGroupResponse contains the response from method AvailabilityStatusesClient.ListByResourceGroup.
type AvailabilityStatusesClientListBySubscriptionIDOptions ¶ added in v0.3.0
type AvailabilityStatusesClientListBySubscriptionIDOptions struct { // Setting $expand=recommendedactions in url query expands the recommendedactions in the response. Expand *string // The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN Filter *string }
AvailabilityStatusesClientListBySubscriptionIDOptions contains the optional parameters for the AvailabilityStatusesClient.ListBySubscriptionID method.
type AvailabilityStatusesClientListBySubscriptionIDResponse ¶ added in v0.3.0
type AvailabilityStatusesClientListBySubscriptionIDResponse struct {
AvailabilityStatusListResult
}
AvailabilityStatusesClientListBySubscriptionIDResponse contains the response from method AvailabilityStatusesClient.ListBySubscriptionID.
type AvailabilityStatusesClientListOptions ¶ added in v0.3.0
type AvailabilityStatusesClientListOptions struct { // Setting $expand=recommendedactions in url query expands the recommendedactions in the response. Expand *string // The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN Filter *string }
AvailabilityStatusesClientListOptions contains the optional parameters for the AvailabilityStatusesClient.List method.
type AvailabilityStatusesClientListResponse ¶ added in v0.3.0
type AvailabilityStatusesClientListResponse struct {
AvailabilityStatusListResult
}
AvailabilityStatusesClientListResponse contains the response from method AvailabilityStatusesClient.List.
type ErrorResponse ¶
type ErrorResponse struct { // The error object. Error *ErrorResponseError `json:"error,omitempty"` }
ErrorResponse - Error details.
type ErrorResponseError ¶ added in v0.5.0
type ErrorResponseError struct { // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details *string `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` }
ErrorResponseError - The error object.
type ImpactedRegion ¶
type ImpactedRegion struct { // The impacted region id. ID *string `json:"id,omitempty"` // The impacted region name. Name *string `json:"name,omitempty"` }
ImpactedRegion - Object of impacted region.
type ImpactedResourceStatus ¶ added in v0.5.0
type ImpactedResourceStatus struct { // Properties of impacted resource status. Properties *ImpactedResourceStatusProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ImpactedResourceStatus - impactedResource with health status
type ImpactedResourceStatusProperties ¶ added in v0.5.0
type ImpactedResourceStatusProperties struct { // Impacted resource status of the resource. AvailabilityState *AvailabilityStateValues `json:"availabilityState,omitempty"` // Timestamp for when last change in health status occurred. OccurredTime *time.Time `json:"occurredTime,omitempty"` // When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. ReasonType *ReasonTypeValues `json:"reasonType,omitempty"` // Summary description of the impacted resource status. Summary *string `json:"summary,omitempty"` // Title description of the impacted resource status. Title *string `json:"title,omitempty"` }
ImpactedResourceStatusProperties - Properties of impacted resource status.
func (ImpactedResourceStatusProperties) MarshalJSON ¶ added in v0.5.0
func (i ImpactedResourceStatusProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImpactedResourceStatusProperties.
func (*ImpactedResourceStatusProperties) UnmarshalJSON ¶ added in v0.5.0
func (i *ImpactedResourceStatusProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImpactedResourceStatusProperties.
type Operation ¶
type Operation struct { // Properties of the operation. Display *OperationDisplay `json:"display,omitempty"` // Name of the operation. Name *string `json:"name,omitempty"` }
Operation available in the resourcehealth resource provider.
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation. Description *string `json:"description,omitempty"` // Operation name. Operation *string `json:"operation,omitempty"` // Provider name. Provider *string `json:"provider,omitempty"` // Resource name. Resource *string `json:"resource,omitempty"` }
OperationDisplay - Properties of the operation.
type OperationListResult ¶
type OperationListResult struct { // REQUIRED; List of operations available in the resourcehealth resource provider. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Lists the operations response.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error)
List - Lists available operations for the resourcehealth resource provider If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armresourcehealth.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type OperationsClientListOptions ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.3.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type ReasonChronicityTypes ¶
type ReasonChronicityTypes string
ReasonChronicityTypes - Chronicity of the availability transition.
const ( ReasonChronicityTypesPersistent ReasonChronicityTypes = "Persistent" ReasonChronicityTypesTransient ReasonChronicityTypes = "Transient" )
func PossibleReasonChronicityTypesValues ¶
func PossibleReasonChronicityTypesValues() []ReasonChronicityTypes
PossibleReasonChronicityTypesValues returns the possible values for the ReasonChronicityTypes const type.
type ReasonTypeValues ¶ added in v0.5.0
type ReasonTypeValues string
ReasonTypeValues - When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated.
const ( ReasonTypeValuesPlanned ReasonTypeValues = "Planned" ReasonTypeValuesUnplanned ReasonTypeValues = "Unplanned" ReasonTypeValuesUserInitiated ReasonTypeValues = "UserInitiated" )
func PossibleReasonTypeValuesValues ¶ added in v0.5.0
func PossibleReasonTypeValuesValues() []ReasonTypeValues
PossibleReasonTypeValuesValues returns the possible values for the ReasonTypeValues const type.
type RecommendedAction ¶
type RecommendedAction struct { // Recommended action. Action *string `json:"action,omitempty"` // Link to the action ActionURL *string `json:"actionUrl,omitempty"` // Substring of action, it describes which text should host the action url. ActionURLText *string `json:"actionUrlText,omitempty"` }
RecommendedAction - Lists actions the user can take based on the current availabilityState of the resource.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type ServiceImpactingEvent ¶
type ServiceImpactingEvent struct { // Correlation id for the event CorrelationID *string `json:"correlationId,omitempty"` // Timestamp for when the event started. EventStartTime *time.Time `json:"eventStartTime,omitempty"` // Timestamp for when event was submitted/detected. EventStatusLastModifiedTime *time.Time `json:"eventStatusLastModifiedTime,omitempty"` // Properties of the service impacting event. IncidentProperties *ServiceImpactingEventIncidentProperties `json:"incidentProperties,omitempty"` // Status of the service impacting event. Status *ServiceImpactingEventStatus `json:"status,omitempty"` }
ServiceImpactingEvent - Lists the service impacting events that may be affecting the health of the resource.
func (ServiceImpactingEvent) MarshalJSON ¶
func (s ServiceImpactingEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceImpactingEvent.
func (*ServiceImpactingEvent) UnmarshalJSON ¶
func (s *ServiceImpactingEvent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceImpactingEvent.
type ServiceImpactingEventIncidentProperties ¶
type ServiceImpactingEventIncidentProperties struct { // Type of Event. IncidentType *string `json:"incidentType,omitempty"` // Region impacted by the event. Region *string `json:"region,omitempty"` // Service impacted by the event. Service *string `json:"service,omitempty"` // Title of the incident. Title *string `json:"title,omitempty"` }
ServiceImpactingEventIncidentProperties - Properties of the service impacting event.
type ServiceImpactingEventStatus ¶
type ServiceImpactingEventStatus struct { // Current status of the event Value *string `json:"value,omitempty"` }
ServiceImpactingEventStatus - Status of the service impacting event.
type StatusBanner ¶
type StatusBanner struct { // The cloud type of this banner. Cloud *string `json:"cloud,omitempty"` // The last time modified on this banner. LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty"` // The details of banner. Message *string `json:"message,omitempty"` // The banner title. Title *string `json:"title,omitempty"` }
StatusBanner - Banner type of emerging issue.
func (StatusBanner) MarshalJSON ¶
func (s StatusBanner) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StatusBanner.
func (*StatusBanner) UnmarshalJSON ¶
func (s *StatusBanner) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StatusBanner.