Documentation ¶
Index ¶
- func PossibleValuesForCategory() []string
- func ValidateDiagnosticSettingID(input interface{}, key string) (warnings []string, errors []error)
- type Category
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type DiagnosticSettingId
- type DiagnosticSettings
- type DiagnosticSettingsClient
- func (c DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, id DiagnosticSettingId, input DiagnosticSettingsResource) (result CreateOrUpdateOperationResponse, err error)
- func (c DiagnosticSettingsClient) Delete(ctx context.Context, id DiagnosticSettingId) (result DeleteOperationResponse, err error)
- func (c DiagnosticSettingsClient) Get(ctx context.Context, id DiagnosticSettingId) (result GetOperationResponse, err error)
- func (c DiagnosticSettingsClient) List(ctx context.Context) (result ListOperationResponse, err error)
- type DiagnosticSettingsResource
- type DiagnosticSettingsResourceCollection
- type GetOperationResponse
- type ListOperationResponse
- type LogSettings
- type RetentionPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCategory ¶
func PossibleValuesForCategory() []string
func ValidateDiagnosticSettingID ¶
ValidateDiagnosticSettingID checks that 'input' can be parsed as a Diagnostic Setting ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DiagnosticSettingsResource }
type DeleteOperationResponse ¶
type DiagnosticSettingId ¶
type DiagnosticSettingId struct {
DiagnosticSettingName string
}
DiagnosticSettingId is a struct representing the Resource ID for a Diagnostic Setting
func NewDiagnosticSettingID ¶
func NewDiagnosticSettingID(diagnosticSettingName string) DiagnosticSettingId
NewDiagnosticSettingID returns a new DiagnosticSettingId struct
func ParseDiagnosticSettingID ¶
func ParseDiagnosticSettingID(input string) (*DiagnosticSettingId, error)
ParseDiagnosticSettingID parses 'input' into a DiagnosticSettingId
func ParseDiagnosticSettingIDInsensitively ¶
func ParseDiagnosticSettingIDInsensitively(input string) (*DiagnosticSettingId, error)
ParseDiagnosticSettingIDInsensitively parses 'input' case-insensitively into a DiagnosticSettingId note: this method should only be used for API response data and not user input
func (*DiagnosticSettingId) FromParseResult ¶
func (id *DiagnosticSettingId) FromParseResult(input resourceids.ParseResult) error
func (DiagnosticSettingId) ID ¶
func (id DiagnosticSettingId) ID() string
ID returns the formatted Diagnostic Setting ID
func (DiagnosticSettingId) Segments ¶
func (id DiagnosticSettingId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Diagnostic Setting ID
func (DiagnosticSettingId) String ¶
func (id DiagnosticSettingId) String() string
String returns a human-readable description of this Diagnostic Setting ID
type DiagnosticSettings ¶
type DiagnosticSettings struct { EventHubAuthorizationRuleId *string `json:"eventHubAuthorizationRuleId,omitempty"` EventHubName *string `json:"eventHubName,omitempty"` Logs *[]LogSettings `json:"logs,omitempty"` ServiceBusRuleId *string `json:"serviceBusRuleId,omitempty"` StorageAccountId *string `json:"storageAccountId,omitempty"` WorkspaceId *string `json:"workspaceId,omitempty"` }
type DiagnosticSettingsClient ¶
type DiagnosticSettingsClient struct {
Client *resourcemanager.Client
}
func NewDiagnosticSettingsClientWithBaseURI ¶
func NewDiagnosticSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticSettingsClient, error)
func (DiagnosticSettingsClient) CreateOrUpdate ¶
func (c DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, id DiagnosticSettingId, input DiagnosticSettingsResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DiagnosticSettingsClient) Delete ¶
func (c DiagnosticSettingsClient) Delete(ctx context.Context, id DiagnosticSettingId) (result DeleteOperationResponse, err error)
Delete ...
func (DiagnosticSettingsClient) Get ¶
func (c DiagnosticSettingsClient) Get(ctx context.Context, id DiagnosticSettingId) (result GetOperationResponse, err error)
Get ...
func (DiagnosticSettingsClient) List ¶
func (c DiagnosticSettingsClient) List(ctx context.Context) (result ListOperationResponse, err error)
List ...
type DiagnosticSettingsResource ¶
type DiagnosticSettingsResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DiagnosticSettings `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type DiagnosticSettingsResourceCollection ¶
type DiagnosticSettingsResourceCollection struct {
Value *[]DiagnosticSettingsResource `json:"value,omitempty"`
}
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DiagnosticSettingsResource }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DiagnosticSettingsResourceCollection }
type LogSettings ¶
type LogSettings struct { Category *Category `json:"category,omitempty"` Enabled bool `json:"enabled"` RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` }