Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2023 v0.1.0 Mar 30, 2023 Changes in this version + type AggregationType string + const AggregationTypeAverage + const AggregationTypeCount + const AggregationTypeMaximum + const AggregationTypeMinimum + const AggregationTypeNone + const AggregationTypeTotal + func PossibleAggregationTypeValues() []AggregationType + type CategoryType string + const CategoryTypeLogs + const CategoryTypeMetrics + func PossibleCategoryTypeValues() []CategoryType + type ClientFactory struct + func NewClientFactory(credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) + func (c *ClientFactory) NewDiagnosticSettingsCategoryClient() *DiagnosticSettingsCategoryClient + func (c *ClientFactory) NewDiagnosticSettingsClient() *DiagnosticSettingsClient + func (c *ClientFactory) NewEventCategoriesClient() *EventCategoriesClient + func (c *ClientFactory) NewMetricDefinitionsClient() *MetricDefinitionsClient + func (c *ClientFactory) NewMetricsClient() *MetricsClient + func (c *ClientFactory) NewOperationsClient() *OperationsClient + type DiagnosticSettings struct + EventHubAuthorizationRuleID *string + EventHubName *string + LogAnalyticsDestinationType *string + Logs []*LogSettings + Metrics []*MetricSettings + ServiceBusRuleID *string + StorageAccountID *string + WorkspaceID *string + func (d *DiagnosticSettings) UnmarshalJSON(data []byte) error + func (d DiagnosticSettings) MarshalJSON() ([]byte, error) + type DiagnosticSettingsCategory struct + CategoryType *CategoryType + func (d *DiagnosticSettingsCategory) UnmarshalJSON(data []byte) error + func (d DiagnosticSettingsCategory) MarshalJSON() ([]byte, error) + type DiagnosticSettingsCategoryClient struct + func NewDiagnosticSettingsCategoryClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*DiagnosticSettingsCategoryClient, error) + func (client *DiagnosticSettingsCategoryClient) Get(ctx context.Context, resourceURI string, name string, ...) (DiagnosticSettingsCategoryClientGetResponse, error) + func (client *DiagnosticSettingsCategoryClient) List(ctx context.Context, resourceURI string, ...) (DiagnosticSettingsCategoryClientListResponse, error) + type DiagnosticSettingsCategoryClientGetOptions struct + type DiagnosticSettingsCategoryClientGetResponse struct + type DiagnosticSettingsCategoryClientListOptions struct + type DiagnosticSettingsCategoryClientListResponse struct + type DiagnosticSettingsCategoryResource struct + ID *string + Name *string + Properties *DiagnosticSettingsCategory + Type *string + func (d *DiagnosticSettingsCategoryResource) UnmarshalJSON(data []byte) error + func (d DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error) + type DiagnosticSettingsCategoryResourceCollection struct + Value []*DiagnosticSettingsCategoryResource + func (d *DiagnosticSettingsCategoryResourceCollection) UnmarshalJSON(data []byte) error + func (d DiagnosticSettingsCategoryResourceCollection) MarshalJSON() ([]byte, error) + type DiagnosticSettingsClient struct + func NewDiagnosticSettingsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*DiagnosticSettingsClient, error) + func (client *DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resourceURI string, name string, ...) (DiagnosticSettingsClientCreateOrUpdateResponse, error) + func (client *DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI string, name string, ...) (DiagnosticSettingsClientDeleteResponse, error) + func (client *DiagnosticSettingsClient) Get(ctx context.Context, resourceURI string, name string, ...) (DiagnosticSettingsClientGetResponse, error) + func (client *DiagnosticSettingsClient) List(ctx context.Context, resourceURI string, ...) (DiagnosticSettingsClientListResponse, error) + type DiagnosticSettingsClientCreateOrUpdateOptions struct + type DiagnosticSettingsClientCreateOrUpdateResponse struct + type DiagnosticSettingsClientDeleteOptions struct + type DiagnosticSettingsClientDeleteResponse struct + type DiagnosticSettingsClientGetOptions struct + type DiagnosticSettingsClientGetResponse struct + type DiagnosticSettingsClientListOptions struct + type DiagnosticSettingsClientListResponse struct + type DiagnosticSettingsResource struct + ID *string + Name *string + Properties *DiagnosticSettings + Type *string + func (d *DiagnosticSettingsResource) UnmarshalJSON(data []byte) error + func (d DiagnosticSettingsResource) MarshalJSON() ([]byte, error) + type DiagnosticSettingsResourceCollection struct + Value []*DiagnosticSettingsResource + func (d *DiagnosticSettingsResourceCollection) UnmarshalJSON(data []byte) error + func (d DiagnosticSettingsResourceCollection) MarshalJSON() ([]byte, error) + type ErrorResponse struct + Code *string + Message *string + func (e *ErrorResponse) UnmarshalJSON(data []byte) error + func (e ErrorResponse) MarshalJSON() ([]byte, error) + type EventCategoriesClient struct + func NewEventCategoriesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*EventCategoriesClient, error) + func (client *EventCategoriesClient) NewListPager(options *EventCategoriesClientListOptions) *runtime.Pager[EventCategoriesClientListResponse] + type EventCategoriesClientListOptions struct + type EventCategoriesClientListResponse struct + type EventCategoryCollection struct + Value []*LocalizableString + func (e *EventCategoryCollection) UnmarshalJSON(data []byte) error + func (e EventCategoryCollection) MarshalJSON() ([]byte, error) + type LocalizableString struct + LocalizedValue *string + Value *string + func (l *LocalizableString) UnmarshalJSON(data []byte) error + func (l LocalizableString) MarshalJSON() ([]byte, error) + type LogSettings struct + Category *string + Enabled *bool + RetentionPolicy *RetentionPolicy + func (l *LogSettings) UnmarshalJSON(data []byte) error + func (l LogSettings) MarshalJSON() ([]byte, error) + type MetadataValue struct + Name *LocalizableString + Value *string + func (m *MetadataValue) UnmarshalJSON(data []byte) error + func (m MetadataValue) MarshalJSON() ([]byte, error) + type Metric struct + DisplayDescription *string + ErrorCode *string + ErrorMessage *string + ID *string + Name *LocalizableString + Timeseries []*TimeSeriesElement + Type *string + Unit *MetricUnit + func (m *Metric) UnmarshalJSON(data []byte) error + func (m Metric) MarshalJSON() ([]byte, error) + type MetricAvailability struct + Retention *string + TimeGrain *string + func (m *MetricAvailability) UnmarshalJSON(data []byte) error + func (m MetricAvailability) MarshalJSON() ([]byte, error) + type MetricClass string + const MetricClassAvailability + const MetricClassErrors + const MetricClassLatency + const MetricClassSaturation + const MetricClassTransactions + func PossibleMetricClassValues() []MetricClass + type MetricDefinition struct + Category *string + Dimensions []*LocalizableString + DisplayDescription *string + ID *string + IsDimensionRequired *bool + MetricAvailabilities []*MetricAvailability + MetricClass *MetricClass + Name *LocalizableString + Namespace *string + PrimaryAggregationType *AggregationType + ResourceID *string + SupportedAggregationTypes []*AggregationType + Unit *MetricUnit + func (m *MetricDefinition) UnmarshalJSON(data []byte) error + func (m MetricDefinition) MarshalJSON() ([]byte, error) + type MetricDefinitionCollection struct + Value []*MetricDefinition + func (m *MetricDefinitionCollection) UnmarshalJSON(data []byte) error + func (m MetricDefinitionCollection) MarshalJSON() ([]byte, error) + type MetricDefinitionsClient struct + func NewMetricDefinitionsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*MetricDefinitionsClient, error) + func (client *MetricDefinitionsClient) NewListPager(resourceURI string, options *MetricDefinitionsClientListOptions) *runtime.Pager[MetricDefinitionsClientListResponse] + type MetricDefinitionsClientListOptions struct + Metricnamespace *string + type MetricDefinitionsClientListResponse struct + type MetricSettings struct + Category *string + Enabled *bool + RetentionPolicy *RetentionPolicy + TimeGrain *string + func (m *MetricSettings) UnmarshalJSON(data []byte) error + func (m MetricSettings) MarshalJSON() ([]byte, error) + type MetricUnit string + const MetricUnitBitsPerSecond + const MetricUnitByteSeconds + const MetricUnitBytes + const MetricUnitBytesPerSecond + const MetricUnitCores + const MetricUnitCount + const MetricUnitCountPerSecond + const MetricUnitMilliCores + const MetricUnitMilliSeconds + const MetricUnitNanoCores + const MetricUnitPercent + const MetricUnitSeconds + const MetricUnitUnspecified + func PossibleMetricUnitValues() []MetricUnit + type MetricValue struct + Average *float64 + Count *float64 + Maximum *float64 + Minimum *float64 + TimeStamp *time.Time + Total *float64 + func (m *MetricValue) UnmarshalJSON(data []byte) error + func (m MetricValue) MarshalJSON() ([]byte, error) + type MetricsClient struct + func NewMetricsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*MetricsClient, error) + func (client *MetricsClient) List(ctx context.Context, resourceURI string, options *MetricsClientListOptions) (MetricsClientListResponse, error) + type MetricsClientListOptions struct + Aggregation *string + Filter *string + Interval *string + Metricnames *string + Metricnamespace *string + Orderby *string + ResultType *ResultType + Timespan *string + Top *int32 + type MetricsClientListResponse struct + type Operation struct + Display *OperationDisplay + Name *string + func (o *Operation) UnmarshalJSON(data []byte) error + func (o Operation) MarshalJSON() ([]byte, error) + type OperationDisplay struct + Operation *string + Provider *string + Resource *string + func (o *OperationDisplay) UnmarshalJSON(data []byte) error + func (o OperationDisplay) MarshalJSON() ([]byte, error) + type OperationListResult struct + NextLink *string + Value []*Operation + func (o *OperationListResult) UnmarshalJSON(data []byte) error + func (o OperationListResult) MarshalJSON() ([]byte, error) + type OperationsClient struct + func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) + func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error) + type OperationsClientListOptions struct + type OperationsClientListResponse struct + type ProxyOnlyResource struct + ID *string + Name *string + Type *string + func (p *ProxyOnlyResource) UnmarshalJSON(data []byte) error + func (p ProxyOnlyResource) MarshalJSON() ([]byte, error) + type Response struct + Cost *int32 + Interval *string + Namespace *string + Resourceregion *string + Timespan *string + Value []*Metric + func (r *Response) UnmarshalJSON(data []byte) error + func (r Response) MarshalJSON() ([]byte, error) + type ResultType string + const ResultTypeData + const ResultTypeMetadata + func PossibleResultTypeValues() []ResultType + type RetentionPolicy struct + Days *int32 + Enabled *bool + func (r *RetentionPolicy) UnmarshalJSON(data []byte) error + func (r RetentionPolicy) MarshalJSON() ([]byte, error) + type TimeSeriesElement struct + Data []*MetricValue + Metadatavalues []*MetadataValue + func (t *TimeSeriesElement) UnmarshalJSON(data []byte) error + func (t TimeSeriesElement) MarshalJSON() ([]byte, error)