armoperationalinsights

package module
v2.0.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 15 Imported by: 3

README

Azure Operational Insights Module for Go

PkgGoDev

The armoperationalinsights module provides operations for working with Azure Operational Insights.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Operational Insights module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights/v2

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Operational Insights. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Operational Insights module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armoperationalinsights.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armoperationalinsights.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewClustersClient()

More sample code

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Operational Insights label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

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 `json:"associateDate,omitempty" azure:"ro"`

	// READ-ONLY; The ResourceId id the assigned workspace.
	ResourceID *string `json:"resourceId,omitempty" azure:"ro"`

	// READ-ONLY; The id of the assigned workspace.
	WorkspaceID *string `json:"workspaceId,omitempty" azure:"ro"`

	// READ-ONLY; The name id the assigned workspace.
	WorkspaceName *string `json:"workspaceName,omitempty" azure:"ro"`
}

AssociatedWorkspace - The list of Log Analytics workspaces associated with the cluster.

func (AssociatedWorkspace) MarshalJSON

func (a AssociatedWorkspace) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AssociatedWorkspace.

func (*AssociatedWorkspace) UnmarshalJSON

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 `json:"capacityReservationLevel,omitempty" azure:"ro"`

	// READ-ONLY; The default retention for the Service Tier, in days.
	DefaultRetention *int64 `json:"defaultRetention,omitempty" azure:"ro"`

	// READ-ONLY; True if the Service Tier is enabled for the workspace.
	Enabled *bool `json:"enabled,omitempty" azure:"ro"`

	// READ-ONLY; Time when the sku was last updated for the workspace. Returned for the Capacity Reservation Service Tier.
	LastSKUUpdate *string `json:"lastSkuUpdate,omitempty" azure:"ro"`

	// READ-ONLY; The maximum retention for the Service Tier, in days.
	MaximumRetention *int64 `json:"maximumRetention,omitempty" azure:"ro"`

	// READ-ONLY; The minimum retention for the Service Tier, in days.
	MinimumRetention *int64 `json:"minimumRetention,omitempty" azure:"ro"`

	// READ-ONLY; The name of the Service Tier.
	ServiceTier *SKUNameEnum `json:"serviceTier,omitempty" azure:"ro"`
}

AvailableServiceTier - Service Tier details.

func (AvailableServiceTier) MarshalJSON

func (a AvailableServiceTier) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailableServiceTier.

func (*AvailableServiceTier) UnmarshalJSON

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesAvailableServiceTiers.json

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

type AvailableServiceTiersClientListByWorkspaceOptions struct {
}

AvailableServiceTiersClientListByWorkspaceOptions contains the optional parameters for the AvailableServiceTiersClient.ListByWorkspace method.

type AvailableServiceTiersClientListByWorkspaceResponse

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 `json:"etag,omitempty" azure:"ro"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

func (a *AzureEntityResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureEntityResource.

type AzureResourceProperties

type AzureResourceProperties struct {
	// READ-ONLY; Azure resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Read only system data
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource type
	Type *string `json:"type,omitempty" azure:"ro"`
}

AzureResourceProperties - An Azure resource QueryPack-Query object

func (AzureResourceProperties) MarshalJSON

func (a AzureResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureResourceProperties.

func (*AzureResourceProperties) UnmarshalJSON

func (a *AzureResourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureResourceProperties.

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

const (
	CapacityFiveHundred  Capacity = 500
	CapacityTenHundred   Capacity = 1000
	CapacityTwoThousand  Capacity = 2000
	CapacityFiveThousand Capacity = 5000
)

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 (
	CapacityReservationLevelOneHundred   CapacityReservationLevel = 100
	CapacityReservationLevelTwoHundred   CapacityReservationLevel = 200
	CapacityReservationLevelThreeHundred CapacityReservationLevel = 300
	CapacityReservationLevelFourHundred  CapacityReservationLevel = 400
	CapacityReservationLevelFiveHundred  CapacityReservationLevel = 500
	CapacityReservationLevelTenHundred   CapacityReservationLevel = 1000
	CapacityReservationLevelTwoThousand  CapacityReservationLevel = 2000
	CapacityReservationLevelFiveThousand CapacityReservationLevel = 5000
)

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 `json:"lastSkuUpdate,omitempty" azure:"ro"`

	// READ-ONLY; Minimum CapacityReservation value in GB.
	MinCapacity *int64 `json:"minCapacity,omitempty" azure:"ro"`
}

CapacityReservationProperties - The Capacity Reservation properties.

func (CapacityReservationProperties) MarshalJSON

func (c CapacityReservationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CapacityReservationProperties.

func (*CapacityReservationProperties) UnmarshalJSON

func (c *CapacityReservationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationProperties.

type ClientFactory

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

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

func (c *ClientFactory) NewAvailableServiceTiersClient() *AvailableServiceTiersClient

func (*ClientFactory) NewClustersClient

func (c *ClientFactory) NewClustersClient() *ClustersClient

func (*ClientFactory) NewDataExportsClient

func (c *ClientFactory) NewDataExportsClient() *DataExportsClient

func (*ClientFactory) NewDataSourcesClient

func (c *ClientFactory) NewDataSourcesClient() *DataSourcesClient

func (*ClientFactory) NewDeletedWorkspacesClient

func (c *ClientFactory) NewDeletedWorkspacesClient() *DeletedWorkspacesClient

func (*ClientFactory) NewGatewaysClient

func (c *ClientFactory) NewGatewaysClient() *GatewaysClient

func (*ClientFactory) NewIntelligencePacksClient

func (c *ClientFactory) NewIntelligencePacksClient() *IntelligencePacksClient

func (*ClientFactory) NewLinkedServicesClient

func (c *ClientFactory) NewLinkedServicesClient() *LinkedServicesClient

func (*ClientFactory) NewLinkedStorageAccountsClient

func (c *ClientFactory) NewLinkedStorageAccountsClient() *LinkedStorageAccountsClient

func (*ClientFactory) NewManagementGroupsClient

func (c *ClientFactory) NewManagementGroupsClient() *ManagementGroupsClient

func (*ClientFactory) NewOperationStatusesClient

func (c *ClientFactory) NewOperationStatusesClient() *OperationStatusesClient

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

func (*ClientFactory) NewQueriesClient

func (c *ClientFactory) NewQueriesClient() *QueriesClient

func (*ClientFactory) NewQueryPacksClient

func (c *ClientFactory) NewQueryPacksClient() *QueryPacksClient

func (*ClientFactory) NewSavedSearchesClient

func (c *ClientFactory) NewSavedSearchesClient() *SavedSearchesClient

func (*ClientFactory) NewSchemaClient

func (c *ClientFactory) NewSchemaClient() *SchemaClient

func (*ClientFactory) NewSharedKeysClient

func (c *ClientFactory) NewSharedKeysClient() *SharedKeysClient

func (*ClientFactory) NewStorageInsightConfigsClient

func (c *ClientFactory) NewStorageInsightConfigsClient() *StorageInsightConfigsClient

func (*ClientFactory) NewTablesClient

func (c *ClientFactory) NewTablesClient() *TablesClient

func (*ClientFactory) NewUsagesClient

func (c *ClientFactory) NewUsagesClient() *UsagesClient

func (*ClientFactory) NewWorkspacePurgeClient

func (c *ClientFactory) NewWorkspacePurgeClient() *WorkspacePurgeClient

func (*ClientFactory) NewWorkspacesClient

func (c *ClientFactory) NewWorkspacesClient() *WorkspacesClient

type Cluster

type Cluster struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// The identity of the resource.
	Identity *Identity `json:"identity,omitempty"`

	// Log Analytics cluster properties.
	Properties *ClusterProperties `json:"properties,omitempty"`

	// The sku properties.
	SKU *ClusterSKU `json:"sku,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Cluster - The top level Log Analytics cluster resource container.

func (Cluster) MarshalJSON

func (c Cluster) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Cluster.

func (*Cluster) UnmarshalJSON

func (c *Cluster) UnmarshalJSON(data []byte) error

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 `json:"nextLink,omitempty"`

	// A list of Log Analytics clusters.
	Value []*Cluster `json:"value,omitempty"`
}

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

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 `json:"identity,omitempty"`

	// Log Analytics cluster properties.
	Properties *ClusterPatchProperties `json:"properties,omitempty"`

	// The sku properties.
	SKU *ClusterSKU `json:"sku,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

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

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 `json:"billingType,omitempty"`

	// The associated key properties.
	KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"`
}

ClusterPatchProperties - Log Analytics cluster patch properties.

func (ClusterPatchProperties) MarshalJSON

func (c ClusterPatchProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterPatchProperties.

func (*ClusterPatchProperties) UnmarshalJSON

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 `json:"associatedWorkspaces,omitempty"`

	// The cluster's billing type.
	BillingType *BillingType `json:"billingType,omitempty"`

	// Additional properties for capacity reservation
	CapacityReservationProperties *CapacityReservationProperties `json:"capacityReservationProperties,omitempty"`

	// 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 `json:"isAvailabilityZonesEnabled,omitempty"`

	// Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default
	// value is 'true'
	IsDoubleEncryptionEnabled *bool `json:"isDoubleEncryptionEnabled,omitempty"`

	// The associated key properties.
	KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"`

	// READ-ONLY; The ID associated with the cluster.
	ClusterID *string `json:"clusterId,omitempty" azure:"ro"`

	// READ-ONLY; The cluster creation time
	CreatedDate *string `json:"createdDate,omitempty" azure:"ro"`

	// READ-ONLY; The last time the cluster was updated.
	LastModifiedDate *string `json:"lastModifiedDate,omitempty" azure:"ro"`

	// READ-ONLY; The provisioning state of the cluster.
	ProvisioningState *ClusterEntityStatus `json:"provisioningState,omitempty" azure:"ro"`
}

ClusterProperties - Cluster properties.

func (ClusterProperties) MarshalJSON

func (c ClusterProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterProperties.

func (*ClusterProperties) UnmarshalJSON

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 `json:"capacity,omitempty"`

	// The name of the SKU.
	Name *ClusterSKUNameEnum `json:"name,omitempty"`
}

ClusterSKU - The cluster sku definition.

func (ClusterSKU) MarshalJSON

