Documentation ¶
Overview ¶
Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
Package datacollection implements the Azure ARM Datacollection service API version 2021-09-01-preview.
Monitor Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AzureMonitorMetricsDestination
- type BaseClient
- type ColumnDefinition
- type ConfigurationAccessEndpointSpec
- type CreatedByType
- type DataFlow
- type DataSourcesSpec
- type DestinationsSpec
- type DestinationsSpecAzureMonitorMetrics
- type Endpoint
- type EndpointConfigurationAccess
- type EndpointLogsIngestion
- type EndpointNetworkAcls
- type EndpointResource
- type EndpointResourceListResult
- type EndpointResourceListResultIterator
- func (iter *EndpointResourceListResultIterator) Next() error
- func (iter *EndpointResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter EndpointResourceListResultIterator) NotDone() bool
- func (iter EndpointResourceListResultIterator) Response() EndpointResourceListResult
- func (iter EndpointResourceListResultIterator) Value() EndpointResource
- type EndpointResourceListResultPage
- func (page *EndpointResourceListResultPage) Next() error
- func (page *EndpointResourceListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page EndpointResourceListResultPage) NotDone() bool
- func (page EndpointResourceListResultPage) Response() EndpointResourceListResult
- func (page EndpointResourceListResultPage) Values() []EndpointResource
- type EndpointResourceProperties
- type EndpointResourceSystemData
- type EndpointsClient
- func (client EndpointsClient) Create(ctx context.Context, resourceGroupName string, ...) (result EndpointResource, err error)
- func (client EndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client EndpointsClient) CreateResponder(resp *http.Response) (result EndpointResource, err error)
- func (client EndpointsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName string, ...) (result autorest.Response, err error)
- func (client EndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client EndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EndpointsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, ...) (result EndpointResource, err error)
- func (client EndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client EndpointsClient) GetResponder(resp *http.Response) (result EndpointResource, err error)
- func (client EndpointsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result EndpointResourceListResultPage, err error)
- func (client EndpointsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result EndpointResourceListResultIterator, err error)
- func (client EndpointsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client EndpointsClient) ListByResourceGroupResponder(resp *http.Response) (result EndpointResourceListResult, err error)
- func (client EndpointsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) ListBySubscription(ctx context.Context) (result EndpointResourceListResultPage, err error)
- func (client EndpointsClient) ListBySubscriptionComplete(ctx context.Context) (result EndpointResourceListResultIterator, err error)
- func (client EndpointsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client EndpointsClient) ListBySubscriptionResponder(resp *http.Response) (result EndpointResourceListResult, err error)
- func (client EndpointsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Update(ctx context.Context, resourceGroupName string, ...) (result EndpointResource, err error)
- func (client EndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client EndpointsClient) UpdateResponder(resp *http.Response) (result EndpointResource, err error)
- func (client EndpointsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponseCommonV2
- type ExtensionDataSource
- type IisLogsDataSource
- type KnownColumnDefinitionType
- type KnownDataCollectionEndpointProvisioningState
- type KnownDataCollectionEndpointResourceKind
- type KnownDataCollectionRuleAssociationProvisioningState
- type KnownDataCollectionRuleProvisioningState
- type KnownDataCollectionRuleResourceKind
- type KnownDataFlowStreams
- type KnownExtensionDataSourceStreams
- type KnownLogFileTextSettingsRecordStartTimestampFormat
- type KnownPerfCounterDataSourceStreams
- type KnownPublicNetworkAccessOptions
- type KnownSyslogDataSourceFacilityNames
- type KnownSyslogDataSourceLogLevels
- type KnownSyslogDataSourceStreams
- type KnownWindowsEventLogDataSourceStreams
- type LogAnalyticsDestination
- type LogFileSettings
- type LogFileSettingsText
- type LogFileTextSettings
- type LogFilesDataSource
- type LogFilesDataSourceSettings
- type LogsIngestionEndpointSpec
- type Metadata
- type NetworkRuleSet
- type PerfCounterDataSource
- type ResourceForUpdate
- type Rule
- type RuleAssociation
- type RuleAssociationMetadata
- type RuleAssociationProxyOnlyResource
- type RuleAssociationProxyOnlyResourceListResult
- type RuleAssociationProxyOnlyResourceListResultIterator
- func (iter *RuleAssociationProxyOnlyResourceListResultIterator) Next() error
- func (iter *RuleAssociationProxyOnlyResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RuleAssociationProxyOnlyResourceListResultIterator) NotDone() bool
- func (iter RuleAssociationProxyOnlyResourceListResultIterator) Response() RuleAssociationProxyOnlyResourceListResult
- func (iter RuleAssociationProxyOnlyResourceListResultIterator) Value() RuleAssociationProxyOnlyResource
- type RuleAssociationProxyOnlyResourceListResultPage
- func (page *RuleAssociationProxyOnlyResourceListResultPage) Next() error
- func (page *RuleAssociationProxyOnlyResourceListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page RuleAssociationProxyOnlyResourceListResultPage) NotDone() bool
- func (page RuleAssociationProxyOnlyResourceListResultPage) Response() RuleAssociationProxyOnlyResourceListResult
- func (page RuleAssociationProxyOnlyResourceListResultPage) Values() []RuleAssociationProxyOnlyResource
- type RuleAssociationProxyOnlyResourceProperties
- type RuleAssociationProxyOnlyResourceSystemData
- type RuleAssociationsClient
- func (client RuleAssociationsClient) Create(ctx context.Context, resourceURI string, associationName string, ...) (result RuleAssociationProxyOnlyResource, err error)
- func (client RuleAssociationsClient) CreatePreparer(ctx context.Context, resourceURI string, associationName string, ...) (*http.Request, error)
- func (client RuleAssociationsClient) CreateResponder(resp *http.Response) (result RuleAssociationProxyOnlyResource, err error)
- func (client RuleAssociationsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client RuleAssociationsClient) Delete(ctx context.Context, resourceURI string, associationName string) (result autorest.Response, err error)
- func (client RuleAssociationsClient) DeletePreparer(ctx context.Context, resourceURI string, associationName string) (*http.Request, error)
- func (client RuleAssociationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client RuleAssociationsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client RuleAssociationsClient) Get(ctx context.Context, resourceURI string, associationName string) (result RuleAssociationProxyOnlyResource, err error)
- func (client RuleAssociationsClient) GetPreparer(ctx context.Context, resourceURI string, associationName string) (*http.Request, error)
- func (client RuleAssociationsClient) GetResponder(resp *http.Response) (result RuleAssociationProxyOnlyResource, err error)
- func (client RuleAssociationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RuleAssociationsClient) ListByDataCollectionEndpoint(ctx context.Context, resourceGroupName string, ...) (result RuleAssociationProxyOnlyResourceListResultPage, err error)
- func (client RuleAssociationsClient) ListByDataCollectionEndpointComplete(ctx context.Context, resourceGroupName string, ...) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
- func (client RuleAssociationsClient) ListByDataCollectionEndpointPreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client RuleAssociationsClient) ListByDataCollectionEndpointResponder(resp *http.Response) (result RuleAssociationProxyOnlyResourceListResult, err error)
- func (client RuleAssociationsClient) ListByDataCollectionEndpointSender(req *http.Request) (*http.Response, error)
- func (client RuleAssociationsClient) ListByResource(ctx context.Context, resourceURI string) (result RuleAssociationProxyOnlyResourceListResultPage, err error)
- func (client RuleAssociationsClient) ListByResourceComplete(ctx context.Context, resourceURI string) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
- func (client RuleAssociationsClient) ListByResourcePreparer(ctx context.Context, resourceURI string) (*http.Request, error)
- func (client RuleAssociationsClient) ListByResourceResponder(resp *http.Response) (result RuleAssociationProxyOnlyResourceListResult, err error)
- func (client RuleAssociationsClient) ListByResourceSender(req *http.Request) (*http.Response, error)
- func (client RuleAssociationsClient) ListByRule(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result RuleAssociationProxyOnlyResourceListResultPage, err error)
- func (client RuleAssociationsClient) ListByRuleComplete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
- func (client RuleAssociationsClient) ListByRulePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
- func (client RuleAssociationsClient) ListByRuleResponder(resp *http.Response) (result RuleAssociationProxyOnlyResourceListResult, err error)
- func (client RuleAssociationsClient) ListByRuleSender(req *http.Request) (*http.Response, error)
- type RuleDataSources
- type RuleDestinations
- type RuleMetadata
- type RuleResource
- type RuleResourceListResult
- type RuleResourceListResultIterator
- func (iter *RuleResourceListResultIterator) Next() error
- func (iter *RuleResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RuleResourceListResultIterator) NotDone() bool
- func (iter RuleResourceListResultIterator) Response() RuleResourceListResult
- func (iter RuleResourceListResultIterator) Value() RuleResource
- type RuleResourceListResultPage
- func (page *RuleResourceListResultPage) Next() error
- func (page *RuleResourceListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page RuleResourceListResultPage) NotDone() bool
- func (page RuleResourceListResultPage) Response() RuleResourceListResult
- func (page RuleResourceListResultPage) Values() []RuleResource
- type RuleResourceProperties
- type RuleResourceSystemData
- type RulesClient
- func (client RulesClient) Create(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, ...) (result RuleResource, err error)
- func (client RulesClient) CreatePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, ...) (*http.Request, error)
- func (client RulesClient) CreateResponder(resp *http.Response) (result RuleResource, err error)
- func (client RulesClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client RulesClient) Delete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result autorest.Response, err error)
- func (client RulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
- func (client RulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client RulesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client RulesClient) Get(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result RuleResource, err error)
- func (client RulesClient) GetPreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
- func (client RulesClient) GetResponder(resp *http.Response) (result RuleResource, err error)
- func (client RulesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result RuleResourceListResultPage, err error)
- func (client RulesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RuleResourceListResultIterator, err error)
- func (client RulesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client RulesClient) ListByResourceGroupResponder(resp *http.Response) (result RuleResourceListResult, err error)
- func (client RulesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client RulesClient) ListBySubscription(ctx context.Context) (result RuleResourceListResultPage, err error)
- func (client RulesClient) ListBySubscriptionComplete(ctx context.Context) (result RuleResourceListResultIterator, err error)
- func (client RulesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client RulesClient) ListBySubscriptionResponder(resp *http.Response) (result RuleResourceListResult, err error)
- func (client RulesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client RulesClient) Update(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, ...) (result RuleResource, err error)
- func (client RulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, ...) (*http.Request, error)
- func (client RulesClient) UpdateResponder(resp *http.Response) (result RuleResource, err error)
- func (client RulesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type StreamDeclaration
- type SyslogDataSource
- type SystemData
- type WindowsEventLogDataSource
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Datacollection
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AzureMonitorMetricsDestination ¶
type AzureMonitorMetricsDestination struct { // Name - A friendly name for the destination. // This name should be unique across all destinations (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
AzureMonitorMetricsDestination azure Monitor Metrics destination.
type BaseClient ¶
BaseClient is the base client for Datacollection.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type ColumnDefinition ¶
type ColumnDefinition struct { // Name - The name of the column. Name *string `json:"name,omitempty"` // Type - The type of the column data. Possible values include: 'KnownColumnDefinitionTypeString', 'KnownColumnDefinitionTypeInt', 'KnownColumnDefinitionTypeLong', 'KnownColumnDefinitionTypeReal', 'KnownColumnDefinitionTypeBoolean', 'KnownColumnDefinitionTypeDatetime', 'KnownColumnDefinitionTypeDynamic' Type KnownColumnDefinitionType `json:"type,omitempty"` }
ColumnDefinition definition of custom data column.
type ConfigurationAccessEndpointSpec ¶
type ConfigurationAccessEndpointSpec struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
ConfigurationAccessEndpointSpec definition of the endpoint used for accessing configuration.
func (ConfigurationAccessEndpointSpec) MarshalJSON ¶
func (caes ConfigurationAccessEndpointSpec) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationAccessEndpointSpec.
type CreatedByType ¶
type CreatedByType string
CreatedByType enumerates the values for created by type.
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
type DataFlow ¶
type DataFlow struct { // Streams - List of streams for this data flow. Streams *[]KnownDataFlowStreams `json:"streams,omitempty"` // Destinations - List of destinations for this data flow. Destinations *[]string `json:"destinations,omitempty"` // TransformKql - The KQL query to transform stream data. TransformKql *string `json:"transformKql,omitempty"` // OutputStream - The output stream of the transform. Only required if the transform changes data to a different stream. OutputStream *string `json:"outputStream,omitempty"` }
DataFlow definition of which streams are sent to which destinations.
type DataSourcesSpec ¶
type DataSourcesSpec struct { // PerformanceCounters - The list of performance counter data source configurations. PerformanceCounters *[]PerfCounterDataSource `json:"performanceCounters,omitempty"` // WindowsEventLogs - The list of Windows Event Log data source configurations. WindowsEventLogs *[]WindowsEventLogDataSource `json:"windowsEventLogs,omitempty"` // Syslog - The list of Syslog data source configurations. Syslog *[]SyslogDataSource `json:"syslog,omitempty"` // Extensions - The list of Azure VM extension data source configurations. Extensions *[]ExtensionDataSource `json:"extensions,omitempty"` // LogFiles - The list of Log files source configurations. LogFiles *[]LogFilesDataSource `json:"logFiles,omitempty"` // IisLogs - The list of IIS logs source configurations. IisLogs *[]IisLogsDataSource `json:"iisLogs,omitempty"` }
DataSourcesSpec specification of data sources that will be collected.
type DestinationsSpec ¶
type DestinationsSpec struct { // LogAnalytics - List of Log Analytics destinations. LogAnalytics *[]LogAnalyticsDestination `json:"logAnalytics,omitempty"` // AzureMonitorMetrics - Azure Monitor Metrics destination. AzureMonitorMetrics *DestinationsSpecAzureMonitorMetrics `json:"azureMonitorMetrics,omitempty"` }
DestinationsSpec specification of destinations that can be used in data flows.
type DestinationsSpecAzureMonitorMetrics ¶
type DestinationsSpecAzureMonitorMetrics struct { // Name - A friendly name for the destination. // This name should be unique across all destinations (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
DestinationsSpecAzureMonitorMetrics azure Monitor Metrics destination.
type Endpoint ¶
type Endpoint struct { // Description - Description of the data collection endpoint. Description *string `json:"description,omitempty"` // ImmutableID - The immutable ID of this data collection endpoint resource. This property is READ-ONLY. ImmutableID *string `json:"immutableId,omitempty"` // ConfigurationAccess - The endpoint used by clients to access their configuration. ConfigurationAccess *EndpointConfigurationAccess `json:"configurationAccess,omitempty"` // LogsIngestion - The endpoint used by clients to ingest logs. LogsIngestion *EndpointLogsIngestion `json:"logsIngestion,omitempty"` // NetworkAcls - Network access control rules for the endpoints. NetworkAcls *EndpointNetworkAcls `json:"networkAcls,omitempty"` // ProvisioningState - READ-ONLY; The resource provisioning state. This property is READ-ONLY. Possible values include: 'KnownDataCollectionEndpointProvisioningStateCreating', 'KnownDataCollectionEndpointProvisioningStateUpdating', 'KnownDataCollectionEndpointProvisioningStateDeleting', 'KnownDataCollectionEndpointProvisioningStateSucceeded', 'KnownDataCollectionEndpointProvisioningStateFailed' ProvisioningState KnownDataCollectionEndpointProvisioningState `json:"provisioningState,omitempty"` }
Endpoint definition of data collection endpoint.
func (Endpoint) MarshalJSON ¶
MarshalJSON is the custom marshaler for Endpoint.
type EndpointConfigurationAccess ¶
type EndpointConfigurationAccess struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
EndpointConfigurationAccess the endpoint used by clients to access their configuration.
func (EndpointConfigurationAccess) MarshalJSON ¶
func (eA EndpointConfigurationAccess) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointConfigurationAccess.
type EndpointLogsIngestion ¶
type EndpointLogsIngestion struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
EndpointLogsIngestion the endpoint used by clients to ingest logs.
func (EndpointLogsIngestion) MarshalJSON ¶
func (eI EndpointLogsIngestion) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointLogsIngestion.
type EndpointNetworkAcls ¶
type EndpointNetworkAcls struct { // PublicNetworkAccess - The configuration to set whether network access from public internet to the endpoints are allowed. Possible values include: 'KnownPublicNetworkAccessOptionsEnabled', 'KnownPublicNetworkAccessOptionsDisabled' PublicNetworkAccess KnownPublicNetworkAccessOptions `json:"publicNetworkAccess,omitempty"` }
EndpointNetworkAcls network access control rules for the endpoints.
type EndpointResource ¶
type EndpointResource struct { autorest.Response `json:"-"` // EndpointResourceProperties - Resource properties. *EndpointResourceProperties `json:"properties,omitempty"` // Location - The geo-location where the resource lives. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Kind - The kind of the resource. Possible values include: 'KnownDataCollectionEndpointResourceKindLinux', 'KnownDataCollectionEndpointResourceKindWindows' Kind KnownDataCollectionEndpointResourceKind `json:"kind,omitempty"` // ID - READ-ONLY; Fully qualified ID of the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Etag - READ-ONLY; Resource entity tag (ETag). Etag *string `json:"etag,omitempty"` // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *EndpointResourceSystemData `json:"systemData,omitempty"` }
EndpointResource definition of ARM tracked top level resource.
func (EndpointResource) MarshalJSON ¶
func (er EndpointResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointResource.
func (*EndpointResource) UnmarshalJSON ¶
func (er *EndpointResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EndpointResource struct.
type EndpointResourceListResult ¶
type EndpointResourceListResult struct { autorest.Response `json:"-"` // Value - A list of resources. Value *[]EndpointResource `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
EndpointResourceListResult a pageable list of resources.
func (EndpointResourceListResult) IsEmpty ¶
func (erlr EndpointResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type EndpointResourceListResultIterator ¶
type EndpointResourceListResultIterator struct {
// contains filtered or unexported fields
}
EndpointResourceListResultIterator provides access to a complete listing of EndpointResource values.
func NewEndpointResourceListResultIterator ¶
func NewEndpointResourceListResultIterator(page EndpointResourceListResultPage) EndpointResourceListResultIterator
Creates a new instance of the EndpointResourceListResultIterator type.
func (*EndpointResourceListResultIterator) Next ¶
func (iter *EndpointResourceListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*EndpointResourceListResultIterator) NextWithContext ¶
func (iter *EndpointResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (EndpointResourceListResultIterator) NotDone ¶
func (iter EndpointResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (EndpointResourceListResultIterator) Response ¶
func (iter EndpointResourceListResultIterator) Response() EndpointResourceListResult
Response returns the raw server response from the last page request.
func (EndpointResourceListResultIterator) Value ¶
func (iter EndpointResourceListResultIterator) Value() EndpointResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type EndpointResourceListResultPage ¶
type EndpointResourceListResultPage struct {
// contains filtered or unexported fields
}
EndpointResourceListResultPage contains a page of EndpointResource values.
func NewEndpointResourceListResultPage ¶
func NewEndpointResourceListResultPage(cur EndpointResourceListResult, getNextPage func(context.Context, EndpointResourceListResult) (EndpointResourceListResult, error)) EndpointResourceListResultPage
Creates a new instance of the EndpointResourceListResultPage type.
func (*EndpointResourceListResultPage) Next ¶
func (page *EndpointResourceListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*EndpointResourceListResultPage) NextWithContext ¶
func (page *EndpointResourceListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (EndpointResourceListResultPage) NotDone ¶
func (page EndpointResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (EndpointResourceListResultPage) Response ¶
func (page EndpointResourceListResultPage) Response() EndpointResourceListResult
Response returns the raw server response from the last page request.
func (EndpointResourceListResultPage) Values ¶
func (page EndpointResourceListResultPage) Values() []EndpointResource
Values returns the slice of values for the current page or nil if there are no values.
type EndpointResourceProperties ¶
type EndpointResourceProperties struct { // Description - Description of the data collection endpoint. Description *string `json:"description,omitempty"` // ImmutableID - The immutable ID of this data collection endpoint resource. This property is READ-ONLY. ImmutableID *string `json:"immutableId,omitempty"` // ConfigurationAccess - The endpoint used by clients to access their configuration. ConfigurationAccess *EndpointConfigurationAccess `json:"configurationAccess,omitempty"` // LogsIngestion - The endpoint used by clients to ingest logs. LogsIngestion *EndpointLogsIngestion `json:"logsIngestion,omitempty"` // NetworkAcls - Network access control rules for the endpoints. NetworkAcls *EndpointNetworkAcls `json:"networkAcls,omitempty"` // ProvisioningState - READ-ONLY; The resource provisioning state. This property is READ-ONLY. Possible values include: 'KnownDataCollectionEndpointProvisioningStateCreating', 'KnownDataCollectionEndpointProvisioningStateUpdating', 'KnownDataCollectionEndpointProvisioningStateDeleting', 'KnownDataCollectionEndpointProvisioningStateSucceeded', 'KnownDataCollectionEndpointProvisioningStateFailed' ProvisioningState KnownDataCollectionEndpointProvisioningState `json:"provisioningState,omitempty"` }
EndpointResourceProperties resource properties.
func (EndpointResourceProperties) MarshalJSON ¶
func (er EndpointResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointResourceProperties.
type EndpointResourceSystemData ¶
type EndpointResourceSystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
EndpointResourceSystemData metadata pertaining to creation and last modification of the resource.
type EndpointsClient ¶
type EndpointsClient struct {
BaseClient
}
EndpointsClient is the monitor Management Client
func NewEndpointsClient ¶
func NewEndpointsClient(subscriptionID string) EndpointsClient
NewEndpointsClient creates an instance of the EndpointsClient client.
func NewEndpointsClientWithBaseURI ¶
func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient
NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (EndpointsClient) Create ¶
func (client EndpointsClient) Create(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *EndpointResource) (result EndpointResource, err error)
Create sends the create request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionEndpointName - the name of the data collection endpoint. The name is case insensitive. body - the payload
func (EndpointsClient) CreatePreparer ¶
func (client EndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *EndpointResource) (*http.Request, error)
CreatePreparer prepares the Create request.
func (EndpointsClient) CreateResponder ¶
func (client EndpointsClient) CreateResponder(resp *http.Response) (result EndpointResource, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (EndpointsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Delete ¶
func (client EndpointsClient) Delete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result autorest.Response, err error)
Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionEndpointName - the name of the data collection endpoint. The name is case insensitive.
func (EndpointsClient) DeletePreparer ¶
func (client EndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (EndpointsClient) DeleteResponder ¶
func (client EndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (EndpointsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Get ¶
func (client EndpointsClient) Get(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result EndpointResource, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionEndpointName - the name of the data collection endpoint. The name is case insensitive.
func (EndpointsClient) GetPreparer ¶
func (client EndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (EndpointsClient) GetResponder ¶
func (client EndpointsClient) GetResponder(resp *http.Response) (result EndpointResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (EndpointsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) ListByResourceGroup ¶
func (client EndpointsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result EndpointResourceListResultPage, err error)
ListByResourceGroup sends the list by resource group request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (EndpointsClient) ListByResourceGroupComplete ¶
func (client EndpointsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result EndpointResourceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (EndpointsClient) ListByResourceGroupPreparer ¶
func (client EndpointsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (EndpointsClient) ListByResourceGroupResponder ¶
func (client EndpointsClient) ListByResourceGroupResponder(resp *http.Response) (result EndpointResourceListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (EndpointsClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) ListBySubscription ¶
func (client EndpointsClient) ListBySubscription(ctx context.Context) (result EndpointResourceListResultPage, err error)
ListBySubscription sends the list by subscription request.
func (EndpointsClient) ListBySubscriptionComplete ¶
func (client EndpointsClient) ListBySubscriptionComplete(ctx context.Context) (result EndpointResourceListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (EndpointsClient) ListBySubscriptionPreparer ¶
func (client EndpointsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (EndpointsClient) ListBySubscriptionResponder ¶
func (client EndpointsClient) ListBySubscriptionResponder(resp *http.Response) (result EndpointResourceListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (EndpointsClient) ListBySubscriptionSender ¶
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Update ¶
func (client EndpointsClient) Update(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *ResourceForUpdate) (result EndpointResource, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionEndpointName - the name of the data collection endpoint. The name is case insensitive. body - the payload
func (EndpointsClient) UpdatePreparer ¶
func (client EndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *ResourceForUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (EndpointsClient) UpdateResponder ¶
func (client EndpointsClient) UpdateResponder(resp *http.Response) (result EndpointResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (EndpointsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
ErrorAdditionalInfo the resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
ErrorDetail the error detail.
func (ErrorDetail) MarshalJSON ¶
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
type ErrorResponseCommonV2 ¶
type ErrorResponseCommonV2 struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponseCommonV2 common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type ExtensionDataSource ¶
type ExtensionDataSource struct { // Streams - List of streams that this data source will be sent to. // A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Streams *[]KnownExtensionDataSourceStreams `json:"streams,omitempty"` // ExtensionName - The name of the VM extension. ExtensionName *string `json:"extensionName,omitempty"` // ExtensionSettings - The extension settings. The format is specific for particular extension. ExtensionSettings interface{} `json:"extensionSettings,omitempty"` // InputDataSources - The list of data sources this extension needs data from. InputDataSources *[]string `json:"inputDataSources,omitempty"` // Name - A friendly name for the data source. // This name should be unique across all data sources (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
ExtensionDataSource definition of which data will be collected from a separate VM extension that integrates with the Azure Monitor Agent. Collected from either Windows and Linux machines, depending on which extension is defined.
type IisLogsDataSource ¶
type IisLogsDataSource struct { // Streams - IIS streams Streams *[]string `json:"streams,omitempty"` // LogDirectories - Absolute paths file location LogDirectories *[]string `json:"logDirectories,omitempty"` // Name - A friendly name for the data source. // This name should be unique across all data sources (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
IisLogsDataSource enables IIS logs to be collected by this data collection rule.
type KnownColumnDefinitionType ¶
type KnownColumnDefinitionType string
KnownColumnDefinitionType enumerates the values for known column definition type.
const ( // KnownColumnDefinitionTypeBoolean ... KnownColumnDefinitionTypeBoolean KnownColumnDefinitionType = "boolean" // KnownColumnDefinitionTypeDatetime ... KnownColumnDefinitionTypeDatetime KnownColumnDefinitionType = "datetime" // KnownColumnDefinitionTypeDynamic ... KnownColumnDefinitionTypeDynamic KnownColumnDefinitionType = "dynamic" // KnownColumnDefinitionTypeInt ... KnownColumnDefinitionTypeInt KnownColumnDefinitionType = "int" // KnownColumnDefinitionTypeLong ... KnownColumnDefinitionTypeLong KnownColumnDefinitionType = "long" // KnownColumnDefinitionTypeReal ... KnownColumnDefinitionTypeReal KnownColumnDefinitionType = "real" // KnownColumnDefinitionTypeString ... KnownColumnDefinitionTypeString KnownColumnDefinitionType = "string" )
func PossibleKnownColumnDefinitionTypeValues ¶
func PossibleKnownColumnDefinitionTypeValues() []KnownColumnDefinitionType
PossibleKnownColumnDefinitionTypeValues returns an array of possible values for the KnownColumnDefinitionType const type.
type KnownDataCollectionEndpointProvisioningState ¶
type KnownDataCollectionEndpointProvisioningState string
KnownDataCollectionEndpointProvisioningState enumerates the values for known data collection endpoint provisioning state.
const ( // KnownDataCollectionEndpointProvisioningStateCreating ... KnownDataCollectionEndpointProvisioningStateCreating KnownDataCollectionEndpointProvisioningState = "Creating" // KnownDataCollectionEndpointProvisioningStateDeleting ... KnownDataCollectionEndpointProvisioningStateDeleting KnownDataCollectionEndpointProvisioningState = "Deleting" // KnownDataCollectionEndpointProvisioningStateFailed ... KnownDataCollectionEndpointProvisioningStateFailed KnownDataCollectionEndpointProvisioningState = "Failed" // KnownDataCollectionEndpointProvisioningStateSucceeded ... KnownDataCollectionEndpointProvisioningStateSucceeded KnownDataCollectionEndpointProvisioningState = "Succeeded" // KnownDataCollectionEndpointProvisioningStateUpdating ... KnownDataCollectionEndpointProvisioningStateUpdating KnownDataCollectionEndpointProvisioningState = "Updating" )
func PossibleKnownDataCollectionEndpointProvisioningStateValues ¶
func PossibleKnownDataCollectionEndpointProvisioningStateValues() []KnownDataCollectionEndpointProvisioningState
PossibleKnownDataCollectionEndpointProvisioningStateValues returns an array of possible values for the KnownDataCollectionEndpointProvisioningState const type.
type KnownDataCollectionEndpointResourceKind ¶
type KnownDataCollectionEndpointResourceKind string
KnownDataCollectionEndpointResourceKind enumerates the values for known data collection endpoint resource kind.
const ( // KnownDataCollectionEndpointResourceKindLinux ... KnownDataCollectionEndpointResourceKindLinux KnownDataCollectionEndpointResourceKind = "Linux" // KnownDataCollectionEndpointResourceKindWindows ... KnownDataCollectionEndpointResourceKindWindows KnownDataCollectionEndpointResourceKind = "Windows" )
func PossibleKnownDataCollectionEndpointResourceKindValues ¶
func PossibleKnownDataCollectionEndpointResourceKindValues() []KnownDataCollectionEndpointResourceKind
PossibleKnownDataCollectionEndpointResourceKindValues returns an array of possible values for the KnownDataCollectionEndpointResourceKind const type.
type KnownDataCollectionRuleAssociationProvisioningState ¶
type KnownDataCollectionRuleAssociationProvisioningState string
KnownDataCollectionRuleAssociationProvisioningState enumerates the values for known data collection rule association provisioning state.
const ( // KnownDataCollectionRuleAssociationProvisioningStateCreating ... KnownDataCollectionRuleAssociationProvisioningStateCreating KnownDataCollectionRuleAssociationProvisioningState = "Creating" // KnownDataCollectionRuleAssociationProvisioningStateDeleting ... KnownDataCollectionRuleAssociationProvisioningStateDeleting KnownDataCollectionRuleAssociationProvisioningState = "Deleting" // KnownDataCollectionRuleAssociationProvisioningStateFailed ... KnownDataCollectionRuleAssociationProvisioningStateFailed KnownDataCollectionRuleAssociationProvisioningState = "Failed" // KnownDataCollectionRuleAssociationProvisioningStateSucceeded ... KnownDataCollectionRuleAssociationProvisioningStateSucceeded KnownDataCollectionRuleAssociationProvisioningState = "Succeeded" // KnownDataCollectionRuleAssociationProvisioningStateUpdating ... KnownDataCollectionRuleAssociationProvisioningStateUpdating KnownDataCollectionRuleAssociationProvisioningState = "Updating" )
func PossibleKnownDataCollectionRuleAssociationProvisioningStateValues ¶
func PossibleKnownDataCollectionRuleAssociationProvisioningStateValues() []KnownDataCollectionRuleAssociationProvisioningState
PossibleKnownDataCollectionRuleAssociationProvisioningStateValues returns an array of possible values for the KnownDataCollectionRuleAssociationProvisioningState const type.
type KnownDataCollectionRuleProvisioningState ¶
type KnownDataCollectionRuleProvisioningState string
KnownDataCollectionRuleProvisioningState enumerates the values for known data collection rule provisioning state.
const ( // KnownDataCollectionRuleProvisioningStateCreating ... KnownDataCollectionRuleProvisioningStateCreating KnownDataCollectionRuleProvisioningState = "Creating" // KnownDataCollectionRuleProvisioningStateDeleting ... KnownDataCollectionRuleProvisioningStateDeleting KnownDataCollectionRuleProvisioningState = "Deleting" // KnownDataCollectionRuleProvisioningStateFailed ... KnownDataCollectionRuleProvisioningStateFailed KnownDataCollectionRuleProvisioningState = "Failed" // KnownDataCollectionRuleProvisioningStateSucceeded ... KnownDataCollectionRuleProvisioningStateSucceeded KnownDataCollectionRuleProvisioningState = "Succeeded" // KnownDataCollectionRuleProvisioningStateUpdating ... KnownDataCollectionRuleProvisioningStateUpdating KnownDataCollectionRuleProvisioningState = "Updating" )
func PossibleKnownDataCollectionRuleProvisioningStateValues ¶
func PossibleKnownDataCollectionRuleProvisioningStateValues() []KnownDataCollectionRuleProvisioningState
PossibleKnownDataCollectionRuleProvisioningStateValues returns an array of possible values for the KnownDataCollectionRuleProvisioningState const type.
type KnownDataCollectionRuleResourceKind ¶
type KnownDataCollectionRuleResourceKind string
KnownDataCollectionRuleResourceKind enumerates the values for known data collection rule resource kind.
const ( // KnownDataCollectionRuleResourceKindLinux ... KnownDataCollectionRuleResourceKindLinux KnownDataCollectionRuleResourceKind = "Linux" // KnownDataCollectionRuleResourceKindWindows ... KnownDataCollectionRuleResourceKindWindows KnownDataCollectionRuleResourceKind = "Windows" )
func PossibleKnownDataCollectionRuleResourceKindValues ¶
func PossibleKnownDataCollectionRuleResourceKindValues() []KnownDataCollectionRuleResourceKind
PossibleKnownDataCollectionRuleResourceKindValues returns an array of possible values for the KnownDataCollectionRuleResourceKind const type.
type KnownDataFlowStreams ¶
type KnownDataFlowStreams string
KnownDataFlowStreams enumerates the values for known data flow streams.
const ( // KnownDataFlowStreamsMicrosoftEvent ... KnownDataFlowStreamsMicrosoftEvent KnownDataFlowStreams = "Microsoft-Event" // KnownDataFlowStreamsMicrosoftInsightsMetrics ... KnownDataFlowStreamsMicrosoftInsightsMetrics KnownDataFlowStreams = "Microsoft-InsightsMetrics" // KnownDataFlowStreamsMicrosoftPerf ... KnownDataFlowStreamsMicrosoftPerf KnownDataFlowStreams = "Microsoft-Perf" // KnownDataFlowStreamsMicrosoftSyslog ... KnownDataFlowStreamsMicrosoftSyslog KnownDataFlowStreams = "Microsoft-Syslog" // KnownDataFlowStreamsMicrosoftWindowsEvent ... KnownDataFlowStreamsMicrosoftWindowsEvent KnownDataFlowStreams = "Microsoft-WindowsEvent" )
func PossibleKnownDataFlowStreamsValues ¶
func PossibleKnownDataFlowStreamsValues() []KnownDataFlowStreams
PossibleKnownDataFlowStreamsValues returns an array of possible values for the KnownDataFlowStreams const type.
type KnownExtensionDataSourceStreams ¶
type KnownExtensionDataSourceStreams string
KnownExtensionDataSourceStreams enumerates the values for known extension data source streams.
const ( // KnownExtensionDataSourceStreamsMicrosoftEvent ... KnownExtensionDataSourceStreamsMicrosoftEvent KnownExtensionDataSourceStreams = "Microsoft-Event" // KnownExtensionDataSourceStreamsMicrosoftInsightsMetrics ... KnownExtensionDataSourceStreamsMicrosoftInsightsMetrics KnownExtensionDataSourceStreams = "Microsoft-InsightsMetrics" // KnownExtensionDataSourceStreamsMicrosoftPerf ... KnownExtensionDataSourceStreamsMicrosoftPerf KnownExtensionDataSourceStreams = "Microsoft-Perf" // KnownExtensionDataSourceStreamsMicrosoftSyslog ... KnownExtensionDataSourceStreamsMicrosoftSyslog KnownExtensionDataSourceStreams = "Microsoft-Syslog" // KnownExtensionDataSourceStreamsMicrosoftWindowsEvent ... KnownExtensionDataSourceStreamsMicrosoftWindowsEvent KnownExtensionDataSourceStreams = "Microsoft-WindowsEvent" )
func PossibleKnownExtensionDataSourceStreamsValues ¶
func PossibleKnownExtensionDataSourceStreamsValues() []KnownExtensionDataSourceStreams
PossibleKnownExtensionDataSourceStreamsValues returns an array of possible values for the KnownExtensionDataSourceStreams const type.
type KnownLogFileTextSettingsRecordStartTimestampFormat ¶
type KnownLogFileTextSettingsRecordStartTimestampFormat string
KnownLogFileTextSettingsRecordStartTimestampFormat enumerates the values for known log file text settings record start timestamp format.
const ( // KnownLogFileTextSettingsRecordStartTimestampFormatDdMMMyyyyHHmmsszzz ... KnownLogFileTextSettingsRecordStartTimestampFormatDdMMMyyyyHHmmsszzz KnownLogFileTextSettingsRecordStartTimestampFormat = "dd/MMM/yyyy:HH:mm:ss zzz" // KnownLogFileTextSettingsRecordStartTimestampFormatDdMMyyHHmmss ... KnownLogFileTextSettingsRecordStartTimestampFormatDdMMyyHHmmss KnownLogFileTextSettingsRecordStartTimestampFormat = "ddMMyy HH:mm:ss" // KnownLogFileTextSettingsRecordStartTimestampFormatISO8601 ... KnownLogFileTextSettingsRecordStartTimestampFormatISO8601 KnownLogFileTextSettingsRecordStartTimestampFormat = "ISO 8601" // KnownLogFileTextSettingsRecordStartTimestampFormatMDYYYYHHMMSSAMPM ... KnownLogFileTextSettingsRecordStartTimestampFormatMDYYYYHHMMSSAMPM KnownLogFileTextSettingsRecordStartTimestampFormat = "M/D/YYYY HH:MM:SS AM/PM" // KnownLogFileTextSettingsRecordStartTimestampFormatMMMdhhmmss ... KnownLogFileTextSettingsRecordStartTimestampFormatMMMdhhmmss KnownLogFileTextSettingsRecordStartTimestampFormat = "MMM d hh:mm:ss" // KnownLogFileTextSettingsRecordStartTimestampFormatMonDDYYYYHHMMSS ... KnownLogFileTextSettingsRecordStartTimestampFormatMonDDYYYYHHMMSS KnownLogFileTextSettingsRecordStartTimestampFormat = "Mon DD, YYYY HH:MM:SS" // KnownLogFileTextSettingsRecordStartTimestampFormatYyMMddHHmmss ... KnownLogFileTextSettingsRecordStartTimestampFormatYyMMddHHmmss KnownLogFileTextSettingsRecordStartTimestampFormat = "yyMMdd HH:mm:ss" // KnownLogFileTextSettingsRecordStartTimestampFormatYYYYMMDDHHMMSS ... KnownLogFileTextSettingsRecordStartTimestampFormatYYYYMMDDHHMMSS KnownLogFileTextSettingsRecordStartTimestampFormat = "YYYY-MM-DD HH:MM:SS" // KnownLogFileTextSettingsRecordStartTimestampFormatYyyyMMDdTHHmmssK ... KnownLogFileTextSettingsRecordStartTimestampFormatYyyyMMDdTHHmmssK KnownLogFileTextSettingsRecordStartTimestampFormat = "yyyy-MM-ddTHH:mm:ssK" )
func PossibleKnownLogFileTextSettingsRecordStartTimestampFormatValues ¶
func PossibleKnownLogFileTextSettingsRecordStartTimestampFormatValues() []KnownLogFileTextSettingsRecordStartTimestampFormat
PossibleKnownLogFileTextSettingsRecordStartTimestampFormatValues returns an array of possible values for the KnownLogFileTextSettingsRecordStartTimestampFormat const type.
type KnownPerfCounterDataSourceStreams ¶
type KnownPerfCounterDataSourceStreams string
KnownPerfCounterDataSourceStreams enumerates the values for known perf counter data source streams.
const ( // KnownPerfCounterDataSourceStreamsMicrosoftInsightsMetrics ... KnownPerfCounterDataSourceStreamsMicrosoftInsightsMetrics KnownPerfCounterDataSourceStreams = "Microsoft-InsightsMetrics" // KnownPerfCounterDataSourceStreamsMicrosoftPerf ... KnownPerfCounterDataSourceStreamsMicrosoftPerf KnownPerfCounterDataSourceStreams = "Microsoft-Perf" )
func PossibleKnownPerfCounterDataSourceStreamsValues ¶
func PossibleKnownPerfCounterDataSourceStreamsValues() []KnownPerfCounterDataSourceStreams
PossibleKnownPerfCounterDataSourceStreamsValues returns an array of possible values for the KnownPerfCounterDataSourceStreams const type.
type KnownPublicNetworkAccessOptions ¶
type KnownPublicNetworkAccessOptions string
KnownPublicNetworkAccessOptions enumerates the values for known public network access options.
const ( // KnownPublicNetworkAccessOptionsDisabled ... KnownPublicNetworkAccessOptionsDisabled KnownPublicNetworkAccessOptions = "Disabled" // KnownPublicNetworkAccessOptionsEnabled ... KnownPublicNetworkAccessOptionsEnabled KnownPublicNetworkAccessOptions = "Enabled" )
func PossibleKnownPublicNetworkAccessOptionsValues ¶
func PossibleKnownPublicNetworkAccessOptionsValues() []KnownPublicNetworkAccessOptions
PossibleKnownPublicNetworkAccessOptionsValues returns an array of possible values for the KnownPublicNetworkAccessOptions const type.
type KnownSyslogDataSourceFacilityNames ¶
type KnownSyslogDataSourceFacilityNames string
KnownSyslogDataSourceFacilityNames enumerates the values for known syslog data source facility names.
const ( // KnownSyslogDataSourceFacilityNamesAsterisk ... KnownSyslogDataSourceFacilityNamesAsterisk KnownSyslogDataSourceFacilityNames = "*" // KnownSyslogDataSourceFacilityNamesAuth ... KnownSyslogDataSourceFacilityNamesAuth KnownSyslogDataSourceFacilityNames = "auth" // KnownSyslogDataSourceFacilityNamesAuthpriv ... KnownSyslogDataSourceFacilityNamesAuthpriv KnownSyslogDataSourceFacilityNames = "authpriv" // KnownSyslogDataSourceFacilityNamesCron ... KnownSyslogDataSourceFacilityNamesCron KnownSyslogDataSourceFacilityNames = "cron" // KnownSyslogDataSourceFacilityNamesDaemon ... KnownSyslogDataSourceFacilityNamesDaemon KnownSyslogDataSourceFacilityNames = "daemon" // KnownSyslogDataSourceFacilityNamesKern ... KnownSyslogDataSourceFacilityNamesKern KnownSyslogDataSourceFacilityNames = "kern" // KnownSyslogDataSourceFacilityNamesLocal0 ... KnownSyslogDataSourceFacilityNamesLocal0 KnownSyslogDataSourceFacilityNames = "local0" // KnownSyslogDataSourceFacilityNamesLocal1 ... KnownSyslogDataSourceFacilityNamesLocal1 KnownSyslogDataSourceFacilityNames = "local1" // KnownSyslogDataSourceFacilityNamesLocal2 ... KnownSyslogDataSourceFacilityNamesLocal2 KnownSyslogDataSourceFacilityNames = "local2" // KnownSyslogDataSourceFacilityNamesLocal3 ... KnownSyslogDataSourceFacilityNamesLocal3 KnownSyslogDataSourceFacilityNames = "local3" // KnownSyslogDataSourceFacilityNamesLocal4 ... KnownSyslogDataSourceFacilityNamesLocal4 KnownSyslogDataSourceFacilityNames = "local4" // KnownSyslogDataSourceFacilityNamesLocal5 ... KnownSyslogDataSourceFacilityNamesLocal5 KnownSyslogDataSourceFacilityNames = "local5" // KnownSyslogDataSourceFacilityNamesLocal6 ... KnownSyslogDataSourceFacilityNamesLocal6 KnownSyslogDataSourceFacilityNames = "local6" // KnownSyslogDataSourceFacilityNamesLocal7 ... KnownSyslogDataSourceFacilityNamesLocal7 KnownSyslogDataSourceFacilityNames = "local7" // KnownSyslogDataSourceFacilityNamesLpr ... KnownSyslogDataSourceFacilityNamesLpr KnownSyslogDataSourceFacilityNames = "lpr" // KnownSyslogDataSourceFacilityNamesMail ... KnownSyslogDataSourceFacilityNamesMail KnownSyslogDataSourceFacilityNames = "mail" // KnownSyslogDataSourceFacilityNamesMark ... KnownSyslogDataSourceFacilityNamesMark KnownSyslogDataSourceFacilityNames = "mark" // KnownSyslogDataSourceFacilityNamesNews ... KnownSyslogDataSourceFacilityNamesNews KnownSyslogDataSourceFacilityNames = "news" // KnownSyslogDataSourceFacilityNamesSyslog ... KnownSyslogDataSourceFacilityNamesSyslog KnownSyslogDataSourceFacilityNames = "syslog" // KnownSyslogDataSourceFacilityNamesUser ... KnownSyslogDataSourceFacilityNamesUser KnownSyslogDataSourceFacilityNames = "user" // KnownSyslogDataSourceFacilityNamesUucp ... KnownSyslogDataSourceFacilityNamesUucp KnownSyslogDataSourceFacilityNames = "uucp" )
func PossibleKnownSyslogDataSourceFacilityNamesValues ¶
func PossibleKnownSyslogDataSourceFacilityNamesValues() []KnownSyslogDataSourceFacilityNames
PossibleKnownSyslogDataSourceFacilityNamesValues returns an array of possible values for the KnownSyslogDataSourceFacilityNames const type.
type KnownSyslogDataSourceLogLevels ¶
type KnownSyslogDataSourceLogLevels string
KnownSyslogDataSourceLogLevels enumerates the values for known syslog data source log levels.
const ( // KnownSyslogDataSourceLogLevelsAlert ... KnownSyslogDataSourceLogLevelsAlert KnownSyslogDataSourceLogLevels = "Alert" // KnownSyslogDataSourceLogLevelsAsterisk ... KnownSyslogDataSourceLogLevelsAsterisk KnownSyslogDataSourceLogLevels = "*" // KnownSyslogDataSourceLogLevelsCritical ... KnownSyslogDataSourceLogLevelsCritical KnownSyslogDataSourceLogLevels = "Critical" // KnownSyslogDataSourceLogLevelsDebug ... KnownSyslogDataSourceLogLevelsDebug KnownSyslogDataSourceLogLevels = "Debug" // KnownSyslogDataSourceLogLevelsEmergency ... KnownSyslogDataSourceLogLevelsEmergency KnownSyslogDataSourceLogLevels = "Emergency" // KnownSyslogDataSourceLogLevelsError ... KnownSyslogDataSourceLogLevelsError KnownSyslogDataSourceLogLevels = "Error" // KnownSyslogDataSourceLogLevelsInfo ... KnownSyslogDataSourceLogLevelsInfo KnownSyslogDataSourceLogLevels = "Info" // KnownSyslogDataSourceLogLevelsNotice ... KnownSyslogDataSourceLogLevelsNotice KnownSyslogDataSourceLogLevels = "Notice" // KnownSyslogDataSourceLogLevelsWarning ... KnownSyslogDataSourceLogLevelsWarning KnownSyslogDataSourceLogLevels = "Warning" )
func PossibleKnownSyslogDataSourceLogLevelsValues ¶
func PossibleKnownSyslogDataSourceLogLevelsValues() []KnownSyslogDataSourceLogLevels
PossibleKnownSyslogDataSourceLogLevelsValues returns an array of possible values for the KnownSyslogDataSourceLogLevels const type.
type KnownSyslogDataSourceStreams ¶
type KnownSyslogDataSourceStreams string
KnownSyslogDataSourceStreams enumerates the values for known syslog data source streams.
const ( // KnownSyslogDataSourceStreamsMicrosoftSyslog ... KnownSyslogDataSourceStreamsMicrosoftSyslog KnownSyslogDataSourceStreams = "Microsoft-Syslog" )
func PossibleKnownSyslogDataSourceStreamsValues ¶
func PossibleKnownSyslogDataSourceStreamsValues() []KnownSyslogDataSourceStreams
PossibleKnownSyslogDataSourceStreamsValues returns an array of possible values for the KnownSyslogDataSourceStreams const type.
type KnownWindowsEventLogDataSourceStreams ¶
type KnownWindowsEventLogDataSourceStreams string
KnownWindowsEventLogDataSourceStreams enumerates the values for known windows event log data source streams.
const ( // KnownWindowsEventLogDataSourceStreamsMicrosoftEvent ... KnownWindowsEventLogDataSourceStreamsMicrosoftEvent KnownWindowsEventLogDataSourceStreams = "Microsoft-Event" // KnownWindowsEventLogDataSourceStreamsMicrosoftWindowsEvent ... KnownWindowsEventLogDataSourceStreamsMicrosoftWindowsEvent KnownWindowsEventLogDataSourceStreams = "Microsoft-WindowsEvent" )
func PossibleKnownWindowsEventLogDataSourceStreamsValues ¶
func PossibleKnownWindowsEventLogDataSourceStreamsValues() []KnownWindowsEventLogDataSourceStreams
PossibleKnownWindowsEventLogDataSourceStreamsValues returns an array of possible values for the KnownWindowsEventLogDataSourceStreams const type.
type LogAnalyticsDestination ¶
type LogAnalyticsDestination struct { // WorkspaceResourceID - The resource ID of the Log Analytics workspace. WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` // WorkspaceID - READ-ONLY; The Customer ID of the Log Analytics workspace. WorkspaceID *string `json:"workspaceId,omitempty"` // Name - A friendly name for the destination. // This name should be unique across all destinations (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
LogAnalyticsDestination log Analytics destination.
func (LogAnalyticsDestination) MarshalJSON ¶
func (lad LogAnalyticsDestination) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogAnalyticsDestination.
type LogFileSettings ¶
type LogFileSettings struct { // Text - Text settings Text *LogFileSettingsText `json:"text,omitempty"` }
LogFileSettings settings for different log file formats
type LogFileSettingsText ¶
type LogFileSettingsText struct { // RecordStartTimestampFormat - One of the supported timestamp formats. Possible values include: 'KnownLogFileTextSettingsRecordStartTimestampFormatISO8601', 'KnownLogFileTextSettingsRecordStartTimestampFormatYYYYMMDDHHMMSS', 'KnownLogFileTextSettingsRecordStartTimestampFormatMDYYYYHHMMSSAMPM', 'KnownLogFileTextSettingsRecordStartTimestampFormatMonDDYYYYHHMMSS', 'KnownLogFileTextSettingsRecordStartTimestampFormatYyMMddHHmmss', 'KnownLogFileTextSettingsRecordStartTimestampFormatDdMMyyHHmmss', 'KnownLogFileTextSettingsRecordStartTimestampFormatMMMdhhmmss', 'KnownLogFileTextSettingsRecordStartTimestampFormatDdMMMyyyyHHmmsszzz', 'KnownLogFileTextSettingsRecordStartTimestampFormatYyyyMMDdTHHmmssK' RecordStartTimestampFormat KnownLogFileTextSettingsRecordStartTimestampFormat `json:"recordStartTimestampFormat,omitempty"` }
LogFileSettingsText text settings
type LogFileTextSettings ¶
type LogFileTextSettings struct { // RecordStartTimestampFormat - One of the supported timestamp formats. Possible values include: 'KnownLogFileTextSettingsRecordStartTimestampFormatISO8601', 'KnownLogFileTextSettingsRecordStartTimestampFormatYYYYMMDDHHMMSS', 'KnownLogFileTextSettingsRecordStartTimestampFormatMDYYYYHHMMSSAMPM', 'KnownLogFileTextSettingsRecordStartTimestampFormatMonDDYYYYHHMMSS', 'KnownLogFileTextSettingsRecordStartTimestampFormatYyMMddHHmmss', 'KnownLogFileTextSettingsRecordStartTimestampFormatDdMMyyHHmmss', 'KnownLogFileTextSettingsRecordStartTimestampFormatMMMdhhmmss', 'KnownLogFileTextSettingsRecordStartTimestampFormatDdMMMyyyyHHmmsszzz', 'KnownLogFileTextSettingsRecordStartTimestampFormatYyyyMMDdTHHmmssK' RecordStartTimestampFormat KnownLogFileTextSettingsRecordStartTimestampFormat `json:"recordStartTimestampFormat,omitempty"` }
LogFileTextSettings settings for text log files
type LogFilesDataSource ¶
type LogFilesDataSource struct { // Streams - List of streams that this data source will be sent to. // A stream indicates what schema will be used for this data source Streams *[]string `json:"streams,omitempty"` // FilePatterns - File Patterns where the log files are located FilePatterns *[]string `json:"filePatterns,omitempty"` // Format - The data format of the log files Format *string `json:"format,omitempty"` // Settings - The log files specific settings. Settings *LogFilesDataSourceSettings `json:"settings,omitempty"` // Name - A friendly name for the data source. // This name should be unique across all data sources (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
LogFilesDataSource definition of which custom log files will be collected by this data collection rule
type LogFilesDataSourceSettings ¶
type LogFilesDataSourceSettings struct { // Text - Text settings Text *LogFileSettingsText `json:"text,omitempty"` }
LogFilesDataSourceSettings the log files specific settings.
type LogsIngestionEndpointSpec ¶
type LogsIngestionEndpointSpec struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
LogsIngestionEndpointSpec definition of the endpoint used for ingesting logs.
func (LogsIngestionEndpointSpec) MarshalJSON ¶
func (lies LogsIngestionEndpointSpec) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogsIngestionEndpointSpec.
type Metadata ¶
type Metadata struct { // ProvisionedBy - READ-ONLY; Azure offering managing this resource on-behalf-of customer. ProvisionedBy *string `json:"provisionedBy,omitempty"` }
Metadata metadata about the resource
func (Metadata) MarshalJSON ¶
MarshalJSON is the custom marshaler for Metadata.
type NetworkRuleSet ¶
type NetworkRuleSet struct { // PublicNetworkAccess - The configuration to set whether network access from public internet to the endpoints are allowed. Possible values include: 'KnownPublicNetworkAccessOptionsEnabled', 'KnownPublicNetworkAccessOptionsDisabled' PublicNetworkAccess KnownPublicNetworkAccessOptions `json:"publicNetworkAccess,omitempty"` }
NetworkRuleSet definition of the network rules.
type PerfCounterDataSource ¶
type PerfCounterDataSource struct { // Streams - List of streams that this data source will be sent to. // A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Streams *[]KnownPerfCounterDataSourceStreams `json:"streams,omitempty"` // SamplingFrequencyInSeconds - The number of seconds between consecutive counter measurements (samples). SamplingFrequencyInSeconds *int32 `json:"samplingFrequencyInSeconds,omitempty"` // CounterSpecifiers - A list of specifier names of the performance counters you want to collect. // Use a wildcard (*) to collect a counter for all instances. // To get a list of performance counters on Windows, run the command 'typeperf'. CounterSpecifiers *[]string `json:"counterSpecifiers,omitempty"` // Name - A friendly name for the data source. // This name should be unique across all data sources (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
PerfCounterDataSource definition of which performance counters will be collected and how they will be collected by this data collection rule. Collected from both Windows and Linux machines where the counter is present.
type ResourceForUpdate ¶
ResourceForUpdate definition of ARM tracked top level resource properties for update operation.
func (ResourceForUpdate) MarshalJSON ¶
func (rfu ResourceForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceForUpdate.
type Rule ¶
type Rule struct { // Description - Description of the data collection rule. Description *string `json:"description,omitempty"` // ImmutableID - READ-ONLY; The immutable ID of this data collection rule. This property is READ-ONLY. ImmutableID *string `json:"immutableId,omitempty"` // DataCollectionEndpointID - The resource ID of the data collection endpoint that this rule can be used with. DataCollectionEndpointID *string `json:"dataCollectionEndpointId,omitempty"` // Metadata - READ-ONLY; Metadata about the resource Metadata *RuleMetadata `json:"metadata,omitempty"` // StreamDeclarations - Declaration of custom streams used in this rule. StreamDeclarations map[string]*StreamDeclaration `json:"streamDeclarations"` // DataSources - The specification of data sources. // This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint. DataSources *RuleDataSources `json:"dataSources,omitempty"` // Destinations - The specification of destinations. Destinations *RuleDestinations `json:"destinations,omitempty"` // DataFlows - The specification of data flows. DataFlows *[]DataFlow `json:"dataFlows,omitempty"` // ProvisioningState - READ-ONLY; The resource provisioning state. Possible values include: 'KnownDataCollectionRuleProvisioningStateCreating', 'KnownDataCollectionRuleProvisioningStateUpdating', 'KnownDataCollectionRuleProvisioningStateDeleting', 'KnownDataCollectionRuleProvisioningStateSucceeded', 'KnownDataCollectionRuleProvisioningStateFailed' ProvisioningState KnownDataCollectionRuleProvisioningState `json:"provisioningState,omitempty"` }
Rule definition of what monitoring data to collect and where that data should be sent.
func (Rule) MarshalJSON ¶
MarshalJSON is the custom marshaler for Rule.
type RuleAssociation ¶
type RuleAssociation struct { // Description - Description of the association. Description *string `json:"description,omitempty"` // DataCollectionRuleID - The resource ID of the data collection rule that is to be associated. DataCollectionRuleID *string `json:"dataCollectionRuleId,omitempty"` // DataCollectionEndpointID - The resource ID of the data collection endpoint that is to be associated. DataCollectionEndpointID *string `json:"dataCollectionEndpointId,omitempty"` // ProvisioningState - READ-ONLY; The resource provisioning state. Possible values include: 'KnownDataCollectionRuleAssociationProvisioningStateCreating', 'KnownDataCollectionRuleAssociationProvisioningStateUpdating', 'KnownDataCollectionRuleAssociationProvisioningStateDeleting', 'KnownDataCollectionRuleAssociationProvisioningStateSucceeded', 'KnownDataCollectionRuleAssociationProvisioningStateFailed' ProvisioningState KnownDataCollectionRuleAssociationProvisioningState `json:"provisioningState,omitempty"` // Metadata - READ-ONLY; Metadata about the resource Metadata *RuleAssociationMetadata `json:"metadata,omitempty"` }
RuleAssociation definition of association of a data collection rule with a monitored Azure resource.
func (RuleAssociation) MarshalJSON ¶
func (ra RuleAssociation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociation.
type RuleAssociationMetadata ¶
type RuleAssociationMetadata struct { // ProvisionedBy - READ-ONLY; Azure offering managing this resource on-behalf-of customer. ProvisionedBy *string `json:"provisionedBy,omitempty"` }
RuleAssociationMetadata metadata about the resource
func (RuleAssociationMetadata) MarshalJSON ¶
func (ra RuleAssociationMetadata) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociationMetadata.
type RuleAssociationProxyOnlyResource ¶
type RuleAssociationProxyOnlyResource struct { autorest.Response `json:"-"` // RuleAssociationProxyOnlyResourceProperties - Resource properties. *RuleAssociationProxyOnlyResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified ID of the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Etag - READ-ONLY; Resource entity tag (ETag). Etag *string `json:"etag,omitempty"` // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *RuleAssociationProxyOnlyResourceSystemData `json:"systemData,omitempty"` }
RuleAssociationProxyOnlyResource definition of generic ARM proxy resource.
func (RuleAssociationProxyOnlyResource) MarshalJSON ¶
func (rapor RuleAssociationProxyOnlyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociationProxyOnlyResource.
func (*RuleAssociationProxyOnlyResource) UnmarshalJSON ¶
func (rapor *RuleAssociationProxyOnlyResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RuleAssociationProxyOnlyResource struct.
type RuleAssociationProxyOnlyResourceListResult ¶
type RuleAssociationProxyOnlyResourceListResult struct { autorest.Response `json:"-"` // Value - A list of resources. Value *[]RuleAssociationProxyOnlyResource `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
RuleAssociationProxyOnlyResourceListResult a pageable list of resources.
func (RuleAssociationProxyOnlyResourceListResult) IsEmpty ¶
func (raporlr RuleAssociationProxyOnlyResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RuleAssociationProxyOnlyResourceListResultIterator ¶
type RuleAssociationProxyOnlyResourceListResultIterator struct {
// contains filtered or unexported fields
}
RuleAssociationProxyOnlyResourceListResultIterator provides access to a complete listing of RuleAssociationProxyOnlyResource values.
func NewRuleAssociationProxyOnlyResourceListResultIterator ¶
func NewRuleAssociationProxyOnlyResourceListResultIterator(page RuleAssociationProxyOnlyResourceListResultPage) RuleAssociationProxyOnlyResourceListResultIterator
Creates a new instance of the RuleAssociationProxyOnlyResourceListResultIterator type.
func (*RuleAssociationProxyOnlyResourceListResultIterator) Next ¶
func (iter *RuleAssociationProxyOnlyResourceListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RuleAssociationProxyOnlyResourceListResultIterator) NextWithContext ¶
func (iter *RuleAssociationProxyOnlyResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (RuleAssociationProxyOnlyResourceListResultIterator) NotDone ¶
func (iter RuleAssociationProxyOnlyResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (RuleAssociationProxyOnlyResourceListResultIterator) Response ¶
func (iter RuleAssociationProxyOnlyResourceListResultIterator) Response() RuleAssociationProxyOnlyResourceListResult
Response returns the raw server response from the last page request.
func (RuleAssociationProxyOnlyResourceListResultIterator) Value ¶
func (iter RuleAssociationProxyOnlyResourceListResultIterator) Value() RuleAssociationProxyOnlyResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type RuleAssociationProxyOnlyResourceListResultPage ¶
type RuleAssociationProxyOnlyResourceListResultPage struct {
// contains filtered or unexported fields
}
RuleAssociationProxyOnlyResourceListResultPage contains a page of RuleAssociationProxyOnlyResource values.
func NewRuleAssociationProxyOnlyResourceListResultPage ¶
func NewRuleAssociationProxyOnlyResourceListResultPage(cur RuleAssociationProxyOnlyResourceListResult, getNextPage func(context.Context, RuleAssociationProxyOnlyResourceListResult) (RuleAssociationProxyOnlyResourceListResult, error)) RuleAssociationProxyOnlyResourceListResultPage
Creates a new instance of the RuleAssociationProxyOnlyResourceListResultPage type.
func (*RuleAssociationProxyOnlyResourceListResultPage) Next ¶
func (page *RuleAssociationProxyOnlyResourceListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RuleAssociationProxyOnlyResourceListResultPage) NextWithContext ¶
func (page *RuleAssociationProxyOnlyResourceListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (RuleAssociationProxyOnlyResourceListResultPage) NotDone ¶
func (page RuleAssociationProxyOnlyResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (RuleAssociationProxyOnlyResourceListResultPage) Response ¶
func (page RuleAssociationProxyOnlyResourceListResultPage) Response() RuleAssociationProxyOnlyResourceListResult
Response returns the raw server response from the last page request.
func (RuleAssociationProxyOnlyResourceListResultPage) Values ¶
func (page RuleAssociationProxyOnlyResourceListResultPage) Values() []RuleAssociationProxyOnlyResource
Values returns the slice of values for the current page or nil if there are no values.
type RuleAssociationProxyOnlyResourceProperties ¶
type RuleAssociationProxyOnlyResourceProperties struct { // Description - Description of the association. Description *string `json:"description,omitempty"` // DataCollectionRuleID - The resource ID of the data collection rule that is to be associated. DataCollectionRuleID *string `json:"dataCollectionRuleId,omitempty"` // DataCollectionEndpointID - The resource ID of the data collection endpoint that is to be associated. DataCollectionEndpointID *string `json:"dataCollectionEndpointId,omitempty"` // ProvisioningState - READ-ONLY; The resource provisioning state. Possible values include: 'KnownDataCollectionRuleAssociationProvisioningStateCreating', 'KnownDataCollectionRuleAssociationProvisioningStateUpdating', 'KnownDataCollectionRuleAssociationProvisioningStateDeleting', 'KnownDataCollectionRuleAssociationProvisioningStateSucceeded', 'KnownDataCollectionRuleAssociationProvisioningStateFailed' ProvisioningState KnownDataCollectionRuleAssociationProvisioningState `json:"provisioningState,omitempty"` // Metadata - READ-ONLY; Metadata about the resource Metadata *RuleAssociationMetadata `json:"metadata,omitempty"` }
RuleAssociationProxyOnlyResourceProperties resource properties.
func (RuleAssociationProxyOnlyResourceProperties) MarshalJSON ¶
func (rapor RuleAssociationProxyOnlyResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociationProxyOnlyResourceProperties.
type RuleAssociationProxyOnlyResourceSystemData ¶
type RuleAssociationProxyOnlyResourceSystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
RuleAssociationProxyOnlyResourceSystemData metadata pertaining to creation and last modification of the resource.
type RuleAssociationsClient ¶
type RuleAssociationsClient struct {
BaseClient
}
RuleAssociationsClient is the monitor Management Client
func NewRuleAssociationsClient ¶
func NewRuleAssociationsClient(subscriptionID string) RuleAssociationsClient
NewRuleAssociationsClient creates an instance of the RuleAssociationsClient client.
func NewRuleAssociationsClientWithBaseURI ¶
func NewRuleAssociationsClientWithBaseURI(baseURI string, subscriptionID string) RuleAssociationsClient
NewRuleAssociationsClientWithBaseURI creates an instance of the RuleAssociationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (RuleAssociationsClient) Create ¶
func (client RuleAssociationsClient) Create(ctx context.Context, resourceURI string, associationName string, body *RuleAssociationProxyOnlyResource) (result RuleAssociationProxyOnlyResource, err error)
Create sends the create request. Parameters: resourceURI - the identifier of the resource. associationName - the name of the association. The name is case insensitive. body - the payload
func (RuleAssociationsClient) CreatePreparer ¶
func (client RuleAssociationsClient) CreatePreparer(ctx context.Context, resourceURI string, associationName string, body *RuleAssociationProxyOnlyResource) (*http.Request, error)
CreatePreparer prepares the Create request.
func (RuleAssociationsClient) CreateResponder ¶
func (client RuleAssociationsClient) CreateResponder(resp *http.Response) (result RuleAssociationProxyOnlyResource, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (RuleAssociationsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (RuleAssociationsClient) Delete ¶
func (client RuleAssociationsClient) Delete(ctx context.Context, resourceURI string, associationName string) (result autorest.Response, err error)
Delete sends the delete request. Parameters: resourceURI - the identifier of the resource. associationName - the name of the association. The name is case insensitive.
func (RuleAssociationsClient) DeletePreparer ¶
func (client RuleAssociationsClient) DeletePreparer(ctx context.Context, resourceURI string, associationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (RuleAssociationsClient) DeleteResponder ¶
func (client RuleAssociationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (RuleAssociationsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (RuleAssociationsClient) Get ¶
func (client RuleAssociationsClient) Get(ctx context.Context, resourceURI string, associationName string) (result RuleAssociationProxyOnlyResource, err error)
Get sends the get request. Parameters: resourceURI - the identifier of the resource. associationName - the name of the association. The name is case insensitive.
func (RuleAssociationsClient) GetPreparer ¶
func (client RuleAssociationsClient) GetPreparer(ctx context.Context, resourceURI string, associationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RuleAssociationsClient) GetResponder ¶
func (client RuleAssociationsClient) GetResponder(resp *http.Response) (result RuleAssociationProxyOnlyResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RuleAssociationsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RuleAssociationsClient) ListByDataCollectionEndpoint ¶
func (client RuleAssociationsClient) ListByDataCollectionEndpoint(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result RuleAssociationProxyOnlyResourceListResultPage, err error)
ListByDataCollectionEndpoint sends the list by data collection endpoint request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionEndpointName - the name of the data collection endpoint. The name is case insensitive.
func (RuleAssociationsClient) ListByDataCollectionEndpointComplete ¶
func (client RuleAssociationsClient) ListByDataCollectionEndpointComplete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
ListByDataCollectionEndpointComplete enumerates all values, automatically crossing page boundaries as required.
func (RuleAssociationsClient) ListByDataCollectionEndpointPreparer ¶
func (client RuleAssociationsClient) ListByDataCollectionEndpointPreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (*http.Request, error)
ListByDataCollectionEndpointPreparer prepares the ListByDataCollectionEndpoint request.
func (RuleAssociationsClient) ListByDataCollectionEndpointResponder ¶
func (client RuleAssociationsClient) ListByDataCollectionEndpointResponder(resp *http.Response) (result RuleAssociationProxyOnlyResourceListResult, err error)
ListByDataCollectionEndpointResponder handles the response to the ListByDataCollectionEndpoint request. The method always closes the http.Response Body.
func (RuleAssociationsClient) ListByDataCollectionEndpointSender ¶
func (client RuleAssociationsClient) ListByDataCollectionEndpointSender(req *http.Request) (*http.Response, error)
ListByDataCollectionEndpointSender sends the ListByDataCollectionEndpoint request. The method will close the http.Response Body if it receives an error.
func (RuleAssociationsClient) ListByResource ¶
func (client RuleAssociationsClient) ListByResource(ctx context.Context, resourceURI string) (result RuleAssociationProxyOnlyResourceListResultPage, err error)
ListByResource sends the list by resource request. Parameters: resourceURI - the identifier of the resource.
func (RuleAssociationsClient) ListByResourceComplete ¶
func (client RuleAssociationsClient) ListByResourceComplete(ctx context.Context, resourceURI string) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
ListByResourceComplete enumerates all values, automatically crossing page boundaries as required.
func (RuleAssociationsClient) ListByResourcePreparer ¶
func (client RuleAssociationsClient) ListByResourcePreparer(ctx context.Context, resourceURI string) (*http.Request, error)
ListByResourcePreparer prepares the ListByResource request.
func (RuleAssociationsClient) ListByResourceResponder ¶
func (client RuleAssociationsClient) ListByResourceResponder(resp *http.Response) (result RuleAssociationProxyOnlyResourceListResult, err error)
ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.
func (RuleAssociationsClient) ListByResourceSender ¶
func (client RuleAssociationsClient) ListByResourceSender(req *http.Request) (*http.Response, error)
ListByResourceSender sends the ListByResource request. The method will close the http.Response Body if it receives an error.
func (RuleAssociationsClient) ListByRule ¶
func (client RuleAssociationsClient) ListByRule(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result RuleAssociationProxyOnlyResourceListResultPage, err error)
ListByRule sends the list by rule request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionRuleName - the name of the data collection rule. The name is case insensitive.
func (RuleAssociationsClient) ListByRuleComplete ¶
func (client RuleAssociationsClient) ListByRuleComplete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
ListByRuleComplete enumerates all values, automatically crossing page boundaries as required.
func (RuleAssociationsClient) ListByRulePreparer ¶
func (client RuleAssociationsClient) ListByRulePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
ListByRulePreparer prepares the ListByRule request.
func (RuleAssociationsClient) ListByRuleResponder ¶
func (client RuleAssociationsClient) ListByRuleResponder(resp *http.Response) (result RuleAssociationProxyOnlyResourceListResult, err error)
ListByRuleResponder handles the response to the ListByRule request. The method always closes the http.Response Body.
func (RuleAssociationsClient) ListByRuleSender ¶
ListByRuleSender sends the ListByRule request. The method will close the http.Response Body if it receives an error.
type RuleDataSources ¶
type RuleDataSources struct { // PerformanceCounters - The list of performance counter data source configurations. PerformanceCounters *[]PerfCounterDataSource `json:"performanceCounters,omitempty"` // WindowsEventLogs - The list of Windows Event Log data source configurations. WindowsEventLogs *[]WindowsEventLogDataSource `json:"windowsEventLogs,omitempty"` // Syslog - The list of Syslog data source configurations. Syslog *[]SyslogDataSource `json:"syslog,omitempty"` // Extensions - The list of Azure VM extension data source configurations. Extensions *[]ExtensionDataSource `json:"extensions,omitempty"` // LogFiles - The list of Log files source configurations. LogFiles *[]LogFilesDataSource `json:"logFiles,omitempty"` // IisLogs - The list of IIS logs source configurations. IisLogs *[]IisLogsDataSource `json:"iisLogs,omitempty"` }
RuleDataSources the specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
type RuleDestinations ¶
type RuleDestinations struct { // LogAnalytics - List of Log Analytics destinations. LogAnalytics *[]LogAnalyticsDestination `json:"logAnalytics,omitempty"` // AzureMonitorMetrics - Azure Monitor Metrics destination. AzureMonitorMetrics *DestinationsSpecAzureMonitorMetrics `json:"azureMonitorMetrics,omitempty"` }
RuleDestinations the specification of destinations.
type RuleMetadata ¶
type RuleMetadata struct { // ProvisionedBy - READ-ONLY; Azure offering managing this resource on-behalf-of customer. ProvisionedBy *string `json:"provisionedBy,omitempty"` }
RuleMetadata metadata about the resource
func (RuleMetadata) MarshalJSON ¶
func (r RuleMetadata) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleMetadata.
type RuleResource ¶
type RuleResource struct { autorest.Response `json:"-"` // RuleResourceProperties - Resource properties. *RuleResourceProperties `json:"properties,omitempty"` // Location - The geo-location where the resource lives. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Kind - The kind of the resource. Possible values include: 'KnownDataCollectionRuleResourceKindLinux', 'KnownDataCollectionRuleResourceKindWindows' Kind KnownDataCollectionRuleResourceKind `json:"kind,omitempty"` // ID - READ-ONLY; Fully qualified ID of the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Etag - READ-ONLY; Resource entity tag (ETag). Etag *string `json:"etag,omitempty"` // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *RuleResourceSystemData `json:"systemData,omitempty"` }
RuleResource definition of ARM tracked top level resource.
func (RuleResource) MarshalJSON ¶
func (rr RuleResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleResource.
func (*RuleResource) UnmarshalJSON ¶
func (rr *RuleResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RuleResource struct.
type RuleResourceListResult ¶
type RuleResourceListResult struct { autorest.Response `json:"-"` // Value - A list of resources. Value *[]RuleResource `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
RuleResourceListResult a pageable list of resources.
func (RuleResourceListResult) IsEmpty ¶
func (rrlr RuleResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RuleResourceListResultIterator ¶
type RuleResourceListResultIterator struct {
// contains filtered or unexported fields
}
RuleResourceListResultIterator provides access to a complete listing of RuleResource values.
func NewRuleResourceListResultIterator ¶
func NewRuleResourceListResultIterator(page RuleResourceListResultPage) RuleResourceListResultIterator
Creates a new instance of the RuleResourceListResultIterator type.
func (*RuleResourceListResultIterator) Next ¶
func (iter *RuleResourceListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RuleResourceListResultIterator) NextWithContext ¶
func (iter *RuleResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (RuleResourceListResultIterator) NotDone ¶
func (iter RuleResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (RuleResourceListResultIterator) Response ¶
func (iter RuleResourceListResultIterator) Response() RuleResourceListResult
Response returns the raw server response from the last page request.
func (RuleResourceListResultIterator) Value ¶
func (iter RuleResourceListResultIterator) Value() RuleResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type RuleResourceListResultPage ¶
type RuleResourceListResultPage struct {
// contains filtered or unexported fields
}
RuleResourceListResultPage contains a page of RuleResource values.
func NewRuleResourceListResultPage ¶
func NewRuleResourceListResultPage(cur RuleResourceListResult, getNextPage func(context.Context, RuleResourceListResult) (RuleResourceListResult, error)) RuleResourceListResultPage
Creates a new instance of the RuleResourceListResultPage type.
func (*RuleResourceListResultPage) Next ¶
func (page *RuleResourceListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RuleResourceListResultPage) NextWithContext ¶
func (page *RuleResourceListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (RuleResourceListResultPage) NotDone ¶
func (page RuleResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (RuleResourceListResultPage) Response ¶
func (page RuleResourceListResultPage) Response() RuleResourceListResult
Response returns the raw server response from the last page request.
func (RuleResourceListResultPage) Values ¶
func (page RuleResourceListResultPage) Values() []RuleResource
Values returns the slice of values for the current page or nil if there are no values.
type RuleResourceProperties ¶
type RuleResourceProperties struct { // Description - Description of the data collection rule. Description *string `json:"description,omitempty"` // ImmutableID - READ-ONLY; The immutable ID of this data collection rule. This property is READ-ONLY. ImmutableID *string `json:"immutableId,omitempty"` // DataCollectionEndpointID - The resource ID of the data collection endpoint that this rule can be used with. DataCollectionEndpointID *string `json:"dataCollectionEndpointId,omitempty"` // Metadata - READ-ONLY; Metadata about the resource Metadata *RuleMetadata `json:"metadata,omitempty"` // StreamDeclarations - Declaration of custom streams used in this rule. StreamDeclarations map[string]*StreamDeclaration `json:"streamDeclarations"` // DataSources - The specification of data sources. // This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint. DataSources *RuleDataSources `json:"dataSources,omitempty"` // Destinations - The specification of destinations. Destinations *RuleDestinations `json:"destinations,omitempty"` // DataFlows - The specification of data flows. DataFlows *[]DataFlow `json:"dataFlows,omitempty"` // ProvisioningState - READ-ONLY; The resource provisioning state. Possible values include: 'KnownDataCollectionRuleProvisioningStateCreating', 'KnownDataCollectionRuleProvisioningStateUpdating', 'KnownDataCollectionRuleProvisioningStateDeleting', 'KnownDataCollectionRuleProvisioningStateSucceeded', 'KnownDataCollectionRuleProvisioningStateFailed' ProvisioningState KnownDataCollectionRuleProvisioningState `json:"provisioningState,omitempty"` }
RuleResourceProperties resource properties.
func (RuleResourceProperties) MarshalJSON ¶
func (rr RuleResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleResourceProperties.
type RuleResourceSystemData ¶
type RuleResourceSystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
RuleResourceSystemData metadata pertaining to creation and last modification of the resource.
type RulesClient ¶
type RulesClient struct {
BaseClient
}
RulesClient is the monitor Management Client
func NewRulesClient ¶
func NewRulesClient(subscriptionID string) RulesClient
NewRulesClient creates an instance of the RulesClient client.
func NewRulesClientWithBaseURI ¶
func NewRulesClientWithBaseURI(baseURI string, subscriptionID string) RulesClient
NewRulesClientWithBaseURI creates an instance of the RulesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (RulesClient) Create ¶
func (client RulesClient) Create(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *RuleResource) (result RuleResource, err error)
Create sends the create request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionRuleName - the name of the data collection rule. The name is case insensitive. body - the payload
func (RulesClient) CreatePreparer ¶
func (client RulesClient) CreatePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *RuleResource) (*http.Request, error)
CreatePreparer prepares the Create request.
func (RulesClient) CreateResponder ¶
func (client RulesClient) CreateResponder(resp *http.Response) (result RuleResource, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (RulesClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (RulesClient) Delete ¶
func (client RulesClient) Delete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result autorest.Response, err error)
Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionRuleName - the name of the data collection rule. The name is case insensitive.
func (RulesClient) DeletePreparer ¶
func (client RulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (RulesClient) DeleteResponder ¶
func (client RulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (RulesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (RulesClient) Get ¶
func (client RulesClient) Get(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result RuleResource, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionRuleName - the name of the data collection rule. The name is case insensitive.
func (RulesClient) GetPreparer ¶
func (client RulesClient) GetPreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RulesClient) GetResponder ¶
func (client RulesClient) GetResponder(resp *http.Response) (result RuleResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RulesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RulesClient) ListByResourceGroup ¶
func (client RulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result RuleResourceListResultPage, err error)
ListByResourceGroup sends the list by resource group request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (RulesClient) ListByResourceGroupComplete ¶
func (client RulesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RuleResourceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (RulesClient) ListByResourceGroupPreparer ¶
func (client RulesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (RulesClient) ListByResourceGroupResponder ¶
func (client RulesClient) ListByResourceGroupResponder(resp *http.Response) (result RuleResourceListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (RulesClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (RulesClient) ListBySubscription ¶
func (client RulesClient) ListBySubscription(ctx context.Context) (result RuleResourceListResultPage, err error)
ListBySubscription sends the list by subscription request.
func (RulesClient) ListBySubscriptionComplete ¶
func (client RulesClient) ListBySubscriptionComplete(ctx context.Context) (result RuleResourceListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (RulesClient) ListBySubscriptionPreparer ¶
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (RulesClient) ListBySubscriptionResponder ¶
func (client RulesClient) ListBySubscriptionResponder(resp *http.Response) (result RuleResourceListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (RulesClient) ListBySubscriptionSender ¶
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (RulesClient) Update ¶
func (client RulesClient) Update(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *ResourceForUpdate) (result RuleResource, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. dataCollectionRuleName - the name of the data collection rule. The name is case insensitive. body - the payload
func (RulesClient) UpdatePreparer ¶
func (client RulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *ResourceForUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (RulesClient) UpdateResponder ¶
func (client RulesClient) UpdateResponder(resp *http.Response) (result RuleResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (RulesClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type StreamDeclaration ¶
type StreamDeclaration struct { // Columns - List of columns used by data in this stream. Columns *[]ColumnDefinition `json:"columns,omitempty"` }
StreamDeclaration declaration of a custom stream.
type SyslogDataSource ¶
type SyslogDataSource struct { // Streams - List of streams that this data source will be sent to. // A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Streams *[]KnownSyslogDataSourceStreams `json:"streams,omitempty"` // FacilityNames - The list of facility names. FacilityNames *[]KnownSyslogDataSourceFacilityNames `json:"facilityNames,omitempty"` // LogLevels - The log levels to collect. LogLevels *[]KnownSyslogDataSourceLogLevels `json:"logLevels,omitempty"` // Name - A friendly name for the data source. // This name should be unique across all data sources (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
SyslogDataSource definition of which syslog data will be collected and how it will be collected. Only collected from Linux machines.
type SystemData ¶
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
SystemData metadata pertaining to creation and last modification of the resource.
type WindowsEventLogDataSource ¶
type WindowsEventLogDataSource struct { // Streams - List of streams that this data source will be sent to. // A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Streams *[]KnownWindowsEventLogDataSourceStreams `json:"streams,omitempty"` // XPathQueries - A list of Windows Event Log queries in XPATH format. XPathQueries *[]string `json:"xPathQueries,omitempty"` // Name - A friendly name for the data source. // This name should be unique across all data sources (regardless of type) within the data collection rule. Name *string `json:"name,omitempty"` }
WindowsEventLogDataSource definition of which Windows Event Log events will be collected and how they will be collected. Only collected from Windows machines.