azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2020-08-01/operationalinsights Index | Files | Directories

package operationalinsights

import "github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2020-08-01/operationalinsights"

Package operationalinsights implements the Azure ARM Operationalinsights service API version 2020-08-01.

Operational Insights Client

Index

Package Files

availableservicetiers.go client.go clusters.go dataexports.go datasources.go deletedworkspaces.go enums.go gateways.go intelligencepacks.go linkedservices.go linkedstorageaccounts.go managementgroups.go models.go operations.go operationstatuses.go savedsearches.go schema.go sharedkeys.go storageinsightconfigs.go tables.go usages.go version.go workspacepurge.go workspaces.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Operationalinsights
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AvailableServiceTier Uses

type AvailableServiceTier struct {
    // ServiceTier - READ-ONLY; The name of the Service Tier. Possible values include: 'SkuNameEnumFree', 'SkuNameEnumStandard', 'SkuNameEnumPremium', 'SkuNameEnumPerNode', 'SkuNameEnumPerGB2018', 'SkuNameEnumStandalone', 'SkuNameEnumCapacityReservation'
    ServiceTier SkuNameEnum `json:"serviceTier,omitempty"`
    // Enabled - READ-ONLY; True if the Service Tier is enabled for the workspace.
    Enabled *bool `json:"enabled,omitempty"`
    // MinimumRetention - READ-ONLY; The minimum retention for the Service Tier, in days.
    MinimumRetention *int64 `json:"minimumRetention,omitempty"`
    // MaximumRetention - READ-ONLY; The maximum retention for the Service Tier, in days.
    MaximumRetention *int64 `json:"maximumRetention,omitempty"`
    // DefaultRetention - READ-ONLY; The default retention for the Service Tier, in days.
    DefaultRetention *int64 `json:"defaultRetention,omitempty"`
    // CapacityReservationLevel - READ-ONLY; The capacity reservation level in GB per day. Returned for the Capacity Reservation Service Tier.
    CapacityReservationLevel *int64 `json:"capacityReservationLevel,omitempty"`
    // LastSkuUpdate - READ-ONLY; Time when the sku was last updated for the workspace. Returned for the Capacity Reservation Service Tier.
    LastSkuUpdate *string `json:"lastSkuUpdate,omitempty"`
}

AvailableServiceTier service Tier details.

type AvailableServiceTiersClient Uses

type AvailableServiceTiersClient struct {
    BaseClient
}

AvailableServiceTiersClient is the operational Insights Client

func NewAvailableServiceTiersClient Uses

func NewAvailableServiceTiersClient(subscriptionID string) AvailableServiceTiersClient

NewAvailableServiceTiersClient creates an instance of the AvailableServiceTiersClient client.

func NewAvailableServiceTiersClientWithBaseURI Uses

func NewAvailableServiceTiersClientWithBaseURI(baseURI string, subscriptionID string) AvailableServiceTiersClient

NewAvailableServiceTiersClientWithBaseURI creates an instance of the AvailableServiceTiersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AvailableServiceTiersClient) ListByWorkspace Uses

func (client AvailableServiceTiersClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result ListAvailableServiceTier, err error)

ListByWorkspace gets the available service tiers for the workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (AvailableServiceTiersClient) ListByWorkspacePreparer Uses

func (client AvailableServiceTiersClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (AvailableServiceTiersClient) ListByWorkspaceResponder Uses

func (client AvailableServiceTiersClient) ListByWorkspaceResponder(resp *http.Response) (result ListAvailableServiceTier, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (AvailableServiceTiersClient) ListByWorkspaceSender Uses

func (client AvailableServiceTiersClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type AzureEntityResource Uses

type AzureEntityResource struct {
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Operationalinsights.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Cluster Uses

type Cluster struct {
    autorest.Response `json:"-"`
    // Identity - The identity of the resource.
    Identity *Identity `json:"identity,omitempty"`
    // Sku - The sku properties.
    Sku *ClusterSku `json:"sku,omitempty"`
    // ClusterProperties - Log Analytics cluster properties.
    *ClusterProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

Cluster the top level Log Analytics cluster resource container.

func (Cluster) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Cluster.

func (*Cluster) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Cluster struct.

type ClusterEntityStatus Uses

type ClusterEntityStatus string

ClusterEntityStatus enumerates the values for cluster entity status.

const (
    // Canceled ...
    Canceled ClusterEntityStatus = "Canceled"
    // Creating ...
    Creating ClusterEntityStatus = "Creating"
    // Deleting ...
    Deleting ClusterEntityStatus = "Deleting"
    // Failed ...
    Failed ClusterEntityStatus = "Failed"
    // ProvisioningAccount ...
    ProvisioningAccount ClusterEntityStatus = "ProvisioningAccount"
    // Succeeded ...
    Succeeded ClusterEntityStatus = "Succeeded"
    // Updating ...
    Updating ClusterEntityStatus = "Updating"
)

func PossibleClusterEntityStatusValues Uses

func PossibleClusterEntityStatusValues() []ClusterEntityStatus

PossibleClusterEntityStatusValues returns an array of possible values for the ClusterEntityStatus const type.

type ClusterErrorResponse Uses

type ClusterErrorResponse struct {
    // Error - The details of the error.
    Error *ErrorResponse `json:"error,omitempty"`
}

ClusterErrorResponse error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

type ClusterListResult Uses

type ClusterListResult struct {
    autorest.Response `json:"-"`
    // NextLink - The link used to get the next page of recommendations.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - A list of Log Analytics clusters.
    Value *[]Cluster `json:"value,omitempty"`
}

ClusterListResult the list clusters operation response.

func (ClusterListResult) IsEmpty Uses

func (clr ClusterListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ClusterListResultIterator Uses

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

ClusterListResultIterator provides access to a complete listing of Cluster values.

func NewClusterListResultIterator Uses

func NewClusterListResultIterator(page ClusterListResultPage) ClusterListResultIterator

Creates a new instance of the ClusterListResultIterator type.

func (*ClusterListResultIterator) Next Uses

func (iter *ClusterListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ClusterListResultIterator) NextWithContext Uses

func (iter *ClusterListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ClusterListResultIterator) NotDone Uses

func (iter ClusterListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ClusterListResultIterator) Response Uses

func (iter ClusterListResultIterator) Response() ClusterListResult

Response returns the raw server response from the last page request.

func (ClusterListResultIterator) Value Uses

func (iter ClusterListResultIterator) Value() Cluster

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ClusterListResultPage Uses

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

ClusterListResultPage contains a page of Cluster values.

func NewClusterListResultPage Uses

func NewClusterListResultPage(cur ClusterListResult, getNextPage func(context.Context, ClusterListResult) (ClusterListResult, error)) ClusterListResultPage

Creates a new instance of the ClusterListResultPage type.

func (*ClusterListResultPage) Next Uses

func (page *ClusterListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ClusterListResultPage) NextWithContext Uses

func (page *ClusterListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ClusterListResultPage) NotDone Uses

func (page ClusterListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ClusterListResultPage) Response Uses

func (page ClusterListResultPage) Response() ClusterListResult

Response returns the raw server response from the last page request.

func (ClusterListResultPage) Values Uses

func (page ClusterListResultPage) Values() []Cluster

Values returns the slice of values for the current page or nil if there are no values.

type ClusterPatch Uses

type ClusterPatch struct {
    // ClusterPatchProperties - Log Analytics cluster properties.
    *ClusterPatchProperties `json:"properties,omitempty"`
    // Sku - The sku properties.
    Sku *ClusterSku `json:"sku,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

ClusterPatch the top level Log Analytics cluster resource container.

func (ClusterPatch) MarshalJSON Uses

func (cp ClusterPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterPatch.

func (*ClusterPatch) UnmarshalJSON Uses

func (cp *ClusterPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClusterPatch struct.

type ClusterPatchProperties Uses

type ClusterPatchProperties struct {
    // KeyVaultProperties - The associated key properties.
    KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"`
}

ClusterPatchProperties log Analytics cluster patch properties.

type ClusterProperties Uses

type ClusterProperties struct {
    // NextLink - The link used to get the next page of recommendations.
    NextLink *string `json:"nextLink,omitempty"`
    // ClusterID - READ-ONLY; The ID associated with the cluster.
    ClusterID *string `json:"clusterId,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state of the cluster. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating'
    ProvisioningState ClusterEntityStatus `json:"provisioningState,omitempty"`
    // KeyVaultProperties - The associated key properties.
    KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"`
}

ClusterProperties cluster properties.

func (ClusterProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ClusterProperties.

type ClusterSku Uses

type ClusterSku struct {
    // Capacity - The capacity value
    Capacity *int64 `json:"capacity,omitempty"`
    // Name - The name of the SKU. Possible values include: 'CapacityReservation'
    Name ClusterSkuNameEnum `json:"name,omitempty"`
}

ClusterSku the cluster sku definition.

type ClusterSkuNameEnum Uses

type ClusterSkuNameEnum string

ClusterSkuNameEnum enumerates the values for cluster sku name enum.

const (
    // CapacityReservation ...
    CapacityReservation ClusterSkuNameEnum = "CapacityReservation"
)

func PossibleClusterSkuNameEnumValues Uses

func PossibleClusterSkuNameEnumValues() []ClusterSkuNameEnum

PossibleClusterSkuNameEnumValues returns an array of possible values for the ClusterSkuNameEnum const type.

type ClustersClient Uses

type ClustersClient struct {
    BaseClient
}

ClustersClient is the operational Insights Client

func NewClustersClient Uses

func NewClustersClient(subscriptionID string) ClustersClient

NewClustersClient creates an instance of the ClustersClient client.

func NewClustersClientWithBaseURI Uses

func NewClustersClientWithBaseURI(baseURI string, subscriptionID string) ClustersClient

NewClustersClientWithBaseURI creates an instance of the ClustersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ClustersClient) CreateOrUpdate Uses

func (client ClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster) (result ClustersCreateOrUpdateFuture, err error)

CreateOrUpdate create or update a Log Analytics cluster. Parameters: 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.

func (ClustersClient) CreateOrUpdatePreparer Uses

func (client ClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ClustersClient) CreateOrUpdateResponder Uses

func (client ClustersClient) CreateOrUpdateResponder(resp *http.Response) (result Cluster, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ClustersClient) CreateOrUpdateSender Uses

func (client ClustersClient) CreateOrUpdateSender(req *http.Request) (future ClustersCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) Delete Uses

func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result ClustersDeleteFuture, err error)

Delete deletes a cluster instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - name of the Log Analytics Cluster.

func (ClustersClient) DeletePreparer Uses

func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ClustersClient) DeleteResponder Uses

func (client ClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ClustersClient) DeleteSender Uses

func (client ClustersClient) DeleteSender(req *http.Request) (future ClustersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) Get Uses

func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)

Get gets a Log Analytics cluster instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - name of the Log Analytics Cluster.

func (ClustersClient) GetPreparer Uses

func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ClustersClient) GetResponder Uses

func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ClustersClient) GetSender Uses

func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) List Uses

func (client ClustersClient) List(ctx context.Context) (result ClusterListResultPage, err error)

List gets the Log Analytics clusters in a subscription.

func (ClustersClient) ListByResourceGroup Uses

func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ClusterListResultPage, err error)

ListByResourceGroup gets Log Analytics clusters in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (ClustersClient) ListByResourceGroupComplete Uses

func (client ClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ClusterListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ClustersClient) ListByResourceGroupPreparer Uses

func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ClustersClient) ListByResourceGroupResponder Uses

func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ClustersClient) ListByResourceGroupSender Uses

func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) ListComplete Uses

func (client ClustersClient) ListComplete(ctx context.Context) (result ClusterListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ClustersClient) ListPreparer Uses

func (client ClustersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ClustersClient) ListResponder Uses

func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ClustersClient) ListSender Uses

func (client ClustersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) Update Uses

