operationalinsights

package
v43.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Operational Insights Client

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AvailableServiceTier

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

type AvailableServiceTiersClient struct {
	BaseClient
}

AvailableServiceTiersClient is the operational Insights Client

func NewAvailableServiceTiersClient

func NewAvailableServiceTiersClient(subscriptionID string) AvailableServiceTiersClient

NewAvailableServiceTiersClient creates an instance of the AvailableServiceTiersClient client.

func NewAvailableServiceTiersClientWithBaseURI

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (AvailableServiceTiersClient) ListByWorkspaceResponder

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

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

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

type BaseClient

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

BaseClient is the base client for Operationalinsights.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type Cluster

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Cluster the top level Log Analytics cluster resource container.

func (Cluster) MarshalJSON

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

MarshalJSON is the custom marshaler for Cluster.

func (*Cluster) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Cluster struct.

type ClusterEntityStatus

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

func PossibleClusterEntityStatusValues() []ClusterEntityStatus

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

type ClusterErrorResponse

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

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

func (clr ClusterListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ClusterListResultIterator

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

ClusterListResultIterator provides access to a complete listing of Cluster values.

func NewClusterListResultIterator

func NewClusterListResultIterator(page ClusterListResultPage) ClusterListResultIterator

Creates a new instance of the ClusterListResultIterator type.

func (*ClusterListResultIterator) Next

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

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

func (iter ClusterListResultIterator) NotDone() bool

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

func (ClusterListResultIterator) Response

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

func (ClusterListResultIterator) Value

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

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

ClusterListResultPage contains a page of Cluster values.

func NewClusterListResultPage

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

Creates a new instance of the ClusterListResultPage type.

func (*ClusterListResultPage) Next

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

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

func (page ClusterListResultPage) NotDone() bool

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

func (ClusterListResultPage) Response

func (page ClusterListResultPage) Response() ClusterListResult

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

func (ClusterListResultPage) Values

func (page ClusterListResultPage) Values() []Cluster

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

type ClusterPatch

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

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

MarshalJSON is the custom marshaler for ClusterPatch.

func (*ClusterPatch) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ClusterPatch struct.

type ClusterPatchProperties

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

ClusterPatchProperties log Analytics cluster patch properties.

type ClusterProperties

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.

type ClusterSku

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

type ClusterSkuNameEnum string

ClusterSkuNameEnum enumerates the values for cluster sku name enum.

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

func PossibleClusterSkuNameEnumValues

func PossibleClusterSkuNameEnumValues() []ClusterSkuNameEnum

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

type ClustersClient

type ClustersClient struct {
	BaseClient
}

ClustersClient is the operational Insights Client

func NewClustersClient

func NewClustersClient(subscriptionID string) ClustersClient

NewClustersClient creates an instance of the ClustersClient client.

func NewClustersClientWithBaseURI

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

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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ClustersClient) CreateOrUpdateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (ClustersClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (ClustersClient) GetResponder

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

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

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

List gets the Log Analytics clusters in a subscription.

func (ClustersClient) ListByResourceGroup

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

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

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ClustersClient) ListByResourceGroupResponder

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

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

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

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

func (ClustersClient) ListPreparer

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

ListPreparer prepares the List request.

func (ClustersClient) ListResponder

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

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

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

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

UpdatePreparer prepares the Update request.

func (ClustersClient) UpdateResponder

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

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

type ClustersCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ClustersCreateOrUpdateFuture) Result

