const ( // DefaultBaseURI is the default URI used for the service Datacollection DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
AzureMonitorMetricsDestination azure Monitor Metrics destination.
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"` }
BaseClient is the base client for Datacollection.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
ColumnDefinition definition of custom data column.
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"` }
ConfigurationAccessEndpointSpec definition of the endpoint used for accessing configuration.
type ConfigurationAccessEndpointSpec struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
func (caes ConfigurationAccessEndpointSpec) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationAccessEndpointSpec.
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
DataFlow definition of which streams are sent to which destinations.
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"` }
DataSourcesSpec specification of data sources that will be collected.
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"` }
DestinationsSpec specification of destinations that can be used in data flows.
type DestinationsSpec struct { // LogAnalytics - List of Log Analytics destinations. LogAnalytics *[]LogAnalyticsDestination `json:"logAnalytics,omitempty"` // AzureMonitorMetrics - Azure Monitor Metrics destination. AzureMonitorMetrics *DestinationsSpecAzureMonitorMetrics `json:"azureMonitorMetrics,omitempty"` }
DestinationsSpecAzureMonitorMetrics azure Monitor Metrics destination.
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"` }
Endpoint definition of data collection 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"` }
func (e Endpoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Endpoint.
EndpointConfigurationAccess the endpoint used by clients to access their configuration.
type EndpointConfigurationAccess struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
func (eA EndpointConfigurationAccess) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointConfigurationAccess.
EndpointLogsIngestion the endpoint used by clients to ingest logs.
type EndpointLogsIngestion struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
func (eI EndpointLogsIngestion) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointLogsIngestion.
EndpointNetworkAcls network access control rules for the endpoints.
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"` }
EndpointResource definition of ARM tracked top level resource.
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"` }
func (er EndpointResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointResource.
func (er *EndpointResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EndpointResource struct.
EndpointResourceListResult a pageable list of resources.
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"` }
func (erlr EndpointResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
EndpointResourceListResultIterator provides access to a complete listing of EndpointResource values.
type EndpointResourceListResultIterator struct {
// contains filtered or unexported fields
}
func NewEndpointResourceListResultIterator(page EndpointResourceListResultPage) EndpointResourceListResultIterator
Creates a new instance of the EndpointResourceListResultIterator type.
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 (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 (iter EndpointResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter EndpointResourceListResultIterator) Response() EndpointResourceListResult
Response returns the raw server response from the last page request.
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.
EndpointResourceListResultPage contains a page of EndpointResource values.
type EndpointResourceListResultPage struct {
// contains filtered or unexported fields
}
func NewEndpointResourceListResultPage(cur EndpointResourceListResult, getNextPage func(context.Context, EndpointResourceListResult) (EndpointResourceListResult, error)) EndpointResourceListResultPage
Creates a new instance of the EndpointResourceListResultPage type.
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 (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 (page EndpointResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page EndpointResourceListResultPage) Response() EndpointResourceListResult
Response returns the raw server response from the last page request.
func (page EndpointResourceListResultPage) Values() []EndpointResource
Values returns the slice of values for the current page or nil if there are no values.
EndpointResourceProperties resource properties.
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"` }
func (er EndpointResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EndpointResourceProperties.
EndpointResourceSystemData metadata pertaining to creation and last modification of the resource.
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"` }
EndpointsClient is the monitor Management Client
type EndpointsClient struct { BaseClient }
func NewEndpointsClient(subscriptionID string) EndpointsClient
NewEndpointsClient creates an instance of the EndpointsClient client.
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 (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 (client EndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *EndpointResource) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (client EndpointsClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
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 (client EndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (client EndpointsClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
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 (client EndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client EndpointsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client EndpointsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result EndpointResourceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client EndpointsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (client EndpointsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client EndpointsClient) ListBySubscription(ctx context.Context) (result EndpointResourceListResultPage, err error)
ListBySubscription sends the list by subscription request.
func (client EndpointsClient) ListBySubscriptionComplete(ctx context.Context) (result EndpointResourceListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client EndpointsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
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 (client EndpointsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
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 (client EndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *ResourceForUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (client EndpointsClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
ErrorAdditionalInfo the resource management error additional info.
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"` }
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
ErrorDetail the error detail.
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"` }
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
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 ErrorResponseCommonV2 struct { // Error - The error object. Error *ErrorDetail `json:"error,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 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"` }
IisLogsDataSource enables IIS logs to be collected by this data collection rule.
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"` }
KnownColumnDefinitionType enumerates the values for known column definition type.
type KnownColumnDefinitionType string
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() []KnownColumnDefinitionType
PossibleKnownColumnDefinitionTypeValues returns an array of possible values for the KnownColumnDefinitionType const type.
KnownDataCollectionEndpointProvisioningState enumerates the values for known data collection endpoint provisioning state.
type KnownDataCollectionEndpointProvisioningState string
const ( // KnownDataCollectionEndpointProvisioningStateCreating ... KnownDataCollectionEndpointProvisioningStateCreating KnownDataCollectionEndpointProvisioningState = "Creating" // KnownDataCollectionEndpointProvisioningStateDeleting ... KnownDataCollectionEndpointProvisioningStateDeleting KnownDataCollectionEndpointProvisioningState = "Deleting" // KnownDataCollectionEndpointProvisioningStateFailed ... KnownDataCollectionEndpointProvisioningStateFailed KnownDataCollectionEndpointProvisioningState = "Failed" // KnownDataCollectionEndpointProvisioningStateSucceeded ... KnownDataCollectionEndpointProvisioningStateSucceeded KnownDataCollectionEndpointProvisioningState = "Succeeded" // KnownDataCollectionEndpointProvisioningStateUpdating ... KnownDataCollectionEndpointProvisioningStateUpdating KnownDataCollectionEndpointProvisioningState = "Updating" )
func PossibleKnownDataCollectionEndpointProvisioningStateValues() []KnownDataCollectionEndpointProvisioningState
PossibleKnownDataCollectionEndpointProvisioningStateValues returns an array of possible values for the KnownDataCollectionEndpointProvisioningState const type.
KnownDataCollectionEndpointResourceKind enumerates the values for known data collection endpoint resource kind.
type KnownDataCollectionEndpointResourceKind string
const ( // KnownDataCollectionEndpointResourceKindLinux ... KnownDataCollectionEndpointResourceKindLinux KnownDataCollectionEndpointResourceKind = "Linux" // KnownDataCollectionEndpointResourceKindWindows ... KnownDataCollectionEndpointResourceKindWindows KnownDataCollectionEndpointResourceKind = "Windows" )
func PossibleKnownDataCollectionEndpointResourceKindValues() []KnownDataCollectionEndpointResourceKind
PossibleKnownDataCollectionEndpointResourceKindValues returns an array of possible values for the KnownDataCollectionEndpointResourceKind const type.
KnownDataCollectionRuleAssociationProvisioningState enumerates the values for known data collection rule association provisioning state.
type KnownDataCollectionRuleAssociationProvisioningState string
const ( // KnownDataCollectionRuleAssociationProvisioningStateCreating ... KnownDataCollectionRuleAssociationProvisioningStateCreating KnownDataCollectionRuleAssociationProvisioningState = "Creating" // KnownDataCollectionRuleAssociationProvisioningStateDeleting ... KnownDataCollectionRuleAssociationProvisioningStateDeleting KnownDataCollectionRuleAssociationProvisioningState = "Deleting" // KnownDataCollectionRuleAssociationProvisioningStateFailed ... KnownDataCollectionRuleAssociationProvisioningStateFailed KnownDataCollectionRuleAssociationProvisioningState = "Failed" // KnownDataCollectionRuleAssociationProvisioningStateSucceeded ... KnownDataCollectionRuleAssociationProvisioningStateSucceeded KnownDataCollectionRuleAssociationProvisioningState = "Succeeded" // KnownDataCollectionRuleAssociationProvisioningStateUpdating ... KnownDataCollectionRuleAssociationProvisioningStateUpdating KnownDataCollectionRuleAssociationProvisioningState = "Updating" )
func PossibleKnownDataCollectionRuleAssociationProvisioningStateValues() []KnownDataCollectionRuleAssociationProvisioningState
PossibleKnownDataCollectionRuleAssociationProvisioningStateValues returns an array of possible values for the KnownDataCollectionRuleAssociationProvisioningState const type.
KnownDataCollectionRuleProvisioningState enumerates the values for known data collection rule provisioning state.
type KnownDataCollectionRuleProvisioningState string
const ( // KnownDataCollectionRuleProvisioningStateCreating ... KnownDataCollectionRuleProvisioningStateCreating KnownDataCollectionRuleProvisioningState = "Creating" // KnownDataCollectionRuleProvisioningStateDeleting ... KnownDataCollectionRuleProvisioningStateDeleting KnownDataCollectionRuleProvisioningState = "Deleting" // KnownDataCollectionRuleProvisioningStateFailed ... KnownDataCollectionRuleProvisioningStateFailed KnownDataCollectionRuleProvisioningState = "Failed" // KnownDataCollectionRuleProvisioningStateSucceeded ... KnownDataCollectionRuleProvisioningStateSucceeded KnownDataCollectionRuleProvisioningState = "Succeeded" // KnownDataCollectionRuleProvisioningStateUpdating ... KnownDataCollectionRuleProvisioningStateUpdating KnownDataCollectionRuleProvisioningState = "Updating" )
func PossibleKnownDataCollectionRuleProvisioningStateValues() []KnownDataCollectionRuleProvisioningState
PossibleKnownDataCollectionRuleProvisioningStateValues returns an array of possible values for the KnownDataCollectionRuleProvisioningState const type.
KnownDataCollectionRuleResourceKind enumerates the values for known data collection rule resource kind.
type KnownDataCollectionRuleResourceKind string
const ( // KnownDataCollectionRuleResourceKindLinux ... KnownDataCollectionRuleResourceKindLinux KnownDataCollectionRuleResourceKind = "Linux" // KnownDataCollectionRuleResourceKindWindows ... KnownDataCollectionRuleResourceKindWindows KnownDataCollectionRuleResourceKind = "Windows" )
func PossibleKnownDataCollectionRuleResourceKindValues() []KnownDataCollectionRuleResourceKind
PossibleKnownDataCollectionRuleResourceKindValues returns an array of possible values for the KnownDataCollectionRuleResourceKind const type.
KnownDataFlowStreams enumerates the values for known data flow streams.
type KnownDataFlowStreams string
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() []KnownDataFlowStreams
PossibleKnownDataFlowStreamsValues returns an array of possible values for the KnownDataFlowStreams const type.
KnownExtensionDataSourceStreams enumerates the values for known extension data source streams.
type KnownExtensionDataSourceStreams string
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() []KnownExtensionDataSourceStreams
PossibleKnownExtensionDataSourceStreamsValues returns an array of possible values for the KnownExtensionDataSourceStreams const type.
KnownLogFileTextSettingsRecordStartTimestampFormat enumerates the values for known log file text settings record start timestamp format.
type KnownLogFileTextSettingsRecordStartTimestampFormat string
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() []KnownLogFileTextSettingsRecordStartTimestampFormat
PossibleKnownLogFileTextSettingsRecordStartTimestampFormatValues returns an array of possible values for the KnownLogFileTextSettingsRecordStartTimestampFormat const type.
KnownPerfCounterDataSourceStreams enumerates the values for known perf counter data source streams.
type KnownPerfCounterDataSourceStreams string
const ( // KnownPerfCounterDataSourceStreamsMicrosoftInsightsMetrics ... KnownPerfCounterDataSourceStreamsMicrosoftInsightsMetrics KnownPerfCounterDataSourceStreams = "Microsoft-InsightsMetrics" // KnownPerfCounterDataSourceStreamsMicrosoftPerf ... KnownPerfCounterDataSourceStreamsMicrosoftPerf KnownPerfCounterDataSourceStreams = "Microsoft-Perf" )
func PossibleKnownPerfCounterDataSourceStreamsValues() []KnownPerfCounterDataSourceStreams
PossibleKnownPerfCounterDataSourceStreamsValues returns an array of possible values for the KnownPerfCounterDataSourceStreams const type.
KnownPublicNetworkAccessOptions enumerates the values for known public network access options.
type KnownPublicNetworkAccessOptions string
const ( // KnownPublicNetworkAccessOptionsDisabled ... KnownPublicNetworkAccessOptionsDisabled KnownPublicNetworkAccessOptions = "Disabled" // KnownPublicNetworkAccessOptionsEnabled ... KnownPublicNetworkAccessOptionsEnabled KnownPublicNetworkAccessOptions = "Enabled" )
func PossibleKnownPublicNetworkAccessOptionsValues() []KnownPublicNetworkAccessOptions
PossibleKnownPublicNetworkAccessOptionsValues returns an array of possible values for the KnownPublicNetworkAccessOptions const type.
KnownSyslogDataSourceFacilityNames enumerates the values for known syslog data source facility names.
type KnownSyslogDataSourceFacilityNames string
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() []KnownSyslogDataSourceFacilityNames
PossibleKnownSyslogDataSourceFacilityNamesValues returns an array of possible values for the KnownSyslogDataSourceFacilityNames const type.
KnownSyslogDataSourceLogLevels enumerates the values for known syslog data source log levels.
type KnownSyslogDataSourceLogLevels string
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() []KnownSyslogDataSourceLogLevels
PossibleKnownSyslogDataSourceLogLevelsValues returns an array of possible values for the KnownSyslogDataSourceLogLevels const type.
KnownSyslogDataSourceStreams enumerates the values for known syslog data source streams.
type KnownSyslogDataSourceStreams string
const ( // KnownSyslogDataSourceStreamsMicrosoftSyslog ... KnownSyslogDataSourceStreamsMicrosoftSyslog KnownSyslogDataSourceStreams = "Microsoft-Syslog" )
func PossibleKnownSyslogDataSourceStreamsValues() []KnownSyslogDataSourceStreams
PossibleKnownSyslogDataSourceStreamsValues returns an array of possible values for the KnownSyslogDataSourceStreams const type.
KnownWindowsEventLogDataSourceStreams enumerates the values for known windows event log data source streams.
type KnownWindowsEventLogDataSourceStreams string
const ( // KnownWindowsEventLogDataSourceStreamsMicrosoftEvent ... KnownWindowsEventLogDataSourceStreamsMicrosoftEvent KnownWindowsEventLogDataSourceStreams = "Microsoft-Event" // KnownWindowsEventLogDataSourceStreamsMicrosoftWindowsEvent ... KnownWindowsEventLogDataSourceStreamsMicrosoftWindowsEvent KnownWindowsEventLogDataSourceStreams = "Microsoft-WindowsEvent" )
func PossibleKnownWindowsEventLogDataSourceStreamsValues() []KnownWindowsEventLogDataSourceStreams
PossibleKnownWindowsEventLogDataSourceStreamsValues returns an array of possible values for the KnownWindowsEventLogDataSourceStreams const type.
LogAnalyticsDestination log Analytics destination.
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"` }
func (lad LogAnalyticsDestination) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogAnalyticsDestination.
LogFileSettings settings for different log file formats
type LogFileSettings struct { // Text - Text settings Text *LogFileSettingsText `json:"text,omitempty"` }
LogFileSettingsText text settings
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"` }
LogFileTextSettings settings for text log files
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"` }
LogFilesDataSource definition of which custom log files will be collected by this data collection rule
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"` }
LogFilesDataSourceSettings the log files specific settings.
type LogFilesDataSourceSettings struct { // Text - Text settings Text *LogFileSettingsText `json:"text,omitempty"` }
LogsIngestionEndpointSpec definition of the endpoint used for ingesting logs.
type LogsIngestionEndpointSpec struct { // Endpoint - READ-ONLY; The endpoint. This property is READ-ONLY. Endpoint *string `json:"endpoint,omitempty"` }
func (lies LogsIngestionEndpointSpec) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogsIngestionEndpointSpec.
Metadata metadata about the resource
type Metadata struct { // ProvisionedBy - READ-ONLY; Azure offering managing this resource on-behalf-of customer. ProvisionedBy *string `json:"provisionedBy,omitempty"` }
func (mVar Metadata) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Metadata.
NetworkRuleSet definition of the network rules.
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"` }
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 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"` }
ResourceForUpdate definition of ARM tracked top level resource properties for update operation.
type ResourceForUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (rfu ResourceForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceForUpdate.
Rule definition of what monitoring data to collect and where that data should be sent.
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"` }
func (r Rule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Rule.
RuleAssociation definition of association of a data collection rule with a monitored Azure resource.
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"` }
func (ra RuleAssociation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociation.
RuleAssociationMetadata metadata about the resource
type RuleAssociationMetadata struct { // ProvisionedBy - READ-ONLY; Azure offering managing this resource on-behalf-of customer. ProvisionedBy *string `json:"provisionedBy,omitempty"` }
func (ra RuleAssociationMetadata) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociationMetadata.
RuleAssociationProxyOnlyResource definition of generic ARM proxy resource.
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"` }
func (rapor RuleAssociationProxyOnlyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociationProxyOnlyResource.
func (rapor *RuleAssociationProxyOnlyResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RuleAssociationProxyOnlyResource struct.
RuleAssociationProxyOnlyResourceListResult a pageable list of resources.
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"` }
func (raporlr RuleAssociationProxyOnlyResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
RuleAssociationProxyOnlyResourceListResultIterator provides access to a complete listing of RuleAssociationProxyOnlyResource values.
type RuleAssociationProxyOnlyResourceListResultIterator struct {
// contains filtered or unexported fields
}
func NewRuleAssociationProxyOnlyResourceListResultIterator(page RuleAssociationProxyOnlyResourceListResultPage) RuleAssociationProxyOnlyResourceListResultIterator
Creates a new instance of the RuleAssociationProxyOnlyResourceListResultIterator type.
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 (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 (iter RuleAssociationProxyOnlyResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter RuleAssociationProxyOnlyResourceListResultIterator) Response() RuleAssociationProxyOnlyResourceListResult
Response returns the raw server response from the last page request.
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.
RuleAssociationProxyOnlyResourceListResultPage contains a page of RuleAssociationProxyOnlyResource values.
type RuleAssociationProxyOnlyResourceListResultPage struct {
// contains filtered or unexported fields
}
func NewRuleAssociationProxyOnlyResourceListResultPage(cur RuleAssociationProxyOnlyResourceListResult, getNextPage func(context.Context, RuleAssociationProxyOnlyResourceListResult) (RuleAssociationProxyOnlyResourceListResult, error)) RuleAssociationProxyOnlyResourceListResultPage
Creates a new instance of the RuleAssociationProxyOnlyResourceListResultPage type.
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 (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 (page RuleAssociationProxyOnlyResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page RuleAssociationProxyOnlyResourceListResultPage) Response() RuleAssociationProxyOnlyResourceListResult
Response returns the raw server response from the last page request.
func (page RuleAssociationProxyOnlyResourceListResultPage) Values() []RuleAssociationProxyOnlyResource
Values returns the slice of values for the current page or nil if there are no values.
RuleAssociationProxyOnlyResourceProperties resource properties.
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"` }
func (rapor RuleAssociationProxyOnlyResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAssociationProxyOnlyResourceProperties.
RuleAssociationProxyOnlyResourceSystemData metadata pertaining to creation and last modification of the resource.
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"` }
RuleAssociationsClient is the monitor Management Client
type RuleAssociationsClient struct { BaseClient }
func NewRuleAssociationsClient(subscriptionID string) RuleAssociationsClient
NewRuleAssociationsClient creates an instance of the RuleAssociationsClient client.
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 (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 (client RuleAssociationsClient) CreatePreparer(ctx context.Context, resourceURI string, associationName string, body *RuleAssociationProxyOnlyResource) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (client RuleAssociationsClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
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 (client RuleAssociationsClient) DeletePreparer(ctx context.Context, resourceURI string, associationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (client RuleAssociationsClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
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 (client RuleAssociationsClient) GetPreparer(ctx context.Context, resourceURI string, associationName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client RuleAssociationsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (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 (client RuleAssociationsClient) ListByDataCollectionEndpointPreparer(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (*http.Request, error)
ListByDataCollectionEndpointPreparer prepares the ListByDataCollectionEndpoint request.
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 (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 (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 (client RuleAssociationsClient) ListByResourceComplete(ctx context.Context, resourceURI string) (result RuleAssociationProxyOnlyResourceListResultIterator, err error)
ListByResourceComplete enumerates all values, automatically crossing page boundaries as required.
func (client RuleAssociationsClient) ListByResourcePreparer(ctx context.Context, resourceURI string) (*http.Request, error)
ListByResourcePreparer prepares the ListByResource request.
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 (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 (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 (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 (client RuleAssociationsClient) ListByRulePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
ListByRulePreparer prepares the ListByRule request.
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 (client RuleAssociationsClient) ListByRuleSender(req *http.Request) (*http.Response, error)
ListByRuleSender sends the ListByRule request. The method will close the http.Response Body if it receives an error.
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 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"` }
RuleDestinations the specification of destinations.
type RuleDestinations struct { // LogAnalytics - List of Log Analytics destinations. LogAnalytics *[]LogAnalyticsDestination `json:"logAnalytics,omitempty"` // AzureMonitorMetrics - Azure Monitor Metrics destination. AzureMonitorMetrics *DestinationsSpecAzureMonitorMetrics `json:"azureMonitorMetrics,omitempty"` }
RuleMetadata metadata about the resource
type RuleMetadata struct { // ProvisionedBy - READ-ONLY; Azure offering managing this resource on-behalf-of customer. ProvisionedBy *string `json:"provisionedBy,omitempty"` }
func (r RuleMetadata) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleMetadata.
RuleResource definition of ARM tracked top level resource.
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"` }
func (rr RuleResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleResource.
func (rr *RuleResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RuleResource struct.
RuleResourceListResult a pageable list of resources.
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"` }
func (rrlr RuleResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
RuleResourceListResultIterator provides access to a complete listing of RuleResource values.
type RuleResourceListResultIterator struct {
// contains filtered or unexported fields
}
func NewRuleResourceListResultIterator(page RuleResourceListResultPage) RuleResourceListResultIterator
Creates a new instance of the RuleResourceListResultIterator type.
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 (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 (iter RuleResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter RuleResourceListResultIterator) Response() RuleResourceListResult
Response returns the raw server response from the last page request.
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.
RuleResourceListResultPage contains a page of RuleResource values.
type RuleResourceListResultPage struct {
// contains filtered or unexported fields
}
func NewRuleResourceListResultPage(cur RuleResourceListResult, getNextPage func(context.Context, RuleResourceListResult) (RuleResourceListResult, error)) RuleResourceListResultPage
Creates a new instance of the RuleResourceListResultPage type.
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 (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 (page RuleResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page RuleResourceListResultPage) Response() RuleResourceListResult
Response returns the raw server response from the last page request.
func (page RuleResourceListResultPage) Values() []RuleResource
Values returns the slice of values for the current page or nil if there are no values.
RuleResourceProperties resource properties.
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"` }
func (rr RuleResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleResourceProperties.
RuleResourceSystemData metadata pertaining to creation and last modification of the resource.
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"` }
RulesClient is the monitor Management Client
type RulesClient struct { BaseClient }
func NewRulesClient(subscriptionID string) RulesClient
NewRulesClient creates an instance of the RulesClient client.
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 (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 (client RulesClient) CreatePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *RuleResource) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (client RulesClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
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 (client RulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (client RulesClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
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 (client RulesClient) GetPreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client RulesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client RulesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RuleResourceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client RulesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (client RulesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client RulesClient) ListBySubscription(ctx context.Context) (result RuleResourceListResultPage, err error)
ListBySubscription sends the list by subscription request.
func (client RulesClient) ListBySubscriptionComplete(ctx context.Context) (result RuleResourceListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client RulesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
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 (client RulesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
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 (client RulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *ResourceForUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (client RulesClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
StreamDeclaration declaration of a custom stream.
type StreamDeclaration struct { // Columns - List of columns used by data in this stream. Columns *[]ColumnDefinition `json:"columns,omitempty"` }
SyslogDataSource definition of which syslog data will be collected and how it will be collected. Only collected from Linux machines.
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"` }
SystemData metadata pertaining to creation and last modification of the resource.
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"` }
WindowsEventLogDataSource definition of which Windows Event Log events will be collected and how they will be collected. Only collected from Windows machines.
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"` }
Name | Synopsis |
---|---|
.. | |
datacollectionapi | Deprecated: Please note, this package has been deprecated. |