Documentation ¶
Index ¶
- func PossibleValuesForAlertSeverity() []string
- func ValidateAlertID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDataBoxEdgeDeviceID(input interface{}, key string) (warnings []string, errors []error)
- type Alert
- type AlertErrorDetails
- type AlertId
- type AlertOperationPredicate
- type AlertProperties
- type AlertSeverity
- type AlertsClient
- func (c AlertsClient) Get(ctx context.Context, id AlertId) (result GetOperationResponse, err error)
- func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error)
- func (c AlertsClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, id DataBoxEdgeDeviceId) (ListByDataBoxEdgeDeviceCompleteResult, error)
- func (c AlertsClient) ListByDataBoxEdgeDeviceCompleteMatchingPredicate(ctx context.Context, id DataBoxEdgeDeviceId, predicate AlertOperationPredicate) (result ListByDataBoxEdgeDeviceCompleteResult, err error)
- type DataBoxEdgeDeviceId
- type GetOperationResponse
- type ListByDataBoxEdgeDeviceCompleteResult
- type ListByDataBoxEdgeDeviceOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertSeverity ¶
func PossibleValuesForAlertSeverity() []string
func ValidateAlertID ¶
ValidateAlertID checks that 'input' can be parsed as a Alert ID
func ValidateDataBoxEdgeDeviceID ¶
ValidateDataBoxEdgeDeviceID checks that 'input' can be parsed as a Data Box Edge Device ID
Types ¶
type Alert ¶
type Alert struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AlertProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type AlertErrorDetails ¶
type AlertId ¶
type AlertId struct { SubscriptionId string ResourceGroupName string DataBoxEdgeDeviceName string AlertName string }
AlertId is a struct representing the Resource ID for a Alert
func NewAlertID ¶
func NewAlertID(subscriptionId string, resourceGroupName string, dataBoxEdgeDeviceName string, alertName string) AlertId
NewAlertID returns a new AlertId struct
func ParseAlertID ¶
ParseAlertID parses 'input' into a AlertId
func ParseAlertIDInsensitively ¶
ParseAlertIDInsensitively parses 'input' case-insensitively into a AlertId note: this method should only be used for API response data and not user input
func (AlertId) Segments ¶
func (id AlertId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Alert ID
type AlertOperationPredicate ¶
func (AlertOperationPredicate) Matches ¶
func (p AlertOperationPredicate) Matches(input Alert) bool
type AlertProperties ¶
type AlertProperties struct { AlertType *string `json:"alertType,omitempty"` AppearedAtDateTime *string `json:"appearedAtDateTime,omitempty"` DetailedInformation *map[string]string `json:"detailedInformation,omitempty"` ErrorDetails *AlertErrorDetails `json:"errorDetails,omitempty"` Recommendation *string `json:"recommendation,omitempty"` Severity *AlertSeverity `json:"severity,omitempty"` Title *string `json:"title,omitempty"` }
func (*AlertProperties) GetAppearedAtDateTimeAsTime ¶
func (o *AlertProperties) GetAppearedAtDateTimeAsTime() (*time.Time, error)
func (*AlertProperties) SetAppearedAtDateTimeAsTime ¶
func (o *AlertProperties) SetAppearedAtDateTimeAsTime(input time.Time)
type AlertSeverity ¶
type AlertSeverity string
const ( AlertSeverityCritical AlertSeverity = "Critical" AlertSeverityInformational AlertSeverity = "Informational" AlertSeverityWarning AlertSeverity = "Warning" )
func (*AlertSeverity) UnmarshalJSON ¶
func (s *AlertSeverity) UnmarshalJSON(bytes []byte) error
type AlertsClient ¶
type AlertsClient struct {
Client *resourcemanager.Client
}
func NewAlertsClientWithBaseURI ¶
func NewAlertsClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertsClient, error)
func (AlertsClient) Get ¶
func (c AlertsClient) Get(ctx context.Context, id AlertId) (result GetOperationResponse, err error)
Get ...
func (AlertsClient) ListByDataBoxEdgeDevice ¶
func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error)
ListByDataBoxEdgeDevice ...
func (AlertsClient) ListByDataBoxEdgeDeviceComplete ¶
func (c AlertsClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, id DataBoxEdgeDeviceId) (ListByDataBoxEdgeDeviceCompleteResult, error)
ListByDataBoxEdgeDeviceComplete retrieves all the results into a single object
func (AlertsClient) ListByDataBoxEdgeDeviceCompleteMatchingPredicate ¶
func (c AlertsClient) ListByDataBoxEdgeDeviceCompleteMatchingPredicate(ctx context.Context, id DataBoxEdgeDeviceId, predicate AlertOperationPredicate) (result ListByDataBoxEdgeDeviceCompleteResult, err error)
ListByDataBoxEdgeDeviceCompleteMatchingPredicate retrieves all the results and then applies the predicate
type DataBoxEdgeDeviceId ¶
type DataBoxEdgeDeviceId struct { SubscriptionId string ResourceGroupName string DataBoxEdgeDeviceName string }
DataBoxEdgeDeviceId is a struct representing the Resource ID for a Data Box Edge Device
func NewDataBoxEdgeDeviceID ¶
func NewDataBoxEdgeDeviceID(subscriptionId string, resourceGroupName string, dataBoxEdgeDeviceName string) DataBoxEdgeDeviceId
NewDataBoxEdgeDeviceID returns a new DataBoxEdgeDeviceId struct
func ParseDataBoxEdgeDeviceID ¶
func ParseDataBoxEdgeDeviceID(input string) (*DataBoxEdgeDeviceId, error)
ParseDataBoxEdgeDeviceID parses 'input' into a DataBoxEdgeDeviceId
func ParseDataBoxEdgeDeviceIDInsensitively ¶
func ParseDataBoxEdgeDeviceIDInsensitively(input string) (*DataBoxEdgeDeviceId, error)
ParseDataBoxEdgeDeviceIDInsensitively parses 'input' case-insensitively into a DataBoxEdgeDeviceId note: this method should only be used for API response data and not user input
func (DataBoxEdgeDeviceId) ID ¶
func (id DataBoxEdgeDeviceId) ID() string
ID returns the formatted Data Box Edge Device ID
func (DataBoxEdgeDeviceId) Segments ¶
func (id DataBoxEdgeDeviceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Box Edge Device ID
func (DataBoxEdgeDeviceId) String ¶
func (id DataBoxEdgeDeviceId) String() string
String returns a human-readable description of this Data Box Edge Device ID
type GetOperationResponse ¶
type ListByDataBoxEdgeDeviceCompleteResult ¶
type ListByDataBoxEdgeDeviceCompleteResult struct {
Items []Alert
}