func (future *ClustersCreateOrUpdateFuture) Result(client ClustersClient) (c Cluster, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ClustersDeleteFuture

type ClustersDeleteFuture struct {
	azure.Future
}

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

func (*ClustersDeleteFuture) Result

func (future *ClustersDeleteFuture) Result(client ClustersClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CoreSummary

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

DataExport the top level data export resource container.

func (DataExport) MarshalJSON

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

MarshalJSON is the custom marshaler for DataExport.

func (*DataExport) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DataExport struct.

type DataExportErrorResponse

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

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

type DataExportProperties struct {
	// DataExportID - The data export rule ID.
	DataExportID *string `json:"dataExportId,omitempty"`
	// AllTables - When ‘true’, all workspace's tables are exported.
	AllTables *bool `json:"allTables,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

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

MarshalJSON is the custom marshaler for DataExportProperties.

func (*DataExportProperties) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DataExportProperties struct.

type DataExportsClient

type DataExportsClient struct {
	BaseClient
}

DataExportsClient is the operational Insights Client

func NewDataExportsClient

func NewDataExportsClient(subscriptionID string) DataExportsClient

NewDataExportsClient creates an instance of the DataExportsClient client.

func NewDataExportsClientWithBaseURI

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

func (client DataExportsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, parameters DataExport) (result DataExportsCreateOrUpdateFuture, 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

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

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

func (client DataExportsClient) CreateOrUpdateSender(req *http.Request) (future DataExportsCreateOrUpdateFuture, err error)

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

func (DataExportsClient) Delete

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

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

DeletePreparer prepares the Delete request.

func (DataExportsClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (DataExportsClient) GetResponder

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

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (DataExportsClient) ListByWorkspaceResponder

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

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 DataExportsCreateOrUpdateFuture

type DataExportsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*DataExportsCreateOrUpdateFuture) Result

func (future *DataExportsCreateOrUpdateFuture) Result(client DataExportsClient) (de DataExport, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DataIngestionStatus

type DataIngestionStatus string

DataIngestionStatus enumerates the values for data ingestion status.

const (
	// ApproachingQuota ...
	ApproachingQuota DataIngestionStatus = "ApproachingQuota"
	// ForceOff ...
	ForceOff DataIngestionStatus = "ForceOff"
	// ForceOn ...
	ForceOn DataIngestionStatus = "ForceOn"
	// OverQuota ...
	OverQuota DataIngestionStatus = "OverQuota"
	// RespectQuota ...
	RespectQuota DataIngestionStatus = "RespectQuota"
	// SubscriptionSuspended ...
	SubscriptionSuspended DataIngestionStatus = "SubscriptionSuspended"
)

func PossibleDataIngestionStatusValues

func PossibleDataIngestionStatusValues() []DataIngestionStatus

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

type DataSource

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

DataSource datasources under OMS Workspace.

func (DataSource) MarshalJSON

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

MarshalJSON is the custom marshaler for DataSource.

type DataSourceFilter

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

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

func PossibleDataSourceKindValues() []DataSourceKind

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

type DataSourceListResult

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

func (dslr DataSourceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DataSourceListResultIterator

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

DataSourceListResultIterator provides access to a complete listing of DataSource values.

func NewDataSourceListResultIterator

func NewDataSourceListResultIterator(page DataSourceListResultPage) DataSourceListResultIterator

Creates a new instance of the DataSourceListResultIterator type.

func (*DataSourceListResultIterator) Next

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

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

func (iter DataSourceListResultIterator) NotDone() bool

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

func (DataSourceListResultIterator) Response

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

func (DataSourceListResultIterator) Value

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

type DataSourceListResultPage

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

DataSourceListResultPage contains a page of DataSource values.

func NewDataSourceListResultPage

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

Creates a new instance of the DataSourceListResultPage type.

func (*DataSourceListResultPage) Next

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

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

func (page DataSourceListResultPage) NotDone() bool

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

func (DataSourceListResultPage) Response

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

func (DataSourceListResultPage) Values

func (page DataSourceListResultPage) Values() []DataSource

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

type DataSourceType

type DataSourceType string

DataSourceType enumerates the values for data source type.

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

func PossibleDataSourceTypeValues

func PossibleDataSourceTypeValues() []DataSourceType

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

type DataSourcesClient

type DataSourcesClient struct {
	BaseClient
}

DataSourcesClient is the operational Insights Client

func NewDataSourcesClient

func NewDataSourcesClient(subscriptionID string) DataSourcesClient

NewDataSourcesClient creates an instance of the DataSourcesClient client.

func NewDataSourcesClientWithBaseURI

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

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (DataSourcesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (DataSourcesClient) GetResponder

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

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

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

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

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

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

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

type DeletedWorkspacesClient struct {
	BaseClient
}

DeletedWorkspacesClient is the operational Insights Client

func NewDeletedWorkspacesClient

func NewDeletedWorkspacesClient(subscriptionID string) DeletedWorkspacesClient

NewDeletedWorkspacesClient creates an instance of the DeletedWorkspacesClient client.

func NewDeletedWorkspacesClientWithBaseURI

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

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

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

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DeletedWorkspacesClient) ListByResourceGroupResponder

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

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

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

ListPreparer prepares the List request.

func (DeletedWorkspacesClient) ListResponder

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

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

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

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

MarshalJSON is the custom marshaler for Destination.

func (*Destination) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Destination struct.

type DestinationMetaData

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

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

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

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 the resource management error response.

type GatewaysClient

type GatewaysClient struct {
	BaseClient
}

GatewaysClient is the operational Insights Client

func NewGatewaysClient

func NewGatewaysClient(subscriptionID string) GatewaysClient

NewGatewaysClient creates an instance of the GatewaysClient client.

func NewGatewaysClientWithBaseURI

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

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

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

DeletePreparer prepares the Delete request.

func (GatewaysClient) DeleteResponder

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

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

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.

type IdentityType

type IdentityType string

IdentityType enumerates the values for identity type.

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

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

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

type IntelligencePack

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

type IntelligencePacksClient struct {
	BaseClient
}

IntelligencePacksClient is the operational Insights Client

func NewIntelligencePacksClient

func NewIntelligencePacksClient(subscriptionID string) IntelligencePacksClient

NewIntelligencePacksClient creates an instance of the IntelligencePacksClient client.

func NewIntelligencePacksClientWithBaseURI

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

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

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

DisablePreparer prepares the Disable request.

func (IntelligencePacksClient) DisableResponder

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

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

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

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

EnablePreparer prepares the Enable request.

func (IntelligencePacksClient) EnableResponder

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

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

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

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

ListPreparer prepares the List request.

func (IntelligencePacksClient) ListResponder

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

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

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

LinkedService the top level Linked service resource container.

func (LinkedService) MarshalJSON

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

MarshalJSON is the custom marshaler for LinkedService.

func (*LinkedService) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for LinkedService struct.

type LinkedServiceEntityStatus

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

func PossibleLinkedServiceEntityStatusValues() []LinkedServiceEntityStatus

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

type LinkedServiceListResult

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

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

type LinkedServicesClient struct {
	BaseClient
}

LinkedServicesClient is the operational Insights Client

func NewLinkedServicesClient

func NewLinkedServicesClient(subscriptionID string) LinkedServicesClient

NewLinkedServicesClient creates an instance of the LinkedServicesClient client.

func NewLinkedServicesClientWithBaseURI

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

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (LinkedServicesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (LinkedServicesClient) GetResponder

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

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (LinkedServicesClient) ListByWorkspaceResponder

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

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

type LinkedServicesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*LinkedServicesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LinkedServicesDeleteFuture

type LinkedServicesDeleteFuture struct {
	azure.Future
}

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

func (*LinkedServicesDeleteFuture) Result

func (future *LinkedServicesDeleteFuture) Result(client LinkedServicesClient) (ls LinkedService, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LinkedStorageAccountsClient

type LinkedStorageAccountsClient struct {
	BaseClient
}

LinkedStorageAccountsClient is the operational Insights Client

func NewLinkedStorageAccountsClient

func NewLinkedStorageAccountsClient(subscriptionID string) LinkedStorageAccountsClient

NewLinkedStorageAccountsClient creates an instance of the LinkedStorageAccountsClient client.

func NewLinkedStorageAccountsClientWithBaseURI

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

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (LinkedStorageAccountsClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (LinkedStorageAccountsClient) GetResponder

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

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (LinkedStorageAccountsClient) ListByWorkspaceResponder

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

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

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

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

LinkedStorageAccountsProperties linked storage accounts properties.

type LinkedStorageAccountsResource

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

LinkedStorageAccountsResource linked storage accounts top level resource container.

func (LinkedStorageAccountsResource) MarshalJSON

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

MarshalJSON is the custom marshaler for LinkedStorageAccountsResource.

func (*LinkedStorageAccountsResource) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for LinkedStorageAccountsResource struct.

type ListAvailableServiceTier

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

ListAvailableServiceTier ...

type ListIntelligencePack

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

ListIntelligencePack ...

type ManagementGroup

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

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

MarshalJSON is the custom marshaler for ManagementGroup.

func (*ManagementGroup) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ManagementGroup struct.

type ManagementGroupProperties

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

type ManagementGroupsClient struct {
	BaseClient
}

ManagementGroupsClient is the operational Insights Client

func NewManagementGroupsClient

func NewManagementGroupsClient(subscriptionID string) ManagementGroupsClient

NewManagementGroupsClient creates an instance of the ManagementGroupsClient client.

func NewManagementGroupsClientWithBaseURI

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

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

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

ListPreparer prepares the List request.

func (ManagementGroupsClient) ListResponder

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

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

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

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

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

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

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationStatus

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

type OperationStatusesClient struct {
	BaseClient
}

OperationStatusesClient is the operational Insights Client

func NewOperationStatusesClient

func NewOperationStatusesClient(subscriptionID string) OperationStatusesClient

NewOperationStatusesClient creates an instance of the OperationStatusesClient client.

func NewOperationStatusesClientWithBaseURI

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

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

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

GetPreparer prepares the Get request.

func (OperationStatusesClient) GetResponder

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

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

type OperationsClient struct {
	BaseClient
}

OperationsClient is the operational Insights Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

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

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

List lists all of the available OperationalInsights Rest API operations.

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type PublicNetworkAccessType

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

func PossiblePublicNetworkAccessTypeValues() []PublicNetworkAccessType

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

type PurgeState

type PurgeState string

PurgeState enumerates the values for purge state.

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

func PossiblePurgeStateValues

func PossiblePurgeStateValues() []PurgeState

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

type Resource

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Resource ...

type SavedSearch

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SavedSearch value object for saved search results.

func (SavedSearch) MarshalJSON

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

MarshalJSON is the custom marshaler for SavedSearch.

func (*SavedSearch) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for SavedSearch struct.

type SavedSearchProperties

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

type SavedSearchesClient struct {
	BaseClient
}

SavedSearchesClient is the operational Insights Client

func NewSavedSearchesClient

func NewSavedSearchesClient(subscriptionID string) SavedSearchesClient

NewSavedSearchesClient creates an instance of the SavedSearchesClient client.

func NewSavedSearchesClientWithBaseURI

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

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (SavedSearchesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (SavedSearchesClient) GetResponder

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

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (SavedSearchesClient) ListByWorkspaceResponder

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

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

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

type SchemaClient struct {
	BaseClient
}

SchemaClient is the operational Insights Client

func NewSchemaClient

func NewSchemaClient(subscriptionID string) SchemaClient

NewSchemaClient creates an instance of the SchemaClient client.

func NewSchemaClientWithBaseURI

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

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

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

GetPreparer prepares the Get request.

func (SchemaClient) GetResponder

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

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

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

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

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

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

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

type SearchSortEnum string

SearchSortEnum enumerates the values for search sort enum.

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

func PossibleSearchSortEnumValues

func PossibleSearchSortEnumValues() []SearchSortEnum

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

type SharedKeys

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

type SharedKeysClient struct {
	BaseClient
}

SharedKeysClient is the operational Insights Client

func NewSharedKeysClient

func NewSharedKeysClient(subscriptionID string) SharedKeysClient

NewSharedKeysClient creates an instance of the SharedKeysClient client.

func NewSharedKeysClientWithBaseURI

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

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

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

GetSharedKeysPreparer prepares the GetSharedKeys request.

func (SharedKeysClient) GetSharedKeysResponder

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

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

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

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

RegeneratePreparer prepares the Regenerate request.

func (SharedKeysClient) RegenerateResponder

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

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

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

func PossibleSkuNameEnumValues() []SkuNameEnum

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

type StorageAccount

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

StorageInsight the top level storage insight resource container.

func (StorageInsight) MarshalJSON

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

MarshalJSON is the custom marshaler for StorageInsight.

func (*StorageInsight) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for StorageInsight struct.

type StorageInsightConfigsClient

type StorageInsightConfigsClient struct {
	BaseClient
}

StorageInsightConfigsClient is the operational Insights Client

func NewStorageInsightConfigsClient

func NewStorageInsightConfigsClient(subscriptionID string) StorageInsightConfigsClient

NewStorageInsightConfigsClient creates an instance of the StorageInsightConfigsClient client.

func NewStorageInsightConfigsClientWithBaseURI

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

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (StorageInsightConfigsClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (StorageInsightConfigsClient) GetResponder

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

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

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (StorageInsightConfigsClient) ListByWorkspaceResponder

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

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

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

func (silr StorageInsightListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type StorageInsightListResultIterator

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

StorageInsightListResultIterator provides access to a complete listing of StorageInsight values.

func NewStorageInsightListResultIterator

func NewStorageInsightListResultIterator(page StorageInsightListResultPage) StorageInsightListResultIterator

Creates a new instance of the StorageInsightListResultIterator type.

func (*StorageInsightListResultIterator) Next

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

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

func (iter StorageInsightListResultIterator) NotDone() bool

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

func (StorageInsightListResultIterator) Response

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

func (StorageInsightListResultIterator) Value

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

type StorageInsightListResultPage

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

StorageInsightListResultPage contains a page of StorageInsight values.

func NewStorageInsightListResultPage

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

Creates a new instance of the StorageInsightListResultPage type.

func (*StorageInsightListResultPage) Next

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

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

func (page StorageInsightListResultPage) NotDone() bool

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

func (StorageInsightListResultPage) Response

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

func (StorageInsightListResultPage) Values

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

type StorageInsightProperties

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.

type StorageInsightState

type StorageInsightState string

StorageInsightState enumerates the values for storage insight state.

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

func PossibleStorageInsightStateValues

func PossibleStorageInsightStateValues() []StorageInsightState

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

type StorageInsightStatus

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Table workspace data table definition.

func (Table) MarshalJSON

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

MarshalJSON is the custom marshaler for Table.

func (*Table) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Table struct.

type TableProperties

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

type TablesClient struct {
	BaseClient
}

TablesClient is the operational Insights Client

func NewTablesClient

func NewTablesClient(subscriptionID string) TablesClient

NewTablesClient creates an instance of the TablesClient client.

func NewTablesClientWithBaseURI

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

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

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

GetPreparer prepares the Get request.

func (TablesClient) GetResponder

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

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

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

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

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (TablesClient) ListByWorkspaceResponder

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

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

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

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

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

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

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

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

type Type

type Type string

Type enumerates the values for type.

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

func PossibleTypeValues

func PossibleTypeValues() []Type

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

type UsageMetric

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

type UsagesClient struct {
	BaseClient
}

UsagesClient is the operational Insights Client

func NewUsagesClient

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI

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

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

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

ListPreparer prepares the List request.

func (UsagesClient) ListResponder

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

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Workspace the top level Workspace resource container.

func (Workspace) MarshalJSON

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

MarshalJSON is the custom marshaler for Workspace.

func (*Workspace) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Workspace struct.

type WorkspaceCapping

type WorkspaceCapping struct {
	// DailyQuotaGb - The workspace daily quota for ingestion. -1 means unlimited.
	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.

type WorkspaceEntityStatus

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

func PossibleWorkspaceEntityStatusValues() []WorkspaceEntityStatus

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

type WorkspaceListManagementGroupsResult

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

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

WorkspaceListResult the list workspaces operation response.

type WorkspaceListUsagesResult

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

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

WorkspacePatch the top level Workspace resource container.

func (WorkspacePatch) MarshalJSON

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

MarshalJSON is the custom marshaler for WorkspacePatch.

func (*WorkspacePatch) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for WorkspacePatch struct.

type WorkspaceProperties

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. -1 means Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed for all other Skus.
	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.

type WorkspacePurgeBody

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

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

type WorkspacePurgeClient struct {
	BaseClient
}

WorkspacePurgeClient is the operational Insights Client

func NewWorkspacePurgeClient

func NewWorkspacePurgeClient(subscriptionID string) WorkspacePurgeClient

NewWorkspacePurgeClient creates an instance of the WorkspacePurgeClient client.

func NewWorkspacePurgeClientWithBaseURI

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

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

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

GetPurgeStatusPreparer prepares the GetPurgeStatus request.

func (WorkspacePurgeClient) GetPurgeStatusResponder

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

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

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

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

PurgePreparer prepares the Purge request.

func (WorkspacePurgeClient) PurgeResponder

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

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

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

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

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.

type WorkspaceSkuNameEnum

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

func PossibleWorkspaceSkuNameEnumValues() []WorkspaceSkuNameEnum

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

type WorkspacesClient

type WorkspacesClient struct {
	BaseClient
}

WorkspacesClient is the operational Insights Client

func NewWorkspacesClient

func NewWorkspacesClient(subscriptionID string) WorkspacesClient

NewWorkspacesClient creates an instance of the WorkspacesClient client.

func NewWorkspacesClientWithBaseURI

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

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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (WorkspacesClient) CreateOrUpdateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (WorkspacesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (WorkspacesClient) GetResponder

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

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

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

List gets the workspaces in a subscription.

func (WorkspacesClient) ListByResourceGroup

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

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (WorkspacesClient) ListByResourceGroupResponder

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

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

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

ListPreparer prepares the List request.

func (WorkspacesClient) ListResponder

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

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

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

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

UpdatePreparer prepares the Update request.

func (WorkspacesClient) UpdateResponder

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

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

type WorkspacesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*WorkspacesCreateOrUpdateFuture) Result

func (future *WorkspacesCreateOrUpdateFuture) Result(client WorkspacesClient) (w Workspace, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type WorkspacesDeleteFuture

type WorkspacesDeleteFuture struct {
	azure.Future
}

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

func (*WorkspacesDeleteFuture) Result

func (future *WorkspacesDeleteFuture) Result(client WorkspacesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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