func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterPatch) (result Cluster, err error)

Update updates a Log Analytics cluster. Parameters: 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.

func (ClustersClient) UpdatePreparer Uses

func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ClustersClient) UpdateResponder Uses

func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ClustersClient) UpdateSender Uses

func (client ClustersClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ClustersCreateOrUpdateFuture Uses

type ClustersCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ClustersClient) (Cluster, error)
}

ClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ClustersDeleteFuture Uses

type ClustersDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ClustersClient) (autorest.Response, error)
}

ClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CoreSummary Uses

type CoreSummary struct {
    // Status - The status of a core summary.
    Status *string `json:"status,omitempty"`
    // NumberOfDocuments - The number of documents of a core summary.
    NumberOfDocuments *int64 `json:"numberOfDocuments,omitempty"`
}

CoreSummary the core summary of a search.

type DataExport Uses

type DataExport struct {
    autorest.Response `json:"-"`
    // DataExportProperties - data export properties.
    *DataExportProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

DataExport the top level data export resource container.

func (DataExport) MarshalJSON Uses

func (de DataExport) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataExport.

func (*DataExport) UnmarshalJSON Uses

func (de *DataExport) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataExport struct.

type DataExportErrorResponse Uses

type DataExportErrorResponse struct {
    // Error - The details of the error.
    Error *ErrorResponse `json:"error,omitempty"`
}

DataExportErrorResponse error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

type DataExportListResult Uses

type DataExportListResult struct {
    autorest.Response `json:"-"`
    // Value - List of data export instances within a workspace..
    Value *[]DataExport `json:"value,omitempty"`
}

DataExportListResult result of the request to list data exports.

type DataExportProperties Uses

type DataExportProperties struct {
    // DataExportID - The data export rule ID.
    DataExportID *string `json:"dataExportId,omitempty"`
    // TableNames - An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
    TableNames *[]string `json:"tableNames,omitempty"`
    // Destination - destination properties.
    *Destination `json:"destination,omitempty"`
    // Enable - Active when enabled.
    Enable *bool `json:"enable,omitempty"`
    // CreatedDate - The latest data export rule modification time.
    CreatedDate *string `json:"createdDate,omitempty"`
    // LastModifiedDate - Date and time when the export was last modified.
    LastModifiedDate *string `json:"lastModifiedDate,omitempty"`
}

DataExportProperties data Export properties.

func (DataExportProperties) MarshalJSON Uses

func (dep DataExportProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataExportProperties.

func (*DataExportProperties) UnmarshalJSON Uses

func (dep *DataExportProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataExportProperties struct.

type DataExportsClient Uses

type DataExportsClient struct {
    BaseClient
}

DataExportsClient is the operational Insights Client

func NewDataExportsClient Uses

func NewDataExportsClient(subscriptionID string) DataExportsClient

NewDataExportsClient creates an instance of the DataExportsClient client.

func NewDataExportsClientWithBaseURI Uses

func NewDataExportsClientWithBaseURI(baseURI string, subscriptionID string) DataExportsClient

NewDataExportsClientWithBaseURI creates an instance of the DataExportsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DataExportsClient) CreateOrUpdate Uses

func (client DataExportsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, parameters DataExport) (result DataExport, err error)

CreateOrUpdate create or update a data export. Parameters: 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.

func (DataExportsClient) CreateOrUpdatePreparer Uses

func (client DataExportsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, parameters DataExport) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataExportsClient) CreateOrUpdateResponder Uses

func (client DataExportsClient) CreateOrUpdateResponder(resp *http.Response) (result DataExport, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DataExportsClient) CreateOrUpdateSender Uses

func (client DataExportsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DataExportsClient) Delete Uses

func (client DataExportsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (result autorest.Response, err error)

Delete deletes the specified data export in a given workspace.. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. dataExportName - the data export rule name.

func (DataExportsClient) DeletePreparer Uses

func (client DataExportsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DataExportsClient) DeleteResponder Uses

func (client DataExportsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DataExportsClient) DeleteSender Uses

func (client DataExportsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DataExportsClient) Get Uses

func (client DataExportsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (result DataExport, err error)

Get gets a data export instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. dataExportName - the data export rule name.

func (DataExportsClient) GetPreparer Uses

func (client DataExportsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DataExportsClient) GetResponder Uses

func (client DataExportsClient) GetResponder(resp *http.Response) (result DataExport, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DataExportsClient) GetSender Uses

func (client DataExportsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DataExportsClient) ListByWorkspace Uses

func (client DataExportsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result DataExportListResult, err error)

ListByWorkspace lists the data export instances within a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (DataExportsClient) ListByWorkspacePreparer Uses

func (client DataExportsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (DataExportsClient) ListByWorkspaceResponder Uses

func (client DataExportsClient) ListByWorkspaceResponder(resp *http.Response) (result DataExportListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (DataExportsClient) ListByWorkspaceSender Uses

func (client DataExportsClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type DataIngestionStatus Uses

type DataIngestionStatus string

DataIngestionStatus enumerates the values for data ingestion status.

const (
    // ApproachingQuota 80% of daily cap quota reached.
    ApproachingQuota DataIngestionStatus = "ApproachingQuota"
    // ForceOff Ingestion stopped following service setting change.
    ForceOff DataIngestionStatus = "ForceOff"
    // ForceOn Ingestion started following service setting change.
    ForceOn DataIngestionStatus = "ForceOn"
    // OverQuota Reached daily cap quota, ingestion stopped.
    OverQuota DataIngestionStatus = "OverQuota"
    // RespectQuota Ingestion enabled following daily cap quota reset, or subscription enablement.
    RespectQuota DataIngestionStatus = "RespectQuota"
    // SubscriptionSuspended Ingestion stopped following suspended subscription.
    SubscriptionSuspended DataIngestionStatus = "SubscriptionSuspended"
)

func PossibleDataIngestionStatusValues Uses

func PossibleDataIngestionStatusValues() []DataIngestionStatus

PossibleDataIngestionStatusValues returns an array of possible values for the DataIngestionStatus const type.

type DataSource Uses

type DataSource struct {
    autorest.Response `json:"-"`
    // Properties - The data source properties in raw json format, each kind of data source have it's own schema.
    Properties interface{} `json:"properties,omitempty"`
    // Etag - The ETag of the data source.
    Etag *string `json:"etag,omitempty"`
    // Kind - Possible values include: 'WindowsEvent', 'WindowsPerformanceCounter', 'IISLogs', 'LinuxSyslog', 'LinuxSyslogCollection', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'CustomLog', 'CustomLogCollection', 'AzureAuditLog', 'AzureActivityLog', 'GenericDataSource', 'ChangeTrackingCustomPath', 'ChangeTrackingPath', 'ChangeTrackingServices', 'ChangeTrackingDataTypeConfiguration', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingRegistry', 'ChangeTrackingLinuxPath', 'LinuxChangeTrackingPath', 'ChangeTrackingContentLocation', 'WindowsTelemetry', 'Office365', 'SecurityWindowsBaselineConfiguration', 'SecurityCenterSecurityWindowsBaselineConfiguration', 'SecurityEventCollectionConfiguration', 'SecurityInsightsSecurityEventCollectionConfiguration', 'ImportComputerGroup', 'NetworkMonitoring', 'Itsm', 'DNSAnalytics', 'ApplicationInsights', 'SQLDataClassification'
    Kind DataSourceKind `json:"kind,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

DataSource datasources under OMS Workspace.

func (DataSource) MarshalJSON Uses

func (ds DataSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataSource.

type DataSourceFilter Uses

type DataSourceFilter struct {
    // Kind - Possible values include: 'WindowsEvent', 'WindowsPerformanceCounter', 'IISLogs', 'LinuxSyslog', 'LinuxSyslogCollection', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'CustomLog', 'CustomLogCollection', 'AzureAuditLog', 'AzureActivityLog', 'GenericDataSource', 'ChangeTrackingCustomPath', 'ChangeTrackingPath', 'ChangeTrackingServices', 'ChangeTrackingDataTypeConfiguration', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingRegistry', 'ChangeTrackingLinuxPath', 'LinuxChangeTrackingPath', 'ChangeTrackingContentLocation', 'WindowsTelemetry', 'Office365', 'SecurityWindowsBaselineConfiguration', 'SecurityCenterSecurityWindowsBaselineConfiguration', 'SecurityEventCollectionConfiguration', 'SecurityInsightsSecurityEventCollectionConfiguration', 'ImportComputerGroup', 'NetworkMonitoring', 'Itsm', 'DNSAnalytics', 'ApplicationInsights', 'SQLDataClassification'
    Kind DataSourceKind `json:"kind,omitempty"`
}

DataSourceFilter dataSource filter. Right now, only filter by kind is supported.

type DataSourceKind Uses

type DataSourceKind string

DataSourceKind enumerates the values for data source kind.

const (
    // ApplicationInsights ...
    ApplicationInsights DataSourceKind = "ApplicationInsights"
    // AzureActivityLog ...
    AzureActivityLog DataSourceKind = "AzureActivityLog"
    // AzureAuditLog ...
    AzureAuditLog DataSourceKind = "AzureAuditLog"
    // ChangeTrackingContentLocation ...
    ChangeTrackingContentLocation DataSourceKind = "ChangeTrackingContentLocation"
    // ChangeTrackingCustomPath ...
    ChangeTrackingCustomPath DataSourceKind = "ChangeTrackingCustomPath"
    // ChangeTrackingDataTypeConfiguration ...
    ChangeTrackingDataTypeConfiguration DataSourceKind = "ChangeTrackingDataTypeConfiguration"
    // ChangeTrackingDefaultRegistry ...
    ChangeTrackingDefaultRegistry DataSourceKind = "ChangeTrackingDefaultRegistry"
    // ChangeTrackingLinuxPath ...
    ChangeTrackingLinuxPath DataSourceKind = "ChangeTrackingLinuxPath"
    // ChangeTrackingPath ...
    ChangeTrackingPath DataSourceKind = "ChangeTrackingPath"
    // ChangeTrackingRegistry ...
    ChangeTrackingRegistry DataSourceKind = "ChangeTrackingRegistry"
    // ChangeTrackingServices ...
    ChangeTrackingServices DataSourceKind = "ChangeTrackingServices"
    // CustomLog ...
    CustomLog DataSourceKind = "CustomLog"
    // CustomLogCollection ...
    CustomLogCollection DataSourceKind = "CustomLogCollection"
    // DNSAnalytics ...
    DNSAnalytics DataSourceKind = "DnsAnalytics"
    // GenericDataSource ...
    GenericDataSource DataSourceKind = "GenericDataSource"
    // IISLogs ...
    IISLogs DataSourceKind = "IISLogs"
    // ImportComputerGroup ...
    ImportComputerGroup DataSourceKind = "ImportComputerGroup"
    // Itsm ...
    Itsm DataSourceKind = "Itsm"
    // LinuxChangeTrackingPath ...
    LinuxChangeTrackingPath DataSourceKind = "LinuxChangeTrackingPath"
    // LinuxPerformanceCollection ...
    LinuxPerformanceCollection DataSourceKind = "LinuxPerformanceCollection"
    // LinuxPerformanceObject ...
    LinuxPerformanceObject DataSourceKind = "LinuxPerformanceObject"
    // LinuxSyslog ...
    LinuxSyslog DataSourceKind = "LinuxSyslog"
    // LinuxSyslogCollection ...
    LinuxSyslogCollection DataSourceKind = "LinuxSyslogCollection"
    // NetworkMonitoring ...
    NetworkMonitoring DataSourceKind = "NetworkMonitoring"
    // Office365 ...
    Office365 DataSourceKind = "Office365"
    // SecurityCenterSecurityWindowsBaselineConfiguration ...
    SecurityCenterSecurityWindowsBaselineConfiguration DataSourceKind = "SecurityCenterSecurityWindowsBaselineConfiguration"
    // SecurityEventCollectionConfiguration ...
    SecurityEventCollectionConfiguration DataSourceKind = "SecurityEventCollectionConfiguration"
    // SecurityInsightsSecurityEventCollectionConfiguration ...
    SecurityInsightsSecurityEventCollectionConfiguration DataSourceKind = "SecurityInsightsSecurityEventCollectionConfiguration"
    // SecurityWindowsBaselineConfiguration ...
    SecurityWindowsBaselineConfiguration DataSourceKind = "SecurityWindowsBaselineConfiguration"
    // SQLDataClassification ...
    SQLDataClassification DataSourceKind = "SqlDataClassification"
    // WindowsEvent ...
    WindowsEvent DataSourceKind = "WindowsEvent"
    // WindowsPerformanceCounter ...
    WindowsPerformanceCounter DataSourceKind = "WindowsPerformanceCounter"
    // WindowsTelemetry ...
    WindowsTelemetry DataSourceKind = "WindowsTelemetry"
)

func PossibleDataSourceKindValues Uses

func PossibleDataSourceKindValues() []DataSourceKind

PossibleDataSourceKindValues returns an array of possible values for the DataSourceKind const type.

type DataSourceListResult Uses

type DataSourceListResult struct {
    autorest.Response `json:"-"`
    // Value - A list of datasources.
    Value *[]DataSource `json:"value,omitempty"`
    // NextLink - The link (url) to the next page of datasources.
    NextLink *string `json:"nextLink,omitempty"`
}

DataSourceListResult the list data source by workspace operation response.

func (DataSourceListResult) IsEmpty Uses

func (dslr DataSourceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DataSourceListResultIterator Uses

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

DataSourceListResultIterator provides access to a complete listing of DataSource values.

func NewDataSourceListResultIterator Uses

func NewDataSourceListResultIterator(page DataSourceListResultPage) DataSourceListResultIterator

Creates a new instance of the DataSourceListResultIterator type.

func (*DataSourceListResultIterator) Next Uses

func (iter *DataSourceListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DataSourceListResultIterator) NextWithContext Uses

func (iter *DataSourceListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DataSourceListResultIterator) NotDone Uses

func (iter DataSourceListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DataSourceListResultIterator) Response Uses

func (iter DataSourceListResultIterator) Response() DataSourceListResult

Response returns the raw server response from the last page request.

func (DataSourceListResultIterator) Value Uses

func (iter DataSourceListResultIterator) Value() DataSource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DataSourceListResultPage Uses

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

DataSourceListResultPage contains a page of DataSource values.

func NewDataSourceListResultPage Uses

func NewDataSourceListResultPage(cur DataSourceListResult, getNextPage func(context.Context, DataSourceListResult) (DataSourceListResult, error)) DataSourceListResultPage

Creates a new instance of the DataSourceListResultPage type.

func (*DataSourceListResultPage) Next Uses

func (page *DataSourceListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DataSourceListResultPage) NextWithContext Uses

func (page *DataSourceListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DataSourceListResultPage) NotDone Uses

func (page DataSourceListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DataSourceListResultPage) Response Uses

func (page DataSourceListResultPage) Response() DataSourceListResult

Response returns the raw server response from the last page request.

func (DataSourceListResultPage) Values Uses

func (page DataSourceListResultPage) Values() []DataSource

Values returns the slice of values for the current page or nil if there are no values.

type DataSourceType Uses

type DataSourceType string

DataSourceType enumerates the values for data source type.

const (
    // Alerts ...
    Alerts DataSourceType = "Alerts"
    // AzureWatson ...
    AzureWatson DataSourceType = "AzureWatson"
    // CustomLogs ...
    CustomLogs DataSourceType = "CustomLogs"
    // Query ...
    Query DataSourceType = "Query"
)

func PossibleDataSourceTypeValues Uses

func PossibleDataSourceTypeValues() []DataSourceType

PossibleDataSourceTypeValues returns an array of possible values for the DataSourceType const type.

type DataSourcesClient Uses

type DataSourcesClient struct {
    BaseClient
}

DataSourcesClient is the operational Insights Client

func NewDataSourcesClient Uses

func NewDataSourcesClient(subscriptionID string) DataSourcesClient

NewDataSourcesClient creates an instance of the DataSourcesClient client.

func NewDataSourcesClientWithBaseURI Uses

func NewDataSourcesClientWithBaseURI(baseURI string, subscriptionID string) DataSourcesClient

NewDataSourcesClientWithBaseURI creates an instance of the DataSourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DataSourcesClient) CreateOrUpdate Uses

func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, parameters DataSource) (result DataSource, err error)

CreateOrUpdate create or update a data source. Parameters: 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.

func (DataSourcesClient) CreateOrUpdatePreparer Uses

func (client DataSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, parameters DataSource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataSourcesClient) CreateOrUpdateResponder Uses

func (client DataSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result DataSource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DataSourcesClient) CreateOrUpdateSender Uses

func (client DataSourcesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DataSourcesClient) Delete Uses

func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (result autorest.Response, err error)

Delete deletes a data source instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. dataSourceName - name of the datasource.

func (DataSourcesClient) DeletePreparer Uses

func (client DataSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DataSourcesClient) DeleteResponder Uses

func (client DataSourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DataSourcesClient) DeleteSender Uses

func (client DataSourcesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DataSourcesClient) Get Uses

func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (result DataSource, err error)

Get gets a datasource instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. dataSourceName - name of the datasource

func (DataSourcesClient) GetPreparer Uses

func (client DataSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DataSourcesClient) GetResponder Uses

func (client DataSourcesClient) GetResponder(resp *http.Response) (result DataSource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DataSourcesClient) GetSender Uses

func (client DataSourcesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DataSourcesClient) ListByWorkspace Uses

func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, filter string, skiptoken string) (result DataSourceListResultPage, err error)

ListByWorkspace gets the first page of data source instances in a workspace with the link to the next page. Parameters: 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. skiptoken - starting point of the collection of data source instances.

func (DataSourcesClient) ListByWorkspaceComplete Uses

func (client DataSourcesClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, filter string, skiptoken string) (result DataSourceListResultIterator, err error)

ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.

func (DataSourcesClient) ListByWorkspacePreparer Uses

func (client DataSourcesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, filter string, skiptoken string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (DataSourcesClient) ListByWorkspaceResponder Uses

func (client DataSourcesClient) ListByWorkspaceResponder(resp *http.Response) (result DataSourceListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (DataSourcesClient) ListByWorkspaceSender Uses

func (client DataSourcesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type DeletedWorkspacesClient Uses

type DeletedWorkspacesClient struct {
    BaseClient
}

DeletedWorkspacesClient is the operational Insights Client

func NewDeletedWorkspacesClient Uses

func NewDeletedWorkspacesClient(subscriptionID string) DeletedWorkspacesClient

NewDeletedWorkspacesClient creates an instance of the DeletedWorkspacesClient client.

func NewDeletedWorkspacesClientWithBaseURI Uses

func NewDeletedWorkspacesClientWithBaseURI(baseURI string, subscriptionID string) DeletedWorkspacesClient

NewDeletedWorkspacesClientWithBaseURI creates an instance of the DeletedWorkspacesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DeletedWorkspacesClient) List Uses

func (client DeletedWorkspacesClient) List(ctx context.Context) (result WorkspaceListResult, err error)

List gets recently deleted workspaces in a subscription, available for recovery.

func (DeletedWorkspacesClient) ListByResourceGroup Uses

func (client DeletedWorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListResult, err error)

ListByResourceGroup gets recently deleted workspaces in a resource group, available for recovery. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (DeletedWorkspacesClient) ListByResourceGroupPreparer Uses

func (client DeletedWorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DeletedWorkspacesClient) ListByResourceGroupResponder Uses

func (client DeletedWorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (DeletedWorkspacesClient) ListByResourceGroupSender Uses

func (client DeletedWorkspacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (DeletedWorkspacesClient) ListPreparer Uses

func (client DeletedWorkspacesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (DeletedWorkspacesClient) ListResponder Uses

func (client DeletedWorkspacesClient) ListResponder(resp *http.Response) (result WorkspaceListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DeletedWorkspacesClient) ListSender Uses

func (client DeletedWorkspacesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Destination Uses

type Destination struct {
    // ResourceID - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
    ResourceID *string `json:"resourceId,omitempty"`
    // Type - READ-ONLY; The type of the destination resource. Possible values include: 'TypeStorageAccount', 'TypeEventHub'
    Type Type `json:"type,omitempty"`
    // DestinationMetaData - destination meta data.
    *DestinationMetaData `json:"metaData,omitempty"`
}

Destination destination properties.

func (Destination) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Destination.

func (*Destination) UnmarshalJSON Uses

func (d *Destination) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Destination struct.

type DestinationMetaData Uses

type DestinationMetaData struct {
    // EventHubName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
    EventHubName *string `json:"eventHubName,omitempty"`
}

DestinationMetaData destination meta data.

type ErrorAdditionalInfo Uses

type ErrorAdditionalInfo struct {
    // Type - READ-ONLY; The additional info type.
    Type *string `json:"type,omitempty"`
    // Info - READ-ONLY; The additional info.
    Info interface{} `json:"info,omitempty"`
}

ErrorAdditionalInfo the resource management error additional info.

type ErrorContract Uses

type ErrorContract struct {
    // Error - The details of the error.
    Error *ErrorResponse `json:"error,omitempty"`
}

ErrorContract contains details when the response code indicates an error.

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - READ-ONLY; The error code.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; The error message.
    Message *string `json:"message,omitempty"`
    // Target - READ-ONLY; The error target.
    Target *string `json:"target,omitempty"`
    // Details - READ-ONLY; The error details.
    Details *[]ErrorResponse `json:"details,omitempty"`
    // AdditionalInfo - READ-ONLY; The error additional info.
    AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,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.)

type GatewaysClient Uses

type GatewaysClient struct {
    BaseClient
}

GatewaysClient is the operational Insights Client

func NewGatewaysClient Uses

func NewGatewaysClient(subscriptionID string) GatewaysClient

NewGatewaysClient creates an instance of the GatewaysClient client.

func NewGatewaysClientWithBaseURI Uses

func NewGatewaysClientWithBaseURI(baseURI string, subscriptionID string) GatewaysClient

NewGatewaysClientWithBaseURI creates an instance of the GatewaysClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (GatewaysClient) Delete Uses

func (client GatewaysClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, gatewayID string) (result autorest.Response, err error)

Delete delete a Log Analytics gateway. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. gatewayID - the Log Analytics gateway Id.

func (GatewaysClient) DeletePreparer Uses

func (client GatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, gatewayID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GatewaysClient) DeleteResponder Uses

func (client GatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GatewaysClient) DeleteSender Uses

func (client GatewaysClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

type Identity Uses

type Identity struct {
    // PrincipalID - READ-ONLY; The principal ID of resource identity.
    PrincipalID *string `json:"principalId,omitempty"`
    // TenantID - READ-ONLY; The tenant ID of resource.
    TenantID *string `json:"tenantId,omitempty"`
    // Type - The identity type. Possible values include: 'SystemAssigned', 'None'
    Type IdentityType `json:"type,omitempty"`
}

Identity identity for the resource.

func (Identity) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Identity.

type IdentityType Uses

type IdentityType string

IdentityType enumerates the values for identity type.

const (
    // None ...
    None IdentityType = "None"
    // SystemAssigned ...
    SystemAssigned IdentityType = "SystemAssigned"
)

func PossibleIdentityTypeValues Uses

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.

type IntelligencePack Uses

type IntelligencePack struct {
    // Name - The name of the intelligence pack.
    Name *string `json:"name,omitempty"`
    // Enabled - The enabled boolean for the intelligence pack.
    Enabled *bool `json:"enabled,omitempty"`
    // DisplayName - The display name of the intelligence pack.
    DisplayName *string `json:"displayName,omitempty"`
}

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

type IntelligencePacksClient Uses

type IntelligencePacksClient struct {
    BaseClient
}

IntelligencePacksClient is the operational Insights Client

func NewIntelligencePacksClient Uses

func NewIntelligencePacksClient(subscriptionID string) IntelligencePacksClient

NewIntelligencePacksClient creates an instance of the IntelligencePacksClient client.

func NewIntelligencePacksClientWithBaseURI Uses

func NewIntelligencePacksClientWithBaseURI(baseURI string, subscriptionID string) IntelligencePacksClient

NewIntelligencePacksClientWithBaseURI creates an instance of the IntelligencePacksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (IntelligencePacksClient) Disable Uses

func (client IntelligencePacksClient) Disable(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (result autorest.Response, err error)

Disable disables an intelligence pack for a given workspace. Parameters: 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.

func (IntelligencePacksClient) DisablePreparer Uses

func (client IntelligencePacksClient) DisablePreparer(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (*http.Request, error)

DisablePreparer prepares the Disable request.

func (IntelligencePacksClient) DisableResponder Uses

func (client IntelligencePacksClient) DisableResponder(resp *http.Response) (result autorest.Response, err error)

DisableResponder handles the response to the Disable request. The method always closes the http.Response Body.

func (IntelligencePacksClient) DisableSender Uses

func (client IntelligencePacksClient) DisableSender(req *http.Request) (*http.Response, error)

DisableSender sends the Disable request. The method will close the http.Response Body if it receives an error.

func (IntelligencePacksClient) Enable Uses

func (client IntelligencePacksClient) Enable(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (result autorest.Response, err error)

Enable enables an intelligence pack for a given workspace. Parameters: 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.

func (IntelligencePacksClient) EnablePreparer Uses

func (client IntelligencePacksClient) EnablePreparer(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (*http.Request, error)

EnablePreparer prepares the Enable request.

func (IntelligencePacksClient) EnableResponder Uses

func (client IntelligencePacksClient) EnableResponder(resp *http.Response) (result autorest.Response, err error)

EnableResponder handles the response to the Enable request. The method always closes the http.Response Body.

func (IntelligencePacksClient) EnableSender Uses

func (client IntelligencePacksClient) EnableSender(req *http.Request) (*http.Response, error)

EnableSender sends the Enable request. The method will close the http.Response Body if it receives an error.

func (IntelligencePacksClient) List Uses

func (client IntelligencePacksClient) List(ctx context.Context, resourceGroupName string, workspaceName string) (result ListIntelligencePack, err error)

List lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (IntelligencePacksClient) ListPreparer Uses

func (client IntelligencePacksClient) ListPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (IntelligencePacksClient) ListResponder Uses

func (client IntelligencePacksClient) ListResponder(resp *http.Response) (result ListIntelligencePack, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (IntelligencePacksClient) ListSender Uses

func (client IntelligencePacksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type KeyVaultProperties Uses

type KeyVaultProperties struct {
    // KeyVaultURI - The Key Vault uri which holds they key associated with the Log Analytics cluster.
    KeyVaultURI *string `json:"keyVaultUri,omitempty"`
    // KeyName - The name of the key associated with the Log Analytics cluster.
    KeyName *string `json:"keyName,omitempty"`
    // KeyVersion - The version of the key associated with the Log Analytics cluster.
    KeyVersion *string `json:"keyVersion,omitempty"`
}

KeyVaultProperties the key vault properties.

type LinkedService Uses

type LinkedService struct {
    autorest.Response `json:"-"`
    // LinkedServiceProperties - The properties of the linked service.
    *LinkedServiceProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

LinkedService the top level Linked service resource container.

func (LinkedService) MarshalJSON Uses

func (ls LinkedService) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedService.

func (*LinkedService) UnmarshalJSON Uses

func (ls *LinkedService) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LinkedService struct.

type LinkedServiceEntityStatus Uses

type LinkedServiceEntityStatus string

LinkedServiceEntityStatus enumerates the values for linked service entity status.

const (
    // LinkedServiceEntityStatusDeleting ...
    LinkedServiceEntityStatusDeleting LinkedServiceEntityStatus = "Deleting"
    // LinkedServiceEntityStatusProvisioningAccount ...
    LinkedServiceEntityStatusProvisioningAccount LinkedServiceEntityStatus = "ProvisioningAccount"
    // LinkedServiceEntityStatusSucceeded ...
    LinkedServiceEntityStatusSucceeded LinkedServiceEntityStatus = "Succeeded"
    // LinkedServiceEntityStatusUpdating ...
    LinkedServiceEntityStatusUpdating LinkedServiceEntityStatus = "Updating"
)

func PossibleLinkedServiceEntityStatusValues Uses

func PossibleLinkedServiceEntityStatusValues() []LinkedServiceEntityStatus

PossibleLinkedServiceEntityStatusValues returns an array of possible values for the LinkedServiceEntityStatus const type.

type LinkedServiceListResult Uses

type LinkedServiceListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of linked service instances
    Value *[]LinkedService `json:"value,omitempty"`
}

LinkedServiceListResult the list linked service operation response.

type LinkedServiceProperties Uses

type LinkedServiceProperties struct {
    // ResourceID - 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"`
    // WriteAccessResourceID - 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"`
    // ProvisioningState - The provisioning state of the linked service. Possible values include: 'LinkedServiceEntityStatusSucceeded', 'LinkedServiceEntityStatusDeleting', 'LinkedServiceEntityStatusProvisioningAccount', 'LinkedServiceEntityStatusUpdating'
    ProvisioningState LinkedServiceEntityStatus `json:"provisioningState,omitempty"`
}

LinkedServiceProperties linked service properties.

type LinkedServicesClient Uses

type LinkedServicesClient struct {
    BaseClient
}

LinkedServicesClient is the operational Insights Client

func NewLinkedServicesClient Uses

func NewLinkedServicesClient(subscriptionID string) LinkedServicesClient

NewLinkedServicesClient creates an instance of the LinkedServicesClient client.

func NewLinkedServicesClientWithBaseURI Uses

func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) LinkedServicesClient

NewLinkedServicesClientWithBaseURI creates an instance of the LinkedServicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LinkedServicesClient) CreateOrUpdate Uses

func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, parameters LinkedService) (result LinkedServicesCreateOrUpdateFuture, err error)

CreateOrUpdate create or update a linked service. Parameters: 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.

func (LinkedServicesClient) CreateOrUpdatePreparer Uses

func (client LinkedServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, parameters LinkedService) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LinkedServicesClient) CreateOrUpdateResponder Uses

func (client LinkedServicesClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedService, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (LinkedServicesClient) CreateOrUpdateSender Uses

func (client LinkedServicesClient) CreateOrUpdateSender(req *http.Request) (future LinkedServicesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (LinkedServicesClient) Delete Uses

func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (result LinkedServicesDeleteFuture, err error)

Delete deletes a linked service instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. linkedServiceName - name of the linked service.

func (LinkedServicesClient) DeletePreparer Uses

func (client LinkedServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LinkedServicesClient) DeleteResponder Uses

func (client LinkedServicesClient) DeleteResponder(resp *http.Response) (result LinkedService, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (LinkedServicesClient) DeleteSender Uses

func (client LinkedServicesClient) DeleteSender(req *http.Request) (future LinkedServicesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (LinkedServicesClient) Get Uses

func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (result LinkedService, err error)

Get gets a linked service instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. linkedServiceName - name of the linked service.

func (LinkedServicesClient) GetPreparer Uses

func (client LinkedServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LinkedServicesClient) GetResponder Uses

func (client LinkedServicesClient) GetResponder(resp *http.Response) (result LinkedService, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LinkedServicesClient) GetSender Uses

func (client LinkedServicesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LinkedServicesClient) ListByWorkspace Uses

func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedServiceListResult, err error)

ListByWorkspace gets the linked services instances in a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (LinkedServicesClient) ListByWorkspacePreparer Uses

func (client LinkedServicesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (LinkedServicesClient) ListByWorkspaceResponder Uses

func (client LinkedServicesClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedServiceListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (LinkedServicesClient) ListByWorkspaceSender Uses

func (client LinkedServicesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type LinkedServicesCreateOrUpdateFuture Uses

type LinkedServicesCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(LinkedServicesClient) (LinkedService, error)
}

LinkedServicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type LinkedServicesDeleteFuture Uses

type LinkedServicesDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(LinkedServicesClient) (LinkedService, error)
}

LinkedServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type LinkedStorageAccountsClient Uses

type LinkedStorageAccountsClient struct {
    BaseClient
}

LinkedStorageAccountsClient is the operational Insights Client

func NewLinkedStorageAccountsClient Uses

func NewLinkedStorageAccountsClient(subscriptionID string) LinkedStorageAccountsClient

NewLinkedStorageAccountsClient creates an instance of the LinkedStorageAccountsClient client.

func NewLinkedStorageAccountsClientWithBaseURI Uses

func NewLinkedStorageAccountsClientWithBaseURI(baseURI string, subscriptionID string) LinkedStorageAccountsClient

NewLinkedStorageAccountsClientWithBaseURI creates an instance of the LinkedStorageAccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LinkedStorageAccountsClient) CreateOrUpdate Uses

func (client LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, parameters LinkedStorageAccountsResource) (result LinkedStorageAccountsResource, err error)

CreateOrUpdate create or Update a link relation between current workspace and a group of storage accounts of a specific data source type. Parameters: 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.

func (LinkedStorageAccountsClient) CreateOrUpdatePreparer Uses

func (client LinkedStorageAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, parameters LinkedStorageAccountsResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LinkedStorageAccountsClient) CreateOrUpdateResponder Uses

func (client LinkedStorageAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedStorageAccountsResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (LinkedStorageAccountsClient) CreateOrUpdateSender Uses

func (client LinkedStorageAccountsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (LinkedStorageAccountsClient) Delete Uses

func (client LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (result autorest.Response, err error)

Delete deletes all linked storage accounts of a specific data source type associated with the specified workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. dataSourceType - linked storage accounts type.

func (LinkedStorageAccountsClient) DeletePreparer Uses

func (client LinkedStorageAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LinkedStorageAccountsClient) DeleteResponder Uses

func (client LinkedStorageAccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (LinkedStorageAccountsClient) DeleteSender Uses

func (client LinkedStorageAccountsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (LinkedStorageAccountsClient) Get Uses

func (client LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (result LinkedStorageAccountsResource, err error)

Get gets all linked storage account of a specific data source type associated with the specified workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. dataSourceType - linked storage accounts type.

func (LinkedStorageAccountsClient) GetPreparer Uses

func (client LinkedStorageAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (*http.Request, error)

GetPreparer prepares the Get request.

func (LinkedStorageAccountsClient) GetResponder Uses

func (client LinkedStorageAccountsClient) GetResponder(resp *http.Response) (result LinkedStorageAccountsResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LinkedStorageAccountsClient) GetSender Uses

func (client LinkedStorageAccountsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LinkedStorageAccountsClient) ListByWorkspace Uses

func (client LinkedStorageAccountsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedStorageAccountsListResult, err error)

ListByWorkspace gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (LinkedStorageAccountsClient) ListByWorkspacePreparer Uses

func (client LinkedStorageAccountsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (LinkedStorageAccountsClient) ListByWorkspaceResponder Uses

func (client LinkedStorageAccountsClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedStorageAccountsListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (LinkedStorageAccountsClient) ListByWorkspaceSender Uses

func (client LinkedStorageAccountsClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type LinkedStorageAccountsListResult Uses

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

LinkedStorageAccountsListResult the list linked storage accounts service operation response.

type LinkedStorageAccountsProperties Uses

type LinkedStorageAccountsProperties struct {
    // DataSourceType - READ-ONLY; Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
    DataSourceType DataSourceType `json:"dataSourceType,omitempty"`
    // StorageAccountIds - Linked storage accounts resources ids.
    StorageAccountIds *[]string `json:"storageAccountIds,omitempty"`
}

LinkedStorageAccountsProperties linked storage accounts properties.

func (LinkedStorageAccountsProperties) MarshalJSON Uses

func (lsap LinkedStorageAccountsProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedStorageAccountsProperties.

type LinkedStorageAccountsResource Uses

type LinkedStorageAccountsResource struct {
    autorest.Response `json:"-"`
    // LinkedStorageAccountsProperties - Linked storage accounts properties.
    *LinkedStorageAccountsProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

LinkedStorageAccountsResource linked storage accounts top level resource container.

func (LinkedStorageAccountsResource) MarshalJSON Uses

func (lsar LinkedStorageAccountsResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedStorageAccountsResource.

func (*LinkedStorageAccountsResource) UnmarshalJSON Uses

func (lsar *LinkedStorageAccountsResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LinkedStorageAccountsResource struct.

type ListAvailableServiceTier Uses

type ListAvailableServiceTier struct {
    autorest.Response `json:"-"`
    Value             *[]AvailableServiceTier `json:"value,omitempty"`
}

ListAvailableServiceTier ...

type ListIntelligencePack Uses

type ListIntelligencePack struct {
    autorest.Response `json:"-"`
    Value             *[]IntelligencePack `json:"value,omitempty"`
}

ListIntelligencePack ...

type ManagementGroup Uses

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

ManagementGroup a management group that is connected to a workspace

func (ManagementGroup) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ManagementGroup.

func (*ManagementGroup) UnmarshalJSON Uses

func (mg *ManagementGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagementGroup struct.

type ManagementGroupProperties Uses

type ManagementGroupProperties struct {
    // ServerCount - The number of servers connected to the management group.
    ServerCount *int32 `json:"serverCount,omitempty"`
    // IsGateway - Gets or sets a value indicating whether the management group is a gateway.
    IsGateway *bool `json:"isGateway,omitempty"`
    // Name - The name of the management group.
    Name *string `json:"name,omitempty"`
    // ID - The unique ID of the management group.
    ID  *string `json:"id,omitempty"`
    // Created - The datetime that the management group was created.
    Created *date.Time `json:"created,omitempty"`
    // DataReceived - The last datetime that the management group received data.
    DataReceived *date.Time `json:"dataReceived,omitempty"`
    // Version - The version of System Center that is managing the management group.
    Version *string `json:"version,omitempty"`
    // Sku - The SKU of System Center that is managing the management group.
    Sku *string `json:"sku,omitempty"`
}

ManagementGroupProperties management group properties.

type ManagementGroupsClient Uses

type ManagementGroupsClient struct {
    BaseClient
}

ManagementGroupsClient is the operational Insights Client

func NewManagementGroupsClient Uses

func NewManagementGroupsClient(subscriptionID string) ManagementGroupsClient

NewManagementGroupsClient creates an instance of the ManagementGroupsClient client.

func NewManagementGroupsClientWithBaseURI Uses

func NewManagementGroupsClientWithBaseURI(baseURI string, subscriptionID string) ManagementGroupsClient

NewManagementGroupsClientWithBaseURI creates an instance of the ManagementGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ManagementGroupsClient) List Uses

func (client ManagementGroupsClient) List(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListManagementGroupsResult, err error)

List gets a list of management groups connected to a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (ManagementGroupsClient) ListPreparer Uses

func (client ManagementGroupsClient) ListPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ManagementGroupsClient) ListResponder Uses

func (client ManagementGroupsClient) ListResponder(resp *http.Response) (result WorkspaceListManagementGroupsResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ManagementGroupsClient) ListSender Uses

func (client ManagementGroupsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type MetricName Uses

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

MetricName the name of a metric.

type Operation Uses

type Operation struct {
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - Display metadata associated with the operation.
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation supported operation of OperationalInsights resource provider.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Service provider: Microsoft OperationsManagement.
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource on which the operation is performed etc.
    Resource *string `json:"resource,omitempty"`
    // Operation - Type of operation: get, read, delete, etc.
    Operation *string `json:"operation,omitempty"`
    // Description - Description of operation
    Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of solution operations supported by the OperationsManagement resource provider.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list solution operations.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationListResult) MarshalJSON Uses

func (olr OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationListResult.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext Uses

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext Uses

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationStatus Uses

type OperationStatus struct {
    autorest.Response `json:"-"`
    // ID - The operation Id.
    ID  *string `json:"id,omitempty"`
    // Name - The operation name.
    Name *string `json:"name,omitempty"`
    // StartTime - The start time of the operation.
    StartTime *string `json:"startTime,omitempty"`
    // EndTime - The end time of the operation.
    EndTime *string `json:"endTime,omitempty"`
    // Status - The status of the operation.
    Status *string `json:"status,omitempty"`
    // Error - The error detail of the operation if any.
    Error *ErrorResponse `json:"error,omitempty"`
}

OperationStatus the status of operation.

type OperationStatusesClient Uses

type OperationStatusesClient struct {
    BaseClient
}

OperationStatusesClient is the operational Insights Client

func NewOperationStatusesClient Uses

func NewOperationStatusesClient(subscriptionID string) OperationStatusesClient

NewOperationStatusesClient creates an instance of the OperationStatusesClient client.

func NewOperationStatusesClientWithBaseURI Uses

func NewOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) OperationStatusesClient

NewOperationStatusesClientWithBaseURI creates an instance of the OperationStatusesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationStatusesClient) Get Uses

func (client OperationStatusesClient) Get(ctx context.Context, location string, asyncOperationID string) (result OperationStatus, err error)

Get get the status of a long running azure asynchronous operation. Parameters: location - the region name of operation. asyncOperationID - the operation Id.

func (OperationStatusesClient) GetPreparer Uses

func (client OperationStatusesClient) GetPreparer(ctx context.Context, location string, asyncOperationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationStatusesClient) GetResponder Uses

func (client OperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationStatusesClient) GetSender Uses

func (client OperationStatusesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the operational Insights Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available OperationalInsights Rest API operations.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PrivateLinkScopedResource Uses

type PrivateLinkScopedResource struct {
    // ResourceID - The full resource Id of the private link scope resource.
    ResourceID *string `json:"resourceId,omitempty"`
    // ScopeID - The private link scope unique Identifier.
    ScopeID *string `json:"scopeId,omitempty"`
}

PrivateLinkScopedResource the private link scope resource reference.

type ProxyResource Uses

type ProxyResource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

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

type PublicNetworkAccessType Uses

type PublicNetworkAccessType string

PublicNetworkAccessType enumerates the values for public network access type.

const (
    // Disabled Disables public connectivity to Log Analytics through public DNS.
    Disabled PublicNetworkAccessType = "Disabled"
    // Enabled Enables connectivity to Log Analytics through public DNS.
    Enabled PublicNetworkAccessType = "Enabled"
)

func PossiblePublicNetworkAccessTypeValues Uses

func PossiblePublicNetworkAccessTypeValues() []PublicNetworkAccessType

PossiblePublicNetworkAccessTypeValues returns an array of possible values for the PublicNetworkAccessType const type.

type PurgeState Uses

type PurgeState string

PurgeState enumerates the values for purge state.

const (
    // Completed ...
    Completed PurgeState = "completed"
    // Pending ...
    Pending PurgeState = "pending"
)

func PossiblePurgeStateValues Uses

func PossiblePurgeStateValues() []PurgeState

PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

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

type SavedSearch Uses

type SavedSearch struct {
    autorest.Response `json:"-"`
    // Etag - The ETag of the saved search.
    Etag *string `json:"etag,omitempty"`
    // SavedSearchProperties - The properties of the saved search.
    *SavedSearchProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

SavedSearch value object for saved search results.

func (SavedSearch) MarshalJSON Uses

func (ss SavedSearch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SavedSearch.

func (*SavedSearch) UnmarshalJSON Uses

func (ss *SavedSearch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SavedSearch struct.

type SavedSearchProperties Uses

type SavedSearchProperties struct {
    // Category - The category of the saved search. This helps the user to find a saved search faster.
    Category *string `json:"category,omitempty"`
    // DisplayName - Saved search display name.
    DisplayName *string `json:"displayName,omitempty"`
    // Query - The query expression for the saved search.
    Query *string `json:"query,omitempty"`
    // FunctionAlias - The function alias if query serves as a function.
    FunctionAlias *string `json:"functionAlias,omitempty"`
    // FunctionParameters - The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. 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"`
    // Version - The version number of the query language. The current version is 2 and is the default.
    Version *int64 `json:"version,omitempty"`
    // Tags - The tags attached to the saved search.
    Tags *[]Tag `json:"tags,omitempty"`
}

SavedSearchProperties value object for saved search results.

type SavedSearchesClient Uses

type SavedSearchesClient struct {
    BaseClient
}

SavedSearchesClient is the operational Insights Client

func NewSavedSearchesClient Uses

func NewSavedSearchesClient(subscriptionID string) SavedSearchesClient

NewSavedSearchesClient creates an instance of the SavedSearchesClient client.

func NewSavedSearchesClientWithBaseURI Uses

func NewSavedSearchesClientWithBaseURI(baseURI string, subscriptionID string) SavedSearchesClient

NewSavedSearchesClientWithBaseURI creates an instance of the SavedSearchesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SavedSearchesClient) CreateOrUpdate Uses

func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, parameters SavedSearch) (result SavedSearch, err error)

CreateOrUpdate creates or updates a saved search for a given workspace. Parameters: 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.

func (SavedSearchesClient) CreateOrUpdatePreparer Uses

func (client SavedSearchesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, parameters SavedSearch) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SavedSearchesClient) CreateOrUpdateResponder Uses

func (client SavedSearchesClient) CreateOrUpdateResponder(resp *http.Response) (result SavedSearch, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SavedSearchesClient) CreateOrUpdateSender Uses

func (client SavedSearchesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SavedSearchesClient) Delete Uses

func (client SavedSearchesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result autorest.Response, err error)

Delete deletes the specified saved search in a given workspace. Parameters: 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.

func (SavedSearchesClient) DeletePreparer Uses

func (client SavedSearchesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SavedSearchesClient) DeleteResponder Uses

func (client SavedSearchesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SavedSearchesClient) DeleteSender Uses

func (client SavedSearchesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SavedSearchesClient) Get Uses

func (client SavedSearchesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result SavedSearch, err error)

Get gets the specified saved search for a given workspace. Parameters: 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.

func (SavedSearchesClient) GetPreparer Uses

func (client SavedSearchesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SavedSearchesClient) GetResponder Uses

func (client SavedSearchesClient) GetResponder(resp *http.Response) (result SavedSearch, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SavedSearchesClient) GetSender Uses

func (client SavedSearchesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SavedSearchesClient) ListByWorkspace Uses

func (client SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result SavedSearchesListResult, err error)

ListByWorkspace gets the saved searches for a given Log Analytics Workspace Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (SavedSearchesClient) ListByWorkspacePreparer Uses

func (client SavedSearchesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (SavedSearchesClient) ListByWorkspaceResponder Uses

func (client SavedSearchesClient) ListByWorkspaceResponder(resp *http.Response) (result SavedSearchesListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (SavedSearchesClient) ListByWorkspaceSender Uses

func (client SavedSearchesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type SavedSearchesListResult Uses

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

SavedSearchesListResult the saved search list operation response.

type SchemaClient Uses

type SchemaClient struct {
    BaseClient
}

SchemaClient is the operational Insights Client

func NewSchemaClient Uses

func NewSchemaClient(subscriptionID string) SchemaClient

NewSchemaClient creates an instance of the SchemaClient client.

func NewSchemaClientWithBaseURI Uses

func NewSchemaClientWithBaseURI(baseURI string, subscriptionID string) SchemaClient

NewSchemaClientWithBaseURI creates an instance of the SchemaClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SchemaClient) Get Uses

func (client SchemaClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result SearchGetSchemaResponse, err error)

Get gets the schema for a given workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (SchemaClient) GetPreparer Uses

func (client SchemaClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SchemaClient) GetResponder Uses

func (client SchemaClient) GetResponder(resp *http.Response) (result SearchGetSchemaResponse, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SchemaClient) GetSender Uses

func (client SchemaClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type SearchGetSchemaResponse Uses

type SearchGetSchemaResponse struct {
    autorest.Response `json:"-"`
    // Metadata - The metadata from search results.
    Metadata *SearchMetadata `json:"metadata,omitempty"`
    // Value - The array of result values.
    Value *[]SearchSchemaValue `json:"value,omitempty"`
}

SearchGetSchemaResponse the get schema operation response.

type SearchMetadata Uses

type SearchMetadata struct {
    // SearchID - The request id of the search.
    SearchID *string `json:"requestId,omitempty"`
    // ResultType - The search result type.
    ResultType *string `json:"resultType,omitempty"`
    // Total - The total number of search results.
    Total *int64 `json:"total,omitempty"`
    // Top - The number of top search results.
    Top *int64 `json:"top,omitempty"`
    // ID - The id of the search results request.
    ID  *string `json:"id,omitempty"`
    // CoreSummaries - The core summaries.
    CoreSummaries *[]CoreSummary `json:"coreSummaries,omitempty"`
    // Status - The status of the search results.
    Status *string `json:"status,omitempty"`
    // StartTime - The start time for the search.
    StartTime *date.Time `json:"startTime,omitempty"`
    // LastUpdated - The time of last update.
    LastUpdated *date.Time `json:"lastUpdated,omitempty"`
    // ETag - The ETag of the search results.
    ETag *string `json:"eTag,omitempty"`
    // Sort - How the results are sorted.
    Sort *[]SearchSort `json:"sort,omitempty"`
    // RequestTime - The request time.
    RequestTime *int64 `json:"requestTime,omitempty"`
    // AggregatedValueField - The aggregated value field.
    AggregatedValueField *string `json:"aggregatedValueField,omitempty"`
    // AggregatedGroupingFields - The aggregated grouping fields.
    AggregatedGroupingFields *string `json:"aggregatedGroupingFields,omitempty"`
    // Sum - The sum of all aggregates returned in the result set.
    Sum *int64 `json:"sum,omitempty"`
    // Max - The max of all aggregates returned in the result set.
    Max *int64 `json:"max,omitempty"`
    // Schema - The schema.
    Schema *SearchMetadataSchema `json:"schema,omitempty"`
}

SearchMetadata metadata for search results.

type SearchMetadataSchema Uses

type SearchMetadataSchema struct {
    // Name - The name of the metadata schema.
    Name *string `json:"name,omitempty"`
    // Version - The version of the metadata schema.
    Version *int32 `json:"version,omitempty"`
}

SearchMetadataSchema schema metadata for search.

type SearchSchemaValue Uses

type SearchSchemaValue struct {
    // Name - The name of the schema.
    Name *string `json:"name,omitempty"`
    // DisplayName - The display name of the schema.
    DisplayName *string `json:"displayName,omitempty"`
    // Type - The type.
    Type *string `json:"type,omitempty"`
    // Indexed - The boolean that indicates the field is searchable as free text.
    Indexed *bool `json:"indexed,omitempty"`
    // Stored - The boolean that indicates whether or not the field is stored.
    Stored *bool `json:"stored,omitempty"`
    // Facet - The boolean that indicates whether or not the field is a facet.
    Facet *bool `json:"facet,omitempty"`
    // OwnerType - The array of workflows containing the field.
    OwnerType *[]string `json:"ownerType,omitempty"`
}

SearchSchemaValue value object for schema results.

type SearchSort Uses

type SearchSort struct {
    // Name - The name of the field the search query is sorted on.
    Name *string `json:"name,omitempty"`
    // Order - The sort order of the search. Possible values include: 'Asc', 'Desc'
    Order SearchSortEnum `json:"order,omitempty"`
}

SearchSort the sort parameters for search.

type SearchSortEnum Uses

type SearchSortEnum string

SearchSortEnum enumerates the values for search sort enum.

const (
    // Asc ...
    Asc SearchSortEnum = "asc"
    // Desc ...
    Desc SearchSortEnum = "desc"
)

func PossibleSearchSortEnumValues Uses

func PossibleSearchSortEnumValues() []SearchSortEnum

PossibleSearchSortEnumValues returns an array of possible values for the SearchSortEnum const type.

type SharedKeys Uses

type SharedKeys struct {
    autorest.Response `json:"-"`
    // PrimarySharedKey - The primary shared key of a workspace.
    PrimarySharedKey *string `json:"primarySharedKey,omitempty"`
    // SecondarySharedKey - The secondary shared key of a workspace.
    SecondarySharedKey *string `json:"secondarySharedKey,omitempty"`
}

SharedKeys the shared keys for a workspace.

type SharedKeysClient Uses

type SharedKeysClient struct {
    BaseClient
}

SharedKeysClient is the operational Insights Client

func NewSharedKeysClient Uses

func NewSharedKeysClient(subscriptionID string) SharedKeysClient

NewSharedKeysClient creates an instance of the SharedKeysClient client.

func NewSharedKeysClientWithBaseURI Uses

func NewSharedKeysClientWithBaseURI(baseURI string, subscriptionID string) SharedKeysClient

NewSharedKeysClientWithBaseURI creates an instance of the SharedKeysClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SharedKeysClient) GetSharedKeys Uses

func (client SharedKeysClient) GetSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)

GetSharedKeys gets the shared keys for a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (SharedKeysClient) GetSharedKeysPreparer Uses

func (client SharedKeysClient) GetSharedKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

GetSharedKeysPreparer prepares the GetSharedKeys request.

func (SharedKeysClient) GetSharedKeysResponder Uses

func (client SharedKeysClient) GetSharedKeysResponder(resp *http.Response) (result SharedKeys, err error)

GetSharedKeysResponder handles the response to the GetSharedKeys request. The method always closes the http.Response Body.

func (SharedKeysClient) GetSharedKeysSender Uses

func (client SharedKeysClient) GetSharedKeysSender(req *http.Request) (*http.Response, error)

GetSharedKeysSender sends the GetSharedKeys request. The method will close the http.Response Body if it receives an error.

func (SharedKeysClient) Regenerate Uses

func (client SharedKeysClient) Regenerate(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)

Regenerate regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (SharedKeysClient) RegeneratePreparer Uses

func (client SharedKeysClient) RegeneratePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

RegeneratePreparer prepares the Regenerate request.

func (SharedKeysClient) RegenerateResponder Uses

func (client SharedKeysClient) RegenerateResponder(resp *http.Response) (result SharedKeys, err error)

RegenerateResponder handles the response to the Regenerate request. The method always closes the http.Response Body.

func (SharedKeysClient) RegenerateSender Uses

func (client SharedKeysClient) RegenerateSender(req *http.Request) (*http.Response, error)

RegenerateSender sends the Regenerate request. The method will close the http.Response Body if it receives an error.

type SkuNameEnum Uses

type SkuNameEnum string

SkuNameEnum enumerates the values for sku name enum.

const (
    // SkuNameEnumCapacityReservation ...
    SkuNameEnumCapacityReservation SkuNameEnum = "CapacityReservation"
    // SkuNameEnumFree ...
    SkuNameEnumFree SkuNameEnum = "Free"
    // SkuNameEnumPerGB2018 ...
    SkuNameEnumPerGB2018 SkuNameEnum = "PerGB2018"
    // SkuNameEnumPerNode ...
    SkuNameEnumPerNode SkuNameEnum = "PerNode"
    // SkuNameEnumPremium ...
    SkuNameEnumPremium SkuNameEnum = "Premium"
    // SkuNameEnumStandalone ...
    SkuNameEnumStandalone SkuNameEnum = "Standalone"
    // SkuNameEnumStandard ...
    SkuNameEnumStandard SkuNameEnum = "Standard"
)

func PossibleSkuNameEnumValues Uses

func PossibleSkuNameEnumValues() []SkuNameEnum

PossibleSkuNameEnumValues returns an array of possible values for the SkuNameEnum const type.

type StorageAccount Uses

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

StorageAccount describes a storage account connection.

type StorageInsight Uses

type StorageInsight struct {
    autorest.Response `json:"-"`
    // StorageInsightProperties - Storage insight properties.
    *StorageInsightProperties `json:"properties,omitempty"`
    // ETag - The ETag of the storage insight.
    ETag *string `json:"eTag,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

StorageInsight the top level storage insight resource container.

func (StorageInsight) MarshalJSON Uses

func (si StorageInsight) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StorageInsight.

func (*StorageInsight) UnmarshalJSON Uses

func (si *StorageInsight) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StorageInsight struct.

type StorageInsightConfigsClient Uses

type StorageInsightConfigsClient struct {
    BaseClient
}

StorageInsightConfigsClient is the operational Insights Client

func NewStorageInsightConfigsClient Uses

func NewStorageInsightConfigsClient(subscriptionID string) StorageInsightConfigsClient

NewStorageInsightConfigsClient creates an instance of the StorageInsightConfigsClient client.

func NewStorageInsightConfigsClientWithBaseURI Uses

func NewStorageInsightConfigsClientWithBaseURI(baseURI string, subscriptionID string) StorageInsightConfigsClient

NewStorageInsightConfigsClientWithBaseURI creates an instance of the StorageInsightConfigsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (StorageInsightConfigsClient) CreateOrUpdate Uses

func (client StorageInsightConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string, parameters StorageInsight) (result StorageInsight, err error)

CreateOrUpdate create or update a storage insight. Parameters: 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.

func (StorageInsightConfigsClient) CreateOrUpdatePreparer Uses

func (client StorageInsightConfigsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string, parameters StorageInsight) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (StorageInsightConfigsClient) CreateOrUpdateResponder Uses

func (client StorageInsightConfigsClient) CreateOrUpdateResponder(resp *http.Response) (result StorageInsight, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (StorageInsightConfigsClient) CreateOrUpdateSender Uses

func (client StorageInsightConfigsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (StorageInsightConfigsClient) Delete Uses

func (client StorageInsightConfigsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string) (result autorest.Response, err error)

Delete deletes a storageInsightsConfigs resource Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. storageInsightName - name of the storageInsightsConfigs resource

func (StorageInsightConfigsClient) DeletePreparer Uses

func (client StorageInsightConfigsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (StorageInsightConfigsClient) DeleteResponder Uses

func (client StorageInsightConfigsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (StorageInsightConfigsClient) DeleteSender Uses

func (client StorageInsightConfigsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (StorageInsightConfigsClient) Get Uses

func (client StorageInsightConfigsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string) (result StorageInsight, err error)

Get gets a storage insight instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. storageInsightName - name of the storageInsightsConfigs resource

func (StorageInsightConfigsClient) GetPreparer Uses

func (client StorageInsightConfigsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, storageInsightName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (StorageInsightConfigsClient) GetResponder Uses

func (client StorageInsightConfigsClient) GetResponder(resp *http.Response) (result StorageInsight, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (StorageInsightConfigsClient) GetSender Uses

func (client StorageInsightConfigsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (StorageInsightConfigsClient) ListByWorkspace Uses

func (client StorageInsightConfigsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result StorageInsightListResultPage, err error)

ListByWorkspace lists the storage insight instances within a workspace Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (StorageInsightConfigsClient) ListByWorkspaceComplete Uses

func (client StorageInsightConfigsClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result StorageInsightListResultIterator, err error)

ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.

func (StorageInsightConfigsClient) ListByWorkspacePreparer Uses

func (client StorageInsightConfigsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (StorageInsightConfigsClient) ListByWorkspaceResponder Uses

func (client StorageInsightConfigsClient) ListByWorkspaceResponder(resp *http.Response) (result StorageInsightListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (StorageInsightConfigsClient) ListByWorkspaceSender Uses

func (client StorageInsightConfigsClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

type StorageInsightListResult Uses

type StorageInsightListResult struct {
    autorest.Response `json:"-"`
    // Value - A list of storage insight items.
    Value *[]StorageInsight `json:"value,omitempty"`
    // OdataNextLink - The link (url) to the next page of results.
    OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}

StorageInsightListResult the list storage insights operation response.

func (StorageInsightListResult) IsEmpty Uses

func (silr StorageInsightListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type StorageInsightListResultIterator Uses

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

StorageInsightListResultIterator provides access to a complete listing of StorageInsight values.

func NewStorageInsightListResultIterator Uses

func NewStorageInsightListResultIterator(page StorageInsightListResultPage) StorageInsightListResultIterator

Creates a new instance of the StorageInsightListResultIterator type.

func (*StorageInsightListResultIterator) Next Uses

func (iter *StorageInsightListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*StorageInsightListResultIterator) NextWithContext Uses

func (iter *StorageInsightListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (StorageInsightListResultIterator) NotDone Uses

func (iter StorageInsightListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (StorageInsightListResultIterator) Response Uses

func (iter StorageInsightListResultIterator) Response() StorageInsightListResult

Response returns the raw server response from the last page request.

func (StorageInsightListResultIterator) Value Uses

func (iter StorageInsightListResultIterator) Value() StorageInsight

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type StorageInsightListResultPage Uses

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

StorageInsightListResultPage contains a page of StorageInsight values.

func NewStorageInsightListResultPage Uses

func NewStorageInsightListResultPage(cur StorageInsightListResult, getNextPage func(context.Context, StorageInsightListResult) (StorageInsightListResult, error)) StorageInsightListResultPage

Creates a new instance of the StorageInsightListResultPage type.

func (*StorageInsightListResultPage) Next Uses

func (page *StorageInsightListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*StorageInsightListResultPage) NextWithContext Uses

func (page *StorageInsightListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (StorageInsightListResultPage) NotDone Uses

func (page StorageInsightListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (StorageInsightListResultPage) Response Uses

func (page StorageInsightListResultPage) Response() StorageInsightListResult

Response returns the raw server response from the last page request.

func (StorageInsightListResultPage) Values Uses

func (page StorageInsightListResultPage) Values() []StorageInsight

Values returns the slice of values for the current page or nil if there are no values.

type StorageInsightProperties Uses

type StorageInsightProperties struct {
    // Containers - The names of the blob containers that the workspace should read
    Containers *[]string `json:"containers,omitempty"`
    // Tables - The names of the Azure tables that the workspace should read
    Tables *[]string `json:"tables,omitempty"`
    // StorageAccount - The storage account connection details
    StorageAccount *StorageAccount `json:"storageAccount,omitempty"`
    // Status - READ-ONLY; The status of the storage insight
    Status *StorageInsightStatus `json:"status,omitempty"`
}

StorageInsightProperties storage insight properties.

func (StorageInsightProperties) MarshalJSON Uses

func (sip StorageInsightProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StorageInsightProperties.

type StorageInsightState Uses

type StorageInsightState string

StorageInsightState enumerates the values for storage insight state.

const (
    // ERROR ...
    ERROR StorageInsightState = "ERROR"
    // OK ...
    OK  StorageInsightState = "OK"
)

func PossibleStorageInsightStateValues Uses

func PossibleStorageInsightStateValues() []StorageInsightState

PossibleStorageInsightStateValues returns an array of possible values for the StorageInsightState const type.

type StorageInsightStatus Uses

type StorageInsightStatus struct {
    // State - The state of the storage insight connection to the workspace. Possible values include: 'OK', 'ERROR'
    State StorageInsightState `json:"state,omitempty"`
    // Description - Description of the state of the storage insight.
    Description *string `json:"description,omitempty"`
}

StorageInsightStatus the status of the storage insight.

type Table Uses

type Table struct {
    autorest.Response `json:"-"`
    // TableProperties - Table properties.
    *TableProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

Table workspace data table definition.

func (Table) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Table.

func (*Table) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Table struct.

type TableProperties Uses

type TableProperties struct {
    // RetentionInDays - The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention.
    RetentionInDays *int32 `json:"retentionInDays,omitempty"`
}

TableProperties table properties.

type TablesClient Uses

type TablesClient struct {
    BaseClient
}

TablesClient is the operational Insights Client

func NewTablesClient Uses

func NewTablesClient(subscriptionID string) TablesClient

NewTablesClient creates an instance of the TablesClient client.

func NewTablesClientWithBaseURI Uses

func NewTablesClientWithBaseURI(baseURI string, subscriptionID string) TablesClient

NewTablesClientWithBaseURI creates an instance of the TablesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TablesClient) Get Uses

func (client TablesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, tableName string) (result Table, err error)

Get gets a Log Analytics workspace table. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. tableName - the name of the table.

func (TablesClient) GetPreparer Uses

func (client TablesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, tableName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TablesClient) GetResponder Uses

func (client TablesClient) GetResponder(resp *http.Response) (result Table, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TablesClient) GetSender Uses

func (client TablesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (TablesClient) ListByWorkspace Uses

func (client TablesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result TablesListResult, err error)

ListByWorkspace gets all the tables for the specified Log Analytics workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (TablesClient) ListByWorkspacePreparer Uses

func (client TablesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (TablesClient) ListByWorkspaceResponder Uses

func (client TablesClient) ListByWorkspaceResponder(resp *http.Response) (result TablesListResult, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (TablesClient) ListByWorkspaceSender Uses

func (client TablesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.

func (TablesClient) Update Uses

func (client TablesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, parameters Table) (result Table, err error)

Update updates a Log Analytics workspace table properties. Parameters: 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.

func (TablesClient) UpdatePreparer Uses

func (client TablesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, tableName string, parameters Table) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (TablesClient) UpdateResponder Uses

func (client TablesClient) UpdateResponder(resp *http.Response) (result Table, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (TablesClient) UpdateSender Uses

func (client TablesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type TablesListResult Uses

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

TablesListResult the list tables operation response.

type Tag Uses

type Tag struct {
    // Name - The tag name.
    Name *string `json:"name,omitempty"`
    // Value - The tag value.
    Value *string `json:"value,omitempty"`
}

Tag a tag of a saved search.

type TrackedResource Uses

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON Uses

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type Type Uses

type Type string

Type enumerates the values for type.

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

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type UsageMetric Uses

type UsageMetric struct {
    // Name - The name of the metric.
    Name *MetricName `json:"name,omitempty"`
    // Unit - The units used for the metric.
    Unit *string `json:"unit,omitempty"`
    // CurrentValue - The current value of the metric.
    CurrentValue *float64 `json:"currentValue,omitempty"`
    // Limit - The quota limit for the metric.
    Limit *float64 `json:"limit,omitempty"`
    // NextResetTime - The time that the metric's value will reset.
    NextResetTime *date.Time `json:"nextResetTime,omitempty"`
    // QuotaPeriod - The quota period that determines the length of time between value resets.
    QuotaPeriod *string `json:"quotaPeriod,omitempty"`
}

UsageMetric a metric describing the usage of a resource.

type UsagesClient Uses

type UsagesClient struct {
    BaseClient
}

UsagesClient is the operational Insights Client

func NewUsagesClient Uses

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI Uses

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (UsagesClient) List Uses

func (client UsagesClient) List(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListUsagesResult, err error)

List gets a list of usage metrics for a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (UsagesClient) ListPreparer Uses

func (client UsagesClient) ListPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (UsagesClient) ListResponder Uses

func (client UsagesClient) ListResponder(resp *http.Response) (result WorkspaceListUsagesResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (UsagesClient) ListSender Uses

func (client UsagesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Workspace Uses

type Workspace struct {
    autorest.Response `json:"-"`
    // WorkspaceProperties - Workspace properties.
    *WorkspaceProperties `json:"properties,omitempty"`
    // ETag - The ETag of the workspace.
    ETag *string `json:"eTag,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

Workspace the top level Workspace resource container.

func (Workspace) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Workspace.

func (*Workspace) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Workspace struct.

type WorkspaceCapping Uses

type WorkspaceCapping struct {
    // DailyQuotaGb - The workspace daily quota for ingestion.
    DailyQuotaGb *float64 `json:"dailyQuotaGb,omitempty"`
    // QuotaNextResetTime - READ-ONLY; The time when the quota will be rest.
    QuotaNextResetTime *string `json:"quotaNextResetTime,omitempty"`
    // DataIngestionStatus - READ-ONLY; The status of data ingestion for this workspace. Possible values include: 'RespectQuota', 'ForceOn', 'ForceOff', 'OverQuota', 'SubscriptionSuspended', 'ApproachingQuota'
    DataIngestionStatus DataIngestionStatus `json:"dataIngestionStatus,omitempty"`
}

WorkspaceCapping the daily volume cap for ingestion.

func (WorkspaceCapping) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for WorkspaceCapping.

type WorkspaceEntityStatus Uses

type WorkspaceEntityStatus string

WorkspaceEntityStatus enumerates the values for workspace entity status.

const (
    // WorkspaceEntityStatusCanceled ...
    WorkspaceEntityStatusCanceled WorkspaceEntityStatus = "Canceled"
    // WorkspaceEntityStatusCreating ...
    WorkspaceEntityStatusCreating WorkspaceEntityStatus = "Creating"
    // WorkspaceEntityStatusDeleting ...
    WorkspaceEntityStatusDeleting WorkspaceEntityStatus = "Deleting"
    // WorkspaceEntityStatusFailed ...
    WorkspaceEntityStatusFailed WorkspaceEntityStatus = "Failed"
    // WorkspaceEntityStatusProvisioningAccount ...
    WorkspaceEntityStatusProvisioningAccount WorkspaceEntityStatus = "ProvisioningAccount"
    // WorkspaceEntityStatusSucceeded ...
    WorkspaceEntityStatusSucceeded WorkspaceEntityStatus = "Succeeded"
    // WorkspaceEntityStatusUpdating ...
    WorkspaceEntityStatusUpdating WorkspaceEntityStatus = "Updating"
)

func PossibleWorkspaceEntityStatusValues Uses

func PossibleWorkspaceEntityStatusValues() []WorkspaceEntityStatus

PossibleWorkspaceEntityStatusValues returns an array of possible values for the WorkspaceEntityStatus const type.

type WorkspaceListManagementGroupsResult Uses

type WorkspaceListManagementGroupsResult struct {
    autorest.Response `json:"-"`
    // Value - 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.

type WorkspaceListResult Uses

type WorkspaceListResult struct {
    autorest.Response `json:"-"`
    // Value - A list of workspaces.
    Value *[]Workspace `json:"value,omitempty"`
}

WorkspaceListResult the list workspaces operation response.

type WorkspaceListUsagesResult Uses

type WorkspaceListUsagesResult struct {
    autorest.Response `json:"-"`
    // Value - Gets or sets a list of usage metrics for a workspace.
    Value *[]UsageMetric `json:"value,omitempty"`
}

WorkspaceListUsagesResult the list workspace usages operation response.

type WorkspacePatch Uses

type WorkspacePatch struct {
    // WorkspaceProperties - Workspace properties.
    *WorkspaceProperties `json:"properties,omitempty"`
    // Tags - Resource tags. Optional.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

WorkspacePatch the top level Workspace resource container.

func (WorkspacePatch) MarshalJSON Uses

func (wp WorkspacePatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkspacePatch.

func (*WorkspacePatch) UnmarshalJSON Uses

func (wp *WorkspacePatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WorkspacePatch struct.

type WorkspaceProperties Uses

type WorkspaceProperties struct {
    // ProvisioningState - The provisioning state of the workspace. Possible values include: 'WorkspaceEntityStatusCreating', 'WorkspaceEntityStatusSucceeded', 'WorkspaceEntityStatusFailed', 'WorkspaceEntityStatusCanceled', 'WorkspaceEntityStatusDeleting', 'WorkspaceEntityStatusProvisioningAccount', 'WorkspaceEntityStatusUpdating'
    ProvisioningState WorkspaceEntityStatus `json:"provisioningState,omitempty"`
    // CustomerID - READ-ONLY; This is a read-only property. Represents the ID associated with the workspace.
    CustomerID *string `json:"customerId,omitempty"`
    // Sku - The SKU of the workspace.
    Sku *WorkspaceSku `json:"sku,omitempty"`
    // RetentionInDays - The workspace data retention in days, between 30 and 730.
    RetentionInDays *int32 `json:"retentionInDays,omitempty"`
    // WorkspaceCapping - The daily volume cap for ingestion.
    WorkspaceCapping *WorkspaceCapping `json:"workspaceCapping,omitempty"`
    // PublicNetworkAccessForIngestion - The network access type for accessing Log Analytics ingestion. Possible values include: 'Enabled', 'Disabled'
    PublicNetworkAccessForIngestion PublicNetworkAccessType `json:"publicNetworkAccessForIngestion,omitempty"`
    // PublicNetworkAccessForQuery - The network access type for accessing Log Analytics query. Possible values include: 'Enabled', 'Disabled'
    PublicNetworkAccessForQuery PublicNetworkAccessType `json:"publicNetworkAccessForQuery,omitempty"`
    // PrivateLinkScopedResources - READ-ONLY; List of linked private link scope resources.
    PrivateLinkScopedResources *[]PrivateLinkScopedResource `json:"privateLinkScopedResources,omitempty"`
}

WorkspaceProperties workspace properties.

func (WorkspaceProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for WorkspaceProperties.

type WorkspacePurgeBody Uses

type WorkspacePurgeBody struct {
    // Table - Table from which to purge data.
    Table *string `json:"table,omitempty"`
    // Filters - The set of columns and filters (queries) to run over them to purge the resulting data.
    Filters *[]WorkspacePurgeBodyFilters `json:"filters,omitempty"`
}

WorkspacePurgeBody describes the body of a purge request for an App Insights Workspace

type WorkspacePurgeBodyFilters Uses

type WorkspacePurgeBodyFilters struct {
    // Column - The column of the table over which the given query should run
    Column *string `json:"column,omitempty"`
    // Operator - 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"`
    // Value - 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 interface{} `json:"value,omitempty"`
    // Key - When filtering over custom dimensions, this key will be used as the name of the custom dimension.
    Key *string `json:"key,omitempty"`
}

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

type WorkspacePurgeClient Uses

type WorkspacePurgeClient struct {
    BaseClient
}

WorkspacePurgeClient is the operational Insights Client

func NewWorkspacePurgeClient Uses

func NewWorkspacePurgeClient(subscriptionID string) WorkspacePurgeClient

NewWorkspacePurgeClient creates an instance of the WorkspacePurgeClient client.

func NewWorkspacePurgeClientWithBaseURI Uses

func NewWorkspacePurgeClientWithBaseURI(baseURI string, subscriptionID string) WorkspacePurgeClient

NewWorkspacePurgeClientWithBaseURI creates an instance of the WorkspacePurgeClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (WorkspacePurgeClient) GetPurgeStatus Uses

func (client WorkspacePurgeClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, workspaceName string, purgeID string) (result WorkspacePurgeStatusResponse, err error)

GetPurgeStatus gets status of an ongoing purge operation. Parameters: 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.

func (WorkspacePurgeClient) GetPurgeStatusPreparer Uses

func (client WorkspacePurgeClient) GetPurgeStatusPreparer(ctx context.Context, resourceGroupName string, workspaceName string, purgeID string) (*http.Request, error)

GetPurgeStatusPreparer prepares the GetPurgeStatus request.

func (WorkspacePurgeClient) GetPurgeStatusResponder Uses

func (client WorkspacePurgeClient) GetPurgeStatusResponder(resp *http.Response) (result WorkspacePurgeStatusResponse, err error)

GetPurgeStatusResponder handles the response to the GetPurgeStatus request. The method always closes the http.Response Body.

func (WorkspacePurgeClient) GetPurgeStatusSender Uses

func (client WorkspacePurgeClient) GetPurgeStatusSender(req *http.Request) (*http.Response, error)

GetPurgeStatusSender sends the GetPurgeStatus request. The method will close the http.Response Body if it receives an error.

func (WorkspacePurgeClient) Purge Uses

func (client WorkspacePurgeClient) Purge(ctx context.Context, resourceGroupName string, workspaceName string, body WorkspacePurgeBody) (result WorkspacePurgeResponse, err error)

Purge purges data in an Log Analytics workspace by a set of user-defined filters.

In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected. Parameters: 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

func (WorkspacePurgeClient) PurgePreparer Uses

func (client WorkspacePurgeClient) PurgePreparer(ctx context.Context, resourceGroupName string, workspaceName string, body WorkspacePurgeBody) (*http.Request, error)

PurgePreparer prepares the Purge request.

func (WorkspacePurgeClient) PurgeResponder Uses

func (client WorkspacePurgeClient) PurgeResponder(resp *http.Response) (result WorkspacePurgeResponse, err error)

PurgeResponder handles the response to the Purge request. The method always closes the http.Response Body.

func (WorkspacePurgeClient) PurgeSender Uses

func (client WorkspacePurgeClient) PurgeSender(req *http.Request) (*http.Response, error)

PurgeSender sends the Purge request. The method will close the http.Response Body if it receives an error.

type WorkspacePurgeResponse Uses

type WorkspacePurgeResponse struct {
    autorest.Response `json:"-"`
    // OperationID - 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.

type WorkspacePurgeStatusResponse Uses

type WorkspacePurgeStatusResponse struct {
    autorest.Response `json:"-"`
    // Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
    Status PurgeState `json:"status,omitempty"`
}

WorkspacePurgeStatusResponse response containing status for a specific purge operation.

type WorkspaceSku Uses

type WorkspaceSku struct {
    // Name - The name of the SKU. Possible values include: 'WorkspaceSkuNameEnumFree', 'WorkspaceSkuNameEnumStandard', 'WorkspaceSkuNameEnumPremium', 'WorkspaceSkuNameEnumPerNode', 'WorkspaceSkuNameEnumPerGB2018', 'WorkspaceSkuNameEnumStandalone', 'WorkspaceSkuNameEnumCapacityReservation'
    Name WorkspaceSkuNameEnum `json:"name,omitempty"`
    // CapacityReservationLevel - The capacity reservation level for this workspace, when CapacityReservation sku is selected.
    CapacityReservationLevel *int32 `json:"capacityReservationLevel,omitempty"`
    // MaxCapacityReservationLevel - READ-ONLY; The maximum capacity reservation level available for this workspace, when CapacityReservation sku is selected.
    MaxCapacityReservationLevel *int32 `json:"maxCapacityReservationLevel,omitempty"`
    // LastSkuUpdate - READ-ONLY; The last time when the sku was updated.
    LastSkuUpdate *string `json:"lastSkuUpdate,omitempty"`
}

WorkspaceSku the SKU (tier) of a workspace.

func (WorkspaceSku) MarshalJSON Uses

func (ws WorkspaceSku) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkspaceSku.

type WorkspaceSkuNameEnum Uses

type WorkspaceSkuNameEnum string

WorkspaceSkuNameEnum enumerates the values for workspace sku name enum.

const (
    // WorkspaceSkuNameEnumCapacityReservation ...
    WorkspaceSkuNameEnumCapacityReservation WorkspaceSkuNameEnum = "CapacityReservation"
    // WorkspaceSkuNameEnumFree ...
    WorkspaceSkuNameEnumFree WorkspaceSkuNameEnum = "Free"
    // WorkspaceSkuNameEnumPerGB2018 ...
    WorkspaceSkuNameEnumPerGB2018 WorkspaceSkuNameEnum = "PerGB2018"
    // WorkspaceSkuNameEnumPerNode ...
    WorkspaceSkuNameEnumPerNode WorkspaceSkuNameEnum = "PerNode"
    // WorkspaceSkuNameEnumPremium ...
    WorkspaceSkuNameEnumPremium WorkspaceSkuNameEnum = "Premium"
    // WorkspaceSkuNameEnumStandalone ...
    WorkspaceSkuNameEnumStandalone WorkspaceSkuNameEnum = "Standalone"
    // WorkspaceSkuNameEnumStandard ...
    WorkspaceSkuNameEnumStandard WorkspaceSkuNameEnum = "Standard"
)

func PossibleWorkspaceSkuNameEnumValues Uses

func PossibleWorkspaceSkuNameEnumValues() []WorkspaceSkuNameEnum

PossibleWorkspaceSkuNameEnumValues returns an array of possible values for the WorkspaceSkuNameEnum const type.

type WorkspacesClient Uses

type WorkspacesClient struct {
    BaseClient
}

WorkspacesClient is the operational Insights Client

func NewWorkspacesClient Uses

func NewWorkspacesClient(subscriptionID string) WorkspacesClient

NewWorkspacesClient creates an instance of the WorkspacesClient client.

func NewWorkspacesClientWithBaseURI Uses

func NewWorkspacesClientWithBaseURI(baseURI string, subscriptionID string) WorkspacesClient

NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (WorkspacesClient) CreateOrUpdate Uses

func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (result WorkspacesCreateOrUpdateFuture, err error)

CreateOrUpdate create or update a workspace. Parameters: 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.

func (WorkspacesClient) CreateOrUpdatePreparer Uses

func (client WorkspacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (WorkspacesClient) CreateOrUpdateResponder Uses

func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (WorkspacesClient) CreateOrUpdateSender Uses

func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (future WorkspacesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) Delete Uses

func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, force *bool) (result WorkspacesDeleteFuture, err error)

Delete 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. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. force - deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered.

func (WorkspacesClient) DeletePreparer Uses

func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, force *bool) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (WorkspacesClient) DeleteResponder Uses

func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (WorkspacesClient) DeleteSender Uses

func (client WorkspacesClient) DeleteSender(req *http.Request) (future WorkspacesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) Get Uses

func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)

Get gets a workspace instance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.

func (WorkspacesClient) GetPreparer Uses

func (client WorkspacesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (WorkspacesClient) GetResponder Uses

func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (WorkspacesClient) GetSender Uses

func (client WorkspacesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) List Uses

func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListResult, err error)

List gets the workspaces in a subscription.

func (WorkspacesClient) ListByResourceGroup Uses

func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListResult, err error)

ListByResourceGroup gets workspaces in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (WorkspacesClient) ListByResourceGroupPreparer Uses

func (client WorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (WorkspacesClient) ListByResourceGroupResponder Uses

func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (WorkspacesClient) ListByResourceGroupSender Uses

func (client WorkspacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) ListPreparer Uses

func (client WorkspacesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (WorkspacesClient) ListResponder Uses

func (client WorkspacesClient) ListResponder(resp *http.Response) (result WorkspaceListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (WorkspacesClient) ListSender Uses

func (client WorkspacesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) Update Uses

func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, parameters WorkspacePatch) (result Workspace, err error)

Update updates a workspace. Parameters: 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.

func (WorkspacesClient) UpdatePreparer Uses

func (client WorkspacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters WorkspacePatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (WorkspacesClient) UpdateResponder Uses

func (client WorkspacesClient) UpdateResponder(resp *http.Response) (result Workspace, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (WorkspacesClient) UpdateSender Uses

func (client WorkspacesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type WorkspacesCreateOrUpdateFuture Uses

type WorkspacesCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(WorkspacesClient) (Workspace, error)
}

WorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type WorkspacesDeleteFuture Uses

type WorkspacesDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(WorkspacesClient) (autorest.Response, error)
}

WorkspacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

Directories

PathSynopsis
operationalinsightsapi

Package operationalinsights imports 10 packages (graph) and is imported by 2 packages. Updated 2021-01-25. Refresh now. Tools for package owners.