func (c ClusterSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterSKU.

func (*ClusterSKU) UnmarshalJSON

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersCreate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersDelete.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersUpdate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersGet.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersListByResourceGroup.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/examples/ClustersSubscriptionList.json

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

type ClustersClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method.

type ClustersClientBeginDeleteOptions

type ClustersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.

type ClustersClientBeginUpdateOptions

type ClustersClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method.

type ClustersClientCreateOrUpdateResponse

type ClustersClientCreateOrUpdateResponse struct {
	Cluster
}

ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.BeginCreateOrUpdate.

type ClustersClientDeleteResponse

type ClustersClientDeleteResponse struct {
}

ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete.

type ClustersClientGetOptions

type ClustersClientGetOptions struct {
}

ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.

type ClustersClientGetResponse

type ClustersClientGetResponse struct {
	Cluster
}

ClustersClientGetResponse contains the response from method ClustersClient.Get.

type ClustersClientListByResourceGroupOptions

type ClustersClientListByResourceGroupOptions struct {
}

ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.

type ClustersClientListByResourceGroupResponse

type ClustersClientListByResourceGroupResponse struct {
	ClusterListResult
}

ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.NewListByResourceGroupPager.

type ClustersClientListOptions

type ClustersClientListOptions struct {
}

ClustersClientListOptions contains the optional parameters for the ClustersClient.NewListPager method.

type ClustersClientListResponse

type ClustersClientListResponse struct {
	ClusterListResult
}

ClustersClientListResponse contains the response from method ClustersClient.NewListPager.

type ClustersClientUpdateResponse

type ClustersClientUpdateResponse struct {
	Cluster
}

ClustersClientUpdateResponse contains the response from method ClustersClient.BeginUpdate.

type Column

type Column struct {
	// Column data type logical hint.
	DataTypeHint *ColumnDataTypeHintEnum `json:"dataTypeHint,omitempty"`

	// Column description.
	Description *string `json:"description,omitempty"`

	// Column display name.
	DisplayName *string `json:"displayName,omitempty"`

	// Column name.
	Name *string `json:"name,omitempty"`

	// Column data type.
	Type *ColumnTypeEnum `json:"type,omitempty"`

	// READ-ONLY; Is displayed by default.
	IsDefaultDisplay *bool `json:"isDefaultDisplay,omitempty" azure:"ro"`

	// READ-ONLY; Is column hidden.
	IsHidden *bool `json:"isHidden,omitempty" azure:"ro"`
}

Column - Table column.

func (Column) MarshalJSON

func (c Column) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Column.

func (*Column) UnmarshalJSON

func (c *Column) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Column.

type ColumnDataTypeHintEnum

type ColumnDataTypeHintEnum string

ColumnDataTypeHintEnum - Column data type logical hint.

const (
	// ColumnDataTypeHintEnumArmPath - An Azure Resource Model (ARM) path: /subscriptions/{...}/resourceGroups/{...}/providers/Microsoft.{...}/{...}/{...}/{...}...
	ColumnDataTypeHintEnumArmPath ColumnDataTypeHintEnum = "armPath"
	// ColumnDataTypeHintEnumGUID - A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
	ColumnDataTypeHintEnumGUID ColumnDataTypeHintEnum = "guid"
	// ColumnDataTypeHintEnumIP - A standard V4/V6 ip address following the standard shape, x.x.x.x/y:y:y:y:y:y:y:y
	ColumnDataTypeHintEnumIP ColumnDataTypeHintEnum = "ip"
	// ColumnDataTypeHintEnumURI - A string that matches the pattern of a URI, for example, scheme://username:password@host:1234/this/is/a/path?k1=v1&k2=v2#fragment
	ColumnDataTypeHintEnumURI ColumnDataTypeHintEnum = "uri"
)

func PossibleColumnDataTypeHintEnumValues

func PossibleColumnDataTypeHintEnumValues() []ColumnDataTypeHintEnum

PossibleColumnDataTypeHintEnumValues returns the possible values for the ColumnDataTypeHintEnum const type.

type ColumnTypeEnum

type ColumnTypeEnum string

ColumnTypeEnum - Column data type.

const (
	ColumnTypeEnumBoolean  ColumnTypeEnum = "boolean"
	ColumnTypeEnumDateTime ColumnTypeEnum = "dateTime"
	ColumnTypeEnumDynamic  ColumnTypeEnum = "dynamic"
	ColumnTypeEnumGUID     ColumnTypeEnum = "guid"
	ColumnTypeEnumInt      ColumnTypeEnum = "int"
	ColumnTypeEnumLong     ColumnTypeEnum = "long"
	ColumnTypeEnumReal     ColumnTypeEnum = "real"
	ColumnTypeEnumString   ColumnTypeEnum = "string"
)

func PossibleColumnTypeEnumValues

func PossibleColumnTypeEnumValues() []ColumnTypeEnum

PossibleColumnTypeEnumValues returns the possible values for the ColumnTypeEnum const type.

type CoreSummary

type CoreSummary struct {
	// REQUIRED; The number of documents of a core summary.
	NumberOfDocuments *int64 `json:"numberOfDocuments,omitempty"`

	// The status of a core summary.
	Status *string `json:"status,omitempty"`
}

CoreSummary - The core summary of a search.

func (CoreSummary) MarshalJSON

func (c CoreSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CoreSummary.

func (*CoreSummary) UnmarshalJSON

func (c *CoreSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CoreSummary.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type DataExport

type DataExport struct {
	// data export properties.
	Properties *DataExportProperties `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

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 `json:"value,omitempty"`
}

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

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 `json:"tableNames,omitempty"`

	// The latest data export rule modification time.
	CreatedDate *string `json:"createdDate,omitempty"`

	// The data export rule ID.
	DataExportID *string `json:"dataExportId,omitempty"`

	// destination properties.
	Destination *Destination `json:"destination,omitempty"`

	// Active when enabled.
	Enable *bool `json:"enable,omitempty"`

	// Date and time when the export was last modified.
	LastModifiedDate *string `json:"lastModifiedDate,omitempty"`
}

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportCreateOrUpdate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportDelete.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportGet.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataExportListByWorkspace.json

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

type DataExportsClientCreateOrUpdateOptions struct {
}

DataExportsClientCreateOrUpdateOptions contains the optional parameters for the DataExportsClient.CreateOrUpdate method.

type DataExportsClientCreateOrUpdateResponse

type DataExportsClientCreateOrUpdateResponse struct {
	DataExport
}

DataExportsClientCreateOrUpdateResponse contains the response from method DataExportsClient.CreateOrUpdate.

type DataExportsClientDeleteOptions

type DataExportsClientDeleteOptions struct {
}

DataExportsClientDeleteOptions contains the optional parameters for the DataExportsClient.Delete method.

type DataExportsClientDeleteResponse

type DataExportsClientDeleteResponse struct {
}

DataExportsClientDeleteResponse contains the response from method DataExportsClient.Delete.

type DataExportsClientGetOptions

type DataExportsClientGetOptions struct {
}

DataExportsClientGetOptions contains the optional parameters for the DataExportsClient.Get method.

type DataExportsClientGetResponse

type DataExportsClientGetResponse struct {
	DataExport
}

DataExportsClientGetResponse contains the response from method DataExportsClient.Get.

type DataExportsClientListByWorkspaceOptions

type DataExportsClientListByWorkspaceOptions struct {
}

DataExportsClientListByWorkspaceOptions contains the optional parameters for the DataExportsClient.NewListByWorkspacePager method.

type DataExportsClientListByWorkspaceResponse

type DataExportsClientListByWorkspaceResponse struct {
	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 `json:"kind,omitempty"`

	// REQUIRED; The data source properties in raw json format, each kind of data source have it's own schema.
	Properties any `json:"properties,omitempty"`

	// The ETag of the data source.
	Etag *string `json:"etag,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

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 `json:"kind,omitempty"`
}

DataSourceFilter - DataSource filter. Right now, only filter by kind is supported.

func (DataSourceFilter) MarshalJSON

func (d DataSourceFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DataSourceFilter.

func (*DataSourceFilter) UnmarshalJSON

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 `json:"nextLink,omitempty"`

	// A list of datasources.
	Value []*DataSource `json:"value,omitempty"`
}

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

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 (
	DataSourceTypeCustomLogs  DataSourceType = "CustomLogs"
	DataSourceTypeAzureWatson DataSourceType = "AzureWatson"
	DataSourceTypeQuery       DataSourceType = "Query"
	DataSourceTypeIngestion   DataSourceType = "Ingestion"
	DataSourceTypeAlerts      DataSourceType = "Alerts"
)

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesCreate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesDelete.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesGet.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/DataSourcesListByWorkspace.json

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

type DataSourcesClientCreateOrUpdateOptions struct {
}

DataSourcesClientCreateOrUpdateOptions contains the optional parameters for the DataSourcesClient.CreateOrUpdate method.

type DataSourcesClientCreateOrUpdateResponse

type DataSourcesClientCreateOrUpdateResponse struct {
	DataSource
}

DataSourcesClientCreateOrUpdateResponse contains the response from method DataSourcesClient.CreateOrUpdate.

type DataSourcesClientDeleteOptions

type DataSourcesClientDeleteOptions struct {
}

DataSourcesClientDeleteOptions contains the optional parameters for the DataSourcesClient.Delete method.

type DataSourcesClientDeleteResponse

type DataSourcesClientDeleteResponse struct {
}

DataSourcesClientDeleteResponse contains the response from method DataSourcesClient.Delete.

type DataSourcesClientGetOptions

type DataSourcesClientGetOptions struct {
}

DataSourcesClientGetOptions contains the optional parameters for the DataSourcesClient.Get method.

type DataSourcesClientGetResponse

type DataSourcesClientGetResponse struct {
	DataSource
}

DataSourcesClientGetResponse contains the response from method DataSourcesClient.Get.

type DataSourcesClientListByWorkspaceOptions

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

type DataSourcesClientListByWorkspaceResponse struct {
	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

NewListByResourceGroupPager - Gets recently deleted workspaces in a resource group, available for recovery.

Generated from API version 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesListByResourceGroup.json

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

NewListPager - Gets recently deleted workspaces in a subscription, available for recovery.

Generated from API version 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesSubscriptionList.json

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

type DeletedWorkspacesClientListByResourceGroupOptions struct {
}

DeletedWorkspacesClientListByResourceGroupOptions contains the optional parameters for the DeletedWorkspacesClient.NewListByResourceGroupPager method.

type DeletedWorkspacesClientListByResourceGroupResponse

type DeletedWorkspacesClientListByResourceGroupResponse struct {
	WorkspaceListResult
}

DeletedWorkspacesClientListByResourceGroupResponse contains the response from method DeletedWorkspacesClient.NewListByResourceGroupPager.

type DeletedWorkspacesClientListOptions

type DeletedWorkspacesClientListOptions struct {
}

DeletedWorkspacesClientListOptions contains the optional parameters for the DeletedWorkspacesClient.NewListPager method.

type DeletedWorkspacesClientListResponse

type DeletedWorkspacesClientListResponse struct {
	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 `json:"resourceId,omitempty"`

	// destination meta data.
	MetaData *DestinationMetaData `json:"metaData,omitempty"`

	// READ-ONLY; The type of the destination resource
	Type *Type `json:"type,omitempty" azure:"ro"`
}

Destination properties.

func (Destination) MarshalJSON

func (d Destination) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Destination.

func (*Destination) UnmarshalJSON

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 `json:"eventHubName,omitempty"`
}

DestinationMetaData - Destination meta data.

func (DestinationMetaData) MarshalJSON

func (d DestinationMetaData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DestinationMetaData.

func (*DestinationMetaData) UnmarshalJSON

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 `json:"info,omitempty" azure:"ro"`

	// READ-ONLY; The additional info type.
	Type *string `json:"type,omitempty" azure:"ro"`
}

ErrorAdditionalInfo - The resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.

func (*ErrorAdditionalInfo) UnmarshalJSON

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 `json:"additionalInfo,omitempty" azure:"ro"`

	// READ-ONLY; The error code.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; The error details.
	Details []*ErrorDetail `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; The error target.
	Target *string `json:"target,omitempty" azure:"ro"`
}

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

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 `json:"error,omitempty"`
}

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

func (e ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesGatewaysDelete.json

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

type GatewaysClientDeleteOptions struct {
}

GatewaysClientDeleteOptions contains the optional parameters for the GatewaysClient.Delete method.

type GatewaysClientDeleteResponse

type GatewaysClientDeleteResponse struct {
}

GatewaysClientDeleteResponse contains the response from method GatewaysClient.Delete.

type Identity

type Identity struct {
	// REQUIRED; Type of managed service identity.
	Type *IdentityType `json:"type,omitempty"`

	// 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 `json:"userAssignedIdentities,omitempty"`

	// READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty" azure:"ro"`

	// READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}

Identity for the resource.

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Identity.

func (*Identity) UnmarshalJSON

func (i *Identity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Identity.

type IdentityType

type IdentityType string

IdentityType - The type of identity that creates/modifies resources

const (
	IdentityTypeApplication     IdentityType = "application"
	IdentityTypeKey             IdentityType = "key"
	IdentityTypeManagedIdentity IdentityType = "managedIdentity"
	IdentityTypeNone            IdentityType = "None"
	IdentityTypeSystemAssigned  IdentityType = "SystemAssigned"
	IdentityTypeUser            IdentityType = "user"
	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 `json:"displayName,omitempty"`

	// The enabled boolean for the intelligence pack.
	Enabled *bool `json:"enabled,omitempty"`

	// The name of the intelligence pack.
	Name *string `json:"name,omitempty"`
}

IntelligencePack - Intelligence Pack containing a string name and boolean indicating if it's enabled.

func (IntelligencePack) MarshalJSON

func (i IntelligencePack) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IntelligencePack.

func (*IntelligencePack) UnmarshalJSON

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesDisableIntelligencePack.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesEnableIntelligencePack.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListIntelligencePacks.json

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

type IntelligencePacksClientDisableOptions struct {
}

IntelligencePacksClientDisableOptions contains the optional parameters for the IntelligencePacksClient.Disable method.

type IntelligencePacksClientDisableResponse

type IntelligencePacksClientDisableResponse struct {
}

IntelligencePacksClientDisableResponse contains the response from method IntelligencePacksClient.Disable.

type IntelligencePacksClientEnableOptions

type IntelligencePacksClientEnableOptions struct {
}

IntelligencePacksClientEnableOptions contains the optional parameters for the IntelligencePacksClient.Enable method.

type IntelligencePacksClientEnableResponse

type IntelligencePacksClientEnableResponse struct {
}

IntelligencePacksClientEnableResponse contains the response from method IntelligencePacksClient.Enable.

type IntelligencePacksClientListOptions

type IntelligencePacksClientListOptions struct {
}

IntelligencePacksClientListOptions contains the optional parameters for the IntelligencePacksClient.List method.

type IntelligencePacksClientListResponse

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 `json:"keyName,omitempty"`

	// Selected key minimum required size.
	KeyRsaSize *int32 `json:"keyRsaSize,omitempty"`

	// The Key Vault uri which holds they key associated with the Log Analytics cluster.
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`

	// The version of the key associated with the Log Analytics cluster.
	KeyVersion *string `json:"keyVersion,omitempty"`
}

KeyVaultProperties - The key vault properties.

func (KeyVaultProperties) MarshalJSON

func (k KeyVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.

func (*KeyVaultProperties) UnmarshalJSON

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 `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

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 `json:"value,omitempty"`
}

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

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 `json:"provisioningState,omitempty"`

	// 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 `json:"resourceId,omitempty"`

	// 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 `json:"writeAccessResourceId,omitempty"`
}

LinkedServiceProperties - Linked service properties.

func (LinkedServiceProperties) MarshalJSON

func (l LinkedServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LinkedServiceProperties.

func (*LinkedServiceProperties) UnmarshalJSON

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesCreate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesDelete.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesGet.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedServicesListByWorkspace.json

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

type LinkedServicesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LinkedServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.BeginCreateOrUpdate method.

type LinkedServicesClientBeginDeleteOptions

type LinkedServicesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LinkedServicesClientBeginDeleteOptions contains the optional parameters for the LinkedServicesClient.BeginDelete method.

type LinkedServicesClientCreateOrUpdateResponse

type LinkedServicesClientCreateOrUpdateResponse struct {
	LinkedService
}

LinkedServicesClientCreateOrUpdateResponse contains the response from method LinkedServicesClient.BeginCreateOrUpdate.

type LinkedServicesClientDeleteResponse

type LinkedServicesClientDeleteResponse struct {
	LinkedService
}

LinkedServicesClientDeleteResponse contains the response from method LinkedServicesClient.BeginDelete.

type LinkedServicesClientGetOptions

type LinkedServicesClientGetOptions struct {
}

LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method.

type LinkedServicesClientGetResponse

type LinkedServicesClientGetResponse struct {
	LinkedService
}

LinkedServicesClientGetResponse contains the response from method LinkedServicesClient.Get.

type LinkedServicesClientListByWorkspaceOptions

type LinkedServicesClientListByWorkspaceOptions struct {
}

LinkedServicesClientListByWorkspaceOptions contains the optional parameters for the LinkedServicesClient.NewListByWorkspacePager method.

type LinkedServicesClientListByWorkspaceResponse

type LinkedServicesClientListByWorkspaceResponse struct {
	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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsCreate.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsDelete.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsGet.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/LinkedStorageAccountsListByWorkspace.json

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

type LinkedStorageAccountsClientCreateOrUpdateOptions struct {
}

LinkedStorageAccountsClientCreateOrUpdateOptions contains the optional parameters for the LinkedStorageAccountsClient.CreateOrUpdate method.

type LinkedStorageAccountsClientCreateOrUpdateResponse

type LinkedStorageAccountsClientCreateOrUpdateResponse struct {
	LinkedStorageAccountsResource
}

LinkedStorageAccountsClientCreateOrUpdateResponse contains the response from method LinkedStorageAccountsClient.CreateOrUpdate.

type LinkedStorageAccountsClientDeleteOptions

type LinkedStorageAccountsClientDeleteOptions struct {
}

LinkedStorageAccountsClientDeleteOptions contains the optional parameters for the LinkedStorageAccountsClient.Delete method.

type LinkedStorageAccountsClientDeleteResponse

type LinkedStorageAccountsClientDeleteResponse struct {
}

LinkedStorageAccountsClientDeleteResponse contains the response from method LinkedStorageAccountsClient.Delete.

type LinkedStorageAccountsClientGetOptions

type LinkedStorageAccountsClientGetOptions struct {
}

LinkedStorageAccountsClientGetOptions contains the optional parameters for the LinkedStorageAccountsClient.Get method.

type LinkedStorageAccountsClientGetResponse

type LinkedStorageAccountsClientGetResponse struct {
	LinkedStorageAccountsResource
}

LinkedStorageAccountsClientGetResponse contains the response from method LinkedStorageAccountsClient.Get.

type LinkedStorageAccountsClientListByWorkspaceOptions

type LinkedStorageAccountsClientListByWorkspaceOptions struct {
}

LinkedStorageAccountsClientListByWorkspaceOptions contains the optional parameters for the LinkedStorageAccountsClient.NewListByWorkspacePager method.

type LinkedStorageAccountsClientListByWorkspaceResponse

type LinkedStorageAccountsClientListByWorkspaceResponse struct {
	LinkedStorageAccountsListResult
}

LinkedStorageAccountsClientListByWorkspaceResponse contains the response from method LinkedStorageAccountsClient.NewListByWorkspacePager.

type LinkedStorageAccountsListResult

type LinkedStorageAccountsListResult struct {
	// A list of linked storage accounts instances.
	Value []*LinkedStorageAccountsResource `json:"value,omitempty"`
}

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

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 `json:"storageAccountIds,omitempty"`

	// READ-ONLY; Linked storage accounts type.
	DataSourceType *DataSourceType `json:"dataSourceType,omitempty" azure:"ro"`
}

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

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 `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

func (l *LinkedStorageAccountsResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LinkedStorageAccountsResource.

type LogAnalyticsQueryPack

type LogAnalyticsQueryPack struct {
	// REQUIRED; Resource location
	Location *string `json:"location,omitempty"`

	// REQUIRED; Properties that define a Log Analytics QueryPack resource.
	Properties *LogAnalyticsQueryPackProperties `json:"properties,omitempty"`

	// Resource tags
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Azure resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource type
	Type *string `json:"type,omitempty" azure:"ro"`
}

LogAnalyticsQueryPack - An Log Analytics QueryPack definition.

func (LogAnalyticsQueryPack) MarshalJSON

func (l LogAnalyticsQueryPack) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPack.

func (*LogAnalyticsQueryPack) UnmarshalJSON

func (l *LogAnalyticsQueryPack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPack.

type LogAnalyticsQueryPackListResult

type LogAnalyticsQueryPackListResult struct {
	// REQUIRED; List of Log Analytics QueryPack definitions.
	Value []*LogAnalyticsQueryPack `json:"value,omitempty"`

	// The URI to get the next set of Log Analytics QueryPack definitions if too many QueryPacks where returned in the result
	// set.
	NextLink *string `json:"nextLink,omitempty"`
}

LogAnalyticsQueryPackListResult - Describes the list of Log Analytics QueryPack resources.

func (LogAnalyticsQueryPackListResult) MarshalJSON

func (l LogAnalyticsQueryPackListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackListResult.

func (*LogAnalyticsQueryPackListResult) UnmarshalJSON

func (l *LogAnalyticsQueryPackListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackListResult.

type LogAnalyticsQueryPackProperties

type LogAnalyticsQueryPackProperties struct {
	// READ-ONLY; Current state of this QueryPack: whether or not is has been provisioned within the resource group it is defined.
	// Users cannot change this value but are able to read from it. Values will include
	// Succeeded, Deploying, Canceled, and Failed.
	ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`

	// READ-ONLY; The unique ID of your application. This field cannot be changed.
	QueryPackID *string `json:"queryPackId,omitempty" azure:"ro"`

	// READ-ONLY; Creation Date for the Log Analytics QueryPack, in ISO 8601 format.
	TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`

	// READ-ONLY; Last modified date of the Log Analytics QueryPack, in ISO 8601 format.
	TimeModified *time.Time `json:"timeModified,omitempty" azure:"ro"`
}

LogAnalyticsQueryPackProperties - Properties that define a Log Analytics QueryPack resource.

func (LogAnalyticsQueryPackProperties) MarshalJSON

func (l LogAnalyticsQueryPackProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackProperties.

func (*LogAnalyticsQueryPackProperties) UnmarshalJSON

func (l *LogAnalyticsQueryPackProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackProperties.

type LogAnalyticsQueryPackQuery

type LogAnalyticsQueryPackQuery struct {
	// Properties that define an Log Analytics QueryPack-Query resource.
	Properties *LogAnalyticsQueryPackQueryProperties `json:"properties,omitempty"`

	// READ-ONLY; Azure resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Read only system data
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource type
	Type *string `json:"type,omitempty" azure:"ro"`
}

LogAnalyticsQueryPackQuery - A Log Analytics QueryPack-Query definition.

func (LogAnalyticsQueryPackQuery) MarshalJSON

func (l LogAnalyticsQueryPackQuery) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackQuery.

func (*LogAnalyticsQueryPackQuery) UnmarshalJSON

func (l *LogAnalyticsQueryPackQuery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackQuery.

type LogAnalyticsQueryPackQueryListResult

type LogAnalyticsQueryPackQueryListResult struct {
	// REQUIRED; List of Log Analytics QueryPack Query definitions.
	Value []*LogAnalyticsQueryPackQuery `json:"value,omitempty"`

	// The URI to get the next set of Log Analytics QueryPack definitions if too many QueryPack-Queries where returned in the
	// result set.
	NextLink *string `json:"nextLink,omitempty"`
}

LogAnalyticsQueryPackQueryListResult - Describes the list of Log Analytics QueryPack-Query resources.

func (LogAnalyticsQueryPackQueryListResult) MarshalJSON

func (l LogAnalyticsQueryPackQueryListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackQueryListResult.

func (*LogAnalyticsQueryPackQueryListResult) UnmarshalJSON

func (l *LogAnalyticsQueryPackQueryListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackQueryListResult.

type LogAnalyticsQueryPackQueryProperties

type LogAnalyticsQueryPackQueryProperties struct {
	// REQUIRED; Body of the query.
	Body *string `json:"body,omitempty"`

	// REQUIRED; Unique display name for your query within the Query Pack.
	DisplayName *string `json:"displayName,omitempty"`

	// Description of the query.
	Description *string `json:"description,omitempty"`

	// Additional properties that can be set for the query.
	Properties any `json:"properties,omitempty"`

	// The related metadata items for the function.
	Related *LogAnalyticsQueryPackQueryPropertiesRelated `json:"related,omitempty"`

	// Tags associated with the query.
	Tags map[string][]*string `json:"tags,omitempty"`

	// READ-ONLY; Object Id of user creating the query.
	Author *string `json:"author,omitempty" azure:"ro"`

	// READ-ONLY; The unique ID of your application. This field cannot be changed.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Creation Date for the Log Analytics Query, in ISO 8601 format.
	TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`

	// READ-ONLY; Last modified date of the Log Analytics Query, in ISO 8601 format.
	TimeModified *time.Time `json:"timeModified,omitempty" azure:"ro"`
}

LogAnalyticsQueryPackQueryProperties - Properties that define an Log Analytics QueryPack-Query resource.

func (LogAnalyticsQueryPackQueryProperties) MarshalJSON

func (l LogAnalyticsQueryPackQueryProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackQueryProperties.

func (*LogAnalyticsQueryPackQueryProperties) UnmarshalJSON

func (l *LogAnalyticsQueryPackQueryProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackQueryProperties.

type LogAnalyticsQueryPackQueryPropertiesRelated

type LogAnalyticsQueryPackQueryPropertiesRelated struct {
	// The related categories for the function.
	Categories []*string `json:"categories,omitempty"`

	// The related resource types for the function.
	ResourceTypes []*string `json:"resourceTypes,omitempty"`

	// The related Log Analytics solutions for the function.
	Solutions []*string `json:"solutions,omitempty"`
}

LogAnalyticsQueryPackQueryPropertiesRelated - The related metadata items for the function.

func (LogAnalyticsQueryPackQueryPropertiesRelated) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackQueryPropertiesRelated.

func (*LogAnalyticsQueryPackQueryPropertiesRelated) UnmarshalJSON

func (l *LogAnalyticsQueryPackQueryPropertiesRelated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackQueryPropertiesRelated.

type LogAnalyticsQueryPackQuerySearchProperties

type LogAnalyticsQueryPackQuerySearchProperties struct {
	// The related metadata items for the function.
	Related *LogAnalyticsQueryPackQuerySearchPropertiesRelated `json:"related,omitempty"`

	// Tags associated with the query.
	Tags map[string][]*string `json:"tags,omitempty"`
}

LogAnalyticsQueryPackQuerySearchProperties - Properties that define an Log Analytics QueryPack-Query search properties.

func (LogAnalyticsQueryPackQuerySearchProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackQuerySearchProperties.

func (*LogAnalyticsQueryPackQuerySearchProperties) UnmarshalJSON

func (l *LogAnalyticsQueryPackQuerySearchProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackQuerySearchProperties.

type LogAnalyticsQueryPackQuerySearchPropertiesRelated

type LogAnalyticsQueryPackQuerySearchPropertiesRelated struct {
	// The related categories for the function.
	Categories []*string `json:"categories,omitempty"`

	// The related resource types for the function.
	ResourceTypes []*string `json:"resourceTypes,omitempty"`

	// The related Log Analytics solutions for the function.
	Solutions []*string `json:"solutions,omitempty"`
}

LogAnalyticsQueryPackQuerySearchPropertiesRelated - The related metadata items for the function.

func (LogAnalyticsQueryPackQuerySearchPropertiesRelated) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type LogAnalyticsQueryPackQuerySearchPropertiesRelated.

func (*LogAnalyticsQueryPackQuerySearchPropertiesRelated) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsQueryPackQuerySearchPropertiesRelated.

type ManagementGroup

type ManagementGroup struct {
	// The properties of the management group.
	Properties *ManagementGroupProperties `json:"properties,omitempty"`
}

ManagementGroup - A management group that is connected to a workspace

func (ManagementGroup) MarshalJSON

func (m ManagementGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagementGroup.

func (*ManagementGroup) UnmarshalJSON

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 `json:"created,omitempty"`

	// The last datetime that the management group received data.
	DataReceived *time.Time `json:"dataReceived,omitempty"`

	// The unique ID of the management group.
	ID *string `json:"id,omitempty"`

	// Gets or sets a value indicating whether the management group is a gateway.
	IsGateway *bool `json:"isGateway,omitempty"`

	// The name of the management group.
	Name *string `json:"name,omitempty"`

	// The SKU of System Center that is managing the management group.
	SKU *string `json:"sku,omitempty"`

	// The number of servers connected to the management group.
	ServerCount *int32 `json:"serverCount,omitempty"`

	// The version of System Center that is managing the management group.
	Version *string `json:"version,omitempty"`
}

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListManagementGroups.json

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

type ManagementGroupsClientListOptions struct {
}

ManagementGroupsClientListOptions contains the optional parameters for the ManagementGroupsClient.NewListPager method.

type ManagementGroupsClientListResponse

type ManagementGroupsClientListResponse struct {
	WorkspaceListManagementGroupsResult
}

ManagementGroupsClientListResponse contains the response from method ManagementGroupsClient.NewListPager.

type MetricName

type MetricName struct {
	// The localized name of the metric.
	LocalizedValue *string `json:"localizedValue,omitempty"`

	// The system name of the metric.
	Value *string `json:"value,omitempty"`
}

MetricName - The name of a metric.

func (MetricName) MarshalJSON

func (m MetricName) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricName.

func (*MetricName) UnmarshalJSON

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 `json:"display,omitempty"`

	// Operation name: {provider}/{resource}/{operation}
	Name *string `json:"name,omitempty"`
}

Operation - Supported operation of OperationalInsights resource provider.

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// Description of operation
	Description *string `json:"description,omitempty"`

	// Type of operation: get, read, delete, etc.
	Operation *string `json:"operation,omitempty"`

	// Service provider: Microsoft OperationsManagement.
	Provider *string `json:"provider,omitempty"`

	// Resource on which the operation is performed etc.
	Resource *string `json:"resource,omitempty"`
}

OperationDisplay - Display metadata associated with the operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON

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 `json:"value,omitempty"`

	// READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`
}

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

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 `json:"endTime,omitempty"`

	// The error detail of the operation if any.
	Error *ErrorResponse `json:"error,omitempty"`

	// The operation Id.
	ID *string `json:"id,omitempty"`

	// The operation name.
	Name *string `json:"name,omitempty"`

	// The start time of the operation.
	StartTime *string `json:"startTime,omitempty"`

	// The status of the operation.
	Status *string `json:"status,omitempty"`
}

OperationStatus - The status of operation.

func (OperationStatus) MarshalJSON

func (o OperationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationStatus.

func (*OperationStatus) UnmarshalJSON

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/OperationStatusesGet.json

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

type OperationStatusesClientGetOptions struct {
}

OperationStatusesClientGetOptions contains the optional parameters for the OperationStatusesClient.Get method.

type OperationStatusesClientGetResponse

type OperationStatusesClientGetResponse struct {
	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

NewListPager - Lists all of the available OperationalInsights Rest API operations.

Generated from API version 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/OperationsListByTenant.json

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

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	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 `json:"resourceId,omitempty"`

	// The private link scope unique Identifier.
	ScopeID *string `json:"scopeId,omitempty"`
}

PrivateLinkScopedResource - The private link scope resource reference.

func (PrivateLinkScopedResource) MarshalJSON

func (p PrivateLinkScopedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkScopedResource.

func (*PrivateLinkScopedResource) UnmarshalJSON

func (p *PrivateLinkScopedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkScopedResource.

type ProvisioningStateEnum

type ProvisioningStateEnum string

ProvisioningStateEnum - Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.

const (
	// ProvisioningStateEnumInProgress - Table schema is stable and without changes, table data is being updated.
	ProvisioningStateEnumInProgress ProvisioningStateEnum = "InProgress"
	// ProvisioningStateEnumSucceeded - Table state is stable and without changes, table is unlocked and open for new updates.
	ProvisioningStateEnumSucceeded ProvisioningStateEnum = "Succeeded"
	// ProvisioningStateEnumUpdating - Table schema is still being built and updated, table is currently locked for any changes
	// till the procedure is done.
	ProvisioningStateEnumUpdating ProvisioningStateEnum = "Updating"
)

func PossibleProvisioningStateEnumValues

func PossibleProvisioningStateEnumValues() []ProvisioningStateEnum

PossibleProvisioningStateEnumValues returns the possible values for the ProvisioningStateEnum const type.

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 `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON

func (p ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON

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 QueriesClient

type QueriesClient struct {
	// contains filtered or unexported fields
}

QueriesClient contains the methods for the Queries group. Don't use this type directly, use NewQueriesClient() instead.

func NewQueriesClient

func NewQueriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QueriesClient, error)

NewQueriesClient creates a new instance of QueriesClient 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 (*QueriesClient) Delete

func (client *QueriesClient) Delete(ctx context.Context, resourceGroupName string, queryPackName string, id string, options *QueriesClientDeleteOptions) (QueriesClientDeleteResponse, error)

Delete - Deletes a specific Query defined within an Log Analytics QueryPack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • id - The id of a specific query defined in the Log Analytics QueryPack
  • options - QueriesClientDeleteOptions contains the optional parameters for the QueriesClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPackQueriesDelete.json

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.NewQueriesClient().Delete(ctx, "my-resource-group", "my-querypack", "a449f8af-8e64-4b3a-9b16-5a7165ff98c4", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
Output:

func (*QueriesClient) Get

func (client *QueriesClient) Get(ctx context.Context, resourceGroupName string, queryPackName string, id string, options *QueriesClientGetOptions) (QueriesClientGetResponse, error)

Get - Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • id - The id of a specific query defined in the Log Analytics QueryPack
  • options - QueriesClientGetOptions contains the optional parameters for the QueriesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPackQueriesGet.json

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.NewQueriesClient().Get(ctx, "my-resource-group", "my-querypack", "a449f8af-8e64-4b3a-9b16-5a7165ff98c4", 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.LogAnalyticsQueryPackQuery = armoperationalinsights.LogAnalyticsQueryPackQuery{
// 	Name: to.Ptr("a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 	Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
// 	ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 	SystemData: &armoperationalinsights.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
// 		Description: to.Ptr("Thie query fetcges the recent exceptions from the last 24 hours"),
// 		Body: to.Ptr("let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId  \n) on problemId \n| order by  count_ desc\n"),
// 		DisplayName: to.Ptr("Exceptions - New in the last 24 hours"),
// 		ID: to.Ptr("a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-12T11:44:39.2980634Z"); return t}()),
// 		TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-14T13:13:19.3381394Z"); return t}()),
// 	},
// }
Output:

func (*QueriesClient) NewListPager

func (client *QueriesClient) NewListPager(resourceGroupName string, queryPackName string, options *QueriesClientListOptions) *runtime.Pager[QueriesClientListResponse]

NewListPager - Gets a list of Queries defined within a Log Analytics QueryPack.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • options - QueriesClientListOptions contains the optional parameters for the QueriesClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPackQueriesList.json

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.NewQueriesClient().NewListPager("my-resource-group", "my-querypack", &armoperationalinsights.QueriesClientListOptions{Top: nil,
	IncludeBody: to.Ptr(true),
	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.LogAnalyticsQueryPackQueryListResult = armoperationalinsights.LogAnalyticsQueryPackQueryListResult{
	// 	Value: []*armoperationalinsights.LogAnalyticsQueryPackQuery{
	// 		{
	// 			Name: to.Ptr("4337bb16-d6fe-4ff7-97cf-59df25941476"),
	// 			Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/4337bb16-d6fe-4ff7-97cf-59df25941476"),
	// 			SystemData: &armoperationalinsights.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 				Description: to.Ptr("Thie query takes 10 entries of heartbeat"),
	// 				Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 				Body: to.Ptr("heartbeat | take 10"),
	// 				DisplayName: to.Ptr("Heartbeat_1"),
	// 				ID: to.Ptr("4337bb16-d6fe-4ff7-97cf-59df25941476"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:29:56.1030254Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:29:56.1030254Z"); return t}()),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("bf015bf7-be70-49c2-8d52-4cce85c42ef1"),
	// 			Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/bf015bf7-be70-49c2-8d52-4cce85c42ef1"),
	// 			SystemData: &armoperationalinsights.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 				Description: to.Ptr("Thie query takes 10 entries of heartbeat"),
	// 				Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 				Body: to.Ptr("heartbeat | take 10"),
	// 				DisplayName: to.Ptr("Heartbeat_2"),
	// 				ID: to.Ptr("bf015bf7-be70-49c2-8d52-4cce85c42ef1"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:26.7943629Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:26.7943629Z"); return t}()),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("8d91c6ca-9c56-49c6-b3ae-112a68871acd"),
	// 			Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/8d91c6ca-9c56-49c6-b3ae-112a68871acd"),
	// 			SystemData: &armoperationalinsights.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 				Description: to.Ptr("Thie query takes 10 entries of heartbeat"),
	// 				Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 				Body: to.Ptr("heartbeat | take 10"),
	// 				DisplayName: to.Ptr("Heartbeat_3"),
	// 				ID: to.Ptr("8d91c6ca-9c56-49c6-b3ae-112a68871acd"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:29.4505584Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:29.4505584Z"); return t}()),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("a5a9010e-e4b7-45ad-8b14-09d7e6082819"),
	// 			Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a5a9010e-e4b7-45ad-8b14-09d7e6082819"),
	// 			SystemData: &armoperationalinsights.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 				Description: to.Ptr("Thie query takes 10 entries of heartbeat"),
	// 				Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 				Body: to.Ptr("heartbeat | take 10"),
	// 				DisplayName: to.Ptr("Heartbeat_4"),
	// 				ID: to.Ptr("a5a9010e-e4b7-45ad-8b14-09d7e6082819"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:32.5742324Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:32.5742324Z"); return t}()),
	// 			},
	// 	}},
	// }
}
Output:

func (*QueriesClient) NewSearchPager

func (client *QueriesClient) NewSearchPager(resourceGroupName string, queryPackName string, querySearchProperties LogAnalyticsQueryPackQuerySearchProperties, options *QueriesClientSearchOptions) *runtime.Pager[QueriesClientSearchResponse]

NewSearchPager - Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • querySearchProperties - Properties by which to search queries in the given Log Analytics QueryPack.
  • options - QueriesClientSearchOptions contains the optional parameters for the QueriesClient.NewSearchPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPackQueriesSearch.json

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.NewQueriesClient().NewSearchPager("my-resource-group", "my-querypack", armoperationalinsights.LogAnalyticsQueryPackQuerySearchProperties{
	Related: &armoperationalinsights.LogAnalyticsQueryPackQuerySearchPropertiesRelated{
		Categories: []*string{
			to.Ptr("other"),
			to.Ptr("analytics")},
	},
	Tags: map[string][]*string{
		"my-label": {
			to.Ptr("label1")},
	},
}, &armoperationalinsights.QueriesClientSearchOptions{Top: to.Ptr[int64](3),
	IncludeBody: to.Ptr(true),
	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.LogAnalyticsQueryPackQueryListResult = armoperationalinsights.LogAnalyticsQueryPackQueryListResult{
	// 	Value: []*armoperationalinsights.LogAnalyticsQueryPackQuery{
	// 		{
	// 			Name: to.Ptr("4337bb16-d6fe-4ff7-97cf-59df25941476"),
	// 			Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/4337bb16-d6fe-4ff7-97cf-59df25941476"),
	// 			SystemData: &armoperationalinsights.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 				Description: to.Ptr("Thie query takes 10 entries of heartbeat 0"),
	// 				Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 				Body: to.Ptr("Heartbeat | take 1"),
	// 				DisplayName: to.Ptr("Heartbeat_1"),
	// 				ID: to.Ptr("4337bb16-d6fe-4ff7-97cf-59df25941476"),
	// 				Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
	// 					Categories: []*string{
	// 						to.Ptr("other")},
	// 					},
	// 					Tags: map[string][]*string{
	// 						"my-label": []*string{
	// 							to.Ptr("label1")},
	// 							"my-other-label": []*string{
	// 								to.Ptr("label2")},
	// 							},
	// 							TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:29:56.1030254Z"); return t}()),
	// 							TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:29:56.1030254Z"); return t}()),
	// 						},
	// 					},
	// 					{
	// 						Name: to.Ptr("bf015bf7-be70-49c2-8d52-4cce85c42ef1"),
	// 						Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 						ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/bf015bf7-be70-49c2-8d52-4cce85c42ef1"),
	// 						SystemData: &armoperationalinsights.SystemData{
	// 							CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 							CreatedBy: to.Ptr("string"),
	// 							CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 							LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 							LastModifiedBy: to.Ptr("string"),
	// 							LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 						},
	// 						Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 							Description: to.Ptr("Thie query takes 10 entries of heartbeat 1"),
	// 							Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 							Body: to.Ptr("Heartbeat | take 1"),
	// 							DisplayName: to.Ptr("Heartbeat_2"),
	// 							ID: to.Ptr("bf015bf7-be70-49c2-8d52-4cce85c42ef1"),
	// 							Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
	// 								Categories: []*string{
	// 									to.Ptr("analytics")},
	// 								},
	// 								Tags: map[string][]*string{
	// 									"my-label": []*string{
	// 										to.Ptr("label1")},
	// 										"my-other-label": []*string{
	// 											to.Ptr("label2")},
	// 										},
	// 										TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:26.7943629Z"); return t}()),
	// 										TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:26.7943629Z"); return t}()),
	// 									},
	// 								},
	// 								{
	// 									Name: to.Ptr("8d91c6ca-9c56-49c6-b3ae-112a68871acd"),
	// 									Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
	// 									ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/8d91c6ca-9c56-49c6-b3ae-112a68871acd"),
	// 									SystemData: &armoperationalinsights.SystemData{
	// 										CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
	// 										CreatedBy: to.Ptr("string"),
	// 										CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 										LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
	// 										LastModifiedBy: to.Ptr("string"),
	// 										LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
	// 									},
	// 									Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
	// 										Description: to.Ptr("Thie query takes 10 entries of heartbeat 2"),
	// 										Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
	// 										Body: to.Ptr("Heartbeat | take 1"),
	// 										DisplayName: to.Ptr("Heartbeat_3"),
	// 										ID: to.Ptr("8d91c6ca-9c56-49c6-b3ae-112a68871acd"),
	// 										Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
	// 											Categories: []*string{
	// 												to.Ptr("other"),
	// 												to.Ptr("analytics")},
	// 											},
	// 											Tags: map[string][]*string{
	// 												"my-label": []*string{
	// 													to.Ptr("label1")},
	// 													"my-other-label": []*string{
	// 														to.Ptr("label2")},
	// 													},
	// 													TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:29.4505584Z"); return t}()),
	// 													TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:29.4505584Z"); return t}()),
	// 												},
	// 										}},
	// 									}
}
Output:

func (*QueriesClient) Put

func (client *QueriesClient) Put(ctx context.Context, resourceGroupName string, queryPackName string, id string, queryPayload LogAnalyticsQueryPackQuery, options *QueriesClientPutOptions) (QueriesClientPutResponse, error)

Put - Adds or Updates a specific Query within a Log Analytics QueryPack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • id - The id of a specific query defined in the Log Analytics QueryPack
  • queryPayload - Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.
  • options - QueriesClientPutOptions contains the optional parameters for the QueriesClient.Put method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPackQueriesPut.json

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.NewQueriesClient().Put(ctx, "my-resource-group", "my-querypack", "a449f8af-8e64-4b3a-9b16-5a7165ff98c4", armoperationalinsights.LogAnalyticsQueryPackQuery{
	Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
		Description: to.Ptr("my description"),
		Body:        to.Ptr("let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId  \n) on problemId \n| order by  count_ desc\n"),
		DisplayName: to.Ptr("Exceptions - New in the last 24 hours"),
		Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
			Categories: []*string{
				to.Ptr("analytics")},
		},
		Tags: map[string][]*string{
			"my-label": {
				to.Ptr("label1")},
			"my-other-label": {
				to.Ptr("label2")},
		},
	},
}, 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.LogAnalyticsQueryPackQuery = armoperationalinsights.LogAnalyticsQueryPackQuery{
// 	Name: to.Ptr("a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 	Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
// 	ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 	SystemData: &armoperationalinsights.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
// 		Description: to.Ptr("my description"),
// 		Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
// 		Body: to.Ptr("let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId  \n) on problemId \n| order by  count_ desc\n"),
// 		DisplayName: to.Ptr("Exceptions - New in the last 24 hours"),
// 		ID: to.Ptr("a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 		Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
// 			Categories: []*string{
// 				to.Ptr("analytics")},
// 			},
// 			Tags: map[string][]*string{
// 				"my-label": []*string{
// 					to.Ptr("label1")},
// 					"my-other-label": []*string{
// 						to.Ptr("label2")},
// 					},
// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:32.5742324Z"); return t}()),
// 					TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:32.5742324Z"); return t}()),
// 				},
// 			}
Output:

func (*QueriesClient) Update

func (client *QueriesClient) Update(ctx context.Context, resourceGroupName string, queryPackName string, id string, queryPayload LogAnalyticsQueryPackQuery, options *QueriesClientUpdateOptions) (QueriesClientUpdateResponse, error)

Update - Adds or Updates a specific Query within a Log Analytics QueryPack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • id - The id of a specific query defined in the Log Analytics QueryPack
  • queryPayload - Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.
  • options - QueriesClientUpdateOptions contains the optional parameters for the QueriesClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPackQueriesUpdate.json

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.NewQueriesClient().Update(ctx, "my-resource-group", "my-querypack", "a449f8af-8e64-4b3a-9b16-5a7165ff98c4", armoperationalinsights.LogAnalyticsQueryPackQuery{
	Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
		Description: to.Ptr("my description"),
		Body:        to.Ptr("let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId  \n) on problemId \n| order by  count_ desc\n"),
		DisplayName: to.Ptr("Exceptions - New in the last 24 hours"),
		Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
			Categories: []*string{
				to.Ptr("analytics")},
		},
		Tags: map[string][]*string{
			"my-label": {
				to.Ptr("label1")},
			"my-other-label": {
				to.Ptr("label2")},
		},
	},
}, 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.LogAnalyticsQueryPackQuery = armoperationalinsights.LogAnalyticsQueryPackQuery{
// 	Name: to.Ptr("a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 	Type: to.Ptr("microsoft.operationalinsights/queryPacks/queries"),
// 	ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 	SystemData: &armoperationalinsights.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armoperationalinsights.IdentityTypeApplication),
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackQueryProperties{
// 		Description: to.Ptr("my description"),
// 		Author: to.Ptr("1809f206-263a-46f7-942d-4572c156b7e7"),
// 		Body: to.Ptr("let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId  \n) on problemId \n| order by  count_ desc\n"),
// 		DisplayName: to.Ptr("Exceptions - New in the last 24 hours"),
// 		ID: to.Ptr("a449f8af-8e64-4b3a-9b16-5a7165ff98c4"),
// 		Related: &armoperationalinsights.LogAnalyticsQueryPackQueryPropertiesRelated{
// 			Categories: []*string{
// 				to.Ptr("analytics")},
// 			},
// 			Tags: map[string][]*string{
// 				"my-label": []*string{
// 					to.Ptr("label1")},
// 					"my-other-label": []*string{
// 						to.Ptr("label2")},
// 					},
// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:32.5742324Z"); return t}()),
// 					TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-15T10:30:32.5742324Z"); return t}()),
// 				},
// 			}
Output:

type QueriesClientDeleteOptions

type QueriesClientDeleteOptions struct {
}

QueriesClientDeleteOptions contains the optional parameters for the QueriesClient.Delete method.

type QueriesClientDeleteResponse

type QueriesClientDeleteResponse struct {
}

QueriesClientDeleteResponse contains the response from method QueriesClient.Delete.

type QueriesClientGetOptions

type QueriesClientGetOptions struct {
}

QueriesClientGetOptions contains the optional parameters for the QueriesClient.Get method.

type QueriesClientGetResponse

type QueriesClientGetResponse struct {
	LogAnalyticsQueryPackQuery
}

QueriesClientGetResponse contains the response from method QueriesClient.Get.

type QueriesClientListOptions

type QueriesClientListOptions struct {
	// Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.
	IncludeBody *bool
	// Base64 encoded token used to fetch the next page of items. Default is null.
	SkipToken *string
	// Maximum items returned in page.
	Top *int64
}

QueriesClientListOptions contains the optional parameters for the QueriesClient.NewListPager method.

type QueriesClientListResponse

type QueriesClientListResponse struct {
	LogAnalyticsQueryPackQueryListResult
}

QueriesClientListResponse contains the response from method QueriesClient.NewListPager.

type QueriesClientPutOptions

type QueriesClientPutOptions struct {
}

QueriesClientPutOptions contains the optional parameters for the QueriesClient.Put method.

type QueriesClientPutResponse

type QueriesClientPutResponse struct {
	LogAnalyticsQueryPackQuery
}

QueriesClientPutResponse contains the response from method QueriesClient.Put.

type QueriesClientSearchOptions

type QueriesClientSearchOptions struct {
	// Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.
	IncludeBody *bool
	// Base64 encoded token used to fetch the next page of items. Default is null.
	SkipToken *string
	// Maximum items returned in page.
	Top *int64
}

QueriesClientSearchOptions contains the optional parameters for the QueriesClient.NewSearchPager method.

type QueriesClientSearchResponse

type QueriesClientSearchResponse struct {
	LogAnalyticsQueryPackQueryListResult
}

QueriesClientSearchResponse contains the response from method QueriesClient.NewSearchPager.

type QueriesClientUpdateOptions

type QueriesClientUpdateOptions struct {
}

QueriesClientUpdateOptions contains the optional parameters for the QueriesClient.Update method.

type QueriesClientUpdateResponse

type QueriesClientUpdateResponse struct {
	LogAnalyticsQueryPackQuery
}

QueriesClientUpdateResponse contains the response from method QueriesClient.Update.

type QueryPacksClient

type QueryPacksClient struct {
	// contains filtered or unexported fields
}

QueryPacksClient contains the methods for the QueryPacks group. Don't use this type directly, use NewQueryPacksClient() instead.

func NewQueryPacksClient

func NewQueryPacksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QueryPacksClient, error)

NewQueryPacksClient creates a new instance of QueryPacksClient 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 (*QueryPacksClient) CreateOrUpdate

func (client *QueryPacksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, queryPackName string, logAnalyticsQueryPackPayload LogAnalyticsQueryPack, options *QueryPacksClientCreateOrUpdateOptions) (QueryPacksClientCreateOrUpdateResponse, error)

CreateOrUpdate - Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • logAnalyticsQueryPackPayload - Properties that need to be specified to create or update a Log Analytics QueryPack.
  • options - QueryPacksClientCreateOrUpdateOptions contains the optional parameters for the QueryPacksClient.CreateOrUpdate method.
Example (QueryPackCreate)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksCreate.json

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.NewQueryPacksClient().CreateOrUpdate(ctx, "my-resource-group", "my-querypack", armoperationalinsights.LogAnalyticsQueryPack{
	Location:   to.Ptr("South Central US"),
	Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{},
}, 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.LogAnalyticsQueryPack = armoperationalinsights.LogAnalyticsQueryPack{
// 	Name: to.Ptr("my-querypack"),
// 	Type: to.Ptr("microsoft.operationalinsights/querypacks"),
// 	ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack"),
// 	Location: to.Ptr("South Central US"),
// 	Tags: map[string]*string{
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		QueryPackID: to.Ptr("d1c8fc00-2b68-441e-8f9b-ded8748dc635"),
// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
// 		TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
// 	},
// }
Output:

Example (QueryPackUpdate)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksUpdate.json

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.NewQueryPacksClient().CreateOrUpdate(ctx, "my-resource-group", "my-querypack", armoperationalinsights.LogAnalyticsQueryPack{
	Location: to.Ptr("South Central US"),
	Tags: map[string]*string{
		"Tag1": to.Ptr("Value1"),
	},
	Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{},
}, 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.LogAnalyticsQueryPack = armoperationalinsights.LogAnalyticsQueryPack{
// 	Name: to.Ptr("my-querypack"),
// 	Type: to.Ptr("microsoft.operationalinsights/querypacks"),
// 	ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack"),
// 	Location: to.Ptr("South Central US"),
// 	Tags: map[string]*string{
// 		"Tag1": to.Ptr("Value1"),
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		QueryPackID: to.Ptr("aac8fc00-2b68-441e-8f9b-ded8748dc635"),
// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-06-04T12:37:56.8543652Z"); return t}()),
// 		TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
// 	},
// }
Output:

func (*QueryPacksClient) Delete

func (client *QueryPacksClient) Delete(ctx context.Context, resourceGroupName string, queryPackName string, options *QueryPacksClientDeleteOptions) (QueryPacksClientDeleteResponse, error)

Delete - Deletes a Log Analytics QueryPack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • options - QueryPacksClientDeleteOptions contains the optional parameters for the QueryPacksClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksDelete.json

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.NewQueryPacksClient().Delete(ctx, "my-resource-group", "my-querypack", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
Output:

func (*QueryPacksClient) Get

func (client *QueryPacksClient) Get(ctx context.Context, resourceGroupName string, queryPackName string, options *QueryPacksClientGetOptions) (QueryPacksClientGetResponse, error)

Get - Returns a Log Analytics QueryPack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • options - QueryPacksClientGetOptions contains the optional parameters for the QueryPacksClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksGet.json

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.NewQueryPacksClient().Get(ctx, "my-resource-group", "my-querypack", 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.LogAnalyticsQueryPack = armoperationalinsights.LogAnalyticsQueryPack{
// 	Name: to.Ptr("my-querypack"),
// 	Type: to.Ptr("microsoft.operationalinsights/querypacks"),
// 	ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack"),
// 	Location: to.Ptr("southcentralus"),
// 	Tags: map[string]*string{
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		QueryPackID: to.Ptr("d1c8fc00-2b68-441e-8f9b-ded8748dc635"),
// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
// 		TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
// 	},
// }
Output:

func (*QueryPacksClient) NewListByResourceGroupPager

func (client *QueryPacksClient) NewListByResourceGroupPager(resourceGroupName string, options *QueryPacksClientListByResourceGroupOptions) *runtime.Pager[QueryPacksClientListByResourceGroupResponse]

NewListByResourceGroupPager - Gets a list of Log Analytics QueryPacks within a resource group.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - QueryPacksClientListByResourceGroupOptions contains the optional parameters for the QueryPacksClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksListByResourceGroup.json

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.NewQueryPacksClient().NewListByResourceGroupPager("my-resource-group", 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.LogAnalyticsQueryPackListResult = armoperationalinsights.LogAnalyticsQueryPackListResult{
	// 	Value: []*armoperationalinsights.LogAnalyticsQueryPack{
	// 		{
	// 			Name: to.Ptr("my-querypack"),
	// 			Type: to.Ptr("microsoft.operationalinsights/querypacks"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack"),
	// 			Location: to.Ptr("South Central US"),
	// 			Tags: map[string]*string{
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				QueryPackID: to.Ptr("d1c8fc00-2b68-441e-8f9b-ded8748dc6aa"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("my-other-querypack"),
	// 			Type: to.Ptr("microsoft.operationalinsights/querypacks"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-other-querypack"),
	// 			Location: to.Ptr("South Central US"),
	// 			Tags: map[string]*string{
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				QueryPackID: to.Ptr("aac8fc00-2b68-441e-8f9b-ded8748dc635"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-06-04T12:37:56.8543652Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
	// 			},
	// 	}},
	// }
}
Output:

func (*QueryPacksClient) NewListPager

NewListPager - Gets a list of all Log Analytics QueryPacks within a subscription.

Generated from API version 2019-09-01

  • options - QueryPacksClientListOptions contains the optional parameters for the QueryPacksClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksList.json

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.NewQueryPacksClient().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.LogAnalyticsQueryPackListResult = armoperationalinsights.LogAnalyticsQueryPackListResult{
	// 	Value: []*armoperationalinsights.LogAnalyticsQueryPack{
	// 		{
	// 			Name: to.Ptr("my-querypack"),
	// 			Type: to.Ptr("microsoft.operationalinsights/querypacks"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack"),
	// 			Location: to.Ptr("South Central US"),
	// 			Tags: map[string]*string{
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				QueryPackID: to.Ptr("d1c8fc00-2b68-441e-8f9b-ded8748dc6aa"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("my-other-querypack"),
	// 			Type: to.Ptr("microsoft.operationalinsights/querypacks"),
	// 			ID: to.Ptr("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-other-resource-group/providers/microsoft.operationalinsights/queryPacks/my-other-querypack"),
	// 			Location: to.Ptr("South Central US"),
	// 			Tags: map[string]*string{
	// 			},
	// 			Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				QueryPackID: to.Ptr("aac8fc00-2b68-441e-8f9b-ded8748dc635"),
	// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-06-04T12:37:56.8543652Z"); return t}()),
	// 				TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
	// 			},
	// 	}},
	// }
}
Output:

func (*QueryPacksClient) UpdateTags

func (client *QueryPacksClient) UpdateTags(ctx context.Context, resourceGroupName string, queryPackName string, queryPackTags TagsResource, options *QueryPacksClientUpdateTagsOptions) (QueryPacksClientUpdateTagsResponse, error)

UpdateTags - Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • queryPackName - The name of the Log Analytics QueryPack resource.
  • queryPackTags - Updated tag information to set into the QueryPack instance.
  • options - QueryPacksClientUpdateTagsOptions contains the optional parameters for the QueryPacksClient.UpdateTags method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/examples/QueryPacksUpdateTagsOnly.json

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.NewQueryPacksClient().UpdateTags(ctx, "my-resource-group", "my-querypack", armoperationalinsights.TagsResource{
	Tags: map[string]*string{
		"Tag1": to.Ptr("Value1"),
		"Tag2": to.Ptr("Value2"),
	},
}, 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.LogAnalyticsQueryPack = armoperationalinsights.LogAnalyticsQueryPack{
// 	Name: to.Ptr("my-querypack"),
// 	Type: to.Ptr("microsoft.operationalinsights/querypacks"),
// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack"),
// 	Location: to.Ptr("South Central US"),
// 	Tags: map[string]*string{
// 		"Tag1": to.Ptr("Value1"),
// 		"Tag2": to.Ptr("Value2"),
// 	},
// 	Properties: &armoperationalinsights.LogAnalyticsQueryPackProperties{
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		QueryPackID: to.Ptr("aac8fc00-2b68-441e-8f9b-ded8748dc635"),
// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-06-04T12:37:56.8543652Z"); return t}()),
// 		TimeModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-04T12:37:56.8543652Z"); return t}()),
// 	},
// }
Output:

type QueryPacksClientCreateOrUpdateOptions

type QueryPacksClientCreateOrUpdateOptions struct {
}

QueryPacksClientCreateOrUpdateOptions contains the optional parameters for the QueryPacksClient.CreateOrUpdate method.

type QueryPacksClientCreateOrUpdateResponse

type QueryPacksClientCreateOrUpdateResponse struct {
	LogAnalyticsQueryPack
}

QueryPacksClientCreateOrUpdateResponse contains the response from method QueryPacksClient.CreateOrUpdate.

type QueryPacksClientDeleteOptions

type QueryPacksClientDeleteOptions struct {
}

QueryPacksClientDeleteOptions contains the optional parameters for the QueryPacksClient.Delete method.

type QueryPacksClientDeleteResponse

type QueryPacksClientDeleteResponse struct {
}

QueryPacksClientDeleteResponse contains the response from method QueryPacksClient.Delete.

type QueryPacksClientGetOptions

type QueryPacksClientGetOptions struct {
}

QueryPacksClientGetOptions contains the optional parameters for the QueryPacksClient.Get method.

type QueryPacksClientGetResponse

type QueryPacksClientGetResponse struct {
	LogAnalyticsQueryPack
}

QueryPacksClientGetResponse contains the response from method QueryPacksClient.Get.

type QueryPacksClientListByResourceGroupOptions

type QueryPacksClientListByResourceGroupOptions struct {
}

QueryPacksClientListByResourceGroupOptions contains the optional parameters for the QueryPacksClient.NewListByResourceGroupPager method.

type QueryPacksClientListByResourceGroupResponse

type QueryPacksClientListByResourceGroupResponse struct {
	LogAnalyticsQueryPackListResult
}

QueryPacksClientListByResourceGroupResponse contains the response from method QueryPacksClient.NewListByResourceGroupPager.

type QueryPacksClientListOptions

type QueryPacksClientListOptions struct {
}

QueryPacksClientListOptions contains the optional parameters for the QueryPacksClient.NewListPager method.

type QueryPacksClientListResponse

type QueryPacksClientListResponse struct {
	LogAnalyticsQueryPackListResult
}

QueryPacksClientListResponse contains the response from method QueryPacksClient.NewListPager.

type QueryPacksClientUpdateTagsOptions

type QueryPacksClientUpdateTagsOptions struct {
}

QueryPacksClientUpdateTagsOptions contains the optional parameters for the QueryPacksClient.UpdateTags method.

type QueryPacksClientUpdateTagsResponse

type QueryPacksClientUpdateTagsResponse struct {
	LogAnalyticsQueryPack
}

QueryPacksClientUpdateTagsResponse contains the response from method QueryPacksClient.UpdateTags.

type QueryPacksResource

type QueryPacksResource struct {
	// REQUIRED; Resource location
	Location *string `json:"location,omitempty"`

	// Resource tags
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Azure resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure resource type
	Type *string `json:"type,omitempty" azure:"ro"`
}

QueryPacksResource - An azure resource object

func (QueryPacksResource) MarshalJSON

func (q QueryPacksResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryPacksResource.

func (*QueryPacksResource) UnmarshalJSON

func (q *QueryPacksResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryPacksResource.

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 `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Resource - Common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type RestoredLogs

type RestoredLogs struct {
	// The timestamp to end the restore by (UTC).
	EndRestoreTime *time.Time `json:"endRestoreTime,omitempty"`

	// The table to restore data from.
	SourceTable *string `json:"sourceTable,omitempty"`

	// The timestamp to start the restore from (UTC).
	StartRestoreTime *time.Time `json:"startRestoreTime,omitempty"`
}

RestoredLogs - Restore parameters.

func (RestoredLogs) MarshalJSON

func (r RestoredLogs) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RestoredLogs.

func (*RestoredLogs) UnmarshalJSON

func (r *RestoredLogs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RestoredLogs.

type ResultStatistics

type ResultStatistics struct {
	// READ-ONLY; The number of rows that were returned by the search job.
	IngestedRecords *int32 `json:"ingestedRecords,omitempty" azure:"ro"`

	// READ-ONLY; Search job completion percentage.
	Progress *float32 `json:"progress,omitempty" azure:"ro"`
}

ResultStatistics - Search job execution statistics.

func (ResultStatistics) MarshalJSON

func (r ResultStatistics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResultStatistics.

func (*ResultStatistics) UnmarshalJSON

func (r *ResultStatistics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResultStatistics.

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 `json:"properties,omitempty"`

	// The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag
	Etag *string `json:"etag,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

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 `json:"category,omitempty"`

	// REQUIRED; Saved search display name.
	DisplayName *string `json:"displayName,omitempty"`

	// REQUIRED; The query expression for the saved search.
	Query *string `json:"query,omitempty"`

	// The function alias if query serves as a function.
	FunctionAlias *string `json:"functionAlias,omitempty"`

	// 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 `json:"functionParameters,omitempty"`

	// The tags attached to the saved search.
	Tags []*Tag `json:"tags,omitempty"`

	// The version number of the query language. The current version is 2 and is the default.
	Version *int64 `json:"version,omitempty"`
}

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesDeleteSavedSearches.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesSavedSearchesGet.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/SavedSearchesListByWorkspace.json

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

type SavedSearchesClientCreateOrUpdateOptions struct {
}

SavedSearchesClientCreateOrUpdateOptions contains the optional parameters for the SavedSearchesClient.CreateOrUpdate method.

type SavedSearchesClientCreateOrUpdateResponse

type SavedSearchesClientCreateOrUpdateResponse struct {
	SavedSearch
}

SavedSearchesClientCreateOrUpdateResponse contains the response from method SavedSearchesClient.CreateOrUpdate.

type SavedSearchesClientDeleteOptions

type SavedSearchesClientDeleteOptions struct {
}

SavedSearchesClientDeleteOptions contains the optional parameters for the SavedSearchesClient.Delete method.

type SavedSearchesClientDeleteResponse

type SavedSearchesClientDeleteResponse struct {
}

SavedSearchesClientDeleteResponse contains the response from method SavedSearchesClient.Delete.

type SavedSearchesClientGetOptions

type SavedSearchesClientGetOptions struct {
}

SavedSearchesClientGetOptions contains the optional parameters for the SavedSearchesClient.Get method.

type SavedSearchesClientGetResponse

type SavedSearchesClientGetResponse struct {
	SavedSearch
}

SavedSearchesClientGetResponse contains the response from method SavedSearchesClient.Get.

type SavedSearchesClientListByWorkspaceOptions

type SavedSearchesClientListByWorkspaceOptions struct {
}

SavedSearchesClientListByWorkspaceOptions contains the optional parameters for the SavedSearchesClient.ListByWorkspace method.

type SavedSearchesClientListByWorkspaceResponse

type SavedSearchesClientListByWorkspaceResponse struct {
	SavedSearchesListResult
}

SavedSearchesClientListByWorkspaceResponse contains the response from method SavedSearchesClient.ListByWorkspace.

type SavedSearchesListResult

type SavedSearchesListResult struct {
	// The array of result values.
	Value []*SavedSearch `json:"value,omitempty"`
}

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

func (s *SavedSearchesListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SavedSearchesListResult.

type Schema

type Schema struct {
	// A list of table custom columns.
	Columns []*Column `json:"columns,omitempty"`

	// Table description.
	Description *string `json:"description,omitempty"`

	// Table display name.
	DisplayName *string `json:"displayName,omitempty"`

	// Table name.
	Name *string `json:"name,omitempty"`

	// READ-ONLY; Table category.
	Categories []*string `json:"categories,omitempty" azure:"ro"`

	// READ-ONLY; Table labels.
	Labels []*string `json:"labels,omitempty" azure:"ro"`

	// READ-ONLY; Parameters of the restore operation that initiated this table.
	RestoredLogs *RestoredLogs `json:"restoredLogs,omitempty" azure:"ro"`

	// READ-ONLY; Parameters of the search job that initiated this table.
	SearchResults *SearchResults `json:"searchResults,omitempty" azure:"ro"`

	// READ-ONLY; List of solutions the table is affiliated with
	Solutions []*string `json:"solutions,omitempty" azure:"ro"`

	// READ-ONLY; Table's creator.
	Source *SourceEnum `json:"source,omitempty" azure:"ro"`

	// READ-ONLY; A list of table standard columns.
	StandardColumns []*Column `json:"standardColumns,omitempty" azure:"ro"`

	// READ-ONLY; The subtype describes what APIs can be used to interact with the table, and what features are available against
	// it.
	TableSubType *TableSubTypeEnum `json:"tableSubType,omitempty" azure:"ro"`

	// READ-ONLY; Table's creator.
	TableType *TableTypeEnum `json:"tableType,omitempty" azure:"ro"`
}

Schema - Table's schema.

func (Schema) MarshalJSON

func (s Schema) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Schema.

func (*Schema) UnmarshalJSON

func (s *Schema) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Schema.

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/SavedSearchesGetSchema.json

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

type SchemaClientGetOptions struct {
}

SchemaClientGetOptions contains the optional parameters for the SchemaClient.Get method.

type SchemaClientGetResponse

type SchemaClientGetResponse struct {
	SearchGetSchemaResponse
}

SchemaClientGetResponse contains the response from method SchemaClient.Get.

type SearchGetSchemaResponse

type SearchGetSchemaResponse struct {
	// The metadata from search results.
	Metadata *SearchMetadata `json:"metadata,omitempty"`

	// The array of result values.
	Value []*SearchSchemaValue `json:"value,omitempty"`
}

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

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 `json:"aggregatedGroupingFields,omitempty"`

	// The aggregated value field.
	AggregatedValueField *string `json:"aggregatedValueField,omitempty"`

	// The core summaries.
	CoreSummaries []*CoreSummary `json:"coreSummaries,omitempty"`

	// The ETag of the search results.
	ETag *string `json:"eTag,omitempty"`

	// The id of the search results request.
	ID *string `json:"id,omitempty"`

	// The time of last update.
	LastUpdated *time.Time `json:"lastUpdated,omitempty"`

	// The max of all aggregates returned in the result set.
	Max *int64 `json:"max,omitempty"`

	// The request time.
	RequestTime *int64 `json:"requestTime,omitempty"`

	// The search result type.
	ResultType *string `json:"resultType,omitempty"`

	// The schema.
	Schema *SearchMetadataSchema `json:"schema,omitempty"`

	// The request id of the search.
	SearchID *string `json:"requestId,omitempty"`

	// How the results are sorted.
	Sort []*SearchSort `json:"sort,omitempty"`

	// The start time for the search.
	StartTime *time.Time `json:"startTime,omitempty"`

	// The status of the search results.
	Status *string `json:"status,omitempty"`

	// The sum of all aggregates returned in the result set.
	Sum *int64 `json:"sum,omitempty"`

	// The number of top search results.
	Top *int64 `json:"top,omitempty"`

	// The total number of search results.
	Total *int64 `json:"total,omitempty"`
}

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 `json:"name,omitempty"`

	// The version of the metadata schema.
	Version *int32 `json:"version,omitempty"`
}

SearchMetadataSchema - Schema metadata for search.

func (SearchMetadataSchema) MarshalJSON

func (s SearchMetadataSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SearchMetadataSchema.

func (*SearchMetadataSchema) UnmarshalJSON

func (s *SearchMetadataSchema) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SearchMetadataSchema.

type SearchResults

type SearchResults struct {
	// Search job Description.
	Description *string `json:"description,omitempty"`

	// The timestamp to end the search by (UTC)
	EndSearchTime *time.Time `json:"endSearchTime,omitempty"`

	// Limit the search job to return up to specified number of rows.
	Limit *int32 `json:"limit,omitempty"`

	// Search job query.
	Query *string `json:"query,omitempty"`

	// The timestamp to start the search from (UTC)
	StartSearchTime *time.Time `json:"startSearchTime,omitempty"`

	// READ-ONLY; The table used in the search job.
	SourceTable *string `json:"sourceTable,omitempty" azure:"ro"`
}

SearchResults - Parameters of the search job that initiated this table.

func (SearchResults) MarshalJSON

func (s SearchResults) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SearchResults.

func (*SearchResults) UnmarshalJSON

func (s *SearchResults) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SearchResults.

type SearchSchemaValue

type SearchSchemaValue struct {
	// REQUIRED; The boolean that indicates whether or not the field is a facet.
	Facet *bool `json:"facet,omitempty"`

	// REQUIRED; The boolean that indicates the field is searchable as free text.
	Indexed *bool `json:"indexed,omitempty"`

	// REQUIRED; The boolean that indicates whether or not the field is stored.
	Stored *bool `json:"stored,omitempty"`

	// The display name of the schema.
	DisplayName *string `json:"displayName,omitempty"`

	// The name of the schema.
	Name *string `json:"name,omitempty"`

	// The array of workflows containing the field.
	OwnerType []*string `json:"ownerType,omitempty"`

	// The type.
	Type *string `json:"type,omitempty"`
}

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

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 `json:"name,omitempty"`

	// The sort order of the search.
	Order *SearchSortEnum `json:"order,omitempty"`
}

SearchSort - The sort parameters for search.

func (SearchSort) MarshalJSON

func (s SearchSort) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SearchSort.

func (*SearchSort) UnmarshalJSON

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

type SharedKeys struct {
	// The primary shared key of a workspace.
	PrimarySharedKey *string `json:"primarySharedKey,omitempty"`

	// The secondary shared key of a workspace.
	SecondarySharedKey *string `json:"secondarySharedKey,omitempty"`
}

SharedKeys - The shared keys for a workspace.

func (SharedKeys) MarshalJSON

func (s SharedKeys) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SharedKeys.

func (*SharedKeys) UnmarshalJSON

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.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesGetSharedKeys.json

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.NewSharedKeysClient().GetSharedKeys(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.SharedKeys = armoperationalinsights.SharedKeys{
// 	PrimarySharedKey: to.Ptr("<primarySharedKey>"),
// 	SecondarySharedKey: to.Ptr("<secondarySharedKey>"),
// }
Output:

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.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesRegenerateSharedKeys.json

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.NewSharedKeysClient().Regenerate(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.SharedKeys = armoperationalinsights.SharedKeys{
// 	PrimarySharedKey: to.Ptr("<primarySharedKey>"),
// 	SecondarySharedKey: to.Ptr("<secondarySharedKey>"),
// }
Output:

type SharedKeysClientGetSharedKeysOptions

type SharedKeysClientGetSharedKeysOptions struct {
}

SharedKeysClientGetSharedKeysOptions contains the optional parameters for the SharedKeysClient.GetSharedKeys method.

type SharedKeysClientGetSharedKeysResponse

type SharedKeysClientGetSharedKeysResponse struct {
	SharedKeys
}

SharedKeysClientGetSharedKeysResponse contains the response from method SharedKeysClient.GetSharedKeys.

type SharedKeysClientRegenerateOptions

type SharedKeysClientRegenerateOptions struct {
}

SharedKeysClientRegenerateOptions contains the optional parameters for the SharedKeysClient.Regenerate method.

type SharedKeysClientRegenerateResponse

type SharedKeysClientRegenerateResponse struct {
	SharedKeys
}

SharedKeysClientRegenerateResponse contains the response from method SharedKeysClient.Regenerate.

type SourceEnum

type SourceEnum string

SourceEnum - Table's creator.

const (
	// SourceEnumCustomer - Tables created by the owner of the Workspace, and only found in this Workspace.
	SourceEnumCustomer SourceEnum = "customer"
	// SourceEnumMicrosoft - Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other
	// standard data collection means.
	SourceEnumMicrosoft SourceEnum = "microsoft"
)

func PossibleSourceEnumValues

func PossibleSourceEnumValues() []SourceEnum

PossibleSourceEnumValues returns the possible values for the SourceEnum const type.

type StorageAccount

type StorageAccount struct {
	// REQUIRED; The Azure Resource Manager ID of the storage account resource.
	ID *string `json:"id,omitempty"`

	// REQUIRED; The storage account key.
	Key *string `json:"key,omitempty"`
}

StorageAccount - Describes a storage account connection.

func (StorageAccount) MarshalJSON

func (s StorageAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageAccount.

func (*StorageAccount) UnmarshalJSON

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 `json:"eTag,omitempty"`

	// Storage insight properties.
	Properties *StorageInsightProperties `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsCreateOrUpdate.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsDelete.json

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsGet.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/StorageInsightsListByWorkspace.json

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

type StorageInsightConfigsClientCreateOrUpdateOptions struct {
}

StorageInsightConfigsClientCreateOrUpdateOptions contains the optional parameters for the StorageInsightConfigsClient.CreateOrUpdate method.

type StorageInsightConfigsClientCreateOrUpdateResponse

type StorageInsightConfigsClientCreateOrUpdateResponse struct {
	StorageInsight
}

StorageInsightConfigsClientCreateOrUpdateResponse contains the response from method StorageInsightConfigsClient.CreateOrUpdate.

type StorageInsightConfigsClientDeleteOptions

type StorageInsightConfigsClientDeleteOptions struct {
}

StorageInsightConfigsClientDeleteOptions contains the optional parameters for the StorageInsightConfigsClient.Delete method.

type StorageInsightConfigsClientDeleteResponse

type StorageInsightConfigsClientDeleteResponse struct {
}

StorageInsightConfigsClientDeleteResponse contains the response from method StorageInsightConfigsClient.Delete.

type StorageInsightConfigsClientGetOptions

type StorageInsightConfigsClientGetOptions struct {
}

StorageInsightConfigsClientGetOptions contains the optional parameters for the StorageInsightConfigsClient.Get method.

type StorageInsightConfigsClientGetResponse

type StorageInsightConfigsClientGetResponse struct {
	StorageInsight
}

StorageInsightConfigsClientGetResponse contains the response from method StorageInsightConfigsClient.Get.

type StorageInsightConfigsClientListByWorkspaceOptions

type StorageInsightConfigsClientListByWorkspaceOptions struct {
}

StorageInsightConfigsClientListByWorkspaceOptions contains the optional parameters for the StorageInsightConfigsClient.NewListByWorkspacePager method.

type StorageInsightConfigsClientListByWorkspaceResponse

type StorageInsightConfigsClientListByWorkspaceResponse struct {
	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 `json:"@odata.nextLink,omitempty"`

	// A list of storage insight items.
	Value []*StorageInsight `json:"value,omitempty"`
}

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

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 `json:"storageAccount,omitempty"`

	// The names of the blob containers that the workspace should read
	Containers []*string `json:"containers,omitempty"`

	// The names of the Azure tables that the workspace should read
	Tables []*string `json:"tables,omitempty"`

	// READ-ONLY; The status of the storage insight
	Status *StorageInsightStatus `json:"status,omitempty" azure:"ro"`
}

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

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 `json:"state,omitempty"`

	// Description of the state of the storage insight.
	Description *string `json:"description,omitempty"`
}

StorageInsightStatus - The status of the storage insight.

func (StorageInsightStatus) MarshalJSON

func (s StorageInsightStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageInsightStatus.

func (*StorageInsightStatus) UnmarshalJSON

func (s *StorageInsightStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageInsightStatus.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC)
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// An identifier for the identity that created the resource
	CreatedBy *string `json:"createdBy,omitempty"`

	// The type of identity that created the resource
	CreatedByType *IdentityType `json:"createdByType,omitempty"`

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`

	// An identifier for the identity that last modified the resource
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`

	// The type of identity that last modified the resource
	LastModifiedByType *IdentityType `json:"lastModifiedByType,omitempty"`
}

SystemData - Read only system data

func (SystemData) MarshalJSON

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type SystemDataAutoGenerated

type SystemDataAutoGenerated struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`

	// The type of identity that created the resource.
	CreatedByType *CreatedByType `json:"createdByType,omitempty"`

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`

	// The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}

SystemDataAutoGenerated - Metadata pertaining to creation and last modification of the resource.

func (SystemDataAutoGenerated) MarshalJSON

func (s SystemDataAutoGenerated) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemDataAutoGenerated.

func (*SystemDataAutoGenerated) UnmarshalJSON

func (s *SystemDataAutoGenerated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemDataAutoGenerated.

type Table

type Table struct {
	// Table's properties.
	Properties *TableProperties `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemDataAutoGenerated `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Table - Workspace data table definition.

func (Table) MarshalJSON

func (t Table) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Table.

func (*Table) UnmarshalJSON

func (t *Table) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Table.

type TablePlanEnum

type TablePlanEnum string

TablePlanEnum - Instruct the system how to handle and charge the logs ingested to this table.

const (
	// TablePlanEnumAnalytics - Logs that allow monitoring and analytics.
	TablePlanEnumAnalytics TablePlanEnum = "Analytics"
	// TablePlanEnumBasic - Logs that are adjusted to support high volume low value verbose logs.
	TablePlanEnumBasic TablePlanEnum = "Basic"
)

func PossibleTablePlanEnumValues

func PossibleTablePlanEnumValues() []TablePlanEnum

PossibleTablePlanEnumValues returns the possible values for the TablePlanEnum const type.

type TableProperties

type TableProperties struct {
	// Instruct the system how to handle and charge the logs ingested to this table.
	Plan *TablePlanEnum `json:"plan,omitempty"`

	// Parameters of the restore operation that initiated this table.
	RestoredLogs *RestoredLogs `json:"restoredLogs,omitempty"`

	// Search job execution statistics.
	ResultStatistics *ResultStatistics `json:"resultStatistics,omitempty"`

	// The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
	RetentionInDays *int32 `json:"retentionInDays,omitempty"`

	// Table schema.
	Schema *Schema `json:"schema,omitempty"`

	// Parameters of the search job that initiated this table.
	SearchResults *SearchResults `json:"searchResults,omitempty"`

	// The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention.
	TotalRetentionInDays *int32 `json:"totalRetentionInDays,omitempty"`

	// READ-ONLY; The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
	ArchiveRetentionInDays *int32 `json:"archiveRetentionInDays,omitempty" azure:"ro"`

	// READ-ONLY; The timestamp that table plan was last modified (UTC).
	LastPlanModifiedDate *string `json:"lastPlanModifiedDate,omitempty" azure:"ro"`

	// READ-ONLY; Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation,
	// forbidding any update to the table until the ongoing operation is concluded.
	ProvisioningState *ProvisioningStateEnum `json:"provisioningState,omitempty" azure:"ro"`
}

TableProperties - Table properties.

func (TableProperties) MarshalJSON

func (t TableProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TableProperties.

func (*TableProperties) UnmarshalJSON

func (t *TableProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TableProperties.

type TableSubTypeEnum

type TableSubTypeEnum string

TableSubTypeEnum - The subtype describes what APIs can be used to interact with the table, and what features are available against it.

const (
	// TableSubTypeEnumAny - The default subtype with which built-in tables are created.
	TableSubTypeEnumAny TableSubTypeEnum = "Any"
	// TableSubTypeEnumClassic - Indicates a table created through the Data Collector API or with the custom logs feature of the
	// MMA agent, or any table against which Custom Fields were created.
	TableSubTypeEnumClassic TableSubTypeEnum = "Classic"
	// TableSubTypeEnumDataCollectionRuleBased - A table eligible to have data sent into it via any of the means supported by
	// Data Collection Rules: the Data Collection Endpoint API, ingestion-time transformations, or any other mechanism provided
	// by Data Collection Rules
	TableSubTypeEnumDataCollectionRuleBased TableSubTypeEnum = "DataCollectionRuleBased"
)

func PossibleTableSubTypeEnumValues

func PossibleTableSubTypeEnumValues() []TableSubTypeEnum

PossibleTableSubTypeEnumValues returns the possible values for the TableSubTypeEnum const type.

type TableTypeEnum

type TableTypeEnum string

TableTypeEnum - Table's creator.

const (
	// TableTypeEnumCustomLog - Custom log table.
	TableTypeEnumCustomLog TableTypeEnum = "CustomLog"
	// TableTypeEnumMicrosoft - Standard data collected by Azure Monitor.
	TableTypeEnumMicrosoft TableTypeEnum = "Microsoft"
	// TableTypeEnumRestoredLogs - Restored data.
	TableTypeEnumRestoredLogs TableTypeEnum = "RestoredLogs"
	// TableTypeEnumSearchResults - Data collected by a search job.
	TableTypeEnumSearchResults TableTypeEnum = "SearchResults"
)

func PossibleTableTypeEnumValues

func PossibleTableTypeEnumValues() []TableTypeEnum

PossibleTableTypeEnumValues returns the possible values for the TableTypeEnum const type.

type TablesClient

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

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) BeginCreateOrUpdate

func (client *TablesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, parameters Table, options *TablesClientBeginCreateOrUpdateOptions) (*runtime.Poller[TablesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Update or Create a Log Analytics workspace table. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01-preview

  • 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 - TablesClientBeginCreateOrUpdateOptions contains the optional parameters for the TablesClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesUpsert.json

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.NewTablesClient().BeginCreateOrUpdate(ctx, "oiautorest6685", "oiautorest6685", "AzureNetworkFlow", armoperationalinsights.Table{
	Properties: &armoperationalinsights.TableProperties{
		Schema: &armoperationalinsights.Schema{
			Name: to.Ptr("AzureNetworkFlow"),
			Columns: []*armoperationalinsights.Column{
				{
					Name: to.Ptr("MyNewColumn"),
					Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
				}},
		},
		RetentionInDays:      to.Ptr[int32](45),
		TotalRetentionInDays: to.Ptr[int32](70),
	},
}, 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.Table = armoperationalinsights.Table{
// 	Name: to.Ptr("AzureNetworkFlow"),
// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/AzureNetworkFlow"),
// 	Properties: &armoperationalinsights.TableProperties{
// 		Schema: &armoperationalinsights.Schema{
// 			Name: to.Ptr("AzureNetworkFlow"),
// 			Columns: []*armoperationalinsights.Column{
// 				{
// 					Name: to.Ptr("MyNewColumn"),
// 					Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
// 					IsDefaultDisplay: to.Ptr(false),
// 					IsHidden: to.Ptr(false),
// 			}},
// 			Solutions: []*string{
// 				to.Ptr("LogManagement")},
// 				StandardColumns: []*armoperationalinsights.Column{
// 					{
// 						Name: to.Ptr("TenantId"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(true),
// 					},
// 					{
// 						Name: to.Ptr("SourceSystem"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("TimeGenerated"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumDateTime),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("AgentID"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("SourceIP"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("Protocol"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("SourcePort"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("DestinationPort"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("TcpFlags"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("Packets"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("Bytes"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("BytesOut"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("DurationInMs"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("RstCount"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("MaxSampleRtt"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 				}},
// 				TableSubType: to.Ptr(armoperationalinsights.TableSubTypeEnumDataCollectionRuleBased),
// 				TableType: to.Ptr(armoperationalinsights.TableTypeEnumMicrosoft),
// 			},
// 			ArchiveRetentionInDays: to.Ptr[int32](25),
// 			Plan: to.Ptr(armoperationalinsights.TablePlanEnumAnalytics),
// 			ProvisioningState: to.Ptr(armoperationalinsights.ProvisioningStateEnumSucceeded),
// 			RetentionInDays: to.Ptr[int32](45),
// 			TotalRetentionInDays: to.Ptr[int32](70),
// 		},
// 	}
Output:

func (*TablesClient) BeginDelete

func (client *TablesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, options *TablesClientBeginDeleteOptions) (*runtime.Poller[TablesClientDeleteResponse], error)

BeginDelete - Delete a Log Analytics workspace table. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01-preview

  • 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 - TablesClientBeginDeleteOptions contains the optional parameters for the TablesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesDelete.json

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.NewTablesClient().BeginDelete(ctx, "oiautorest6685", "oiautorest6685", "table1_CL", 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 (*TablesClient) BeginUpdate

func (client *TablesClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, parameters Table, options *TablesClientBeginUpdateOptions) (*runtime.Poller[TablesClientUpdateResponse], error)

BeginUpdate - Update a Log Analytics workspace table. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01-preview

  • 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 - TablesClientBeginUpdateOptions contains the optional parameters for the TablesClient.BeginUpdate method.

func (*TablesClient) Get

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 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesGet.json

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_SRCH", 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_SRCH"),
// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/table1_SRCH"),
// 	Properties: &armoperationalinsights.TableProperties{
// 		Schema: &armoperationalinsights.Schema{
// 			Name: to.Ptr("table1_SRCH"),
// 			Columns: []*armoperationalinsights.Column{
// 			},
// 			SearchResults: &armoperationalinsights.SearchResults{
// 				Description: to.Ptr("This table was created using a Search Job with the following query: 'Heartbeat | where SourceSystem != '' | project SourceSystem'."),
// 				EndSearchTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-02T04:05:06Z"); return t}()),
// 				Limit: to.Ptr[int32](1000),
// 				Query: to.Ptr("Heartbeat | where SourceSystem != '' | project SourceSystem"),
// 				SourceTable: to.Ptr("Heartbeat"),
// 				StartSearchTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T04:05:06Z"); return t}()),
// 			},
// 			Solutions: []*string{
// 				to.Ptr("LogManagement")},
// 				StandardColumns: []*armoperationalinsights.Column{
// 					{
// 						Name: to.Ptr("TenantId"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("SourceSystem"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("MG"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("ManagementGroupName"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("TimeGenerated"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumDateTime),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("Computer"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 					},
// 					{
// 						Name: to.Ptr("RawData"),
// 						Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
// 						IsDefaultDisplay: to.Ptr(false),
// 						IsHidden: to.Ptr(false),
// 				}},
// 				TableSubType: to.Ptr(armoperationalinsights.TableSubTypeEnumDataCollectionRuleBased),
// 				TableType: to.Ptr(armoperationalinsights.TableTypeEnumSearchResults),
// 			},
// 			ArchiveRetentionInDays: to.Ptr[int32](0),
// 			Plan: to.Ptr(armoperationalinsights.TablePlanEnumAnalytics),
// 			ProvisioningState: to.Ptr(armoperationalinsights.ProvisioningStateEnumSucceeded),
// 			ResultStatistics: &armoperationalinsights.ResultStatistics{
// 				IngestedRecords: to.Ptr[int32](5),
// 				Progress: to.Ptr[float32](75),
// 			},
// 			RetentionInDays: to.Ptr[int32](50),
// 			TotalRetentionInDays: to.Ptr[int32](50),
// 		},
// 		SystemData: &armoperationalinsights.SystemDataAutoGenerated{
// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T04:05:06Z"); return t}()),
// 			CreatedBy: to.Ptr("00000000-0000-0000-0000-00000000000"),
// 		},
// 	}
Output:

func (*TablesClient) Migrate

func (client *TablesClient) Migrate(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, options *TablesClientMigrateOptions) (TablesClientMigrateResponse, error)

Migrate - Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of Data Collection Rule-based Custom Logs. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01-preview

  • 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 - TablesClientMigrateOptions contains the optional parameters for the TablesClient.Migrate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesMigrate.json

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.NewTablesClient().Migrate(ctx, "oiautorest6685", "oiautorest6685", "table1_CL", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
Output:

func (*TablesClient) NewListByWorkspacePager

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 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesList.json

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("AzureNetworkFlow"),
	// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/AzureNetworkFlow"),
	// 			Properties: &armoperationalinsights.TableProperties{
	// 				Schema: &armoperationalinsights.Schema{
	// 					Name: to.Ptr("AzureNetworkFlow"),
	// 					Solutions: []*string{
	// 						to.Ptr("LogManagement")},
	// 						StandardColumns: []*armoperationalinsights.Column{
	// 							{
	// 								Name: to.Ptr("TenantId"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(true),
	// 							},
	// 							{
	// 								Name: to.Ptr("SourceSystem"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("TimeGenerated"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumDateTime),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("AgentID"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("SourceIP"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("Protocol"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("SourcePort"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("DestinationPort"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("TcpFlags"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("Packets"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("Bytes"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("BytesOut"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("DurationInMs"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("RstCount"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 							},
	// 							{
	// 								Name: to.Ptr("MaxSampleRtt"),
	// 								Type: to.Ptr(armoperationalinsights.ColumnTypeEnumInt),
	// 								IsDefaultDisplay: to.Ptr(false),
	// 								IsHidden: to.Ptr(false),
	// 						}},
	// 						TableSubType: to.Ptr(armoperationalinsights.TableSubTypeEnumAny),
	// 						TableType: to.Ptr(armoperationalinsights.TableTypeEnumMicrosoft),
	// 					},
	// 					ArchiveRetentionInDays: to.Ptr[int32](25),
	// 					Plan: to.Ptr(armoperationalinsights.TablePlanEnumAnalytics),
	// 					ProvisioningState: to.Ptr(armoperationalinsights.ProvisioningStateEnumSucceeded),
	// 					RetentionInDays: to.Ptr[int32](45),
	// 					TotalRetentionInDays: to.Ptr[int32](70),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("SurfaceHubDns"),
	// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/SurfaceHubDns"),
	// 				Properties: &armoperationalinsights.TableProperties{
	// 					Schema: &armoperationalinsights.Schema{
	// 						Name: to.Ptr("SurfaceHubDns"),
	// 						Solutions: []*string{
	// 							to.Ptr("LogManagement")},
	// 							StandardColumns: []*armoperationalinsights.Column{
	// 								{
	// 									Name: to.Ptr("TenantId"),
	// 									Type: to.Ptr(armoperationalinsights.ColumnTypeEnumGUID),
	// 									IsDefaultDisplay: to.Ptr(false),
	// 									IsHidden: to.Ptr(true),
	// 								},
	// 								{
	// 									Name: to.Ptr("SourceSystem"),
	// 									Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 									IsDefaultDisplay: to.Ptr(false),
	// 									IsHidden: to.Ptr(false),
	// 								},
	// 								{
	// 									Name: to.Ptr("TimeGenerated"),
	// 									Type: to.Ptr(armoperationalinsights.ColumnTypeEnumDateTime),
	// 									IsDefaultDisplay: to.Ptr(false),
	// 									IsHidden: to.Ptr(false),
	// 								},
	// 								{
	// 									Name: to.Ptr("QueryName"),
	// 									Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 									IsDefaultDisplay: to.Ptr(false),
	// 									IsHidden: to.Ptr(false),
	// 								},
	// 								{
	// 									Name: to.Ptr("ComputerName"),
	// 									Type: to.Ptr(armoperationalinsights.ColumnTypeEnumString),
	// 									IsDefaultDisplay: to.Ptr(false),
	// 									IsHidden: to.Ptr(false),
	// 							}},
	// 							TableSubType: to.Ptr(armoperationalinsights.TableSubTypeEnumAny),
	// 							TableType: to.Ptr(armoperationalinsights.TableTypeEnumMicrosoft),
	// 						},
	// 						ArchiveRetentionInDays: to.Ptr[int32](0),
	// 						Plan: to.Ptr(armoperationalinsights.TablePlanEnumAnalytics),
	// 						ProvisioningState: to.Ptr(armoperationalinsights.ProvisioningStateEnumSucceeded),
	// 						RetentionInDays: to.Ptr[int32](30),
	// 						TotalRetentionInDays: to.Ptr[int32](30),
	// 					},
	// 			}},
	// 		}
}
Output:

type TablesClientBeginCreateOrUpdateOptions

type TablesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

TablesClientBeginCreateOrUpdateOptions contains the optional parameters for the TablesClient.BeginCreateOrUpdate method.

type TablesClientBeginDeleteOptions

type TablesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

TablesClientBeginDeleteOptions contains the optional parameters for the TablesClient.BeginDelete method.

type TablesClientBeginUpdateOptions

type TablesClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

TablesClientBeginUpdateOptions contains the optional parameters for the TablesClient.BeginUpdate method.

type TablesClientCreateOrUpdateResponse

type TablesClientCreateOrUpdateResponse struct {
	Table
}

TablesClientCreateOrUpdateResponse contains the response from method TablesClient.BeginCreateOrUpdate.

type TablesClientDeleteResponse

type TablesClientDeleteResponse struct {
}

TablesClientDeleteResponse contains the response from method TablesClient.BeginDelete.

type TablesClientGetOptions

type TablesClientGetOptions struct {
}

TablesClientGetOptions contains the optional parameters for the TablesClient.Get method.

type TablesClientGetResponse

type TablesClientGetResponse struct {
	Table
}

TablesClientGetResponse contains the response from method TablesClient.Get.

type TablesClientListByWorkspaceOptions

type TablesClientListByWorkspaceOptions struct {
}

TablesClientListByWorkspaceOptions contains the optional parameters for the TablesClient.NewListByWorkspacePager method.

type TablesClientListByWorkspaceResponse

type TablesClientListByWorkspaceResponse struct {
	TablesListResult
}

TablesClientListByWorkspaceResponse contains the response from method TablesClient.NewListByWorkspacePager.

type TablesClientMigrateOptions

type TablesClientMigrateOptions struct {
}

TablesClientMigrateOptions contains the optional parameters for the TablesClient.Migrate method.

type TablesClientMigrateResponse

type TablesClientMigrateResponse struct {
}

TablesClientMigrateResponse contains the response from method TablesClient.Migrate.

type TablesClientUpdateResponse

type TablesClientUpdateResponse struct {
	Table
}

TablesClientUpdateResponse contains the response from method TablesClient.BeginUpdate.

type TablesListResult

type TablesListResult struct {
	// A list of data tables.
	Value []*Table `json:"value,omitempty"`
}

TablesListResult - The list tables operation response.

func (TablesListResult) MarshalJSON

func (t TablesListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TablesListResult.

func (*TablesListResult) UnmarshalJSON

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 `json:"name,omitempty"`

	// REQUIRED; The tag value.
	Value *string `json:"value,omitempty"`
}

Tag - A tag of a saved search.

func (Tag) MarshalJSON

func (t Tag) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Tag.

func (*Tag) UnmarshalJSON

func (t *Tag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Tag.

type TagsResource

type TagsResource struct {
	// Resource tags
	Tags map[string]*string `json:"tags,omitempty"`
}

TagsResource - A container holding only the Tags for a resource, allowing the user to update the tags on a QueryPack instance.

func (TagsResource) MarshalJSON

func (t TagsResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TagsResource.

func (*TagsResource) UnmarshalJSON

func (t *TagsResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TagsResource.

type TrackedResource

type TrackedResource struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

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

const (
	TypeEventHub       Type = "EventHub"
	TypeStorageAccount Type = "StorageAccount"
)

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 `json:"currentValue,omitempty"`

	// The quota limit for the metric.
	Limit *float64 `json:"limit,omitempty"`

	// The name of the metric.
	Name *MetricName `json:"name,omitempty"`

	// The time that the metric's value will reset.
	NextResetTime *time.Time `json:"nextResetTime,omitempty"`

	// The quota period that determines the length of time between value resets.
	QuotaPeriod *string `json:"quotaPeriod,omitempty"`

	// The units used for the metric.
	Unit *string `json:"unit,omitempty"`
}

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListUsages.json

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:00Z"); return t}()),
	// 			QuotaPeriod: to.Ptr("P1D"),
	// 			Unit: to.Ptr("Bytes"),
	// 	}},
	// }
}
Output:

type UsagesClientListOptions

type UsagesClientListOptions struct {
}

UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method.

type UsagesClientListResponse

type UsagesClientListResponse struct {
	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 `json:"clientId,omitempty" azure:"ro"`

	// READ-ONLY; The principal id of user assigned identity.
	PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
}

UserIdentityProperties - User assigned identity properties.

func (UserIdentityProperties) MarshalJSON

func (u UserIdentityProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UserIdentityProperties.

func (*UserIdentityProperties) UnmarshalJSON

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 `json:"location,omitempty"`

	// The ETag of the workspace.
	ETag *string `json:"eTag,omitempty"`

	// Workspace properties.
	Properties *WorkspaceProperties `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemDataAutoGenerated `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Workspace - The top level Workspace resource container.

func (Workspace) MarshalJSON

func (w Workspace) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Workspace.

func (*Workspace) UnmarshalJSON

func (w *Workspace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Workspace.

type WorkspaceCapping

type WorkspaceCapping struct {
	// The workspace daily quota for ingestion.
	DailyQuotaGb *float64 `json:"dailyQuotaGb,omitempty"`

	// READ-ONLY; The status of data ingestion for this workspace.
	DataIngestionStatus *DataIngestionStatus `json:"dataIngestionStatus,omitempty" azure:"ro"`

	// READ-ONLY; The time when the quota will be rest.
	QuotaNextResetTime *string `json:"quotaNextResetTime,omitempty" azure:"ro"`
}

WorkspaceCapping - The daily volume cap for ingestion.

func (WorkspaceCapping) MarshalJSON

func (w WorkspaceCapping) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WorkspaceCapping.

func (*WorkspaceCapping) UnmarshalJSON

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 `json:"clusterResourceId,omitempty"`

	// Disable Non-AAD based Auth.
	DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"`

	// Flag that indicate if data should be exported.
	EnableDataExport *bool `json:"enableDataExport,omitempty"`

	// Flag that indicate which permission to use - resource or workspace or both.
	EnableLogAccessUsingOnlyResourcePermissions *bool `json:"enableLogAccessUsingOnlyResourcePermissions,omitempty"`

	// Flag that describes if we want to remove the data after 30 days.
	ImmediatePurgeDataOn30Days *bool `json:"immediatePurgeDataOn30Days,omitempty"`
}

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 `json:"value,omitempty"`
}

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

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 `json:"value,omitempty"`
}

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

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 `json:"value,omitempty"`
}

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

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 `json:"properties,omitempty"`

	// Resource tags. Optional.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Resource Etag.
	Etag *string `json:"etag,omitempty" azure:"ro"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

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

func (w *WorkspacePatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePatch.

type WorkspaceProperties

type WorkspaceProperties struct {
	// The resource ID of the default Data Collection Rule to use for this workspace. Expected format is -
	// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
	DefaultDataCollectionRuleResourceID *string `json:"defaultDataCollectionRuleResourceId,omitempty"`

	// Workspace features.
	Features *WorkspaceFeatures `json:"features,omitempty"`

	// Indicates whether customer managed storage is mandatory for query management.
	ForceCmkForQuery *bool `json:"forceCmkForQuery,omitempty"`

	// The network access type for accessing Log Analytics ingestion.
	PublicNetworkAccessForIngestion *PublicNetworkAccessType `json:"publicNetworkAccessForIngestion,omitempty"`

	// The network access type for accessing Log Analytics query.
	PublicNetworkAccessForQuery *PublicNetworkAccessType `json:"publicNetworkAccessForQuery,omitempty"`

	// The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.
	RetentionInDays *int32 `json:"retentionInDays,omitempty"`

	// The SKU of the workspace.
	SKU *WorkspaceSKU `json:"sku,omitempty"`

	// The daily volume cap for ingestion.
	WorkspaceCapping *WorkspaceCapping `json:"workspaceCapping,omitempty"`

	// READ-ONLY; Workspace creation date.
	CreatedDate *string `json:"createdDate,omitempty" azure:"ro"`

	// READ-ONLY; This is a read-only property. Represents the ID associated with the workspace.
	CustomerID *string `json:"customerId,omitempty" azure:"ro"`

	// READ-ONLY; Workspace modification date.
	ModifiedDate *string `json:"modifiedDate,omitempty" azure:"ro"`

	// READ-ONLY; List of linked private link scope resources.
	PrivateLinkScopedResources []*PrivateLinkScopedResource `json:"privateLinkScopedResources,omitempty" azure:"ro"`

	// READ-ONLY; The provisioning state of the workspace.
	ProvisioningState *WorkspaceEntityStatus `json:"provisioningState,omitempty" azure:"ro"`
}

WorkspaceProperties - Workspace properties.

func (WorkspaceProperties) MarshalJSON

func (w WorkspaceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WorkspaceProperties.

func (*WorkspaceProperties) UnmarshalJSON

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 `json:"filters,omitempty"`

	// REQUIRED; Table from which to purge data.
	Table *string `json:"table,omitempty"`
}

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

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 `json:"column,omitempty"`

	// When filtering over custom dimensions, this key will be used as the name of the custom dimension.
	Key *string `json:"key,omitempty"`

	// 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 `json:"operator,omitempty"`

	// 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 `json:"value,omitempty"`
}

WorkspacePurgeBodyFilters - User-defined filters to return data which will be purged from the table.

func (WorkspacePurgeBodyFilters) MarshalJSON

func (w WorkspacePurgeBodyFilters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeBodyFilters.

func (*WorkspacePurgeBodyFilters) UnmarshalJSON

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurgeOperation.json

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

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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurge.json

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

type WorkspacePurgeClientGetPurgeStatusOptions struct {
}

WorkspacePurgeClientGetPurgeStatusOptions contains the optional parameters for the WorkspacePurgeClient.GetPurgeStatus method.

type WorkspacePurgeClientGetPurgeStatusResponse

type WorkspacePurgeClientGetPurgeStatusResponse struct {
	WorkspacePurgeStatusResponse
}

WorkspacePurgeClientGetPurgeStatusResponse contains the response from method WorkspacePurgeClient.GetPurgeStatus.

type WorkspacePurgeClientPurgeOptions

type WorkspacePurgeClientPurgeOptions struct {
}

WorkspacePurgeClientPurgeOptions contains the optional parameters for the WorkspacePurgeClient.Purge method.

type WorkspacePurgeClientPurgeResponse

type WorkspacePurgeClientPurgeResponse struct {
	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 `json:"operationId,omitempty"`
}

WorkspacePurgeResponse - Response containing operationId for a specific purge action.

func (WorkspacePurgeResponse) MarshalJSON

func (w WorkspacePurgeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeResponse.

func (*WorkspacePurgeResponse) UnmarshalJSON

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 `json:"status,omitempty"`
}

WorkspacePurgeStatusResponse - Response containing status for a specific purge operation.

func (WorkspacePurgeStatusResponse) MarshalJSON

func (w WorkspacePurgeStatusResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WorkspacePurgeStatusResponse.

func (*WorkspacePurgeStatusResponse) UnmarshalJSON

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 `json:"name,omitempty"`

	// The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
	CapacityReservationLevel *CapacityReservationLevel `json:"capacityReservationLevel,omitempty"`

	// READ-ONLY; The last time when the sku was updated.
	LastSKUUpdate *string `json:"lastSkuUpdate,omitempty" azure:"ro"`
}

WorkspaceSKU - The SKU (tier) of a workspace.

func (WorkspaceSKU) MarshalJSON

func (w WorkspaceSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WorkspaceSKU.

func (*WorkspaceSKU) UnmarshalJSON

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-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesCreate.json

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-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesDelete.json

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-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesGet.json

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

func (client *WorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *WorkspacesClientListByResourceGroupOptions) *runtime.Pager[WorkspacesClientListByResourceGroupResponse]

NewListByResourceGroupPager - Gets workspaces in a resource group.

Generated from API version 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesListByResourceGroup.json

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

NewListPager - Gets the workspaces in a subscription.

Generated from API version 2021-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesSubscriptionList.json

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-12-01-preview

  • 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/cf3574813e15bb33b3cb610f44edfcbebd8b1b23/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/WorkspacesUpdate.json

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

type WorkspacesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate method.

type WorkspacesClientBeginDeleteOptions

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

type WorkspacesClientCreateOrUpdateResponse struct {
	Workspace
}

WorkspacesClientCreateOrUpdateResponse contains the response from method WorkspacesClient.BeginCreateOrUpdate.

type WorkspacesClientDeleteResponse

type WorkspacesClientDeleteResponse struct {
}

WorkspacesClientDeleteResponse contains the response from method WorkspacesClient.BeginDelete.

type WorkspacesClientGetOptions

type WorkspacesClientGetOptions struct {
}

WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method.

type WorkspacesClientGetResponse

type WorkspacesClientGetResponse struct {
	Workspace
}

WorkspacesClientGetResponse contains the response from method WorkspacesClient.Get.

type WorkspacesClientListByResourceGroupOptions

type WorkspacesClientListByResourceGroupOptions struct {
}

WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager method.

type WorkspacesClientListByResourceGroupResponse

type WorkspacesClientListByResourceGroupResponse struct {
	WorkspaceListResult
}

WorkspacesClientListByResourceGroupResponse contains the response from method WorkspacesClient.NewListByResourceGroupPager.

type WorkspacesClientListOptions

type WorkspacesClientListOptions struct {
}

WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.NewListPager method.

type WorkspacesClientListResponse

type WorkspacesClientListResponse struct {
	WorkspaceListResult
}

WorkspacesClientListResponse contains the response from method WorkspacesClient.NewListPager.

type WorkspacesClientUpdateOptions

type WorkspacesClientUpdateOptions struct {
}

WorkspacesClientUpdateOptions contains the optional parameters for the WorkspacesClient.Update method.

type WorkspacesClientUpdateResponse

type WorkspacesClientUpdateResponse struct {
	Workspace
}

WorkspacesClientUpdateResponse contains the response from method WorkspacesClient.Update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL