Documentation ¶
Index ¶
- type AssociatedWorkspace
- type AvailableServiceTier
- type AvailableServiceTiersClient
- type AvailableServiceTiersClientListByWorkspaceOptions
- type AvailableServiceTiersClientListByWorkspaceResponse
- type AzureEntityResource
- type BillingType
- type Capacity
- type CapacityReservationLevel
- type CapacityReservationProperties
- type ClientFactory
- func (c *ClientFactory) NewAvailableServiceTiersClient() *AvailableServiceTiersClient
- func (c *ClientFactory) NewClustersClient() *ClustersClient
- func (c *ClientFactory) NewDataExportsClient() *DataExportsClient
- func (c *ClientFactory) NewDataSourcesClient() *DataSourcesClient
- func (c *ClientFactory) NewDeletedWorkspacesClient() *DeletedWorkspacesClient
- func (c *ClientFactory) NewGatewaysClient() *GatewaysClient
- func (c *ClientFactory) NewIntelligencePacksClient() *IntelligencePacksClient
- func (c *ClientFactory) NewLinkedServicesClient() *LinkedServicesClient
- func (c *ClientFactory) NewLinkedStorageAccountsClient() *LinkedStorageAccountsClient
- func (c *ClientFactory) NewManagementGroupsClient() *ManagementGroupsClient
- func (c *ClientFactory) NewOperationStatusesClient() *OperationStatusesClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewSavedSearchesClient() *SavedSearchesClient
- func (c *ClientFactory) NewSchemaClient() *SchemaClient
- func (c *ClientFactory) NewSharedKeysClient() *SharedKeysClient
- func (c *ClientFactory) NewStorageInsightConfigsClient() *StorageInsightConfigsClient
- func (c *ClientFactory) NewTablesClient() *TablesClient
- func (c *ClientFactory) NewUsagesClient() *UsagesClient
- func (c *ClientFactory) NewWorkspacePurgeClient() *WorkspacePurgeClient
- func (c *ClientFactory) NewWorkspacesClient() *WorkspacesClient
- type Cluster
- type ClusterEntityStatus
- type ClusterListResult
- type ClusterPatch
- type ClusterPatchProperties
- type ClusterProperties
- type ClusterSKU
- type ClusterSKUNameEnum
- type ClustersClient
- func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[ClustersClientCreateOrUpdateResponse], error)
- func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[ClustersClientDeleteResponse], error)
- func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[ClustersClientUpdateResponse], error)
- func (client *ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (ClustersClientGetResponse, error)
- func (client *ClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *runtime.Pager[ClustersClientListByResourceGroupResponse]
- func (client *ClustersClient) NewListPager(options *ClustersClientListOptions) *runtime.Pager[ClustersClientListResponse]
- type ClustersClientBeginCreateOrUpdateOptions
- type ClustersClientBeginDeleteOptions
- type ClustersClientBeginUpdateOptions
- type ClustersClientCreateOrUpdateResponse
- type ClustersClientDeleteResponse
- type ClustersClientGetOptions
- type ClustersClientGetResponse
- type ClustersClientListByResourceGroupOptions
- type ClustersClientListByResourceGroupResponse
- type ClustersClientListOptions
- type ClustersClientListResponse
- type ClustersClientUpdateResponse
- type CoreSummary
- type DataExport
- type DataExportListResult
- type DataExportProperties
- type DataExportsClient
- func (client *DataExportsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (DataExportsClientCreateOrUpdateResponse, error)
- func (client *DataExportsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (DataExportsClientDeleteResponse, error)
- func (client *DataExportsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (DataExportsClientGetResponse, error)
- func (client *DataExportsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[DataExportsClientListByWorkspaceResponse]
- type DataExportsClientCreateOrUpdateOptions
- type DataExportsClientCreateOrUpdateResponse
- type DataExportsClientDeleteOptions
- type DataExportsClientDeleteResponse
- type DataExportsClientGetOptions
- type DataExportsClientGetResponse
- type DataExportsClientListByWorkspaceOptions
- type DataExportsClientListByWorkspaceResponse
- type DataIngestionStatus
- type DataSource
- type DataSourceFilter
- type DataSourceKind
- type DataSourceListResult
- type DataSourceType
- type DataSourcesClient
- func (client *DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (DataSourcesClientCreateOrUpdateResponse, error)
- func (client *DataSourcesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (DataSourcesClientDeleteResponse, error)
- func (client *DataSourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (DataSourcesClientGetResponse, error)
- func (client *DataSourcesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, filter string, ...) *runtime.Pager[DataSourcesClientListByWorkspaceResponse]
- type DataSourcesClientCreateOrUpdateOptions
- type DataSourcesClientCreateOrUpdateResponse
- type DataSourcesClientDeleteOptions
- type DataSourcesClientDeleteResponse
- type DataSourcesClientGetOptions
- type DataSourcesClientGetResponse
- type DataSourcesClientListByWorkspaceOptions
- type DataSourcesClientListByWorkspaceResponse
- type DeletedWorkspacesClient
- func (client *DeletedWorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[DeletedWorkspacesClientListByResourceGroupResponse]
- func (client *DeletedWorkspacesClient) NewListPager(options *DeletedWorkspacesClientListOptions) *runtime.Pager[DeletedWorkspacesClientListResponse]
- type DeletedWorkspacesClientListByResourceGroupOptions
- type DeletedWorkspacesClientListByResourceGroupResponse
- type DeletedWorkspacesClientListOptions
- type DeletedWorkspacesClientListResponse
- type Destination
- type DestinationMetaData
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type GatewaysClient
- type GatewaysClientDeleteOptions
- type GatewaysClientDeleteResponse
- type Identity
- type IdentityType
- type IntelligencePack
- type IntelligencePacksClient
- func (client *IntelligencePacksClient) Disable(ctx context.Context, resourceGroupName string, workspaceName string, ...) (IntelligencePacksClientDisableResponse, error)
- func (client *IntelligencePacksClient) Enable(ctx context.Context, resourceGroupName string, workspaceName string, ...) (IntelligencePacksClientEnableResponse, error)
- func (client *IntelligencePacksClient) List(ctx context.Context, resourceGroupName string, workspaceName string, ...) (IntelligencePacksClientListResponse, error)
- type IntelligencePacksClientDisableOptions
- type IntelligencePacksClientDisableResponse
- type IntelligencePacksClientEnableOptions
- type IntelligencePacksClientEnableResponse
- type IntelligencePacksClientListOptions
- type IntelligencePacksClientListResponse
- type KeyVaultProperties
- type LinkedService
- type LinkedServiceEntityStatus
- type LinkedServiceListResult
- type LinkedServiceProperties
- type LinkedServicesClient
- func (client *LinkedServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[LinkedServicesClientCreateOrUpdateResponse], error)
- func (client *LinkedServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[LinkedServicesClientDeleteResponse], error)
- func (client *LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (LinkedServicesClientGetResponse, error)
- func (client *LinkedServicesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[LinkedServicesClientListByWorkspaceResponse]
- type LinkedServicesClientBeginCreateOrUpdateOptions
- type LinkedServicesClientBeginDeleteOptions
- type LinkedServicesClientCreateOrUpdateResponse
- type LinkedServicesClientDeleteResponse
- type LinkedServicesClientGetOptions
- type LinkedServicesClientGetResponse
- type LinkedServicesClientListByWorkspaceOptions
- type LinkedServicesClientListByWorkspaceResponse
- type LinkedStorageAccountsClient
- func (client *LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (LinkedStorageAccountsClientCreateOrUpdateResponse, error)
- func (client *LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (LinkedStorageAccountsClientDeleteResponse, error)
- func (client *LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (LinkedStorageAccountsClientGetResponse, error)
- func (client *LinkedStorageAccountsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[LinkedStorageAccountsClientListByWorkspaceResponse]
- type LinkedStorageAccountsClientCreateOrUpdateOptions
- type LinkedStorageAccountsClientCreateOrUpdateResponse
- type LinkedStorageAccountsClientDeleteOptions
- type LinkedStorageAccountsClientDeleteResponse
- type LinkedStorageAccountsClientGetOptions
- type LinkedStorageAccountsClientGetResponse
- type LinkedStorageAccountsClientListByWorkspaceOptions
- type LinkedStorageAccountsClientListByWorkspaceResponse
- type LinkedStorageAccountsListResult
- type LinkedStorageAccountsProperties
- type LinkedStorageAccountsResource
- type ManagementGroup
- type ManagementGroupProperties
- type ManagementGroupsClient
- type ManagementGroupsClientListOptions
- type ManagementGroupsClientListResponse
- type MetricName
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationStatus
- type OperationStatusesClient
- type OperationStatusesClientGetOptions
- type OperationStatusesClientGetResponse
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PrivateLinkScopedResource
- type ProxyResource
- type PublicNetworkAccessType
- type PurgeState
- type Resource
- type SKUNameEnum
- type SavedSearch
- type SavedSearchProperties
- type SavedSearchesClient
- func (client *SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (SavedSearchesClientCreateOrUpdateResponse, error)
- func (client *SavedSearchesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (SavedSearchesClientDeleteResponse, error)
- func (client *SavedSearchesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (SavedSearchesClientGetResponse, error)
- func (client *SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, ...) (SavedSearchesClientListByWorkspaceResponse, error)
- type SavedSearchesClientCreateOrUpdateOptions
- type SavedSearchesClientCreateOrUpdateResponse
- type SavedSearchesClientDeleteOptions
- type SavedSearchesClientDeleteResponse
- type SavedSearchesClientGetOptions
- type SavedSearchesClientGetResponse
- type SavedSearchesClientListByWorkspaceOptions
- type SavedSearchesClientListByWorkspaceResponse
- type SavedSearchesListResult
- type SchemaClient
- type SchemaClientGetOptions
- type SchemaClientGetResponse
- type SearchGetSchemaResponse
- type SearchMetadata
- type SearchMetadataSchema
- type SearchSchemaValue
- type SearchSort
- type SearchSortEnum
- type SharedKeys
- type SharedKeysClient
- func (client *SharedKeysClient) GetSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string, ...) (SharedKeysClientGetSharedKeysResponse, error)
- func (client *SharedKeysClient) Regenerate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (SharedKeysClientRegenerateResponse, error)
- type SharedKeysClientGetSharedKeysOptions
- type SharedKeysClientGetSharedKeysResponse
- type SharedKeysClientRegenerateOptions
- type SharedKeysClientRegenerateResponse
- type StorageAccount
- type StorageInsight
- type StorageInsightConfigsClient
- func (client *StorageInsightConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (StorageInsightConfigsClientCreateOrUpdateResponse, error)
- func (client *StorageInsightConfigsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (StorageInsightConfigsClientDeleteResponse, error)
- func (client *StorageInsightConfigsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (StorageInsightConfigsClientGetResponse, error)
- func (client *StorageInsightConfigsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[StorageInsightConfigsClientListByWorkspaceResponse]
- type StorageInsightConfigsClientCreateOrUpdateOptions
- type StorageInsightConfigsClientCreateOrUpdateResponse
- type StorageInsightConfigsClientDeleteOptions
- type StorageInsightConfigsClientDeleteResponse
- type StorageInsightConfigsClientGetOptions
- type StorageInsightConfigsClientGetResponse
- type StorageInsightConfigsClientListByWorkspaceOptions
- type StorageInsightConfigsClientListByWorkspaceResponse
- type StorageInsightListResult
- type StorageInsightProperties
- type StorageInsightState
- type StorageInsightStatus
- type Table
- type TableProperties
- type TablesClient
- func (client *TablesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (TablesClientGetResponse, error)
- func (client *TablesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[TablesClientListByWorkspaceResponse]
- func (client *TablesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, ...) (TablesClientUpdateResponse, error)
- type TablesClientGetOptions
- type TablesClientGetResponse
- type TablesClientListByWorkspaceOptions
- type TablesClientListByWorkspaceResponse
- type TablesClientUpdateOptions
- type TablesClientUpdateResponse
- type TablesListResult
- type Tag
- type TrackedResource
- type Type
- type UsageMetric
- type UsagesClient
- type UsagesClientListOptions
- type UsagesClientListResponse
- type UserIdentityProperties
- type Workspace
- type WorkspaceCapping
- type WorkspaceEntityStatus
- type WorkspaceFeatures
- type WorkspaceListManagementGroupsResult
- type WorkspaceListResult
- type WorkspaceListUsagesResult
- type WorkspacePatch
- type WorkspaceProperties
- type WorkspacePurgeBody
- type WorkspacePurgeBodyFilters
- type WorkspacePurgeClient
- func (client *WorkspacePurgeClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, workspaceName string, ...) (WorkspacePurgeClientGetPurgeStatusResponse, error)
- func (client *WorkspacePurgeClient) Purge(ctx context.Context, resourceGroupName string, workspaceName string, ...) (WorkspacePurgeClientPurgeResponse, error)
- type WorkspacePurgeClientGetPurgeStatusOptions
- type WorkspacePurgeClientGetPurgeStatusResponse
- type WorkspacePurgeClientPurgeOptions
- type WorkspacePurgeClientPurgeResponse
- type WorkspacePurgeResponse
- type WorkspacePurgeStatusResponse
- type WorkspaceSKU
- type WorkspaceSKUNameEnum
- type WorkspacesClient
- func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[WorkspacesClientCreateOrUpdateResponse], error)
- func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[WorkspacesClientDeleteResponse], error)
- func (client *WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (WorkspacesClientGetResponse, error)
- func (client *WorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *WorkspacesClientListByResourceGroupOptions) *runtime.Pager[WorkspacesClientListByResourceGroupResponse]
- func (client *WorkspacesClient) NewListPager(options *WorkspacesClientListOptions) *runtime.Pager[WorkspacesClientListResponse]
- func (client *WorkspacesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, ...) (WorkspacesClientUpdateResponse, error)
- type WorkspacesClientBeginCreateOrUpdateOptions
- type WorkspacesClientBeginDeleteOptions
- type WorkspacesClientCreateOrUpdateResponse
- type WorkspacesClientDeleteResponse
- type WorkspacesClientGetOptions
- type WorkspacesClientGetResponse
- type WorkspacesClientListByResourceGroupOptions
- type WorkspacesClientListByResourceGroupResponse
- type WorkspacesClientListOptions
- type WorkspacesClientListResponse
- type WorkspacesClientUpdateOptions
- type WorkspacesClientUpdateResponse
Examples ¶
- AvailableServiceTiersClient.ListByWorkspace
- ClustersClient.BeginCreateOrUpdate
- ClustersClient.BeginDelete
- ClustersClient.BeginUpdate
- ClustersClient.Get
- ClustersClient.NewListByResourceGroupPager
- ClustersClient.NewListPager
- DataExportsClient.CreateOrUpdate
- DataExportsClient.Delete
- DataExportsClient.Get
- DataExportsClient.NewListByWorkspacePager
- DataSourcesClient.CreateOrUpdate
- DataSourcesClient.Delete
- DataSourcesClient.Get
- DataSourcesClient.NewListByWorkspacePager
- DeletedWorkspacesClient.NewListByResourceGroupPager
- DeletedWorkspacesClient.NewListPager
- GatewaysClient.Delete
- IntelligencePacksClient.Disable
- IntelligencePacksClient.Enable
- IntelligencePacksClient.List
- LinkedServicesClient.BeginCreateOrUpdate
- LinkedServicesClient.BeginDelete
- LinkedServicesClient.Get
- LinkedServicesClient.NewListByWorkspacePager
- LinkedStorageAccountsClient.CreateOrUpdate
- LinkedStorageAccountsClient.Delete
- LinkedStorageAccountsClient.Get
- LinkedStorageAccountsClient.NewListByWorkspacePager
- ManagementGroupsClient.NewListPager
- OperationStatusesClient.Get
- OperationsClient.NewListPager
- SavedSearchesClient.CreateOrUpdate
- SavedSearchesClient.Delete
- SavedSearchesClient.Get
- SavedSearchesClient.ListByWorkspace
- SchemaClient.Get
- SharedKeysClient.GetSharedKeys
- SharedKeysClient.Regenerate
- StorageInsightConfigsClient.CreateOrUpdate
- StorageInsightConfigsClient.Delete
- StorageInsightConfigsClient.Get
- StorageInsightConfigsClient.NewListByWorkspacePager
- TablesClient.Get
- TablesClient.NewListByWorkspacePager
- TablesClient.Update
- UsagesClient.NewListPager
- WorkspacePurgeClient.GetPurgeStatus
- WorkspacePurgeClient.Purge
- WorkspacesClient.BeginCreateOrUpdate
- WorkspacesClient.BeginDelete
- WorkspacesClient.Get
- WorkspacesClient.NewListByResourceGroupPager
- WorkspacesClient.NewListPager
- WorkspacesClient.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociatedWorkspace ¶
type AssociatedWorkspace struct { // READ-ONLY; The time of workspace association. AssociateDate *string // READ-ONLY; The ResourceId id the assigned workspace. ResourceID *string // READ-ONLY; The id of the assigned workspace. WorkspaceID *string // READ-ONLY; The name id the assigned workspace. WorkspaceName *string }
AssociatedWorkspace - The list of Log Analytics workspaces associated with the cluster.
func (AssociatedWorkspace) MarshalJSON ¶ added in v1.1.0
func (a AssociatedWorkspace) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociatedWorkspace.
func (*AssociatedWorkspace) UnmarshalJSON ¶ added in v1.1.0
func (a *AssociatedWorkspace) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociatedWorkspace.
type AvailableServiceTier ¶
type AvailableServiceTier struct { // READ-ONLY; The capacity reservation level in GB per day. Returned for the Capacity Reservation Service Tier. CapacityReservationLevel *int64 // READ-ONLY; The default retention for the Service Tier, in days. DefaultRetention *int64 // READ-ONLY; True if the Service Tier is enabled for the workspace. Enabled *bool // READ-ONLY; Time when the sku was last updated for the workspace. Returned for the Capacity Reservation Service Tier. LastSKUUpdate *string // READ-ONLY; The maximum retention for the Service Tier, in days. MaximumRetention *int64 // READ-ONLY; The minimum retention for the Service Tier, in days. MinimumRetention *int64 // READ-ONLY; The name of the Service Tier. ServiceTier *SKUNameEnum }
AvailableServiceTier - Service Tier details.
func (AvailableServiceTier) MarshalJSON ¶ added in v1.1.0
func (a AvailableServiceTier) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableServiceTier.
func (*AvailableServiceTier) UnmarshalJSON ¶ added in v1.1.0
func (a *AvailableServiceTier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailableServiceTier.
type AvailableServiceTiersClient ¶
type AvailableServiceTiersClient struct {
// contains filtered or unexported fields
}
AvailableServiceTiersClient contains the methods for the AvailableServiceTiers group. Don't use this type directly, use NewAvailableServiceTiersClient() instead.
func NewAvailableServiceTiersClient ¶
func NewAvailableServiceTiersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableServiceTiersClient, error)
NewAvailableServiceTiersClient creates a new instance of AvailableServiceTiersClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AvailableServiceTiersClient) ListByWorkspace ¶
func (client *AvailableServiceTiersClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, options *AvailableServiceTiersClientListByWorkspaceOptions) (AvailableServiceTiersClientListByWorkspaceResponse, error)
ListByWorkspace - Gets the available service tiers for the workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - AvailableServiceTiersClientListByWorkspaceOptions contains the optional parameters for the AvailableServiceTiersClient.ListByWorkspace method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesAvailableServiceTiers.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAvailableServiceTiersClient().ListByWorkspace(ctx, "rg1", "workspace1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AvailableServiceTierArray = []*armoperationalinsights.AvailableServiceTier{ // { // DefaultRetention: to.Ptr[int64](7), // Enabled: to.Ptr(true), // MaximumRetention: to.Ptr[int64](30), // MinimumRetention: to.Ptr[int64](7), // ServiceTier: to.Ptr(armoperationalinsights.SKUNameEnumPerNode), // }, // { // CapacityReservationLevel: to.Ptr[int64](200), // DefaultRetention: to.Ptr[int64](30), // Enabled: to.Ptr(true), // LastSKUUpdate: to.Ptr("2020-02-04T08:55:03.871Z"), // MaximumRetention: to.Ptr[int64](300), // MinimumRetention: to.Ptr[int64](30), // ServiceTier: to.Ptr(armoperationalinsights.SKUNameEnumCapacityReservation), // }} }
Output:
type AvailableServiceTiersClientListByWorkspaceOptions ¶ added in v0.3.0
type AvailableServiceTiersClientListByWorkspaceOptions struct { }
AvailableServiceTiersClientListByWorkspaceOptions contains the optional parameters for the AvailableServiceTiersClient.ListByWorkspace method.
type AvailableServiceTiersClientListByWorkspaceResponse ¶ added in v0.3.0
type AvailableServiceTiersClientListByWorkspaceResponse struct { // Array of AvailableServiceTier AvailableServiceTierArray []*AvailableServiceTier }
AvailableServiceTiersClientListByWorkspaceResponse contains the response from method AvailableServiceTiersClient.ListByWorkspace.
type AzureEntityResource ¶
type AzureEntityResource struct { // READ-ONLY; Resource Etag. Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
AzureEntityResource - The resource model definition for an Azure Resource Manager resource with an etag.
func (AzureEntityResource) MarshalJSON ¶
func (a AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureEntityResource.
func (*AzureEntityResource) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureEntityResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureEntityResource.
type BillingType ¶
type BillingType string
BillingType - Configures whether billing will be only on the cluster or each workspace will be billed by its proportional use. This does not change the overall billing, only how it will be distributed. Default value is 'Cluster'
const ( BillingTypeCluster BillingType = "Cluster" BillingTypeWorkspaces BillingType = "Workspaces" )
func PossibleBillingTypeValues ¶
func PossibleBillingTypeValues() []BillingType
PossibleBillingTypeValues returns the possible values for the BillingType const type.
type Capacity ¶
type Capacity int64
Capacity - The capacity value
func PossibleCapacityValues ¶
func PossibleCapacityValues() []Capacity
PossibleCapacityValues returns the possible values for the Capacity const type.
type CapacityReservationLevel ¶
type CapacityReservationLevel int32
CapacityReservationLevel - The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
const ( CapacityReservationLevelFiveHundred CapacityReservationLevel = 500 CapacityReservationLevelFiveThousand CapacityReservationLevel = 5000 CapacityReservationLevelFourHundred CapacityReservationLevel = 400 CapacityReservationLevelOneHundred CapacityReservationLevel = 100 CapacityReservationLevelTenHundred CapacityReservationLevel = 1000 CapacityReservationLevelThreeHundred CapacityReservationLevel = 300 CapacityReservationLevelTwoHundred CapacityReservationLevel = 200 CapacityReservationLevelTwoThousand CapacityReservationLevel = 2000 )
func PossibleCapacityReservationLevelValues ¶
func PossibleCapacityReservationLevelValues() []CapacityReservationLevel
PossibleCapacityReservationLevelValues returns the possible values for the CapacityReservationLevel const type.
type CapacityReservationProperties ¶
type CapacityReservationProperties struct { // READ-ONLY; The last time Sku was updated. LastSKUUpdate *string // READ-ONLY; Minimum CapacityReservation value in GB. MinCapacity *int64 }
CapacityReservationProperties - The Capacity Reservation properties.
func (CapacityReservationProperties) MarshalJSON ¶ added in v1.1.0
func (c CapacityReservationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapacityReservationProperties.
func (*CapacityReservationProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *CapacityReservationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationProperties.
type ClientFactory ¶ added in v1.1.0
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶ added in v1.1.0
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAvailableServiceTiersClient ¶ added in v1.1.0
func (c *ClientFactory) NewAvailableServiceTiersClient() *AvailableServiceTiersClient
NewAvailableServiceTiersClient creates a new instance of AvailableServiceTiersClient.
func (*ClientFactory) NewClustersClient ¶ added in v1.1.0
func (c *ClientFactory) NewClustersClient() *ClustersClient
NewClustersClient creates a new instance of ClustersClient.
func (*ClientFactory) NewDataExportsClient ¶ added in v1.1.0
func (c *ClientFactory) NewDataExportsClient() *DataExportsClient
NewDataExportsClient creates a new instance of DataExportsClient.
func (*ClientFactory) NewDataSourcesClient ¶ added in v1.1.0
func (c *ClientFactory) NewDataSourcesClient() *DataSourcesClient
NewDataSourcesClient creates a new instance of DataSourcesClient.
func (*ClientFactory) NewDeletedWorkspacesClient ¶ added in v1.1.0
func (c *ClientFactory) NewDeletedWorkspacesClient() *DeletedWorkspacesClient
NewDeletedWorkspacesClient creates a new instance of DeletedWorkspacesClient.
func (*ClientFactory) NewGatewaysClient ¶ added in v1.1.0
func (c *ClientFactory) NewGatewaysClient() *GatewaysClient
NewGatewaysClient creates a new instance of GatewaysClient.
func (*ClientFactory) NewIntelligencePacksClient ¶ added in v1.1.0
func (c *ClientFactory) NewIntelligencePacksClient() *IntelligencePacksClient
NewIntelligencePacksClient creates a new instance of IntelligencePacksClient.
func (*ClientFactory) NewLinkedServicesClient ¶ added in v1.1.0
func (c *ClientFactory) NewLinkedServicesClient() *LinkedServicesClient
NewLinkedServicesClient creates a new instance of LinkedServicesClient.
func (*ClientFactory) NewLinkedStorageAccountsClient ¶ added in v1.1.0
func (c *ClientFactory) NewLinkedStorageAccountsClient() *LinkedStorageAccountsClient
NewLinkedStorageAccountsClient creates a new instance of LinkedStorageAccountsClient.
func (*ClientFactory) NewManagementGroupsClient ¶ added in v1.1.0
func (c *ClientFactory) NewManagementGroupsClient() *ManagementGroupsClient
NewManagementGroupsClient creates a new instance of ManagementGroupsClient.
func (*ClientFactory) NewOperationStatusesClient ¶ added in v1.1.0
func (c *ClientFactory) NewOperationStatusesClient() *OperationStatusesClient
NewOperationStatusesClient creates a new instance of OperationStatusesClient.
func (*ClientFactory) NewOperationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewSavedSearchesClient ¶ added in v1.1.0
func (c *ClientFactory) NewSavedSearchesClient() *SavedSearchesClient
NewSavedSearchesClient creates a new instance of SavedSearchesClient.
func (*ClientFactory) NewSchemaClient ¶ added in v1.1.0
func (c *ClientFactory) NewSchemaClient() *SchemaClient
NewSchemaClient creates a new instance of SchemaClient.
func (*ClientFactory) NewSharedKeysClient ¶ added in v1.1.0
func (c *ClientFactory) NewSharedKeysClient() *SharedKeysClient
NewSharedKeysClient creates a new instance of SharedKeysClient.
func (*ClientFactory) NewStorageInsightConfigsClient ¶ added in v1.1.0
func (c *ClientFactory) NewStorageInsightConfigsClient() *StorageInsightConfigsClient
NewStorageInsightConfigsClient creates a new instance of StorageInsightConfigsClient.
func (*ClientFactory) NewTablesClient ¶ added in v1.1.0
func (c *ClientFactory) NewTablesClient() *TablesClient
NewTablesClient creates a new instance of TablesClient.
func (*ClientFactory) NewUsagesClient ¶ added in v1.1.0
func (c *ClientFactory) NewUsagesClient() *UsagesClient
NewUsagesClient creates a new instance of UsagesClient.
func (*ClientFactory) NewWorkspacePurgeClient ¶ added in v1.1.0
func (c *ClientFactory) NewWorkspacePurgeClient() *WorkspacePurgeClient
NewWorkspacePurgeClient creates a new instance of WorkspacePurgeClient.
func (*ClientFactory) NewWorkspacesClient ¶ added in v1.1.0
func (c *ClientFactory) NewWorkspacesClient() *WorkspacesClient
NewWorkspacesClient creates a new instance of WorkspacesClient.
type Cluster ¶
type Cluster struct { // REQUIRED; The geo-location where the resource lives Location *string // The identity of the resource. Identity *Identity // Log Analytics cluster properties. Properties *ClusterProperties // The sku properties. SKU *ClusterSKU // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Cluster - The top level Log Analytics cluster resource container.
func (Cluster) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Cluster.
func (*Cluster) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Cluster.
type ClusterEntityStatus ¶
type ClusterEntityStatus string
ClusterEntityStatus - The provisioning state of the cluster.
const ( ClusterEntityStatusCanceled ClusterEntityStatus = "Canceled" ClusterEntityStatusCreating ClusterEntityStatus = "Creating" ClusterEntityStatusDeleting ClusterEntityStatus = "Deleting" ClusterEntityStatusFailed ClusterEntityStatus = "Failed" ClusterEntityStatusProvisioningAccount ClusterEntityStatus = "ProvisioningAccount" ClusterEntityStatusSucceeded ClusterEntityStatus = "Succeeded" ClusterEntityStatusUpdating ClusterEntityStatus = "Updating" )
func PossibleClusterEntityStatusValues ¶
func PossibleClusterEntityStatusValues() []ClusterEntityStatus
PossibleClusterEntityStatusValues returns the possible values for the ClusterEntityStatus const type.
type ClusterListResult ¶
type ClusterListResult struct { // The link used to get the next page of recommendations. NextLink *string // A list of Log Analytics clusters. Value []*Cluster }
ClusterListResult - The list clusters operation response.
func (ClusterListResult) MarshalJSON ¶
func (c ClusterListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterListResult.
func (*ClusterListResult) UnmarshalJSON ¶ added in v1.1.0
func (c *ClusterListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterListResult.
type ClusterPatch ¶
type ClusterPatch struct { // The identity of the resource. Identity *Identity // Log Analytics cluster properties. Properties *ClusterPatchProperties // The sku properties. SKU *ClusterSKU // Resource tags. Tags map[string]*string }
ClusterPatch - The top level Log Analytics cluster resource container.
func (ClusterPatch) MarshalJSON ¶
func (c ClusterPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterPatch.
func (*ClusterPatch) UnmarshalJSON ¶ added in v1.1.0
func (c *ClusterPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPatch.
type ClusterPatchProperties ¶
type ClusterPatchProperties struct { // The cluster's billing type. BillingType *BillingType // The associated key properties. KeyVaultProperties *KeyVaultProperties }
ClusterPatchProperties - Log Analytics cluster patch properties.
func (ClusterPatchProperties) MarshalJSON ¶ added in v1.1.0
func (c ClusterPatchProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterPatchProperties.
func (*ClusterPatchProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *ClusterPatchProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPatchProperties.
type ClusterProperties ¶
type ClusterProperties struct { // The list of Log Analytics workspaces associated with the cluster AssociatedWorkspaces []*AssociatedWorkspace // The cluster's billing type. BillingType *BillingType // Additional properties for capacity reservation CapacityReservationProperties *CapacityReservationProperties // Sets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer // support Availability Zones. This Property can not be modified after cluster // creation. Default value is 'true' if region supports Availability Zones. IsAvailabilityZonesEnabled *bool // Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default // value is 'true' IsDoubleEncryptionEnabled *bool // The associated key properties. KeyVaultProperties *KeyVaultProperties // READ-ONLY; The ID associated with the cluster. ClusterID *string // READ-ONLY; The cluster creation time CreatedDate *string // READ-ONLY; The last time the cluster was updated. LastModifiedDate *string // READ-ONLY; The provisioning state of the cluster. ProvisioningState *ClusterEntityStatus }
ClusterProperties - Cluster properties.
func (ClusterProperties) MarshalJSON ¶
func (c ClusterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterProperties.
func (*ClusterProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *ClusterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterProperties.
type ClusterSKU ¶
type ClusterSKU struct { // The capacity value Capacity *Capacity // The name of the SKU. Name *ClusterSKUNameEnum }
ClusterSKU - The cluster sku definition.
func (ClusterSKU) MarshalJSON ¶ added in v1.1.0
func (c ClusterSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterSKU.
func (*ClusterSKU) UnmarshalJSON ¶ added in v1.1.0
func (c *ClusterSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterSKU.
type ClusterSKUNameEnum ¶
type ClusterSKUNameEnum string
ClusterSKUNameEnum - The name of the SKU.
const (
ClusterSKUNameEnumCapacityReservation ClusterSKUNameEnum = "CapacityReservation"
)
func PossibleClusterSKUNameEnumValues ¶
func PossibleClusterSKUNameEnumValues() []ClusterSKUNameEnum
PossibleClusterSKUNameEnumValues returns the possible values for the ClusterSKUNameEnum const type.
type ClustersClient ¶
type ClustersClient struct {
// contains filtered or unexported fields
}
ClustersClient contains the methods for the Clusters group. Don't use this type directly, use NewClustersClient() instead.
func NewClustersClient ¶
func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClustersClient, error)
NewClustersClient creates a new instance of ClustersClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClustersClient) BeginCreateOrUpdate ¶
func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClustersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a Log Analytics cluster. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- clusterName - The name of the Log Analytics cluster.
- parameters - The parameters required to create or update a Log Analytics cluster.
- options - ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewClustersClient().BeginCreateOrUpdate(ctx, "oiautorest6685", "oiautorest6685", armoperationalinsights.Cluster{ Location: to.Ptr("australiasoutheast"), Tags: map[string]*string{ "tag1": to.Ptr("val1"), }, SKU: &armoperationalinsights.ClusterSKU{ Name: to.Ptr(armoperationalinsights.ClusterSKUNameEnumCapacityReservation), Capacity: to.Ptr(armoperationalinsights.CapacityTenHundred), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Cluster = armoperationalinsights.Cluster{ // Name: to.Ptr("oiautorest6685"), // Type: to.Ptr("Microsoft.OperationalInsights/clusters"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/clusters/oiautorest6685"), // Location: to.Ptr("australiasoutheast"), // Identity: &armoperationalinsights.Identity{ // Type: to.Ptr(armoperationalinsights.IdentityTypeSystemAssigned), // PrincipalID: to.Ptr("356d057d-cba5-44dd-8a30-b2e547bc416b"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Properties: &armoperationalinsights.ClusterProperties{ // AssociatedWorkspaces: []*armoperationalinsights.AssociatedWorkspace{ // }, // BillingType: to.Ptr(armoperationalinsights.BillingTypeCluster), // CapacityReservationProperties: &armoperationalinsights.CapacityReservationProperties{ // LastSKUUpdate: to.Ptr("Thu, 01 Jan 1970 00:00:00 GMT"), // MinCapacity: to.Ptr[int64](500), // }, // ClusterID: to.Ptr("1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1"), // CreatedDate: to.Ptr("Mon, 13 Jan 2020 14:40:33 GMT"), // KeyVaultProperties: &armoperationalinsights.KeyVaultProperties{ // KeyName: to.Ptr("aztest2170cert"), // KeyVaultURI: to.Ptr("https://aztest2170.vault.azure.net"), // KeyVersion: to.Ptr("654ft6c4e63845cbb50fd6fg51540429"), // }, // LastModifiedDate: to.Ptr("Sun, 04 Jan 2020 17:10:56 GMT"), // ProvisioningState: to.Ptr(armoperationalinsights.ClusterEntityStatusSucceeded), // }, // SKU: &armoperationalinsights.ClusterSKU{ // Name: to.Ptr(armoperationalinsights.ClusterSKUNameEnumCapacityReservation), // Capacity: to.Ptr(armoperationalinsights.CapacityTenHundred), // }, // } }
Output:
func (*ClustersClient) BeginDelete ¶
func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*runtime.Poller[ClustersClientDeleteResponse], error)
BeginDelete - Deletes a cluster instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- clusterName - Name of the Log Analytics Cluster.
- options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewClustersClient().BeginDelete(ctx, "oiautorest6685", "oiautorest6685", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ClustersClient) BeginUpdate ¶ added in v0.3.0
func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterPatch, options *ClustersClientBeginUpdateOptions) (*runtime.Poller[ClustersClientUpdateResponse], error)
BeginUpdate - Updates a Log Analytics cluster. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- clusterName - Name of the Log Analytics Cluster.
- parameters - The parameters required to patch a Log Analytics cluster.
- options - ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "oiautorest6685", "oiautorest6685", armoperationalinsights.ClusterPatch{ Identity: &armoperationalinsights.Identity{ Type: to.Ptr(armoperationalinsights.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armoperationalinsights.UserIdentityProperties{ "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity": {}, }, }, Properties: &armoperationalinsights.ClusterPatchProperties{ KeyVaultProperties: &armoperationalinsights.KeyVaultProperties{ KeyName: to.Ptr("aztest2170cert"), KeyRsaSize: to.Ptr[int32](1024), KeyVaultURI: to.Ptr("https://aztest2170.vault.azure.net"), KeyVersion: to.Ptr("654ft6c4e63845cbb50fd6fg51540429"), }, }, SKU: &armoperationalinsights.ClusterSKU{ Name: to.Ptr(armoperationalinsights.ClusterSKUNameEnumCapacityReservation), Capacity: to.Ptr(armoperationalinsights.CapacityTenHundred), }, Tags: map[string]*string{ "tag1": to.Ptr("val1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Cluster = armoperationalinsights.Cluster{ // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Identity: &armoperationalinsights.Identity{ // Type: to.Ptr(armoperationalinsights.IdentityTypeUserAssigned), // TenantID: to.Ptr("72f999bf-acf1-41af-91ab-2d7cd011db47"), // UserAssignedIdentities: map[string]*armoperationalinsights.UserIdentityProperties{ // "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity": &armoperationalinsights.UserIdentityProperties{ // ClientID: to.Ptr("eb3a943d-6b12-48a6-b585-ac2316e15ab2"), // PrincipalID: to.Ptr("b31776d4-ee80-4860-9433-ec0101be1891"), // }, // }, // }, // Properties: &armoperationalinsights.ClusterProperties{ // AssociatedWorkspaces: []*armoperationalinsights.AssociatedWorkspace{ // { // AssociateDate: to.Ptr("Tue, 07 Jul 2020 07:35:51 GMT"), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/testRG/providers/microsoft.operationalinsights/workspaces/testWs1"), // WorkspaceID: to.Ptr("942bdefd-e6c9-411c-ac69-70ffad564363"), // WorkspaceName: to.Ptr("testWs1"), // }, // { // AssociateDate: to.Ptr("Mon, 13 Jan 2020 16:03:39 GMT"), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/testRG/providers/microsoft.operationalinsights/workspaces/testWs2"), // WorkspaceID: to.Ptr("c7edb8f8-67f7-41f2-bddb-aecf22507e3f"), // WorkspaceName: to.Ptr("testWs2"), // }}, // BillingType: to.Ptr(armoperationalinsights.BillingTypeCluster), // CapacityReservationProperties: &armoperationalinsights.CapacityReservationProperties{ // LastSKUUpdate: to.Ptr("Thu, 01 Jan 1970 00:00:00 GMT"), // MinCapacity: to.Ptr[int64](500), // }, // ClusterID: to.Ptr("1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1"), // CreatedDate: to.Ptr("Mon, 13 Jan 2020 14:40:33 GMT"), // KeyVaultProperties: &armoperationalinsights.KeyVaultProperties{ // KeyName: to.Ptr("aztest2170cert"), // KeyVaultURI: to.Ptr("https://aztest2170.vault.azure.net"), // KeyVersion: to.Ptr("654ft6c4e63845cbb50fd6fg51540429"), // }, // LastModifiedDate: to.Ptr("Sun, 04 Jan 2020 17:10:56 GMT"), // ProvisioningState: to.Ptr(armoperationalinsights.ClusterEntityStatusSucceeded), // }, // SKU: &armoperationalinsights.ClusterSKU{ // Name: to.Ptr(armoperationalinsights.ClusterSKUNameEnumCapacityReservation), // Capacity: to.Ptr(armoperationalinsights.CapacityTenHundred), // }, // } }
Output:
func (*ClustersClient) Get ¶
func (client *ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientGetOptions) (ClustersClientGetResponse, error)
Get - Gets a Log Analytics cluster instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- clusterName - Name of the Log Analytics Cluster.
- options - ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewClustersClient().Get(ctx, "oiautorest6685", "oiautorest6685", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Cluster = armoperationalinsights.Cluster{ // } }
Output:
func (*ClustersClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *ClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *runtime.Pager[ClustersClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets Log Analytics clusters in a resource group.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewClustersClient().NewListByResourceGroupPager("oiautorest6685", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ClusterListResult = armoperationalinsights.ClusterListResult{ // Value: []*armoperationalinsights.Cluster{ // { // Name: to.Ptr("TestResourceLock"), // Type: to.Ptr("Microsoft.OperationalInsights/clusters"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/clusters/testresourcelock"), // Location: to.Ptr("eastus"), // Identity: &armoperationalinsights.Identity{ // Type: to.Ptr(armoperationalinsights.IdentityTypeSystemAssigned), // PrincipalID: to.Ptr("356d057d-cba5-44dd-8a30-b2e547bc416b"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Properties: &armoperationalinsights.ClusterProperties{ // ClusterID: to.Ptr("5b02755b-5bf4-430c-9487-45502a2a7e62"), // KeyVaultProperties: &armoperationalinsights.KeyVaultProperties{ // KeyName: to.Ptr("aztest2170cert"), // KeyVaultURI: to.Ptr("https://aztest2170.vault.azure.net"), // KeyVersion: to.Ptr("654ft6c4e63845cbb50fd6fg51540429"), // }, // ProvisioningState: to.Ptr(armoperationalinsights.ClusterEntityStatusSucceeded), // }, // SKU: &armoperationalinsights.ClusterSKU{ // Name: to.Ptr(armoperationalinsights.ClusterSKUNameEnumCapacityReservation), // Capacity: to.Ptr(armoperationalinsights.CapacityTenHundred), // }, // }}, // } } }
Output:
func (*ClustersClient) NewListPager ¶ added in v0.5.0
func (client *ClustersClient) NewListPager(options *ClustersClientListOptions) *runtime.Pager[ClustersClientListResponse]
NewListPager - Gets the Log Analytics clusters in a subscription.
Generated from API version 2021-06-01
- options - ClustersClientListOptions contains the optional parameters for the ClustersClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersSubscriptionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewClustersClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ClusterListResult = armoperationalinsights.ClusterListResult{ // Value: []*armoperationalinsights.Cluster{ // { // Name: to.Ptr("TestResourceLock"), // Type: to.Ptr("Microsoft.OperationalInsights/clusters"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/clusters/testresourcelock"), // Location: to.Ptr("eastus"), // Identity: &armoperationalinsights.Identity{ // Type: to.Ptr(armoperationalinsights.IdentityTypeSystemAssigned), // PrincipalID: to.Ptr("356d057d-cba5-44dd-8a30-b2e547bc416b"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Properties: &armoperationalinsights.ClusterProperties{ // ClusterID: to.Ptr("5b02755b-5bf4-430c-9487-45502a2a7e62"), // KeyVaultProperties: &armoperationalinsights.KeyVaultProperties{ // KeyName: to.Ptr("aztest2170cert"), // KeyVaultURI: to.Ptr("https://aztest2170.vault.azure.net"), // KeyVersion: to.Ptr("654ft6c4e63845cbb50fd6fg51540429"), // }, // ProvisioningState: to.Ptr(armoperationalinsights.ClusterEntityStatusSucceeded), // }, // SKU: &armoperationalinsights.ClusterSKU{ // Name: to.Ptr(armoperationalinsights.ClusterSKUNameEnumCapacityReservation), // Capacity: to.Ptr(armoperationalinsights.CapacityTenHundred), // }, // }}, // } } }
Output:
type ClustersClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ClustersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method.
type ClustersClientBeginDeleteOptions ¶ added in v0.3.0
type ClustersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.
type ClustersClientBeginUpdateOptions ¶ added in v0.3.0
type ClustersClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method.
type ClustersClientCreateOrUpdateResponse ¶ added in v0.3.0
type ClustersClientCreateOrUpdateResponse struct { // The top level Log Analytics cluster resource container. Cluster }
ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.BeginCreateOrUpdate.
type ClustersClientDeleteResponse ¶ added in v0.3.0
type ClustersClientDeleteResponse struct { }
ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete.
type ClustersClientGetOptions ¶ added in v0.3.0
type ClustersClientGetOptions struct { }
ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.
type ClustersClientGetResponse ¶ added in v0.3.0
type ClustersClientGetResponse struct { // The top level Log Analytics cluster resource container. Cluster }
ClustersClientGetResponse contains the response from method ClustersClient.Get.
type ClustersClientListByResourceGroupOptions ¶ added in v0.3.0
type ClustersClientListByResourceGroupOptions struct { }
ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.
type ClustersClientListByResourceGroupResponse ¶ added in v0.3.0
type ClustersClientListByResourceGroupResponse struct { // The list clusters operation response. ClusterListResult }
ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.NewListByResourceGroupPager.
type ClustersClientListOptions ¶ added in v0.3.0
type ClustersClientListOptions struct { }
ClustersClientListOptions contains the optional parameters for the ClustersClient.NewListPager method.
type ClustersClientListResponse ¶ added in v0.3.0
type ClustersClientListResponse struct { // The list clusters operation response. ClusterListResult }
ClustersClientListResponse contains the response from method ClustersClient.NewListPager.
type ClustersClientUpdateResponse ¶ added in v0.3.0
type ClustersClientUpdateResponse struct { // The top level Log Analytics cluster resource container. Cluster }
ClustersClientUpdateResponse contains the response from method ClustersClient.BeginUpdate.
type CoreSummary ¶
type CoreSummary struct { // REQUIRED; The number of documents of a core summary. NumberOfDocuments *int64 // The status of a core summary. Status *string }
CoreSummary - The core summary of a search.
func (CoreSummary) MarshalJSON ¶ added in v1.1.0
func (c CoreSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CoreSummary.
func (*CoreSummary) UnmarshalJSON ¶ added in v1.1.0
func (c *CoreSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CoreSummary.
type DataExport ¶
type DataExport struct { // data export properties. Properties *DataExportProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
DataExport - The top level data export resource container.
func (DataExport) MarshalJSON ¶
func (d DataExport) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataExport.
func (*DataExport) UnmarshalJSON ¶ added in v1.1.0
func (d *DataExport) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataExport.
type DataExportListResult ¶
type DataExportListResult struct { // List of data export instances within a workspace.. Value []*DataExport }
DataExportListResult - Result of the request to list data exports.
func (DataExportListResult) MarshalJSON ¶
func (d DataExportListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataExportListResult.
func (*DataExportListResult) UnmarshalJSON ¶ added in v1.1.0
func (d *DataExportListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataExportListResult.
type DataExportProperties ¶
type DataExportProperties struct { // REQUIRED; An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. TableNames []*string // The latest data export rule modification time. CreatedDate *string // The data export rule ID. DataExportID *string // destination properties. Destination *Destination // Active when enabled. Enable *bool // Date and time when the export was last modified. LastModifiedDate *string }
DataExportProperties - Data Export properties.
func (DataExportProperties) MarshalJSON ¶
func (d DataExportProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataExportProperties.
func (*DataExportProperties) UnmarshalJSON ¶ added in v1.1.0
func (d *DataExportProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataExportProperties.
type DataExportsClient ¶
type DataExportsClient struct {
// contains filtered or unexported fields
}
DataExportsClient contains the methods for the DataExports group. Don't use this type directly, use NewDataExportsClient() instead.
func NewDataExportsClient ¶
func NewDataExportsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataExportsClient, error)
NewDataExportsClient creates a new instance of DataExportsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DataExportsClient) CreateOrUpdate ¶
func (client *DataExportsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, parameters DataExport, options *DataExportsClientCreateOrUpdateOptions) (DataExportsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update a data export. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataExportName - The data export rule name.
- parameters - The parameters required to create or update a data export.
- options - DataExportsClientCreateOrUpdateOptions contains the optional parameters for the DataExportsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportCreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataExportsClient().CreateOrUpdate(ctx, "RgTest1", "DeWnTest1234", "export1", armoperationalinsights.DataExport{ Properties: &armoperationalinsights.DataExportProperties{ Destination: &armoperationalinsights.Destination{ ResourceID: to.Ptr("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"), }, TableNames: []*string{ to.Ptr("Heartbeat")}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataExport = armoperationalinsights.DataExport{ // Name: to.Ptr("export1"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/export"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1"), // Properties: &armoperationalinsights.DataExportProperties{ // CreatedDate: to.Ptr("Sun, 12 Jan 2020 12:51:10 GMT"), // DataExportID: to.Ptr("d5233afc-7829-4b89-c594-08d7975e19a5"), // Destination: &armoperationalinsights.Destination{ // Type: to.Ptr(armoperationalinsights.TypeEventHub), // ResourceID: to.Ptr("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"), // }, // Enable: to.Ptr(true), // LastModifiedDate: to.Ptr("Sun, 12 Jan 2020 12:51:10 GMT"), // TableNames: []*string{ // to.Ptr("Heartbeat")}, // }, // } }
Output:
func (*DataExportsClient) Delete ¶
func (client *DataExportsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, options *DataExportsClientDeleteOptions) (DataExportsClientDeleteResponse, error)
Delete - Deletes the specified data export in a given workspace.. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataExportName - The data export rule name.
- options - DataExportsClientDeleteOptions contains the optional parameters for the DataExportsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewDataExportsClient().Delete(ctx, "RgTest1", "DeWnTest1234", "export1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*DataExportsClient) Get ¶
func (client *DataExportsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, options *DataExportsClientGetOptions) (DataExportsClientGetResponse, error)
Get - Gets a data export instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataExportName - The data export rule name.
- options - DataExportsClientGetOptions contains the optional parameters for the DataExportsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataExportsClient().Get(ctx, "RgTest1", "DeWnTest1234", "export1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataExport = armoperationalinsights.DataExport{ // Name: to.Ptr("export1"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/export"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1"), // Properties: &armoperationalinsights.DataExportProperties{ // CreatedDate: to.Ptr("Sun, 12 Jan 2020 12:51:10 GMT"), // DataExportID: to.Ptr("d5233afc-7829-4b89-c594-08d7975e19a5"), // Destination: &armoperationalinsights.Destination{ // Type: to.Ptr(armoperationalinsights.TypeEventHub), // ResourceID: to.Ptr("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"), // }, // Enable: to.Ptr(true), // LastModifiedDate: to.Ptr("Sun, 12 Jan 2020 12:51:10 GMT"), // TableNames: []*string{ // to.Ptr("Heartbeat")}, // }, // } }
Output:
func (*DataExportsClient) NewListByWorkspacePager ¶ added in v0.5.0
func (client *DataExportsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *DataExportsClientListByWorkspaceOptions) *runtime.Pager[DataExportsClientListByWorkspaceResponse]
NewListByWorkspacePager - Lists the data export instances within a workspace.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - DataExportsClientListByWorkspaceOptions contains the optional parameters for the DataExportsClient.NewListByWorkspacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportListByWorkspace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataExportsClient().NewListByWorkspacePager("RgTest1", "DeWnTest1234", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataExportListResult = armoperationalinsights.DataExportListResult{ // Value: []*armoperationalinsights.DataExport{ // { // Name: to.Ptr("export1"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/export"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1"), // Properties: &armoperationalinsights.DataExportProperties{ // CreatedDate: to.Ptr("Sun, 12 Jan 2020 12:51:10 GMT"), // DataExportID: to.Ptr("d5233afc-7829-4b89-c594-08d7975e19a5"), // Destination: &armoperationalinsights.Destination{ // Type: to.Ptr(armoperationalinsights.TypeEventHub), // ResourceID: to.Ptr("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"), // }, // Enable: to.Ptr(true), // LastModifiedDate: to.Ptr("Sun, 12 Jan 2020 12:51:10 GMT"), // TableNames: []*string{ // to.Ptr("Heartbeat")}, // }, // }}, // } } }
Output:
type DataExportsClientCreateOrUpdateOptions ¶ added in v0.3.0
type DataExportsClientCreateOrUpdateOptions struct { }
DataExportsClientCreateOrUpdateOptions contains the optional parameters for the DataExportsClient.CreateOrUpdate method.
type DataExportsClientCreateOrUpdateResponse ¶ added in v0.3.0
type DataExportsClientCreateOrUpdateResponse struct { // The top level data export resource container. DataExport }
DataExportsClientCreateOrUpdateResponse contains the response from method DataExportsClient.CreateOrUpdate.
type DataExportsClientDeleteOptions ¶ added in v0.3.0
type DataExportsClientDeleteOptions struct { }
DataExportsClientDeleteOptions contains the optional parameters for the DataExportsClient.Delete method.
type DataExportsClientDeleteResponse ¶ added in v0.3.0
type DataExportsClientDeleteResponse struct { }
DataExportsClientDeleteResponse contains the response from method DataExportsClient.Delete.
type DataExportsClientGetOptions ¶ added in v0.3.0
type DataExportsClientGetOptions struct { }
DataExportsClientGetOptions contains the optional parameters for the DataExportsClient.Get method.
type DataExportsClientGetResponse ¶ added in v0.3.0
type DataExportsClientGetResponse struct { // The top level data export resource container. DataExport }
DataExportsClientGetResponse contains the response from method DataExportsClient.Get.
type DataExportsClientListByWorkspaceOptions ¶ added in v0.3.0
type DataExportsClientListByWorkspaceOptions struct { }
DataExportsClientListByWorkspaceOptions contains the optional parameters for the DataExportsClient.NewListByWorkspacePager method.
type DataExportsClientListByWorkspaceResponse ¶ added in v0.3.0
type DataExportsClientListByWorkspaceResponse struct { // Result of the request to list data exports. DataExportListResult }
DataExportsClientListByWorkspaceResponse contains the response from method DataExportsClient.NewListByWorkspacePager.
type DataIngestionStatus ¶
type DataIngestionStatus string
DataIngestionStatus - The status of data ingestion for this workspace.
const ( // DataIngestionStatusApproachingQuota - 80% of daily cap quota reached. DataIngestionStatusApproachingQuota DataIngestionStatus = "ApproachingQuota" // DataIngestionStatusForceOff - Ingestion stopped following service setting change. DataIngestionStatusForceOff DataIngestionStatus = "ForceOff" // DataIngestionStatusForceOn - Ingestion started following service setting change. DataIngestionStatusForceOn DataIngestionStatus = "ForceOn" // DataIngestionStatusOverQuota - Reached daily cap quota, ingestion stopped. DataIngestionStatusOverQuota DataIngestionStatus = "OverQuota" // DataIngestionStatusRespectQuota - Ingestion enabled following daily cap quota reset, or subscription enablement. DataIngestionStatusRespectQuota DataIngestionStatus = "RespectQuota" // DataIngestionStatusSubscriptionSuspended - Ingestion stopped following suspended subscription. DataIngestionStatusSubscriptionSuspended DataIngestionStatus = "SubscriptionSuspended" )
func PossibleDataIngestionStatusValues ¶
func PossibleDataIngestionStatusValues() []DataIngestionStatus
PossibleDataIngestionStatusValues returns the possible values for the DataIngestionStatus const type.
type DataSource ¶
type DataSource struct { // REQUIRED; The kind of the DataSource. Kind *DataSourceKind // REQUIRED; The data source properties in raw json format, each kind of data source have it's own schema. Properties any // The ETag of the data source. Etag *string // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
DataSource - Datasources under OMS Workspace.
func (DataSource) MarshalJSON ¶
func (d DataSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataSource.
func (*DataSource) UnmarshalJSON ¶ added in v1.1.0
func (d *DataSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataSource.
type DataSourceFilter ¶
type DataSourceFilter struct { // The kind of the DataSource. Kind *DataSourceKind }
DataSourceFilter - DataSource filter. Right now, only filter by kind is supported.
func (DataSourceFilter) MarshalJSON ¶ added in v1.1.0
func (d DataSourceFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataSourceFilter.
func (*DataSourceFilter) UnmarshalJSON ¶ added in v1.1.0
func (d *DataSourceFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataSourceFilter.
type DataSourceKind ¶
type DataSourceKind string
DataSourceKind - The kind of the DataSource.
const ( DataSourceKindApplicationInsights DataSourceKind = "ApplicationInsights" DataSourceKindAzureActivityLog DataSourceKind = "AzureActivityLog" DataSourceKindAzureAuditLog DataSourceKind = "AzureAuditLog" DataSourceKindChangeTrackingContentLocation DataSourceKind = "ChangeTrackingContentLocation" DataSourceKindChangeTrackingCustomPath DataSourceKind = "ChangeTrackingCustomPath" DataSourceKindChangeTrackingDataTypeConfiguration DataSourceKind = "ChangeTrackingDataTypeConfiguration" DataSourceKindChangeTrackingDefaultRegistry DataSourceKind = "ChangeTrackingDefaultRegistry" DataSourceKindChangeTrackingLinuxPath DataSourceKind = "ChangeTrackingLinuxPath" DataSourceKindChangeTrackingPath DataSourceKind = "ChangeTrackingPath" DataSourceKindChangeTrackingRegistry DataSourceKind = "ChangeTrackingRegistry" DataSourceKindChangeTrackingServices DataSourceKind = "ChangeTrackingServices" DataSourceKindCustomLog DataSourceKind = "CustomLog" DataSourceKindCustomLogCollection DataSourceKind = "CustomLogCollection" DataSourceKindDNSAnalytics DataSourceKind = "DnsAnalytics" DataSourceKindGenericDataSource DataSourceKind = "GenericDataSource" DataSourceKindIISLogs DataSourceKind = "IISLogs" DataSourceKindImportComputerGroup DataSourceKind = "ImportComputerGroup" DataSourceKindItsm DataSourceKind = "Itsm" DataSourceKindLinuxChangeTrackingPath DataSourceKind = "LinuxChangeTrackingPath" DataSourceKindLinuxPerformanceCollection DataSourceKind = "LinuxPerformanceCollection" DataSourceKindLinuxPerformanceObject DataSourceKind = "LinuxPerformanceObject" DataSourceKindLinuxSyslog DataSourceKind = "LinuxSyslog" DataSourceKindLinuxSyslogCollection DataSourceKind = "LinuxSyslogCollection" DataSourceKindNetworkMonitoring DataSourceKind = "NetworkMonitoring" DataSourceKindOffice365 DataSourceKind = "Office365" DataSourceKindSQLDataClassification DataSourceKind = "SqlDataClassification" DataSourceKindSecurityCenterSecurityWindowsBaselineConfiguration DataSourceKind = "SecurityCenterSecurityWindowsBaselineConfiguration" DataSourceKindSecurityEventCollectionConfiguration DataSourceKind = "SecurityEventCollectionConfiguration" DataSourceKindSecurityInsightsSecurityEventCollectionConfiguration DataSourceKind = "SecurityInsightsSecurityEventCollectionConfiguration" DataSourceKindSecurityWindowsBaselineConfiguration DataSourceKind = "SecurityWindowsBaselineConfiguration" DataSourceKindWindowsEvent DataSourceKind = "WindowsEvent" DataSourceKindWindowsPerformanceCounter DataSourceKind = "WindowsPerformanceCounter" DataSourceKindWindowsTelemetry DataSourceKind = "WindowsTelemetry" )
func PossibleDataSourceKindValues ¶
func PossibleDataSourceKindValues() []DataSourceKind
PossibleDataSourceKindValues returns the possible values for the DataSourceKind const type.
type DataSourceListResult ¶
type DataSourceListResult struct { // The link (url) to the next page of datasources. NextLink *string // A list of datasources. Value []*DataSource }
DataSourceListResult - The list data source by workspace operation response.
func (DataSourceListResult) MarshalJSON ¶
func (d DataSourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataSourceListResult.
func (*DataSourceListResult) UnmarshalJSON ¶ added in v1.1.0
func (d *DataSourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataSourceListResult.
type DataSourceType ¶
type DataSourceType string
DataSourceType - Linked storage accounts type.
const ( DataSourceTypeAlerts DataSourceType = "Alerts" DataSourceTypeAzureWatson DataSourceType = "AzureWatson" DataSourceTypeCustomLogs DataSourceType = "CustomLogs" DataSourceTypeQuery DataSourceType = "Query" )
func PossibleDataSourceTypeValues ¶
func PossibleDataSourceTypeValues() []DataSourceType
PossibleDataSourceTypeValues returns the possible values for the DataSourceType const type.
type DataSourcesClient ¶
type DataSourcesClient struct {
// contains filtered or unexported fields
}
DataSourcesClient contains the methods for the DataSources group. Don't use this type directly, use NewDataSourcesClient() instead.
func NewDataSourcesClient ¶
func NewDataSourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataSourcesClient, error)
NewDataSourcesClient creates a new instance of DataSourcesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DataSourcesClient) CreateOrUpdate ¶
func (client *DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, parameters DataSource, options *DataSourcesClientCreateOrUpdateOptions) (DataSourcesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update a data source. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataSourceName - The name of the datasource resource.
- parameters - The parameters required to create or update a datasource.
- options - DataSourcesClientCreateOrUpdateOptions contains the optional parameters for the DataSourcesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataSourcesClient().CreateOrUpdate(ctx, "OIAutoRest5123", "AzTest9724", "AzTestDS774", armoperationalinsights.DataSource{ Kind: to.Ptr(armoperationalinsights.DataSourceKindAzureActivityLog), Properties: map[string]any{ "LinkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management", }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataSource = armoperationalinsights.DataSource{ // Name: to.Ptr("AzTestDS774"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774"), // Etag: to.Ptr("W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindAzureActivityLog), // Properties: map[string]any{ // "linkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management", // }, // } }
Output:
func (*DataSourcesClient) Delete ¶
func (client *DataSourcesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, options *DataSourcesClientDeleteOptions) (DataSourcesClientDeleteResponse, error)
Delete - Deletes a data source instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataSourceName - Name of the datasource.
- options - DataSourcesClientDeleteOptions contains the optional parameters for the DataSourcesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewDataSourcesClient().Delete(ctx, "OIAutoRest5123", "AzTest9724", "AzTestDS774", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*DataSourcesClient) Get ¶
func (client *DataSourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, options *DataSourcesClientGetOptions) (DataSourcesClientGetResponse, error)
Get - Gets a datasource instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataSourceName - Name of the datasource
- options - DataSourcesClientGetOptions contains the optional parameters for the DataSourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataSourcesClient().Get(ctx, "OIAutoRest5123", "AzTest9724", "AzTestDS774", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataSource = armoperationalinsights.DataSource{ // Name: to.Ptr("AzTestDS774"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774"), // Etag: to.Ptr("W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindAzureActivityLog), // Properties: map[string]any{ // "linkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management", // }, // } }
Output:
func (*DataSourcesClient) NewListByWorkspacePager ¶ added in v0.5.0
func (client *DataSourcesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, filter string, options *DataSourcesClientListByWorkspaceOptions) *runtime.Pager[DataSourcesClientListByWorkspaceResponse]
NewListByWorkspacePager - Gets the first page of data source instances in a workspace with the link to the next page.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- filter - The filter to apply on the operation.
- options - DataSourcesClientListByWorkspaceOptions contains the optional parameters for the DataSourcesClient.NewListByWorkspacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesListByWorkspace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataSourcesClient().NewListByWorkspacePager("OIAutoRest5123", "AzTest9724", "kind='WindowsEvent'", &armoperationalinsights.DataSourcesClientListByWorkspaceOptions{Skiptoken: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataSourceListResult = armoperationalinsights.DataSourceListResult{ // Value: []*armoperationalinsights.DataSource{ // { // Name: to.Ptr("AzTestDSWE1011"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1011"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A08.5629323Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent14", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1013"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1013"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A22.2533211Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent64", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1020"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1020"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A04.4645698Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent202", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1074"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1074"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A12.5871672Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent231", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1117"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1117"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A28.9325389Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent86", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1128"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1128"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A13.2185735Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent30", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1176"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1176"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A22.7779289Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent66", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1293"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1293"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A03.5114136Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent199", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE134"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE134"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A33.6788897Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent102", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1352"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1352"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A36.2312139Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent111", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1360"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1360"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A13.4685716Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent31", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1382"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1382"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A19.2840543Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent53", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1410"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1410"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A42.7070374Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent132", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1417"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1417"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A06.8922838Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent211", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1560"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1560"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A26.6932412Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent274", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1618"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1618"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A07.1422661Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent212", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1662"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1662"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A09.5980265Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent221", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1675"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1675"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A39.6167744Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent121", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE169"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE169"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A50.1064668Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent157", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1735"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1735"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A02.4954752Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent196", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1742"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1742"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A08.0452997Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent12", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1815"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1815"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A46.5966089Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent145", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1828"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1828"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A23.6529754Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent69", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE188"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE188"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A20.7216320Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent58", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1962"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1962"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A17.9341560Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent48", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE1997"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1997"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A17.3081821Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent246", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2046"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2046"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A49.2918213Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent154", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2056"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2056"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A52.4111189Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent165", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2116"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2116"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A54.7598026Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent172", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2142"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2142"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A07.2711237Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent9", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE22"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE22"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A48.2064500Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent150", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2208"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2208"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A08.7849248Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent218", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2221"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2221"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A51.3306230Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent161", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2226"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2226"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A25.5991266Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent75", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2231"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2231"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A15.3592513Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent38", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2242"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2242"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A06.0641077Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent208", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2263"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2263"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A11.7829226Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent228", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2369"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2369"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A21.5874093Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent259", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE240"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE240"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A06.6266574Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent210", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2423"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2423"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A23.4752361Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent265", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2463"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2463"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A36.5611370Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent112", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2499"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2499"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A13.7187131Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent32", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2509"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2509"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A09.3324224Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent220", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2541"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2541"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A29.2312540Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent87", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2578"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2578"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A05.3117461Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent2", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2619"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2619"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A38.5379572Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent119", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE274"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE274"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A05.0735592Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent1", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2754"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2754"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A30.6297451Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent92", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE281"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE281"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A05.2972963Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent205", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2818"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2818"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A33.3820072Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent101", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2860"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2860"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A14.0876077Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent236", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2867"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2867"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A30.9266089Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent93", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2923"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2923"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A27.9342580Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent278", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE2979"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2979"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A44.4311007Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent138", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3009"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3009"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A08.5349323Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent217", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3033"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3033"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A24.9696296Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent269", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3095"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3095"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A18.2006423Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent49", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3114"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3114"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A38.2879169Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent118", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3132"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3132"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A37.6889867Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent116", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3147"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3147"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A58.9331954Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent185", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3159"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3159"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A35.6843083Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent109", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE317"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE317"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A17.4118415Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent46", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3175"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3175"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A35.0592573Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent107", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3183"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3183"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A12.6247906Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent28", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3217"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3217"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A14.4938899Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent237", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3220"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3220"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A21.7373059Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent62", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3228"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3228"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A18.7785353Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent51", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3395"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3395"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A54.4936956Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent171", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3416"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3416"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A22.0032694Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent63", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3506"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3506"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A28.8251658Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent280", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3517"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3517"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A11.2153209Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent23", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3528"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3528"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A12.0402565Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent229", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3530"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3530"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A43.8027590Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent136", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3594"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3594"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A01.9173304Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent194", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3615"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3615"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A00.8990889Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent191", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3645"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3645"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A16.0877829Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent242", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3676"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3676"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A07.8068460Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent11", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3700"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3700"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A49.5439700Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent155", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3738"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3738"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A38.0363694Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent117", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3740"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3740"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A50.6390339Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent159", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3754"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3754"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A31.5203823Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent95", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3761"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3761"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A31.7860159Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent96", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3787"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3787"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A20.0966078Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent56", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3880"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3880"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A57.8394298Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent181", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3887"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3887"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A51.0806178Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent160", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3899"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3899"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A16.6987634Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent244", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE3928"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3928"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A41.4223363Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent127", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4005"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4005"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A59.1831854Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent186", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4021"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4021"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A31.5314824Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent288", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4054"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4054"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A01.6667691Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent193", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE406"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE406"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A42.9581303Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent133", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4128"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4128"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A29.4890798Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent88", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4140"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4140"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A00.2051432Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent189", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4209"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4209"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A58.3706603Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent183", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4216"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4216"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A23.1240354Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent67", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4240"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4240"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A33.5368097Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent294", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4279"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4279"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A30.3641074Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent91", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4289"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4289"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A26.3963554Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent273", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4317"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4317"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A47.6751803Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent148", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4324"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4324"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A05.8120517Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent4", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4362"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4362"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A04.1208323Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent201", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4416"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4416"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A08.3109506Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent13", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4424"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4424"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A48.9744951Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent153", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4466"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4466"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A19.0457713Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent52", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4467"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4467"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A15.0936374Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent37", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4503"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4503"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A41.9399246Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent129", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4521"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4521"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A27.2714771Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent276", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4530"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4530"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A26.7419933Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent79", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4600"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4600"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A37.4227966Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent115", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4644"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4644"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A43.5519204Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent135", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4694"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4694"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A51.6431386Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent162", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4715"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4715"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A06.0530002Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent5", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE472"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE472"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A24.3989962Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent267", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4721"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4721"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A16.3706498Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent243", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4734"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4734"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A33.8337155Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent295", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4755"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4755"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A25.2712759Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent270", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4779"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4779"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A27.5076680Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent81", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4791"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4791"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A04.6828938Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent0", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4798"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4798"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A54.0073520Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent170", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE480"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE480"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A22.9077505Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent263", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4847"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4847"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A11.7028912Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent25", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4876"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4876"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A04.9847854Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent204", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4900"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4900"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A23.4029367Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent68", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4918"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4918"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A34.5280091Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent105", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4928"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4928"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A34.2882196Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent296", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4930"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4930"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A33.2381803Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent293", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4945"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4945"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A36.8423994Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent113", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4967"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4967"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A08.9379456Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent15", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4969"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4969"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A57.5893926Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent180", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE4983"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4983"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A19.5497139Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent54", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5011"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5011"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A48.4588661Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent151", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5082"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5082"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A32.2694295Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent290", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5136"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5136"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A17.8863220Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent248", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5141"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5141"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A05.5484906Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent206", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5166"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5166"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A23.9283342Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent266", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5207"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5207"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A29.4970655Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent282", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5223"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5223"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A04.7146038Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent203", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5233"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5233"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A10.3237629Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent20", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5253"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5253"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A18.1831872Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent249", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5255"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5255"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A30.9049829Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent286", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5263"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5263"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A12.8904269Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent29", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5351"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5351"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A20.4543884Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent255", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5385"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5385"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A19.7997319Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent55", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5394"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5394"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A29.7703365Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent89", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE541"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE541"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A09.4692151Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent17", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5439"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5439"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A15.7994161Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent241", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5460"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5460"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A10.3032105Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent223", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5479"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5479"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A24.6802546Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent268", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5483"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5483"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A01.1670463Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent192", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5486"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5486"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A37.1393156Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent114", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5554"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5554"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A41.1205470Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent126", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5559"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5559"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A20.7200407Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent256", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5585"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5585"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A18.4534330Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent50", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE568"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE568"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A40.8861587Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent125", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5741"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5741"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A12.3059271Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent230", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE58"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE58"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A39.0692471Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent120", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5810"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5810"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A16.9117573Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent44", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5815"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5815"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A45.4055476Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent141", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5858"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5858"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A55.0097893Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent173", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5866"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5866"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A18.9931389Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent251", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5888"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5888"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A59.4332080Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent187", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE5905"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5905"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A09.7599986Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent18", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6027"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6027"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A10.6395291Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent224", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE607"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE607"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A13.7282386Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent235", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6099"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6099"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A33.1319662Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent100", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6122"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6122"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A06.3186640Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent6", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6218"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6218"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A11.4528829Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent24", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE622"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE622"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A47.9407875Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent149", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6222"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6222"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A06.3453921Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent209", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6240"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6240"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A21.2372832Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent60", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6251"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6251"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A08.2849036Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent216", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6274"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6274"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A02.1829375Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent195", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6296"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6296"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A32.3491070Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent98", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6301"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6301"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A22.1811938Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent261", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6404"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6404"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A06.7093003Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent7", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6406"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6406"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A05.5617435Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent3", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6432"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6432"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A40.2886854Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent123", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6439"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6439"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A35.9811949Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent110", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6451"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6451"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A13.1344490Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent233", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6486"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6486"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A10.9653354Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent22", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6505"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6505"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A10.0582011Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent19", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6514"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6514"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A52.8955201Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent166", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6518"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6518"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A10.9395226Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent225", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6537"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6537"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A24.0123335Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent70", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6547"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6547"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A57.3394082Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent179", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6556"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6556"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A33.9457044Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent103", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6718"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6718"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A13.4313542Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent234", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6724"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6724"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A35.4186784Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent108", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6741"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6741"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A12.3279180Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent27", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6796"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6796"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A24.5764501Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent72", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6826"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6826"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A35.2579899Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent299", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6829"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6829"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A34.6319483Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent297", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6893"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6893"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A28.5887776Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent85", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE6974"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6974"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A16.1249736Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent41", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE7008"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7008"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A28.3876585Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent279", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE7014"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7014"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A29.1220764Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent281", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE7068"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7068"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A26.0213457Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent272", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE7080"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7080"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A21%3A21.8686663Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent260", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE7166"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7166"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A40.5423724Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent124", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }, // { // Name: to.Ptr("AzTestDSWE7178"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7178"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A20%3A16.3906307Z'\""), // Kind: to.Ptr(armoperationalinsights.DataSourceKindWindowsEvent), // Properties: map[string]any{ // "eventLogName": "windowsEvent42", // "eventTypes":[]any{ // map[string]any{ // "eventType": "Error", // }, // }, // }, // }}, // } } }
Output:
type DataSourcesClientCreateOrUpdateOptions ¶ added in v0.3.0
type DataSourcesClientCreateOrUpdateOptions struct { }
DataSourcesClientCreateOrUpdateOptions contains the optional parameters for the DataSourcesClient.CreateOrUpdate method.
type DataSourcesClientCreateOrUpdateResponse ¶ added in v0.3.0
type DataSourcesClientCreateOrUpdateResponse struct { // Datasources under OMS Workspace. DataSource }
DataSourcesClientCreateOrUpdateResponse contains the response from method DataSourcesClient.CreateOrUpdate.
type DataSourcesClientDeleteOptions ¶ added in v0.3.0
type DataSourcesClientDeleteOptions struct { }
DataSourcesClientDeleteOptions contains the optional parameters for the DataSourcesClient.Delete method.
type DataSourcesClientDeleteResponse ¶ added in v0.3.0
type DataSourcesClientDeleteResponse struct { }
DataSourcesClientDeleteResponse contains the response from method DataSourcesClient.Delete.
type DataSourcesClientGetOptions ¶ added in v0.3.0
type DataSourcesClientGetOptions struct { }
DataSourcesClientGetOptions contains the optional parameters for the DataSourcesClient.Get method.
type DataSourcesClientGetResponse ¶ added in v0.3.0
type DataSourcesClientGetResponse struct { // Datasources under OMS Workspace. DataSource }
DataSourcesClientGetResponse contains the response from method DataSourcesClient.Get.
type DataSourcesClientListByWorkspaceOptions ¶ added in v0.3.0
type DataSourcesClientListByWorkspaceOptions struct { // Starting point of the collection of data source instances. Skiptoken *string }
DataSourcesClientListByWorkspaceOptions contains the optional parameters for the DataSourcesClient.NewListByWorkspacePager method.
type DataSourcesClientListByWorkspaceResponse ¶ added in v0.3.0
type DataSourcesClientListByWorkspaceResponse struct { // The list data source by workspace operation response. DataSourceListResult }
DataSourcesClientListByWorkspaceResponse contains the response from method DataSourcesClient.NewListByWorkspacePager.
type DeletedWorkspacesClient ¶
type DeletedWorkspacesClient struct {
// contains filtered or unexported fields
}
DeletedWorkspacesClient contains the methods for the DeletedWorkspaces group. Don't use this type directly, use NewDeletedWorkspacesClient() instead.
func NewDeletedWorkspacesClient ¶
func NewDeletedWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedWorkspacesClient, error)
NewDeletedWorkspacesClient creates a new instance of DeletedWorkspacesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DeletedWorkspacesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *DeletedWorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *DeletedWorkspacesClientListByResourceGroupOptions) *runtime.Pager[DeletedWorkspacesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets recently deleted workspaces in a resource group, available for recovery.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - DeletedWorkspacesClientListByResourceGroupOptions contains the optional parameters for the DeletedWorkspacesClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDeletedWorkspacesClient().NewListByResourceGroupPager("oiautorest6685", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.WorkspaceListResult = armoperationalinsights.WorkspaceListResult{ // Value: []*armoperationalinsights.Workspace{ // { // Name: to.Ptr("AzTest2170"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170"), // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Properties: &armoperationalinsights.WorkspaceProperties{ // CustomerID: to.Ptr("bc089d7b-485c-4aff-a71e-c00f362d8d2f"), // ProvisioningState: to.Ptr(armoperationalinsights.WorkspaceEntityStatusSucceeded), // PublicNetworkAccessForIngestion: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // PublicNetworkAccessForQuery: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // RetentionInDays: to.Ptr[int32](30), // SKU: &armoperationalinsights.WorkspaceSKU{ // Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), // }, // }, // }}, // } } }
Output:
func (*DeletedWorkspacesClient) NewListPager ¶ added in v0.5.0
func (client *DeletedWorkspacesClient) NewListPager(options *DeletedWorkspacesClientListOptions) *runtime.Pager[DeletedWorkspacesClientListResponse]
NewListPager - Gets recently deleted workspaces in a subscription, available for recovery.
Generated from API version 2021-06-01
- options - DeletedWorkspacesClientListOptions contains the optional parameters for the DeletedWorkspacesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesSubscriptionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDeletedWorkspacesClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.WorkspaceListResult = armoperationalinsights.WorkspaceListResult{ // Value: []*armoperationalinsights.Workspace{ // { // Name: to.Ptr("AzTest2170"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170"), // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Properties: &armoperationalinsights.WorkspaceProperties{ // CustomerID: to.Ptr("bc089d7b-485c-4aff-a71e-c00f362d8d2f"), // ProvisioningState: to.Ptr(armoperationalinsights.WorkspaceEntityStatusSucceeded), // PublicNetworkAccessForIngestion: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // PublicNetworkAccessForQuery: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // RetentionInDays: to.Ptr[int32](30), // SKU: &armoperationalinsights.WorkspaceSKU{ // Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), // }, // }, // }}, // } } }
Output:
type DeletedWorkspacesClientListByResourceGroupOptions ¶ added in v0.3.0
type DeletedWorkspacesClientListByResourceGroupOptions struct { }
DeletedWorkspacesClientListByResourceGroupOptions contains the optional parameters for the DeletedWorkspacesClient.NewListByResourceGroupPager method.
type DeletedWorkspacesClientListByResourceGroupResponse ¶ added in v0.3.0
type DeletedWorkspacesClientListByResourceGroupResponse struct { // The list workspaces operation response. WorkspaceListResult }
DeletedWorkspacesClientListByResourceGroupResponse contains the response from method DeletedWorkspacesClient.NewListByResourceGroupPager.
type DeletedWorkspacesClientListOptions ¶ added in v0.3.0
type DeletedWorkspacesClientListOptions struct { }
DeletedWorkspacesClientListOptions contains the optional parameters for the DeletedWorkspacesClient.NewListPager method.
type DeletedWorkspacesClientListResponse ¶ added in v0.3.0
type DeletedWorkspacesClientListResponse struct { // The list workspaces operation response. WorkspaceListResult }
DeletedWorkspacesClientListResponse contains the response from method DeletedWorkspacesClient.NewListPager.
type Destination ¶
type Destination struct { // REQUIRED; The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure. ResourceID *string // destination meta data. MetaData *DestinationMetaData // READ-ONLY; The type of the destination resource Type *Type }
Destination properties.
func (Destination) MarshalJSON ¶ added in v1.1.0
func (d Destination) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Destination.
func (*Destination) UnmarshalJSON ¶ added in v1.1.0
func (d *Destination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Destination.
type DestinationMetaData ¶
type DestinationMetaData struct { // Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account. EventHubName *string }
DestinationMetaData - Destination meta data.
func (DestinationMetaData) MarshalJSON ¶ added in v1.1.0
func (d DestinationMetaData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DestinationMetaData.
func (*DestinationMetaData) UnmarshalJSON ¶ added in v1.1.0
func (d *DestinationMetaData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DestinationMetaData.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info any // READ-ONLY; The additional info type. Type *string }
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶ added in v1.1.0
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. Code *string // READ-ONLY; The error details. Details []*ErrorDetail // READ-ONLY; The error message. Message *string // READ-ONLY; The error target. Target *string }
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // The error object. Error *ErrorDetail }
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
func (ErrorResponse) MarshalJSON ¶ added in v1.1.0
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type GatewaysClient ¶
type GatewaysClient struct {
// contains filtered or unexported fields
}
GatewaysClient contains the methods for the Gateways group. Don't use this type directly, use NewGatewaysClient() instead.
func NewGatewaysClient ¶
func NewGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GatewaysClient, error)
NewGatewaysClient creates a new instance of GatewaysClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GatewaysClient) Delete ¶
func (client *GatewaysClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, gatewayID string, options *GatewaysClientDeleteOptions) (GatewaysClientDeleteResponse, error)
Delete - Delete a Log Analytics gateway. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- gatewayID - The Log Analytics gateway Id.
- options - GatewaysClientDeleteOptions contains the optional parameters for the GatewaysClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesGatewaysDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewGatewaysClient().Delete(ctx, "OIAutoRest5123", "aztest5048", "00000000-0000-0000-0000-00000000000", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type GatewaysClientDeleteOptions ¶ added in v0.3.0
type GatewaysClientDeleteOptions struct { }
GatewaysClientDeleteOptions contains the optional parameters for the GatewaysClient.Delete method.
type GatewaysClientDeleteResponse ¶ added in v0.3.0
type GatewaysClientDeleteResponse struct { }
GatewaysClientDeleteResponse contains the response from method GatewaysClient.Delete.
type Identity ¶
type Identity struct { // REQUIRED; Type of managed service identity. Type *IdentityType // The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource // ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*UserIdentityProperties // READ-ONLY; The principal ID of resource identity. PrincipalID *string // READ-ONLY; The tenant ID of resource. TenantID *string }
Identity for the resource.
func (Identity) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Identity.
func (*Identity) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Identity.
type IdentityType ¶
type IdentityType string
IdentityType - Type of managed service identity.
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
type IntelligencePack ¶
type IntelligencePack struct { // The display name of the intelligence pack. DisplayName *string // The enabled boolean for the intelligence pack. Enabled *bool // The name of the intelligence pack. Name *string }
IntelligencePack - Intelligence Pack containing a string name and boolean indicating if it's enabled.
func (IntelligencePack) MarshalJSON ¶ added in v1.1.0
func (i IntelligencePack) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntelligencePack.
func (*IntelligencePack) UnmarshalJSON ¶ added in v1.1.0
func (i *IntelligencePack) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IntelligencePack.
type IntelligencePacksClient ¶
type IntelligencePacksClient struct {
// contains filtered or unexported fields
}
IntelligencePacksClient contains the methods for the IntelligencePacks group. Don't use this type directly, use NewIntelligencePacksClient() instead.
func NewIntelligencePacksClient ¶
func NewIntelligencePacksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntelligencePacksClient, error)
NewIntelligencePacksClient creates a new instance of IntelligencePacksClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*IntelligencePacksClient) Disable ¶
func (client *IntelligencePacksClient) Disable(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string, options *IntelligencePacksClientDisableOptions) (IntelligencePacksClientDisableResponse, error)
Disable - Disables an intelligence pack for a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- intelligencePackName - The name of the intelligence pack to be disabled.
- options - IntelligencePacksClientDisableOptions contains the optional parameters for the IntelligencePacksClient.Disable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesDisableIntelligencePack.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewIntelligencePacksClient().Disable(ctx, "rg1", "TestLinkWS", "ChangeTracking", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*IntelligencePacksClient) Enable ¶
func (client *IntelligencePacksClient) Enable(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string, options *IntelligencePacksClientEnableOptions) (IntelligencePacksClientEnableResponse, error)
Enable - Enables an intelligence pack for a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- intelligencePackName - The name of the intelligence pack to be enabled.
- options - IntelligencePacksClientEnableOptions contains the optional parameters for the IntelligencePacksClient.Enable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesEnableIntelligencePack.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewIntelligencePacksClient().Enable(ctx, "rg1", "TestLinkWS", "ChangeTracking", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*IntelligencePacksClient) List ¶
func (client *IntelligencePacksClient) List(ctx context.Context, resourceGroupName string, workspaceName string, options *IntelligencePacksClientListOptions) (IntelligencePacksClientListResponse, error)
List - Lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - IntelligencePacksClientListOptions contains the optional parameters for the IntelligencePacksClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListIntelligencePacks.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewIntelligencePacksClient().List(ctx, "rg1", "TestLinkWS", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.IntelligencePackArray = []*armoperationalinsights.IntelligencePack{ // { // Name: to.Ptr("CapacityPerformance"), // DisplayName: to.Ptr("Capacity and Performance"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureWebAppsAnalytics"), // DisplayName: to.Ptr("Azure Web Apps Analytics (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("Security"), // DisplayName: to.Ptr("Security and Audit"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("Updates"), // DisplayName: to.Ptr("Update Management"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AntiMalware"), // DisplayName: to.Ptr("Antimalware Assessment"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("LogManagement"), // DisplayName: to.Ptr("Log Management"), // Enabled: to.Ptr(true), // }, // { // Name: to.Ptr("ChangeTracking"), // DisplayName: to.Ptr("Change Tracking"), // Enabled: to.Ptr(true), // }, // { // Name: to.Ptr("SQLAssessment"), // DisplayName: to.Ptr("SQL Assessment"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("SCOMAssessment"), // DisplayName: to.Ptr("System Center Operations Manager Assessment (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ServiceDesk"), // DisplayName: to.Ptr("IT Service Management Connector(Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ADAssessment"), // DisplayName: to.Ptr("AD Assessment"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AlertManagement"), // DisplayName: to.Ptr("Alert Management"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureAutomation"), // DisplayName: to.Ptr("Azure Automation"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("WireData"), // DisplayName: to.Ptr("Wire Data"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("SiteRecovery"), // DisplayName: to.Ptr("Azure Site Recovery"), // Enabled: to.Ptr(true), // }, // { // Name: to.Ptr("Backup"), // DisplayName: to.Ptr("Backup"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("SurfaceHub"), // DisplayName: to.Ptr("Surface Hub"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("NetworkMonitoring"), // DisplayName: to.Ptr("Network Performance Monitor"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("Containers"), // DisplayName: to.Ptr("Container Monitoring Solution"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ServiceMap"), // DisplayName: to.Ptr("Service Map"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureNetworking"), // DisplayName: to.Ptr("Azure Networking Analytics (Deprecated)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ADReplication"), // DisplayName: to.Ptr("AD Replication Status"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("Office365"), // DisplayName: to.Ptr("Office 365 (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("CompatibilityAssessment"), // DisplayName: to.Ptr("Upgrade Readiness"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("KeyVault"), // DisplayName: to.Ptr("Key Vault (Deprecated)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ServiceFabric"), // DisplayName: to.Ptr("Service Fabric"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("DnsAnalytics"), // DisplayName: to.Ptr("DNS Analytics (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ApplicationInsights"), // DisplayName: to.Ptr("Application Insights (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("WireData2"), // DisplayName: to.Ptr("Wire Data 2.0"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("WaaSUpdateInsights"), // DisplayName: to.Ptr("Update Compliance (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AgentHealthAssessment"), // DisplayName: to.Ptr("Agent Health "), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureActivity"), // DisplayName: to.Ptr("Activity Log Analytics"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("HDInsight"), // DisplayName: to.Ptr("HDInsight HBase Monitoring (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("HDInsightKafka"), // DisplayName: to.Ptr("HDInsight Kafka Monitoring"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("HDInsightSpark"), // DisplayName: to.Ptr("HDInsight Spark Monitoring"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("VMware"), // DisplayName: to.Ptr("VMware (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("SecurityCenterFree"), // DisplayName: to.Ptr("Security Center Free � for Azure Resources only"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("LogicAppsManagement"), // DisplayName: to.Ptr("Logic Apps Management"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("LogicAppB2B"), // DisplayName: to.Ptr("Logic Apps B2B"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureSQLAnalytics"), // DisplayName: to.Ptr("Azure SQL Analytics (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("KeyVaultAnalytics"), // DisplayName: to.Ptr("Key Vault Analytics"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureNSGAnalytics"), // DisplayName: to.Ptr("Azure Network Security Group Analytics"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("AzureAppGatewayAnalytics"), // DisplayName: to.Ptr("Azure Application Gateway Analytics"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("DeviceHealthProd"), // DisplayName: to.Ptr("Device Health (Preview)"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("WindowsDefenderATP"), // DisplayName: to.Ptr("Windows Defender ATP"), // Enabled: to.Ptr(false), // }, // { // Name: to.Ptr("ProcessInvestigator"), // DisplayName: to.Ptr("ProcessInvestigator"), // Enabled: to.Ptr(false), // }} }
Output:
type IntelligencePacksClientDisableOptions ¶ added in v0.3.0
type IntelligencePacksClientDisableOptions struct { }
IntelligencePacksClientDisableOptions contains the optional parameters for the IntelligencePacksClient.Disable method.
type IntelligencePacksClientDisableResponse ¶ added in v0.3.0
type IntelligencePacksClientDisableResponse struct { }
IntelligencePacksClientDisableResponse contains the response from method IntelligencePacksClient.Disable.
type IntelligencePacksClientEnableOptions ¶ added in v0.3.0
type IntelligencePacksClientEnableOptions struct { }
IntelligencePacksClientEnableOptions contains the optional parameters for the IntelligencePacksClient.Enable method.
type IntelligencePacksClientEnableResponse ¶ added in v0.3.0
type IntelligencePacksClientEnableResponse struct { }
IntelligencePacksClientEnableResponse contains the response from method IntelligencePacksClient.Enable.
type IntelligencePacksClientListOptions ¶ added in v0.3.0
type IntelligencePacksClientListOptions struct { }
IntelligencePacksClientListOptions contains the optional parameters for the IntelligencePacksClient.List method.
type IntelligencePacksClientListResponse ¶ added in v0.3.0
type IntelligencePacksClientListResponse struct { // Array of IntelligencePack IntelligencePackArray []*IntelligencePack }
IntelligencePacksClientListResponse contains the response from method IntelligencePacksClient.List.
type KeyVaultProperties ¶
type KeyVaultProperties struct { // The name of the key associated with the Log Analytics cluster. KeyName *string // Selected key minimum required size. KeyRsaSize *int32 // The Key Vault uri which holds they key associated with the Log Analytics cluster. KeyVaultURI *string // The version of the key associated with the Log Analytics cluster. KeyVersion *string }
KeyVaultProperties - The key vault properties.
func (KeyVaultProperties) MarshalJSON ¶ added in v1.1.0
func (k KeyVaultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.
func (*KeyVaultProperties) UnmarshalJSON ¶ added in v1.1.0
func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties.
type LinkedService ¶
type LinkedService struct { // REQUIRED; The properties of the linked service. Properties *LinkedServiceProperties // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
LinkedService - The top level Linked service resource container.
func (LinkedService) MarshalJSON ¶
func (l LinkedService) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LinkedService.
func (*LinkedService) UnmarshalJSON ¶ added in v1.1.0
func (l *LinkedService) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LinkedService.
type LinkedServiceEntityStatus ¶
type LinkedServiceEntityStatus string
LinkedServiceEntityStatus - The provisioning state of the linked service.
const ( LinkedServiceEntityStatusDeleting LinkedServiceEntityStatus = "Deleting" LinkedServiceEntityStatusProvisioningAccount LinkedServiceEntityStatus = "ProvisioningAccount" LinkedServiceEntityStatusSucceeded LinkedServiceEntityStatus = "Succeeded" LinkedServiceEntityStatusUpdating LinkedServiceEntityStatus = "Updating" )
func PossibleLinkedServiceEntityStatusValues ¶
func PossibleLinkedServiceEntityStatusValues() []LinkedServiceEntityStatus
PossibleLinkedServiceEntityStatusValues returns the possible values for the LinkedServiceEntityStatus const type.
type LinkedServiceListResult ¶
type LinkedServiceListResult struct { // The list of linked service instances Value []*LinkedService }
LinkedServiceListResult - The list linked service operation response.
func (LinkedServiceListResult) MarshalJSON ¶
func (l LinkedServiceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LinkedServiceListResult.
func (*LinkedServiceListResult) UnmarshalJSON ¶ added in v1.1.0
func (l *LinkedServiceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceListResult.
type LinkedServiceProperties ¶
type LinkedServiceProperties struct { // The provisioning state of the linked service. ProvisioningState *LinkedServiceEntityStatus // The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require // read access ResourceID *string // The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require // write access WriteAccessResourceID *string }
LinkedServiceProperties - Linked service properties.
func (LinkedServiceProperties) MarshalJSON ¶ added in v1.1.0
func (l LinkedServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LinkedServiceProperties.
func (*LinkedServiceProperties) UnmarshalJSON ¶ added in v1.1.0
func (l *LinkedServiceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceProperties.
type LinkedServicesClient ¶
type LinkedServicesClient struct {
// contains filtered or unexported fields
}
LinkedServicesClient contains the methods for the LinkedServices group. Don't use this type directly, use NewLinkedServicesClient() instead.
func NewLinkedServicesClient ¶
func NewLinkedServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LinkedServicesClient, error)
NewLinkedServicesClient creates a new instance of LinkedServicesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LinkedServicesClient) BeginCreateOrUpdate ¶
func (client *LinkedServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, parameters LinkedService, options *LinkedServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[LinkedServicesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a linked service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- linkedServiceName - Name of the linkedServices resource
- parameters - The parameters required to create or update a linked service.
- options - LinkedServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewLinkedServicesClient().BeginCreateOrUpdate(ctx, "mms-eus", "TestLinkWS", "Cluster", armoperationalinsights.LinkedService{ Properties: &armoperationalinsights.LinkedServiceProperties{ WriteAccessResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LinkedService = armoperationalinsights.LinkedService{ // Name: to.Ptr("TestLinkWS/Cluster"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster"), // Properties: &armoperationalinsights.LinkedServiceProperties{ // ProvisioningState: to.Ptr(armoperationalinsights.LinkedServiceEntityStatusSucceeded), // WriteAccessResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster"), // }, // } }
Output:
func (*LinkedServicesClient) BeginDelete ¶
func (client *LinkedServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, options *LinkedServicesClientBeginDeleteOptions) (*runtime.Poller[LinkedServicesClientDeleteResponse], error)
BeginDelete - Deletes a linked service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- linkedServiceName - Name of the linked service.
- options - LinkedServicesClientBeginDeleteOptions contains the optional parameters for the LinkedServicesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewLinkedServicesClient().BeginDelete(ctx, "rg1", "TestLinkWS", "Cluster", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LinkedService = armoperationalinsights.LinkedService{ // Name: to.Ptr("TestLinkWS/Cluster"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster"), // Properties: &armoperationalinsights.LinkedServiceProperties{ // ProvisioningState: to.Ptr(armoperationalinsights.LinkedServiceEntityStatusSucceeded), // WriteAccessResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster"), // }, // } }
Output:
func (*LinkedServicesClient) Get ¶
func (client *LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, options *LinkedServicesClientGetOptions) (LinkedServicesClientGetResponse, error)
Get - Gets a linked service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- linkedServiceName - Name of the linked service.
- options - LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewLinkedServicesClient().Get(ctx, "mms-eus", "TestLinkWS", "Cluster", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LinkedService = armoperationalinsights.LinkedService{ // Name: to.Ptr("TestLinkWS/Cluster"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster"), // Properties: &armoperationalinsights.LinkedServiceProperties{ // ProvisioningState: to.Ptr(armoperationalinsights.LinkedServiceEntityStatusSucceeded), // WriteAccessResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster"), // }, // } }
Output:
func (*LinkedServicesClient) NewListByWorkspacePager ¶ added in v0.5.0
func (client *LinkedServicesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *LinkedServicesClientListByWorkspaceOptions) *runtime.Pager[LinkedServicesClientListByWorkspaceResponse]
NewListByWorkspacePager - Gets the linked services instances in a workspace.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - LinkedServicesClientListByWorkspaceOptions contains the optional parameters for the LinkedServicesClient.NewListByWorkspacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesListByWorkspace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLinkedServicesClient().NewListByWorkspacePager("mms-eus", "TestLinkWS", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.LinkedServiceListResult = armoperationalinsights.LinkedServiceListResult{ // Value: []*armoperationalinsights.LinkedService{ // { // Name: to.Ptr("TestLinkWS/Automation"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/automation"), // Properties: &armoperationalinsights.LinkedServiceProperties{ // ProvisioningState: to.Ptr(armoperationalinsights.LinkedServiceEntityStatusSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/TestAccount"), // }, // }, // { // Name: to.Ptr("TestLinkWS/Cluster"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster"), // Properties: &armoperationalinsights.LinkedServiceProperties{ // ProvisioningState: to.Ptr(armoperationalinsights.LinkedServiceEntityStatusSucceeded), // WriteAccessResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/TestCluster"), // }, // }}, // } } }
Output:
type LinkedServicesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type LinkedServicesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LinkedServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.BeginCreateOrUpdate method.
type LinkedServicesClientBeginDeleteOptions ¶ added in v0.3.0
type LinkedServicesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LinkedServicesClientBeginDeleteOptions contains the optional parameters for the LinkedServicesClient.BeginDelete method.
type LinkedServicesClientCreateOrUpdateResponse ¶ added in v0.3.0
type LinkedServicesClientCreateOrUpdateResponse struct { // The top level Linked service resource container. LinkedService }
LinkedServicesClientCreateOrUpdateResponse contains the response from method LinkedServicesClient.BeginCreateOrUpdate.
type LinkedServicesClientDeleteResponse ¶ added in v0.3.0
type LinkedServicesClientDeleteResponse struct { // The top level Linked service resource container. LinkedService }
LinkedServicesClientDeleteResponse contains the response from method LinkedServicesClient.BeginDelete.
type LinkedServicesClientGetOptions ¶ added in v0.3.0
type LinkedServicesClientGetOptions struct { }
LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method.
type LinkedServicesClientGetResponse ¶ added in v0.3.0
type LinkedServicesClientGetResponse struct { // The top level Linked service resource container. LinkedService }
LinkedServicesClientGetResponse contains the response from method LinkedServicesClient.Get.
type LinkedServicesClientListByWorkspaceOptions ¶ added in v0.3.0
type LinkedServicesClientListByWorkspaceOptions struct { }
LinkedServicesClientListByWorkspaceOptions contains the optional parameters for the LinkedServicesClient.NewListByWorkspacePager method.
type LinkedServicesClientListByWorkspaceResponse ¶ added in v0.3.0
type LinkedServicesClientListByWorkspaceResponse struct { // The list linked service operation response. LinkedServiceListResult }
LinkedServicesClientListByWorkspaceResponse contains the response from method LinkedServicesClient.NewListByWorkspacePager.
type LinkedStorageAccountsClient ¶
type LinkedStorageAccountsClient struct {
// contains filtered or unexported fields
}
LinkedStorageAccountsClient contains the methods for the LinkedStorageAccounts group. Don't use this type directly, use NewLinkedStorageAccountsClient() instead.
func NewLinkedStorageAccountsClient ¶
func NewLinkedStorageAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LinkedStorageAccountsClient, error)
NewLinkedStorageAccountsClient creates a new instance of LinkedStorageAccountsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LinkedStorageAccountsClient) CreateOrUpdate ¶
func (client *LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, parameters LinkedStorageAccountsResource, options *LinkedStorageAccountsClientCreateOrUpdateOptions) (LinkedStorageAccountsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or Update a link relation between current workspace and a group of storage accounts of a specific data source type. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataSourceType - Linked storage accounts type.
- parameters - The parameters required to create or update linked storage accounts.
- options - LinkedStorageAccountsClientCreateOrUpdateOptions contains the optional parameters for the LinkedStorageAccountsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewLinkedStorageAccountsClient().CreateOrUpdate(ctx, "mms-eus", "testLinkStorageAccountsWS", armoperationalinsights.DataSourceTypeCustomLogs, armoperationalinsights.LinkedStorageAccountsResource{ Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ StorageAccountIDs: []*string{ to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB")}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LinkedStorageAccountsResource = armoperationalinsights.LinkedStorageAccountsResource{ // Name: to.Ptr("CustomLogs"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs"), // Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ // DataSourceType: to.Ptr(armoperationalinsights.DataSourceTypeCustomLogs), // StorageAccountIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB")}, // }, // } }
Output:
func (*LinkedStorageAccountsClient) Delete ¶
func (client *LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, options *LinkedStorageAccountsClientDeleteOptions) (LinkedStorageAccountsClientDeleteResponse, error)
Delete - Deletes all linked storage accounts of a specific data source type associated with the specified workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataSourceType - Linked storage accounts type.
- options - LinkedStorageAccountsClientDeleteOptions contains the optional parameters for the LinkedStorageAccountsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewLinkedStorageAccountsClient().Delete(ctx, "mms-eus", "testLinkStorageAccountsWS", armoperationalinsights.DataSourceTypeCustomLogs, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*LinkedStorageAccountsClient) Get ¶
func (client *LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, options *LinkedStorageAccountsClientGetOptions) (LinkedStorageAccountsClientGetResponse, error)
Get - Gets all linked storage account of a specific data source type associated with the specified workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- dataSourceType - Linked storage accounts type.
- options - LinkedStorageAccountsClientGetOptions contains the optional parameters for the LinkedStorageAccountsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewLinkedStorageAccountsClient().Get(ctx, "mms-eus", "testLinkStorageAccountsWS", armoperationalinsights.DataSourceTypeCustomLogs, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LinkedStorageAccountsResource = armoperationalinsights.LinkedStorageAccountsResource{ // Name: to.Ptr("CustomLogs"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs"), // Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ // DataSourceType: to.Ptr(armoperationalinsights.DataSourceTypeCustomLogs), // StorageAccountIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB")}, // }, // } }
Output:
func (*LinkedStorageAccountsClient) NewListByWorkspacePager ¶ added in v0.5.0
func (client *LinkedStorageAccountsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *LinkedStorageAccountsClientListByWorkspaceOptions) *runtime.Pager[LinkedStorageAccountsClientListByWorkspaceResponse]
NewListByWorkspacePager - Gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - LinkedStorageAccountsClientListByWorkspaceOptions contains the optional parameters for the LinkedStorageAccountsClient.NewListByWorkspacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsListByWorkspace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLinkedStorageAccountsClient().NewListByWorkspacePager("mms-eus", "testLinkStorageAccountsWS", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.LinkedStorageAccountsListResult = armoperationalinsights.LinkedStorageAccountsListResult{ // Value: []*armoperationalinsights.LinkedStorageAccountsResource{ // { // Name: to.Ptr("CustomLogs"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs"), // Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ // DataSourceType: to.Ptr(armoperationalinsights.DataSourceTypeCustomLogs), // StorageAccountIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB")}, // }, // }, // { // Name: to.Ptr("AzureWatson"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/AzureWatson"), // Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ // DataSourceType: to.Ptr(armoperationalinsights.DataSourceTypeAzureWatson), // StorageAccountIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC")}, // }, // }, // { // Name: to.Ptr("Query"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/Query"), // Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ // DataSourceType: to.Ptr(armoperationalinsights.DataSourceTypeQuery), // StorageAccountIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC")}, // }, // }, // { // Name: to.Ptr("Alerts"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/Alerts"), // Properties: &armoperationalinsights.LinkedStorageAccountsProperties{ // DataSourceType: to.Ptr(armoperationalinsights.DataSourceTypeAlerts), // StorageAccountIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC")}, // }, // }}, // } } }
Output:
type LinkedStorageAccountsClientCreateOrUpdateOptions ¶ added in v0.3.0
type LinkedStorageAccountsClientCreateOrUpdateOptions struct { }
LinkedStorageAccountsClientCreateOrUpdateOptions contains the optional parameters for the LinkedStorageAccountsClient.CreateOrUpdate method.
type LinkedStorageAccountsClientCreateOrUpdateResponse ¶ added in v0.3.0
type LinkedStorageAccountsClientCreateOrUpdateResponse struct { // Linked storage accounts top level resource container. LinkedStorageAccountsResource }
LinkedStorageAccountsClientCreateOrUpdateResponse contains the response from method LinkedStorageAccountsClient.CreateOrUpdate.
type LinkedStorageAccountsClientDeleteOptions ¶ added in v0.3.0
type LinkedStorageAccountsClientDeleteOptions struct { }
LinkedStorageAccountsClientDeleteOptions contains the optional parameters for the LinkedStorageAccountsClient.Delete method.
type LinkedStorageAccountsClientDeleteResponse ¶ added in v0.3.0
type LinkedStorageAccountsClientDeleteResponse struct { }
LinkedStorageAccountsClientDeleteResponse contains the response from method LinkedStorageAccountsClient.Delete.
type LinkedStorageAccountsClientGetOptions ¶ added in v0.3.0
type LinkedStorageAccountsClientGetOptions struct { }
LinkedStorageAccountsClientGetOptions contains the optional parameters for the LinkedStorageAccountsClient.Get method.
type LinkedStorageAccountsClientGetResponse ¶ added in v0.3.0
type LinkedStorageAccountsClientGetResponse struct { // Linked storage accounts top level resource container. LinkedStorageAccountsResource }
LinkedStorageAccountsClientGetResponse contains the response from method LinkedStorageAccountsClient.Get.
type LinkedStorageAccountsClientListByWorkspaceOptions ¶ added in v0.3.0
type LinkedStorageAccountsClientListByWorkspaceOptions struct { }
LinkedStorageAccountsClientListByWorkspaceOptions contains the optional parameters for the LinkedStorageAccountsClient.NewListByWorkspacePager method.
type LinkedStorageAccountsClientListByWorkspaceResponse ¶ added in v0.3.0
type LinkedStorageAccountsClientListByWorkspaceResponse struct { // The list linked storage accounts service operation response. LinkedStorageAccountsListResult }
LinkedStorageAccountsClientListByWorkspaceResponse contains the response from method LinkedStorageAccountsClient.NewListByWorkspacePager.
type LinkedStorageAccountsListResult ¶
type LinkedStorageAccountsListResult struct { // A list of linked storage accounts instances. Value []*LinkedStorageAccountsResource }
LinkedStorageAccountsListResult - The list linked storage accounts service operation response.
func (LinkedStorageAccountsListResult) MarshalJSON ¶
func (l LinkedStorageAccountsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LinkedStorageAccountsListResult.
func (*LinkedStorageAccountsListResult) UnmarshalJSON ¶ added in v1.1.0
func (l *LinkedStorageAccountsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LinkedStorageAccountsListResult.
type LinkedStorageAccountsProperties ¶
type LinkedStorageAccountsProperties struct { // Linked storage accounts resources ids. StorageAccountIDs []*string // READ-ONLY; Linked storage accounts type. DataSourceType *DataSourceType }
LinkedStorageAccountsProperties - Linked storage accounts properties.
func (LinkedStorageAccountsProperties) MarshalJSON ¶
func (l LinkedStorageAccountsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LinkedStorageAccountsProperties.
func (*LinkedStorageAccountsProperties) UnmarshalJSON ¶ added in v1.1.0
func (l *LinkedStorageAccountsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LinkedStorageAccountsProperties.
type LinkedStorageAccountsResource ¶
type LinkedStorageAccountsResource struct { // REQUIRED; Linked storage accounts properties. Properties *LinkedStorageAccountsProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
LinkedStorageAccountsResource - Linked storage accounts top level resource container.
func (LinkedStorageAccountsResource) MarshalJSON ¶
func (l LinkedStorageAccountsResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LinkedStorageAccountsResource.
func (*LinkedStorageAccountsResource) UnmarshalJSON ¶ added in v1.1.0
func (l *LinkedStorageAccountsResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LinkedStorageAccountsResource.
type ManagementGroup ¶
type ManagementGroup struct { // The properties of the management group. Properties *ManagementGroupProperties }
ManagementGroup - A management group that is connected to a workspace
func (ManagementGroup) MarshalJSON ¶ added in v1.1.0
func (m ManagementGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementGroup.
func (*ManagementGroup) UnmarshalJSON ¶ added in v1.1.0
func (m *ManagementGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagementGroup.
type ManagementGroupProperties ¶
type ManagementGroupProperties struct { // The datetime that the management group was created. Created *time.Time // The last datetime that the management group received data. DataReceived *time.Time // The unique ID of the management group. ID *string // Gets or sets a value indicating whether the management group is a gateway. IsGateway *bool // The name of the management group. Name *string // The SKU of System Center that is managing the management group. SKU *string // The number of servers connected to the management group. ServerCount *int32 // The version of System Center that is managing the management group. Version *string }
ManagementGroupProperties - Management group properties.
func (ManagementGroupProperties) MarshalJSON ¶
func (m ManagementGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementGroupProperties.
func (*ManagementGroupProperties) UnmarshalJSON ¶
func (m *ManagementGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagementGroupProperties.
type ManagementGroupsClient ¶
type ManagementGroupsClient struct {
// contains filtered or unexported fields
}
ManagementGroupsClient contains the methods for the ManagementGroups group. Don't use this type directly, use NewManagementGroupsClient() instead.
func NewManagementGroupsClient ¶
func NewManagementGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementGroupsClient, error)
NewManagementGroupsClient creates a new instance of ManagementGroupsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ManagementGroupsClient) NewListPager ¶ added in v0.5.0
func (client *ManagementGroupsClient) NewListPager(resourceGroupName string, workspaceName string, options *ManagementGroupsClientListOptions) *runtime.Pager[ManagementGroupsClientListResponse]
NewListPager - Gets a list of management groups connected to a workspace.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - ManagementGroupsClientListOptions contains the optional parameters for the ManagementGroupsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListManagementGroups.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewManagementGroupsClient().NewListPager("rg1", "TestLinkWS", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.WorkspaceListManagementGroupsResult = armoperationalinsights.WorkspaceListManagementGroupsResult{ // Value: []*armoperationalinsights.ManagementGroup{ // }, // } } }
Output:
type ManagementGroupsClientListOptions ¶ added in v0.3.0
type ManagementGroupsClientListOptions struct { }
ManagementGroupsClientListOptions contains the optional parameters for the ManagementGroupsClient.NewListPager method.
type ManagementGroupsClientListResponse ¶ added in v0.3.0
type ManagementGroupsClientListResponse struct { // The list workspace management groups operation response. WorkspaceListManagementGroupsResult }
ManagementGroupsClientListResponse contains the response from method ManagementGroupsClient.NewListPager.
type MetricName ¶
type MetricName struct { // The localized name of the metric. LocalizedValue *string // The system name of the metric. Value *string }
MetricName - The name of a metric.
func (MetricName) MarshalJSON ¶ added in v1.1.0
func (m MetricName) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetricName.
func (*MetricName) UnmarshalJSON ¶ added in v1.1.0
func (m *MetricName) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MetricName.
type Operation ¶
type Operation struct { // Display metadata associated with the operation. Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} Name *string }
Operation - Supported operation of OperationalInsights resource provider.
func (Operation) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Description of operation Description *string // Type of operation: get, read, delete, etc. Operation *string // Service provider: Microsoft OperationsManagement. Provider *string // Resource on which the operation is performed etc. Resource *string }
OperationDisplay - Display metadata associated with the operation.
func (OperationDisplay) MarshalJSON ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // List of solution operations supported by the OperationsManagement resource provider. Value []*Operation // READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string }
OperationListResult - Result of the request to list solution operations.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationStatus ¶
type OperationStatus struct { // The end time of the operation. EndTime *string // The error detail of the operation if any. Error *ErrorResponse // The operation Id. ID *string // The operation name. Name *string // The start time of the operation. StartTime *string // The status of the operation. Status *string }
OperationStatus - The status of operation.
func (OperationStatus) MarshalJSON ¶ added in v1.1.0
func (o OperationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationStatus.
func (*OperationStatus) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatus.
type OperationStatusesClient ¶
type OperationStatusesClient struct {
// contains filtered or unexported fields
}
OperationStatusesClient contains the methods for the OperationStatuses group. Don't use this type directly, use NewOperationStatusesClient() instead.
func NewOperationStatusesClient ¶
func NewOperationStatusesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationStatusesClient, error)
NewOperationStatusesClient creates a new instance of OperationStatusesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationStatusesClient) Get ¶
func (client *OperationStatusesClient) Get(ctx context.Context, location string, asyncOperationID string, options *OperationStatusesClientGetOptions) (OperationStatusesClientGetResponse, error)
Get - Get the status of a long running azure asynchronous operation. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- location - The region name of operation.
- asyncOperationID - The operation Id.
- options - OperationStatusesClientGetOptions contains the optional parameters for the OperationStatusesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/OperationStatusesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewOperationStatusesClient().Get(ctx, "West US", "713192d7-503f-477a-9cfe-4efc3ee2bd11", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.OperationStatus = armoperationalinsights.OperationStatus{ // Name: to.Ptr("713192d7-503f-477a-9cfe-4efc3ee2bd11"), // EndTime: to.Ptr("2017-01-01T16:13:13.933Z"), // ID: to.Ptr("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/locations/westus/operationStatuses/713192d7-503f-477a-9cfe-4efc3ee2bd11"), // StartTime: to.Ptr("2017-01-01T13:13:13.933Z"), // Status: to.Ptr("Succeeded"), // } }
Output:
type OperationStatusesClientGetOptions ¶ added in v0.3.0
type OperationStatusesClientGetOptions struct { }
OperationStatusesClientGetOptions contains the optional parameters for the OperationStatusesClient.Get method.
type OperationStatusesClientGetResponse ¶ added in v0.3.0
type OperationStatusesClientGetResponse struct { // The status of operation. OperationStatus }
OperationStatusesClientGetResponse contains the response from method OperationStatusesClient.Get.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.5.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available OperationalInsights Rest API operations.
Generated from API version 2020-10-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/OperationsListByTenant.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OperationListResult = armoperationalinsights.OperationListResult{ // Value: []*armoperationalinsights.Operation{ // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/write"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Creates a new workspace or links to an existing workspace by providing the customer id from the existing workspace."), // Operation: to.Ptr("Create Workspace"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Workspace"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Gets an existing workspace"), // Operation: to.Ptr("Get Workspace"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Workspace"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/delete"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Deletes a workspace. If the workspace was linked to an existing workspace at creation time then the workspace it was linked to is not deleted."), // Operation: to.Ptr("Delete Workspace"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Workspace"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/generateregistrationcertificate/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Generates Registration Certificate for the workspace. This Certificate is used to connect Microsoft System Center Operation Manager to the workspace."), // Operation: to.Ptr("Generates Registration Certificate for Workspace."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Registration Certificate"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/storageinsightconfigs/write"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Creates a new storage configuration. These configurations are used to pull data from a location in an existing storage account."), // Operation: to.Ptr("Create Storage Configuration"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Storage Insight Configuration"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/storageinsightconfigs/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Gets a storage configuration."), // Operation: to.Ptr("Get Storage Configuration"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Storage Insight Configuration"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/storageinsightconfigs/delete"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Deletes a storage configuration. This will stop Microsoft Operational Insights from reading data from the storage account."), // Operation: to.Ptr("Delete Storage Configuration"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Storage Insight Configuration"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/register/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Register a subscription to a resource provider."), // Operation: to.Ptr("Register a subscription to a resource provider."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Register"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/sharedKeys/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace."), // Operation: to.Ptr("List Workspace Shared Keys"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Shared Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/sharedKeys/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace."), // Operation: to.Ptr("List Workspace Shared Keys"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Shared Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/listKeys/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace."), // Operation: to.Ptr("List Workspace Keys"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("List Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/listKeys/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace."), // Operation: to.Ptr("List Workspace Keys"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("List Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/managementGroups/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Gets the names and metadata for System Center Operations Manager management groups connected to this workspace."), // Operation: to.Ptr("Get Management Groups for Workspace"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Management Group"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/usages/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Gets usage data for a workspace including the amount of data read by the workspace."), // Operation: to.Ptr("Get Usage Data for Workspace"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Usage Metric"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/search/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Executes a search query"), // Operation: to.Ptr("Search Workspace Data"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Search"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/schema/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Gets the search schema for the workspace. Search schema includes the exposed fields and their types."), // Operation: to.Ptr("Get Search Schema"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Search Schema"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Get datasources under a workspace."), // Operation: to.Ptr("Get datasources under a workspace."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Data Source"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/datasources/write"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Create/Update datasources under a workspace."), // Operation: to.Ptr("Create/Update datasources under a workspace."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Data Source"), // }, // }, // { // }, // { // }, // { // }, // { // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/notificationSettings/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Get the user's notification settings for the workspace."), // Operation: to.Ptr("Get Notification Settings"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Notification Settings"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/notificationSettings/write"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Set the user's notification settings for the workspace."), // Operation: to.Ptr("Put Notification Settings"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Notification Settings"), // }, // }, // { // }, // { // }, // { // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/configurationScopes/delete"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Delete Configuration Scope"), // Operation: to.Ptr("Delete Configuration Scope"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Configuration Scope"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Get linked services under given workspace."), // Operation: to.Ptr("Get linked services under given workspace."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Linked Services"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices/write"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Create/Update linked services under given workspace."), // Operation: to.Ptr("Create/Update linked services under given workspace."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Linked Services"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/linkedServices/delete"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Delete linked services under given workspace."), // Operation: to.Ptr("Delete linked services under given workspace."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Linked Services"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/intelligencepacks/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Lists all intelligence packs that are visible for a given worksapce and also lists whether the pack is enabled or disabled for that workspace."), // Operation: to.Ptr("List Intelligence Packs"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Intelligence Packs"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/intelligencepacks/enable/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Enables an intelligence pack for a given workspace."), // Operation: to.Ptr("Enable Intelligence Pack"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Intelligence Packs"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/intelligencepacks/disable/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Disables an intelligence pack for a given workspace."), // Operation: to.Ptr("Disable Intelligence Pack"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Intelligence Packs"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/analytics/query/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Search using new engine."), // Operation: to.Ptr("Search using new engine."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("analytics"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/analytics/query/schema/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Get search schema V2."), // Operation: to.Ptr("Get search schema V2."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("analytics"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/api/query/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Search using new engine."), // Operation: to.Ptr("Search using new engine."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("analytics"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/api/query/schema/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Get search schema V2."), // Operation: to.Ptr("Get search schema V2."), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("analytics"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/purge/action"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Delete specified data from workspace"), // Operation: to.Ptr("Delete specified data from workspace"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("analytics"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/linkTargets/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Lists existing accounts that are not associated with an Azure subscription. To link this Azure subscription to a workspace, use a customer id returned by this operation in the customer id property of the Create Workspace operation."), // Operation: to.Ptr("List Unlinked Accounts"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Unlinked Account"), // }, // }, // { // Name: to.Ptr("Microsoft.OperationalInsights/workspaces/metricDefinitions/read"), // Display: &armoperationalinsights.OperationDisplay{ // Description: to.Ptr("Get Metric Definitions under workspace"), // Operation: to.Ptr("Metric Definition operation"), // Provider: to.Ptr("Microsoft Operational Insights"), // Resource: to.Ptr("Metric Definitions"), // }, // }}, // } } }
Output:
type OperationsClientListOptions ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶ added in v0.3.0
type OperationsClientListResponse struct { // Result of the request to list solution operations. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type PrivateLinkScopedResource ¶
type PrivateLinkScopedResource struct { // The full resource Id of the private link scope resource. ResourceID *string // The private link scope unique Identifier. ScopeID *string }
PrivateLinkScopedResource - The private link scope resource reference.
func (PrivateLinkScopedResource) MarshalJSON ¶ added in v1.1.0
func (p PrivateLinkScopedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkScopedResource.
func (*PrivateLinkScopedResource) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateLinkScopedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkScopedResource.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
func (ProxyResource) MarshalJSON ¶ added in v1.1.0
func (p ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProxyResource.
func (*ProxyResource) UnmarshalJSON ¶ added in v1.1.0
func (p *ProxyResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.
type PublicNetworkAccessType ¶
type PublicNetworkAccessType string
PublicNetworkAccessType - The network access type for operating on the Log Analytics Workspace. By default it is Enabled
const ( // PublicNetworkAccessTypeDisabled - Disables public connectivity to Log Analytics through public DNS. PublicNetworkAccessTypeDisabled PublicNetworkAccessType = "Disabled" // PublicNetworkAccessTypeEnabled - Enables connectivity to Log Analytics through public DNS. PublicNetworkAccessTypeEnabled PublicNetworkAccessType = "Enabled" )
func PossiblePublicNetworkAccessTypeValues ¶
func PossiblePublicNetworkAccessTypeValues() []PublicNetworkAccessType
PossiblePublicNetworkAccessTypeValues returns the possible values for the PublicNetworkAccessType const type.
type PurgeState ¶
type PurgeState string
PurgeState - Status of the operation represented by the requested Id.
const ( PurgeStateCompleted PurgeState = "completed" PurgeStatePending PurgeState = "pending" )
func PossiblePurgeStateValues ¶
func PossiblePurgeStateValues() []PurgeState
PossiblePurgeStateValues returns the possible values for the PurgeState const type.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type SKUNameEnum ¶
type SKUNameEnum string
SKUNameEnum - The name of the Service Tier.
const ( SKUNameEnumCapacityReservation SKUNameEnum = "CapacityReservation" SKUNameEnumFree SKUNameEnum = "Free" SKUNameEnumPerGB2018 SKUNameEnum = "PerGB2018" SKUNameEnumPerNode SKUNameEnum = "PerNode" SKUNameEnumPremium SKUNameEnum = "Premium" SKUNameEnumStandalone SKUNameEnum = "Standalone" SKUNameEnumStandard SKUNameEnum = "Standard" )
func PossibleSKUNameEnumValues ¶
func PossibleSKUNameEnumValues() []SKUNameEnum
PossibleSKUNameEnumValues returns the possible values for the SKUNameEnum const type.
type SavedSearch ¶
type SavedSearch struct { // REQUIRED; The properties of the saved search. Properties *SavedSearchProperties // The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
SavedSearch - Value object for saved search results.
func (SavedSearch) MarshalJSON ¶
func (s SavedSearch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SavedSearch.
func (*SavedSearch) UnmarshalJSON ¶ added in v1.1.0
func (s *SavedSearch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SavedSearch.
type SavedSearchProperties ¶
type SavedSearchProperties struct { // REQUIRED; The category of the saved search. This helps the user to find a saved search faster. Category *string // REQUIRED; Saved search display name. DisplayName *string // REQUIRED; The query expression for the saved search. Query *string // The function alias if query serves as a function. FunctionAlias *string // The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 // = defaultvalue1, param-name2:type2 = defaultvalue2'. For more examples and // proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions. FunctionParameters *string // The tags attached to the saved search. Tags []*Tag // The version number of the query language. The current version is 2 and is the default. Version *int64 }
SavedSearchProperties - Value object for saved search results.
func (SavedSearchProperties) MarshalJSON ¶
func (s SavedSearchProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SavedSearchProperties.
func (*SavedSearchProperties) UnmarshalJSON ¶ added in v1.1.0
func (s *SavedSearchProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SavedSearchProperties.
type SavedSearchesClient ¶
type SavedSearchesClient struct {
// contains filtered or unexported fields
}
SavedSearchesClient contains the methods for the SavedSearches group. Don't use this type directly, use NewSavedSearchesClient() instead.
func NewSavedSearchesClient ¶
func NewSavedSearchesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SavedSearchesClient, error)
NewSavedSearchesClient creates a new instance of SavedSearchesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SavedSearchesClient) CreateOrUpdate ¶
func (client *SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, parameters SavedSearch, options *SavedSearchesClientCreateOrUpdateOptions) (SavedSearchesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a saved search for a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- savedSearchID - The id of the saved search.
- parameters - The parameters required to save a search.
- options - SavedSearchesClientCreateOrUpdateOptions contains the optional parameters for the SavedSearchesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSavedSearchesClient().CreateOrUpdate(ctx, "TestRG", "TestWS", "00000000-0000-0000-0000-00000000000", armoperationalinsights.SavedSearch{ Properties: &armoperationalinsights.SavedSearchProperties{ Category: to.Ptr("Saved Search Test Category"), DisplayName: to.Ptr("Create or Update Saved Search Test"), FunctionAlias: to.Ptr("heartbeat_func"), FunctionParameters: to.Ptr("a:int=1"), Query: to.Ptr("Heartbeat | summarize Count() by Computer | take a"), Tags: []*armoperationalinsights.Tag{ { Name: to.Ptr("Group"), Value: to.Ptr("Computer"), }}, Version: to.Ptr[int64](2), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SavedSearch = armoperationalinsights.SavedSearch{ // ID: to.Ptr("subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\""), // Properties: &armoperationalinsights.SavedSearchProperties{ // Category: to.Ptr("Saved Search Test Category"), // DisplayName: to.Ptr("Create or Update Saved Search Test"), // FunctionAlias: to.Ptr("heartbeat_func"), // FunctionParameters: to.Ptr("a:int=1"), // Query: to.Ptr("Heartbeat | summarize Count() by Computer | take a"), // Version: to.Ptr[int64](2), // }, // } }
Output:
func (*SavedSearchesClient) Delete ¶
func (client *SavedSearchesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, options *SavedSearchesClientDeleteOptions) (SavedSearchesClientDeleteResponse, error)
Delete - Deletes the specified saved search in a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- savedSearchID - The id of the saved search.
- options - SavedSearchesClientDeleteOptions contains the optional parameters for the SavedSearchesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesDeleteSavedSearches.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewSavedSearchesClient().Delete(ctx, "TestRG", "TestWS", "00000000-0000-0000-0000-00000000000", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SavedSearchesClient) Get ¶
func (client *SavedSearchesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, options *SavedSearchesClientGetOptions) (SavedSearchesClientGetResponse, error)
Get - Gets the specified saved search for a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- savedSearchID - The id of the saved search.
- options - SavedSearchesClientGetOptions contains the optional parameters for the SavedSearchesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesSavedSearchesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSavedSearchesClient().Get(ctx, "TestRG", "TestWS", "00000000-0000-0000-0000-00000000000", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SavedSearch = armoperationalinsights.SavedSearch{ // ID: to.Ptr("subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015"), // Etag: to.Ptr("W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\""), // Properties: &armoperationalinsights.SavedSearchProperties{ // Category: to.Ptr(" Saved Search Test Category"), // DisplayName: to.Ptr("Create or Update Saved Search Test"), // FunctionAlias: to.Ptr("heartbeat_func"), // FunctionParameters: to.Ptr("a:int=1"), // Query: to.Ptr("* | measure Count() by Computer | take a"), // Version: to.Ptr[int64](1), // }, // } }
Output:
func (*SavedSearchesClient) ListByWorkspace ¶
func (client *SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, options *SavedSearchesClientListByWorkspaceOptions) (SavedSearchesClientListByWorkspaceResponse, error)
ListByWorkspace - Gets the saved searches for a given Log Analytics Workspace If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - SavedSearchesClientListByWorkspaceOptions contains the optional parameters for the SavedSearchesClient.ListByWorkspace method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/SavedSearchesListByWorkspace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSavedSearchesClient().ListByWorkspace(ctx, "TestRG", "TestWS", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SavedSearchesListResult = armoperationalinsights.SavedSearchesListResult{ // } }
Output:
type SavedSearchesClientCreateOrUpdateOptions ¶ added in v0.3.0
type SavedSearchesClientCreateOrUpdateOptions struct { }
SavedSearchesClientCreateOrUpdateOptions contains the optional parameters for the SavedSearchesClient.CreateOrUpdate method.
type SavedSearchesClientCreateOrUpdateResponse ¶ added in v0.3.0
type SavedSearchesClientCreateOrUpdateResponse struct { // Value object for saved search results. SavedSearch }
SavedSearchesClientCreateOrUpdateResponse contains the response from method SavedSearchesClient.CreateOrUpdate.
type SavedSearchesClientDeleteOptions ¶ added in v0.3.0
type SavedSearchesClientDeleteOptions struct { }
SavedSearchesClientDeleteOptions contains the optional parameters for the SavedSearchesClient.Delete method.
type SavedSearchesClientDeleteResponse ¶ added in v0.3.0
type SavedSearchesClientDeleteResponse struct { }
SavedSearchesClientDeleteResponse contains the response from method SavedSearchesClient.Delete.
type SavedSearchesClientGetOptions ¶ added in v0.3.0
type SavedSearchesClientGetOptions struct { }
SavedSearchesClientGetOptions contains the optional parameters for the SavedSearchesClient.Get method.
type SavedSearchesClientGetResponse ¶ added in v0.3.0
type SavedSearchesClientGetResponse struct { // Value object for saved search results. SavedSearch }
SavedSearchesClientGetResponse contains the response from method SavedSearchesClient.Get.
type SavedSearchesClientListByWorkspaceOptions ¶ added in v0.3.0
type SavedSearchesClientListByWorkspaceOptions struct { }
SavedSearchesClientListByWorkspaceOptions contains the optional parameters for the SavedSearchesClient.ListByWorkspace method.
type SavedSearchesClientListByWorkspaceResponse ¶ added in v0.3.0
type SavedSearchesClientListByWorkspaceResponse struct { // The saved search list operation response. SavedSearchesListResult }
SavedSearchesClientListByWorkspaceResponse contains the response from method SavedSearchesClient.ListByWorkspace.
type SavedSearchesListResult ¶
type SavedSearchesListResult struct { // The array of result values. Value []*SavedSearch }
SavedSearchesListResult - The saved search list operation response.
func (SavedSearchesListResult) MarshalJSON ¶
func (s SavedSearchesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SavedSearchesListResult.
func (*SavedSearchesListResult) UnmarshalJSON ¶ added in v1.1.0
func (s *SavedSearchesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SavedSearchesListResult.
type SchemaClient ¶
type SchemaClient struct {
// contains filtered or unexported fields
}
SchemaClient contains the methods for the Schema group. Don't use this type directly, use NewSchemaClient() instead.
func NewSchemaClient ¶
func NewSchemaClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SchemaClient, error)
NewSchemaClient creates a new instance of SchemaClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SchemaClient) Get ¶
func (client *SchemaClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *SchemaClientGetOptions) (SchemaClientGetResponse, error)
Get - Gets the schema for a given workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - SchemaClientGetOptions contains the optional parameters for the SchemaClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/SavedSearchesGetSchema.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSchemaClient().Get(ctx, "mms-eus", "atlantisdemo", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SearchGetSchemaResponse = armoperationalinsights.SearchGetSchemaResponse{ // Metadata: &armoperationalinsights.SearchMetadata{ // Schema: &armoperationalinsights.SearchMetadataSchema{ // Name: to.Ptr("CloudOps"), // Version: to.Ptr[int32](2), // }, // RequestTime: to.Ptr[int64](28), // ResultType: to.Ptr("schema"), // }, // Value: []*armoperationalinsights.SearchSchemaValue{ // { // Name: to.Ptr("TenantId"), // Type: to.Ptr("Guid"), // DisplayName: to.Ptr("TenantId"), // Facet: to.Ptr(false), // Indexed: to.Ptr(true), // OwnerType: []*string{ // to.Ptr("Alert"), // to.Ptr("AzureActivity"), // to.Ptr("AzureAudit"), // to.Ptr("AzureMetrics"), // to.Ptr("ComputerGroup"), // to.Ptr("ETWEvent"), // to.Ptr("Event"), // to.Ptr("ExtraHopDBLogin"), // to.Ptr("ExtraHopDBTransaction"), // to.Ptr("ExtraHopDNSResponse"), // to.Ptr("ExtraHopFTPResponse"), // to.Ptr("ExtraHopHTTPTransaction"), // to.Ptr("ExtraHopSMTPMessage"), // to.Ptr("ExtraHopSYNScanDetect"), // to.Ptr("ExtraHopTCPOpen"), // to.Ptr("Heartbeat"), // to.Ptr("Operation"), // to.Ptr("Perf"), // to.Ptr("ReservedAzureCommonFields"), // to.Ptr("ReservedCommonFields"), // to.Ptr("ServiceFabricOperationalEvent"), // to.Ptr("ServiceFabricReliableActorEvent"), // to.Ptr("ServiceFabricReliableServiceEvent"), // to.Ptr("Syslog"), // to.Ptr("Usage"), // to.Ptr("W3CIISLog")}, // Stored: to.Ptr(false), // }}, // } }
Output:
type SchemaClientGetOptions ¶ added in v0.3.0
type SchemaClientGetOptions struct { }
SchemaClientGetOptions contains the optional parameters for the SchemaClient.Get method.
type SchemaClientGetResponse ¶ added in v0.3.0
type SchemaClientGetResponse struct { // The get schema operation response. SearchGetSchemaResponse }
SchemaClientGetResponse contains the response from method SchemaClient.Get.
type SearchGetSchemaResponse ¶
type SearchGetSchemaResponse struct { // The metadata from search results. Metadata *SearchMetadata // The array of result values. Value []*SearchSchemaValue }
SearchGetSchemaResponse - The get schema operation response.
func (SearchGetSchemaResponse) MarshalJSON ¶
func (s SearchGetSchemaResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SearchGetSchemaResponse.
func (*SearchGetSchemaResponse) UnmarshalJSON ¶ added in v1.1.0
func (s *SearchGetSchemaResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SearchGetSchemaResponse.
type SearchMetadata ¶
type SearchMetadata struct { // The aggregated grouping fields. AggregatedGroupingFields *string // The aggregated value field. AggregatedValueField *string // The core summaries. CoreSummaries []*CoreSummary // The ETag of the search results. ETag *string // The id of the search results request. ID *string // The time of last update. LastUpdated *time.Time // The max of all aggregates returned in the result set. Max *int64 // The request time. RequestTime *int64 // The search result type. ResultType *string // The schema. Schema *SearchMetadataSchema // The request id of the search. SearchID *string // How the results are sorted. Sort []*SearchSort // The start time for the search. StartTime *time.Time // The status of the search results. Status *string // The sum of all aggregates returned in the result set. Sum *int64 // The number of top search results. Top *int64 // The total number of search results. Total *int64 }
SearchMetadata - Metadata for search results.
func (SearchMetadata) MarshalJSON ¶
func (s SearchMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SearchMetadata.
func (*SearchMetadata) UnmarshalJSON ¶
func (s *SearchMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SearchMetadata.
type SearchMetadataSchema ¶
type SearchMetadataSchema struct { // The name of the metadata schema. Name *string // The version of the metadata schema. Version *int32 }
SearchMetadataSchema - Schema metadata for search.
func (SearchMetadataSchema) MarshalJSON ¶ added in v1.1.0
func (s SearchMetadataSchema) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SearchMetadataSchema.
func (*SearchMetadataSchema) UnmarshalJSON ¶ added in v1.1.0
func (s *SearchMetadataSchema) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SearchMetadataSchema.
type SearchSchemaValue ¶
type SearchSchemaValue struct { // REQUIRED; The boolean that indicates whether or not the field is a facet. Facet *bool // REQUIRED; The boolean that indicates the field is searchable as free text. Indexed *bool // REQUIRED; The boolean that indicates whether or not the field is stored. Stored *bool // The display name of the schema. DisplayName *string // The name of the schema. Name *string // The array of workflows containing the field. OwnerType []*string // The type. Type *string }
SearchSchemaValue - Value object for schema results.
func (SearchSchemaValue) MarshalJSON ¶
func (s SearchSchemaValue) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SearchSchemaValue.
func (*SearchSchemaValue) UnmarshalJSON ¶ added in v1.1.0
func (s *SearchSchemaValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SearchSchemaValue.
type SearchSort ¶
type SearchSort struct { // The name of the field the search query is sorted on. Name *string // The sort order of the search. Order *SearchSortEnum }
SearchSort - The sort parameters for search.
func (SearchSort) MarshalJSON ¶ added in v1.1.0
func (s SearchSort) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SearchSort.
func (*SearchSort) UnmarshalJSON ¶ added in v1.1.0
func (s *SearchSort) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SearchSort.
type SearchSortEnum ¶
type SearchSortEnum string
SearchSortEnum - The sort order of the search.
const ( SearchSortEnumAsc SearchSortEnum = "asc" SearchSortEnumDesc SearchSortEnum = "desc" )
func PossibleSearchSortEnumValues ¶
func PossibleSearchSortEnumValues() []SearchSortEnum
PossibleSearchSortEnumValues returns the possible values for the SearchSortEnum const type.
type SharedKeys ¶
SharedKeys - The shared keys for a workspace.
func (SharedKeys) MarshalJSON ¶ added in v1.1.0
func (s SharedKeys) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SharedKeys.
func (*SharedKeys) UnmarshalJSON ¶ added in v1.1.0
func (s *SharedKeys) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SharedKeys.
type SharedKeysClient ¶
type SharedKeysClient struct {
// contains filtered or unexported fields
}
SharedKeysClient contains the methods for the SharedKeys group. Don't use this type directly, use NewSharedKeysClient() instead.
func NewSharedKeysClient ¶
func NewSharedKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedKeysClient, error)
NewSharedKeysClient creates a new instance of SharedKeysClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SharedKeysClient) GetSharedKeys ¶
func (client *SharedKeysClient) GetSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string, options *SharedKeysClientGetSharedKeysOptions) (SharedKeysClientGetSharedKeysResponse, error)
GetSharedKeys - Gets the shared keys for a workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - SharedKeysClientGetSharedKeysOptions contains the optional parameters for the SharedKeysClient.GetSharedKeys method.
func (*SharedKeysClient) Regenerate ¶
func (client *SharedKeysClient) Regenerate(ctx context.Context, resourceGroupName string, workspaceName string, options *SharedKeysClientRegenerateOptions) (SharedKeysClientRegenerateResponse, error)
Regenerate - Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - SharedKeysClientRegenerateOptions contains the optional parameters for the SharedKeysClient.Regenerate method.
type SharedKeysClientGetSharedKeysOptions ¶ added in v0.3.0
type SharedKeysClientGetSharedKeysOptions struct { }
SharedKeysClientGetSharedKeysOptions contains the optional parameters for the SharedKeysClient.GetSharedKeys method.
type SharedKeysClientGetSharedKeysResponse ¶ added in v0.3.0
type SharedKeysClientGetSharedKeysResponse struct { SharedKeys }
SharedKeysClientGetSharedKeysResponse contains the response from method SharedKeysClient.GetSharedKeys.
type SharedKeysClientRegenerateOptions ¶ added in v0.3.0
type SharedKeysClientRegenerateOptions struct { }
SharedKeysClientRegenerateOptions contains the optional parameters for the SharedKeysClient.Regenerate method.
type SharedKeysClientRegenerateResponse ¶ added in v0.3.0
type SharedKeysClientRegenerateResponse struct { SharedKeys }
SharedKeysClientRegenerateResponse contains the response from method SharedKeysClient.Regenerate.
type StorageAccount ¶
type StorageAccount struct { // REQUIRED; The Azure Resource Manager ID of the storage account resource. ID *string // REQUIRED; The storage account key. Key *string }
StorageAccount - Describes a storage account connection.
func (StorageAccount) MarshalJSON ¶ added in v1.1.0
func (s StorageAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccount.
func (*StorageAccount) UnmarshalJSON ¶ added in v1.1.0
func (s *StorageAccount) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccount.
type StorageInsight ¶
type StorageInsight struct { // The ETag of the storage insight. ETag *string // Storage insight properties. Properties *StorageInsightProperties // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
StorageInsight - The top level storage insight resource container.
func (StorageInsight) MarshalJSON ¶
func (s StorageInsight) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageInsight.
func (*StorageInsight) UnmarshalJSON ¶ added in v1.1.0
func (s *StorageInsight) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageInsight.
type StorageInsightConfigsClient ¶
type StorageInsightConfigsClient struct {
// contains filtered or unexported fields
}
StorageInsightConfigsClient contains the methods for the StorageInsightConfigs group. Don't use this type directly, use NewStorageInsightConfigsClient() instead.
func NewStorageInsightConfigsClient ¶
func NewStorageInsightConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageInsightConfigsClient, error)
NewStorageInsightConfigsClient creates a new instance of StorageInsightConfigsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*StorageInsightConfigsClient) CreateOrUpdate ¶
func (client *StorageInsightConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string, parameters StorageInsight, options *StorageInsightConfigsClientCreateOrUpdateOptions) (StorageInsightConfigsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update a storage insight. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- storageInsightName - Name of the storageInsightsConfigs resource
- parameters - The parameters required to create or update a storage insight.
- options - StorageInsightConfigsClientCreateOrUpdateOptions contains the optional parameters for the StorageInsightConfigsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsCreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewStorageInsightConfigsClient().CreateOrUpdate(ctx, "OIAutoRest5123", "aztest5048", "AzTestSI1110", armoperationalinsights.StorageInsight{ Properties: &armoperationalinsights.StorageInsightProperties{ Containers: []*string{ to.Ptr("wad-iis-logfiles")}, StorageAccount: &armoperationalinsights.StorageAccount{ ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945"), Key: to.Ptr("1234"), }, Tables: []*string{ to.Ptr("WADWindowsEventLogsTable"), to.Ptr("LinuxSyslogVer2v0")}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.StorageInsight = armoperationalinsights.StorageInsight{ // Name: to.Ptr("AzTestSI1110"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/storageinsightconfigs"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6987/providers/microsoft.operationalinsights/workspaces/aztest5048/storageinsightconfigs/AzTestSI1110"), // Properties: &armoperationalinsights.StorageInsightProperties{ // Containers: []*string{ // to.Ptr("wad-iis-logfiles")}, // Status: &armoperationalinsights.StorageInsightStatus{ // State: to.Ptr(armoperationalinsights.StorageInsightStateOK), // }, // StorageAccount: &armoperationalinsights.StorageAccount{ // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945"), // Key: to.Ptr("Storage Key"), // }, // Tables: []*string{ // to.Ptr("WADWindowsEventLogsTable"), // to.Ptr("LinuxSyslogVer2v0")}, // }, // } }
Output:
func (*StorageInsightConfigsClient) Delete ¶
func (client *StorageInsightConfigsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string, options *StorageInsightConfigsClientDeleteOptions) (StorageInsightConfigsClientDeleteResponse, error)
Delete - Deletes a storageInsightsConfigs resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- storageInsightName - Name of the storageInsightsConfigs resource
- options - StorageInsightConfigsClientDeleteOptions contains the optional parameters for the StorageInsightConfigsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewStorageInsightConfigsClient().Delete(ctx, "OIAutoRest5123", "aztest5048", "AzTestSI1110", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*StorageInsightConfigsClient) Get ¶
func (client *StorageInsightConfigsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string, options *StorageInsightConfigsClientGetOptions) (StorageInsightConfigsClientGetResponse, error)
Get - Gets a storage insight instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- storageInsightName - Name of the storageInsightsConfigs resource
- options - StorageInsightConfigsClientGetOptions contains the optional parameters for the StorageInsightConfigsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewStorageInsightConfigsClient().Get(ctx, "OIAutoRest5123", "aztest5048", "AzTestSI1110", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.StorageInsight = armoperationalinsights.StorageInsight{ // Name: to.Ptr("AzTestSI1110"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces/storageinsightconfigs"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6987/providers/microsoft.operationalinsights/workspaces/aztest5048/storageinsightconfigs/AzTestSI1110"), // Properties: &armoperationalinsights.StorageInsightProperties{ // Containers: []*string{ // to.Ptr("wad-iis-logfiles")}, // Status: &armoperationalinsights.StorageInsightStatus{ // State: to.Ptr(armoperationalinsights.StorageInsightStateOK), // }, // StorageAccount: &armoperationalinsights.StorageAccount{ // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945"), // Key: to.Ptr("Storage Account Key"), // }, // Tables: []*string{ // to.Ptr("WADWindowsEventLogsTable"), // to.Ptr("LinuxSyslogVer2v0")}, // }, // } }
Output:
func (*StorageInsightConfigsClient) NewListByWorkspacePager ¶ added in v0.5.0
func (client *StorageInsightConfigsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *StorageInsightConfigsClientListByWorkspaceOptions) *runtime.Pager[StorageInsightConfigsClientListByWorkspaceResponse]
NewListByWorkspacePager - Lists the storage insight instances within a workspace
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - StorageInsightConfigsClientListByWorkspaceOptions contains the optional parameters for the StorageInsightConfigsClient.NewListByWorkspacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsListByWorkspace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewStorageInsightConfigsClient().NewListByWorkspacePager("OIAutoRest5123", "aztest5048", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.StorageInsightListResult = armoperationalinsights.StorageInsightListResult{ // } } }
Output:
type StorageInsightConfigsClientCreateOrUpdateOptions ¶ added in v0.3.0
type StorageInsightConfigsClientCreateOrUpdateOptions struct { }
StorageInsightConfigsClientCreateOrUpdateOptions contains the optional parameters for the StorageInsightConfigsClient.CreateOrUpdate method.
type StorageInsightConfigsClientCreateOrUpdateResponse ¶ added in v0.3.0
type StorageInsightConfigsClientCreateOrUpdateResponse struct { // The top level storage insight resource container. StorageInsight }
StorageInsightConfigsClientCreateOrUpdateResponse contains the response from method StorageInsightConfigsClient.CreateOrUpdate.
type StorageInsightConfigsClientDeleteOptions ¶ added in v0.3.0
type StorageInsightConfigsClientDeleteOptions struct { }
StorageInsightConfigsClientDeleteOptions contains the optional parameters for the StorageInsightConfigsClient.Delete method.
type StorageInsightConfigsClientDeleteResponse ¶ added in v0.3.0
type StorageInsightConfigsClientDeleteResponse struct { }
StorageInsightConfigsClientDeleteResponse contains the response from method StorageInsightConfigsClient.Delete.
type StorageInsightConfigsClientGetOptions ¶ added in v0.3.0
type StorageInsightConfigsClientGetOptions struct { }
StorageInsightConfigsClientGetOptions contains the optional parameters for the StorageInsightConfigsClient.Get method.
type StorageInsightConfigsClientGetResponse ¶ added in v0.3.0
type StorageInsightConfigsClientGetResponse struct { // The top level storage insight resource container. StorageInsight }
StorageInsightConfigsClientGetResponse contains the response from method StorageInsightConfigsClient.Get.
type StorageInsightConfigsClientListByWorkspaceOptions ¶ added in v0.3.0
type StorageInsightConfigsClientListByWorkspaceOptions struct { }
StorageInsightConfigsClientListByWorkspaceOptions contains the optional parameters for the StorageInsightConfigsClient.NewListByWorkspacePager method.
type StorageInsightConfigsClientListByWorkspaceResponse ¶ added in v0.3.0
type StorageInsightConfigsClientListByWorkspaceResponse struct { // The list storage insights operation response. StorageInsightListResult }
StorageInsightConfigsClientListByWorkspaceResponse contains the response from method StorageInsightConfigsClient.NewListByWorkspacePager.
type StorageInsightListResult ¶
type StorageInsightListResult struct { // The link (url) to the next page of results. ODataNextLink *string // A list of storage insight items. Value []*StorageInsight }
StorageInsightListResult - The list storage insights operation response.
func (StorageInsightListResult) MarshalJSON ¶
func (s StorageInsightListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageInsightListResult.
func (*StorageInsightListResult) UnmarshalJSON ¶ added in v1.1.0
func (s *StorageInsightListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageInsightListResult.
type StorageInsightProperties ¶
type StorageInsightProperties struct { // REQUIRED; The storage account connection details StorageAccount *StorageAccount // The names of the blob containers that the workspace should read Containers []*string // The names of the Azure tables that the workspace should read Tables []*string // READ-ONLY; The status of the storage insight Status *StorageInsightStatus }
StorageInsightProperties - Storage insight properties.
func (StorageInsightProperties) MarshalJSON ¶
func (s StorageInsightProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageInsightProperties.
func (*StorageInsightProperties) UnmarshalJSON ¶ added in v1.1.0
func (s *StorageInsightProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageInsightProperties.
type StorageInsightState ¶
type StorageInsightState string
StorageInsightState - The state of the storage insight connection to the workspace
const ( StorageInsightStateERROR StorageInsightState = "ERROR" StorageInsightStateOK StorageInsightState = "OK" )
func PossibleStorageInsightStateValues ¶
func PossibleStorageInsightStateValues() []StorageInsightState
PossibleStorageInsightStateValues returns the possible values for the StorageInsightState const type.
type StorageInsightStatus ¶
type StorageInsightStatus struct { // REQUIRED; The state of the storage insight connection to the workspace State *StorageInsightState // Description of the state of the storage insight. Description *string }
StorageInsightStatus - The status of the storage insight.
func (StorageInsightStatus) MarshalJSON ¶ added in v1.1.0
func (s StorageInsightStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageInsightStatus.
func (*StorageInsightStatus) UnmarshalJSON ¶ added in v1.1.0
func (s *StorageInsightStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageInsightStatus.
type Table ¶ added in v0.3.0
type Table struct { // Table properties. Properties *TableProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Table - Workspace data table definition.
func (Table) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Table.
func (*Table) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Table.
type TableProperties ¶ added in v0.3.0
type TableProperties struct { // The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace // retention. RetentionInDays *int32 }
TableProperties - Table properties.
func (TableProperties) MarshalJSON ¶ added in v1.1.0
func (t TableProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableProperties.
func (*TableProperties) UnmarshalJSON ¶ added in v1.1.0
func (t *TableProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableProperties.
type TablesClient ¶ added in v0.3.0
type TablesClient struct {
// contains filtered or unexported fields
}
TablesClient contains the methods for the Tables group. Don't use this type directly, use NewTablesClient() instead.
func NewTablesClient ¶ added in v0.3.0
func NewTablesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TablesClient, error)
NewTablesClient creates a new instance of TablesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TablesClient) Get ¶ added in v0.3.0
func (client *TablesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, options *TablesClientGetOptions) (TablesClientGetResponse, error)
Get - Gets a Log Analytics workspace table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- tableName - The name of the table.
- options - TablesClientGetOptions contains the optional parameters for the TablesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/TablesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewTablesClient().Get(ctx, "oiautorest6685", "oiautorest6685", "table1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Table = armoperationalinsights.Table{ // Name: to.Ptr("table1"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1"), // Properties: &armoperationalinsights.TableProperties{ // RetentionInDays: to.Ptr[int32](30), // }, // } }
Output:
func (*TablesClient) NewListByWorkspacePager ¶ added in v0.5.0
func (client *TablesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *TablesClientListByWorkspaceOptions) *runtime.Pager[TablesClientListByWorkspaceResponse]
NewListByWorkspacePager - Gets all the tables for the specified Log Analytics workspace.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - TablesClientListByWorkspaceOptions contains the optional parameters for the TablesClient.NewListByWorkspacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/TablesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTablesClient().NewListByWorkspacePager("oiautorest6685", "oiautorest6685", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.TablesListResult = armoperationalinsights.TablesListResult{ // Value: []*armoperationalinsights.Table{ // { // Name: to.Ptr("table1"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1"), // Properties: &armoperationalinsights.TableProperties{ // RetentionInDays: to.Ptr[int32](30), // }, // }, // { // Name: to.Ptr("table2"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table2"), // Properties: &armoperationalinsights.TableProperties{ // RetentionInDays: to.Ptr[int32](30), // }, // }, // { // Name: to.Ptr("table3"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table3"), // Properties: &armoperationalinsights.TableProperties{ // RetentionInDays: to.Ptr[int32](30), // }, // }}, // } } }
Output:
func (*TablesClient) Update ¶ added in v1.0.0
func (client *TablesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, parameters Table, options *TablesClientUpdateOptions) (TablesClientUpdateResponse, error)
Update - Updates a Log Analytics workspace table properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- tableName - The name of the table.
- parameters - The parameters required to update table properties.
- options - TablesClientUpdateOptions contains the optional parameters for the TablesClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/TablesUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewTablesClient().Update(ctx, "oiautorest6685", "oiautorest6685", "table1", armoperationalinsights.Table{ Properties: &armoperationalinsights.TableProperties{ RetentionInDays: to.Ptr[int32](30), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Table = armoperationalinsights.Table{ // Name: to.Ptr("table1"), // ID: to.Ptr("/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1"), // Properties: &armoperationalinsights.TableProperties{ // RetentionInDays: to.Ptr[int32](30), // }, // } }
Output:
type TablesClientGetOptions ¶ added in v0.3.0
type TablesClientGetOptions struct { }
TablesClientGetOptions contains the optional parameters for the TablesClient.Get method.
type TablesClientGetResponse ¶ added in v0.3.0
type TablesClientGetResponse struct { // Workspace data table definition. Table }
TablesClientGetResponse contains the response from method TablesClient.Get.
type TablesClientListByWorkspaceOptions ¶ added in v0.3.0
type TablesClientListByWorkspaceOptions struct { }
TablesClientListByWorkspaceOptions contains the optional parameters for the TablesClient.NewListByWorkspacePager method.
type TablesClientListByWorkspaceResponse ¶ added in v0.3.0
type TablesClientListByWorkspaceResponse struct { // The list tables operation response. TablesListResult }
TablesClientListByWorkspaceResponse contains the response from method TablesClient.NewListByWorkspacePager.
type TablesClientUpdateOptions ¶ added in v1.0.0
type TablesClientUpdateOptions struct { }
TablesClientUpdateOptions contains the optional parameters for the TablesClient.Update method.
type TablesClientUpdateResponse ¶ added in v0.3.0
type TablesClientUpdateResponse struct { // Workspace data table definition. Table }
TablesClientUpdateResponse contains the response from method TablesClient.Update.
type TablesListResult ¶ added in v0.3.0
type TablesListResult struct { // A list of data tables. Value []*Table }
TablesListResult - The list tables operation response.
func (TablesListResult) MarshalJSON ¶ added in v0.3.0
func (t TablesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TablesListResult.
func (*TablesListResult) UnmarshalJSON ¶ added in v1.1.0
func (t *TablesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TablesListResult.
type Tag ¶
type Tag struct { // REQUIRED; The tag name. Name *string // REQUIRED; The tag value. Value *string }
Tag - A tag of a saved search.
func (Tag) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Tag.
func (*Tag) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Tag.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
func (*TrackedResource) UnmarshalJSON ¶ added in v1.1.0
func (t *TrackedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.
type Type ¶
type Type string
Type - The type of the destination resource
func PossibleTypeValues ¶
func PossibleTypeValues() []Type
PossibleTypeValues returns the possible values for the Type const type.
type UsageMetric ¶
type UsageMetric struct { // The current value of the metric. CurrentValue *float64 // The quota limit for the metric. Limit *float64 // The name of the metric. Name *MetricName // The time that the metric's value will reset. NextResetTime *time.Time // The quota period that determines the length of time between value resets. QuotaPeriod *string // The units used for the metric. Unit *string }
UsageMetric - A metric describing the usage of a resource.
func (UsageMetric) MarshalJSON ¶
func (u UsageMetric) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UsageMetric.
func (*UsageMetric) UnmarshalJSON ¶
func (u *UsageMetric) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UsageMetric.
type UsagesClient ¶
type UsagesClient struct {
// contains filtered or unexported fields
}
UsagesClient contains the methods for the Usages group. Don't use this type directly, use NewUsagesClient() instead.
func NewUsagesClient ¶
func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error)
NewUsagesClient creates a new instance of UsagesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*UsagesClient) NewListPager ¶ added in v0.5.0
func (client *UsagesClient) NewListPager(resourceGroupName string, workspaceName string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse]
NewListPager - Gets a list of usage metrics for a workspace.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListUsages.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewUsagesClient().NewListPager("rg1", "TestLinkWS", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.WorkspaceListUsagesResult = armoperationalinsights.WorkspaceListUsagesResult{ // Value: []*armoperationalinsights.UsageMetric{ // { // Name: &armoperationalinsights.MetricName{ // LocalizedValue: to.Ptr("Data Analyzed"), // Value: to.Ptr("DataAnalyzed"), // }, // CurrentValue: to.Ptr[float64](0), // Limit: to.Ptr[float64](524288000), // NextResetTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-03T00:00:00.000Z"); return t}()), // QuotaPeriod: to.Ptr("P1D"), // Unit: to.Ptr("Bytes"), // }}, // } } }
Output:
type UsagesClientListOptions ¶ added in v0.3.0
type UsagesClientListOptions struct { }
UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method.
type UsagesClientListResponse ¶ added in v0.3.0
type UsagesClientListResponse struct { // The list workspace usages operation response. WorkspaceListUsagesResult }
UsagesClientListResponse contains the response from method UsagesClient.NewListPager.
type UserIdentityProperties ¶
type UserIdentityProperties struct { // READ-ONLY; The client id of user assigned identity. ClientID *string // READ-ONLY; The principal id of user assigned identity. PrincipalID *string }
UserIdentityProperties - User assigned identity properties.
func (UserIdentityProperties) MarshalJSON ¶ added in v1.1.0
func (u UserIdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserIdentityProperties.
func (*UserIdentityProperties) UnmarshalJSON ¶ added in v1.1.0
func (u *UserIdentityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserIdentityProperties.
type Workspace ¶
type Workspace struct { // REQUIRED; The geo-location where the resource lives Location *string // The etag of the workspace. Etag *string // Workspace properties. Properties *WorkspaceProperties // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Workspace - The top level Workspace resource container.
func (Workspace) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Workspace.
func (*Workspace) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Workspace.
type WorkspaceCapping ¶
type WorkspaceCapping struct { // The workspace daily quota for ingestion. DailyQuotaGb *float64 // READ-ONLY; The status of data ingestion for this workspace. DataIngestionStatus *DataIngestionStatus // READ-ONLY; The time when the quota will be rest. QuotaNextResetTime *string }
WorkspaceCapping - The daily volume cap for ingestion.
func (WorkspaceCapping) MarshalJSON ¶ added in v1.1.0
func (w WorkspaceCapping) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceCapping.
func (*WorkspaceCapping) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspaceCapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceCapping.
type WorkspaceEntityStatus ¶
type WorkspaceEntityStatus string
WorkspaceEntityStatus - The provisioning state of the workspace.
const ( WorkspaceEntityStatusCanceled WorkspaceEntityStatus = "Canceled" WorkspaceEntityStatusCreating WorkspaceEntityStatus = "Creating" WorkspaceEntityStatusDeleting WorkspaceEntityStatus = "Deleting" WorkspaceEntityStatusFailed WorkspaceEntityStatus = "Failed" WorkspaceEntityStatusProvisioningAccount WorkspaceEntityStatus = "ProvisioningAccount" WorkspaceEntityStatusSucceeded WorkspaceEntityStatus = "Succeeded" WorkspaceEntityStatusUpdating WorkspaceEntityStatus = "Updating" )
func PossibleWorkspaceEntityStatusValues ¶
func PossibleWorkspaceEntityStatusValues() []WorkspaceEntityStatus
PossibleWorkspaceEntityStatusValues returns the possible values for the WorkspaceEntityStatus const type.
type WorkspaceFeatures ¶
type WorkspaceFeatures struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any // Dedicated LA cluster resourceId that is linked to the workspaces. ClusterResourceID *string // Disable Non-AAD based Auth. DisableLocalAuth *bool // Flag that indicate if data should be exported. EnableDataExport *bool // Flag that indicate which permission to use - resource or workspace or both. EnableLogAccessUsingOnlyResourcePermissions *bool // Flag that describes if we want to remove the data after 30 days. ImmediatePurgeDataOn30Days *bool }
WorkspaceFeatures - Workspace features.
func (WorkspaceFeatures) MarshalJSON ¶
func (w WorkspaceFeatures) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceFeatures.
func (*WorkspaceFeatures) UnmarshalJSON ¶
func (w *WorkspaceFeatures) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceFeatures.
type WorkspaceListManagementGroupsResult ¶
type WorkspaceListManagementGroupsResult struct { // Gets or sets a list of management groups attached to the workspace. Value []*ManagementGroup }
WorkspaceListManagementGroupsResult - The list workspace management groups operation response.
func (WorkspaceListManagementGroupsResult) MarshalJSON ¶
func (w WorkspaceListManagementGroupsResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceListManagementGroupsResult.
func (*WorkspaceListManagementGroupsResult) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspaceListManagementGroupsResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceListManagementGroupsResult.
type WorkspaceListResult ¶
type WorkspaceListResult struct { // A list of workspaces. Value []*Workspace }
WorkspaceListResult - The list workspaces operation response.
func (WorkspaceListResult) MarshalJSON ¶
func (w WorkspaceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceListResult.
func (*WorkspaceListResult) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspaceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceListResult.
type WorkspaceListUsagesResult ¶
type WorkspaceListUsagesResult struct { // Gets or sets a list of usage metrics for a workspace. Value []*UsageMetric }
WorkspaceListUsagesResult - The list workspace usages operation response.
func (WorkspaceListUsagesResult) MarshalJSON ¶
func (w WorkspaceListUsagesResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceListUsagesResult.
func (*WorkspaceListUsagesResult) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspaceListUsagesResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceListUsagesResult.
type WorkspacePatch ¶
type WorkspacePatch struct { // Workspace properties. Properties *WorkspaceProperties // Resource tags. Optional. Tags map[string]*string // READ-ONLY; Resource Etag. Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
WorkspacePatch - The top level Workspace resource container.
func (WorkspacePatch) MarshalJSON ¶
func (w WorkspacePatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspacePatch.
func (*WorkspacePatch) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspacePatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePatch.
type WorkspaceProperties ¶
type WorkspaceProperties struct { // Workspace features. Features *WorkspaceFeatures // Indicates whether customer managed storage is mandatory for query management. ForceCmkForQuery *bool // The provisioning state of the workspace. ProvisioningState *WorkspaceEntityStatus // The network access type for accessing Log Analytics ingestion. PublicNetworkAccessForIngestion *PublicNetworkAccessType // The network access type for accessing Log Analytics query. PublicNetworkAccessForQuery *PublicNetworkAccessType // The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. RetentionInDays *int32 // The SKU of the workspace. SKU *WorkspaceSKU // The daily volume cap for ingestion. WorkspaceCapping *WorkspaceCapping // READ-ONLY; Workspace creation date. CreatedDate *string // READ-ONLY; This is a read-only property. Represents the ID associated with the workspace. CustomerID *string // READ-ONLY; Workspace modification date. ModifiedDate *string // READ-ONLY; List of linked private link scope resources. PrivateLinkScopedResources []*PrivateLinkScopedResource }
WorkspaceProperties - Workspace properties.
func (WorkspaceProperties) MarshalJSON ¶
func (w WorkspaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceProperties.
func (*WorkspaceProperties) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspaceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceProperties.
type WorkspacePurgeBody ¶
type WorkspacePurgeBody struct { // REQUIRED; The set of columns and filters (queries) to run over them to purge the resulting data. Filters []*WorkspacePurgeBodyFilters // REQUIRED; Table from which to purge data. Table *string }
WorkspacePurgeBody - Describes the body of a purge request for an App Insights Workspace
func (WorkspacePurgeBody) MarshalJSON ¶
func (w WorkspacePurgeBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeBody.
func (*WorkspacePurgeBody) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspacePurgeBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePurgeBody.
type WorkspacePurgeBodyFilters ¶
type WorkspacePurgeBodyFilters struct { // The column of the table over which the given query should run Column *string // When filtering over custom dimensions, this key will be used as the name of the custom dimension. Key *string // A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, // <=, between, and have the same behavior as they would in a KQL query. Operator *string // the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or // array of values. Value any }
WorkspacePurgeBodyFilters - User-defined filters to return data which will be purged from the table.
func (WorkspacePurgeBodyFilters) MarshalJSON ¶ added in v1.1.0
func (w WorkspacePurgeBodyFilters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeBodyFilters.
func (*WorkspacePurgeBodyFilters) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspacePurgeBodyFilters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePurgeBodyFilters.
type WorkspacePurgeClient ¶
type WorkspacePurgeClient struct {
// contains filtered or unexported fields
}
WorkspacePurgeClient contains the methods for the WorkspacePurge group. Don't use this type directly, use NewWorkspacePurgeClient() instead.
func NewWorkspacePurgeClient ¶
func NewWorkspacePurgeClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacePurgeClient, error)
NewWorkspacePurgeClient creates a new instance of WorkspacePurgeClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WorkspacePurgeClient) GetPurgeStatus ¶
func (client *WorkspacePurgeClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, workspaceName string, purgeID string, options *WorkspacePurgeClientGetPurgeStatusOptions) (WorkspacePurgeClientGetPurgeStatusResponse, error)
GetPurgeStatus - Gets status of an ongoing purge operation. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- purgeID - In a purge status request, this is the Id of the operation the status of which is returned.
- options - WorkspacePurgeClientGetPurgeStatusOptions contains the optional parameters for the WorkspacePurgeClient.GetPurgeStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurgeOperation.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewWorkspacePurgeClient().GetPurgeStatus(ctx, "OIAutoRest5123", "aztest5048", "purge-970318e7-b859-4edb-8903-83b1b54d0b74", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.WorkspacePurgeStatusResponse = armoperationalinsights.WorkspacePurgeStatusResponse{ // Status: to.Ptr(armoperationalinsights.PurgeStateCompleted), // } }
Output:
func (*WorkspacePurgeClient) Purge ¶
func (client *WorkspacePurgeClient) Purge(ctx context.Context, resourceGroupName string, workspaceName string, body WorkspacePurgeBody, options *WorkspacePurgeClientPurgeOptions) (WorkspacePurgeClientPurgeResponse, error)
Purge - Purges data in an Log Analytics workspace by a set of user-defined filters. In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- body - Describes the body of a request to purge data in a single table of an Log Analytics Workspace
- options - WorkspacePurgeClientPurgeOptions contains the optional parameters for the WorkspacePurgeClient.Purge method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurge.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewWorkspacePurgeClient().Purge(ctx, "OIAutoRest5123", "aztest5048", armoperationalinsights.WorkspacePurgeBody{ Filters: []*armoperationalinsights.WorkspacePurgeBodyFilters{ { Column: to.Ptr("TimeGenerated"), Operator: to.Ptr(">"), Value: "2017-09-01T00:00:00", }}, Table: to.Ptr("Heartbeat"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type WorkspacePurgeClientGetPurgeStatusOptions ¶ added in v0.3.0
type WorkspacePurgeClientGetPurgeStatusOptions struct { }
WorkspacePurgeClientGetPurgeStatusOptions contains the optional parameters for the WorkspacePurgeClient.GetPurgeStatus method.
type WorkspacePurgeClientGetPurgeStatusResponse ¶ added in v0.3.0
type WorkspacePurgeClientGetPurgeStatusResponse struct { // Response containing status for a specific purge operation. WorkspacePurgeStatusResponse }
WorkspacePurgeClientGetPurgeStatusResponse contains the response from method WorkspacePurgeClient.GetPurgeStatus.
type WorkspacePurgeClientPurgeOptions ¶ added in v0.3.0
type WorkspacePurgeClientPurgeOptions struct { }
WorkspacePurgeClientPurgeOptions contains the optional parameters for the WorkspacePurgeClient.Purge method.
type WorkspacePurgeClientPurgeResponse ¶ added in v0.3.0
type WorkspacePurgeClientPurgeResponse struct { // Response containing operationId for a specific purge action. WorkspacePurgeResponse // XMSStatusLocation contains the information returned from the x-ms-status-location header response. XMSStatusLocation *string }
WorkspacePurgeClientPurgeResponse contains the response from method WorkspacePurgeClient.Purge.
type WorkspacePurgeResponse ¶
type WorkspacePurgeResponse struct { // REQUIRED; Id to use when querying for status for a particular purge operation. OperationID *string }
WorkspacePurgeResponse - Response containing operationId for a specific purge action.
func (WorkspacePurgeResponse) MarshalJSON ¶ added in v1.1.0
func (w WorkspacePurgeResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeResponse.
func (*WorkspacePurgeResponse) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspacePurgeResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePurgeResponse.
type WorkspacePurgeStatusResponse ¶
type WorkspacePurgeStatusResponse struct { // REQUIRED; Status of the operation represented by the requested Id. Status *PurgeState }
WorkspacePurgeStatusResponse - Response containing status for a specific purge operation.
func (WorkspacePurgeStatusResponse) MarshalJSON ¶ added in v1.1.0
func (w WorkspacePurgeStatusResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeStatusResponse.
func (*WorkspacePurgeStatusResponse) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspacePurgeStatusResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePurgeStatusResponse.
type WorkspaceSKU ¶
type WorkspaceSKU struct { // REQUIRED; The name of the SKU. Name *WorkspaceSKUNameEnum // The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected. CapacityReservationLevel *CapacityReservationLevel // READ-ONLY; The last time when the sku was updated. LastSKUUpdate *string }
WorkspaceSKU - The SKU (tier) of a workspace.
func (WorkspaceSKU) MarshalJSON ¶ added in v1.1.0
func (w WorkspaceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceSKU.
func (*WorkspaceSKU) UnmarshalJSON ¶ added in v1.1.0
func (w *WorkspaceSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceSKU.
type WorkspaceSKUNameEnum ¶
type WorkspaceSKUNameEnum string
WorkspaceSKUNameEnum - The name of the SKU.
const ( WorkspaceSKUNameEnumCapacityReservation WorkspaceSKUNameEnum = "CapacityReservation" WorkspaceSKUNameEnumFree WorkspaceSKUNameEnum = "Free" WorkspaceSKUNameEnumLACluster WorkspaceSKUNameEnum = "LACluster" WorkspaceSKUNameEnumPerGB2018 WorkspaceSKUNameEnum = "PerGB2018" WorkspaceSKUNameEnumPerNode WorkspaceSKUNameEnum = "PerNode" WorkspaceSKUNameEnumPremium WorkspaceSKUNameEnum = "Premium" WorkspaceSKUNameEnumStandalone WorkspaceSKUNameEnum = "Standalone" WorkspaceSKUNameEnumStandard WorkspaceSKUNameEnum = "Standard" )
func PossibleWorkspaceSKUNameEnumValues ¶
func PossibleWorkspaceSKUNameEnumValues() []WorkspaceSKUNameEnum
PossibleWorkspaceSKUNameEnumValues returns the possible values for the WorkspaceSKUNameEnum const type.
type WorkspacesClient ¶
type WorkspacesClient struct {
// contains filtered or unexported fields
}
WorkspacesClient contains the methods for the Workspaces group. Don't use this type directly, use NewWorkspacesClient() instead.
func NewWorkspacesClient ¶
func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacesClient, error)
NewWorkspacesClient creates a new instance of WorkspacesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WorkspacesClient) BeginCreateOrUpdate ¶
func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace, options *WorkspacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspacesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- parameters - The parameters required to create or update a workspace.
- options - WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewWorkspacesClient().BeginCreateOrUpdate(ctx, "oiautorest6685", "oiautorest6685", armoperationalinsights.Workspace{ Location: to.Ptr("australiasoutheast"), Tags: map[string]*string{ "tag1": to.Ptr("val1"), }, Properties: &armoperationalinsights.WorkspaceProperties{ RetentionInDays: to.Ptr[int32](30), SKU: &armoperationalinsights.WorkspaceSKU{ Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Workspace = armoperationalinsights.Workspace{ // Name: to.Ptr("AzTest2170"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170"), // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Properties: &armoperationalinsights.WorkspaceProperties{ // CustomerID: to.Ptr("bc089d7b-485c-4aff-a71e-c00f362d8d2f"), // ProvisioningState: to.Ptr(armoperationalinsights.WorkspaceEntityStatusSucceeded), // PublicNetworkAccessForIngestion: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // PublicNetworkAccessForQuery: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // RetentionInDays: to.Ptr[int32](30), // SKU: &armoperationalinsights.WorkspaceSKU{ // Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), // }, // }, // } }
Output:
func (*WorkspacesClient) BeginDelete ¶
func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesClientBeginDeleteOptions) (*runtime.Poller[WorkspacesClientDeleteResponse], error)
BeginDelete - Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewWorkspacesClient().BeginDelete(ctx, "oiautorest6685", "oiautorest6685", &armoperationalinsights.WorkspacesClientBeginDeleteOptions{Force: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*WorkspacesClient) Get ¶
func (client *WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesClientGetOptions) (WorkspacesClientGetResponse, error)
Get - Gets a workspace instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- options - WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewWorkspacesClient().Get(ctx, "oiautorest6685", "oiautorest6685", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Workspace = armoperationalinsights.Workspace{ // } }
Output:
func (*WorkspacesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *WorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *WorkspacesClientListByResourceGroupOptions) *runtime.Pager[WorkspacesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets workspaces in a resource group.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewWorkspacesClient().NewListByResourceGroupPager("oiautorest6685", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.WorkspaceListResult = armoperationalinsights.WorkspaceListResult{ // Value: []*armoperationalinsights.Workspace{ // { // Name: to.Ptr("AzTest2170"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170"), // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Properties: &armoperationalinsights.WorkspaceProperties{ // CustomerID: to.Ptr("bc089d7b-485c-4aff-a71e-c00f362d8d2f"), // ProvisioningState: to.Ptr(armoperationalinsights.WorkspaceEntityStatusSucceeded), // PublicNetworkAccessForIngestion: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // PublicNetworkAccessForQuery: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // RetentionInDays: to.Ptr[int32](30), // SKU: &armoperationalinsights.WorkspaceSKU{ // Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), // }, // }, // }}, // } } }
Output:
func (*WorkspacesClient) NewListPager ¶ added in v0.5.0
func (client *WorkspacesClient) NewListPager(options *WorkspacesClientListOptions) *runtime.Pager[WorkspacesClientListResponse]
NewListPager - Gets the workspaces in a subscription.
Generated from API version 2021-06-01
- options - WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesSubscriptionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewWorkspacesClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.WorkspaceListResult = armoperationalinsights.WorkspaceListResult{ // Value: []*armoperationalinsights.Workspace{ // { // Name: to.Ptr("AzTest2170"), // Type: to.Ptr("Microsoft.OperationalInsights/workspaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170"), // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Properties: &armoperationalinsights.WorkspaceProperties{ // CustomerID: to.Ptr("bc089d7b-485c-4aff-a71e-c00f362d8d2f"), // ProvisioningState: to.Ptr(armoperationalinsights.WorkspaceEntityStatusSucceeded), // PublicNetworkAccessForIngestion: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // PublicNetworkAccessForQuery: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // RetentionInDays: to.Ptr[int32](30), // SKU: &armoperationalinsights.WorkspaceSKU{ // Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), // }, // }, // }}, // } } }
Output:
func (*WorkspacesClient) Update ¶
func (client *WorkspacesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, parameters WorkspacePatch, options *WorkspacesClientUpdateOptions) (WorkspacesClientUpdateResponse, error)
Update - Updates a workspace. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The name of the workspace.
- parameters - The parameters required to patch a workspace.
- options - WorkspacesClientUpdateOptions contains the optional parameters for the WorkspacesClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/WorkspacesUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewWorkspacesClient().Update(ctx, "oiautorest6685", "oiautorest6685", armoperationalinsights.WorkspacePatch{ Properties: &armoperationalinsights.WorkspaceProperties{ RetentionInDays: to.Ptr[int32](30), SKU: &armoperationalinsights.WorkspaceSKU{ Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), }, WorkspaceCapping: &armoperationalinsights.WorkspaceCapping{ DailyQuotaGb: to.Ptr[float64](-1), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Workspace = armoperationalinsights.Workspace{ // Location: to.Ptr("australiasoutheast"), // Tags: map[string]*string{ // "tag1": to.Ptr("val1"), // }, // Properties: &armoperationalinsights.WorkspaceProperties{ // PublicNetworkAccessForIngestion: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // PublicNetworkAccessForQuery: to.Ptr(armoperationalinsights.PublicNetworkAccessTypeEnabled), // RetentionInDays: to.Ptr[int32](30), // SKU: &armoperationalinsights.WorkspaceSKU{ // Name: to.Ptr(armoperationalinsights.WorkspaceSKUNameEnumPerGB2018), // }, // WorkspaceCapping: &armoperationalinsights.WorkspaceCapping{ // DailyQuotaGb: to.Ptr[float64](-1), // DataIngestionStatus: to.Ptr(armoperationalinsights.DataIngestionStatusRespectQuota), // QuotaNextResetTime: to.Ptr("Mon, 16 Nov 2020 15:00:00 GMT"), // }, // }, // } }
Output:
type WorkspacesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type WorkspacesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate method.
type WorkspacesClientBeginDeleteOptions ¶ added in v0.3.0
type WorkspacesClientBeginDeleteOptions struct { // Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered. Force *bool // Resumes the LRO from the provided token. ResumeToken string }
WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method.
type WorkspacesClientCreateOrUpdateResponse ¶ added in v0.3.0
type WorkspacesClientCreateOrUpdateResponse struct { // The top level Workspace resource container. Workspace }
WorkspacesClientCreateOrUpdateResponse contains the response from method WorkspacesClient.BeginCreateOrUpdate.
type WorkspacesClientDeleteResponse ¶ added in v0.3.0
type WorkspacesClientDeleteResponse struct { }
WorkspacesClientDeleteResponse contains the response from method WorkspacesClient.BeginDelete.
type WorkspacesClientGetOptions ¶ added in v0.3.0
type WorkspacesClientGetOptions struct { }
WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method.
type WorkspacesClientGetResponse ¶ added in v0.3.0
type WorkspacesClientGetResponse struct { // The top level Workspace resource container. Workspace }
WorkspacesClientGetResponse contains the response from method WorkspacesClient.Get.
type WorkspacesClientListByResourceGroupOptions ¶ added in v0.3.0
type WorkspacesClientListByResourceGroupOptions struct { }
WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager method.
type WorkspacesClientListByResourceGroupResponse ¶ added in v0.3.0
type WorkspacesClientListByResourceGroupResponse struct { // The list workspaces operation response. WorkspaceListResult }
WorkspacesClientListByResourceGroupResponse contains the response from method WorkspacesClient.NewListByResourceGroupPager.
type WorkspacesClientListOptions ¶ added in v0.3.0
type WorkspacesClientListOptions struct { }
WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.NewListPager method.
type WorkspacesClientListResponse ¶ added in v0.3.0
type WorkspacesClientListResponse struct { // The list workspaces operation response. WorkspaceListResult }
WorkspacesClientListResponse contains the response from method WorkspacesClient.NewListPager.
type WorkspacesClientUpdateOptions ¶ added in v0.3.0
type WorkspacesClientUpdateOptions struct { }
WorkspacesClientUpdateOptions contains the optional parameters for the WorkspacesClient.Update method.
type WorkspacesClientUpdateResponse ¶ added in v0.3.0
type WorkspacesClientUpdateResponse struct { // The top level Workspace resource container. Workspace }
WorkspacesClientUpdateResponse contains the response from method WorkspacesClient.Update.
Source Files ¶
- availableservicetiers_client.go
- build.go
- client_factory.go
- clusters_client.go
- constants.go
- dataexports_client.go
- datasources_client.go
- deletedworkspaces_client.go
- gateways_client.go
- intelligencepacks_client.go
- linkedservices_client.go
- linkedstorageaccounts_client.go
- managementgroups_client.go
- models.go
- models_serde.go
- operations_client.go
- operationstatuses_client.go
- options.go
- response_types.go
- savedsearches_client.go
- schema_client.go
- sharedkeys_client.go
- storageinsightconfigs_client.go
- tables_client.go
- time_rfc3339.go
- usages_client.go
- workspacepurge_client.go
- workspaces_client.go