operationalinsights

package
v12.3.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package operationalinsights implements the Azure ARM Operationalinsights service API version .

Operational Insights Client

Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2015-11-01-preview/operationalinsights

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 CoreSummary

type CoreSummary struct {
	Status            *string `json:"Status,omitempty"`
	NumberOfDocuments *int64  `json:"NumberOfDocuments,omitempty"`
}

CoreSummary is the core summary of a search.

type DataSource

type DataSource struct {
	autorest.Response `json:"-"`
	ID                *string                 `json:"id,omitempty"`
	Name              *string                 `json:"name,omitempty"`
	Type              *string                 `json:"type,omitempty"`
	Tags              *map[string]*string     `json:"tags,omitempty"`
	Properties        *map[string]interface{} `json:"properties,omitempty"`
	ETag              *string                 `json:"eTag,omitempty"`
	Kind              DataSourceKind          `json:"kind,omitempty"`
}

DataSource is datasources under OMS Workspace.

type DataSourceFilter

type DataSourceFilter struct {
	Kind DataSourceKind `json:"kind,omitempty"`
}

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

type DataSourceKind

type DataSourceKind string

DataSourceKind enumerates the values for data source kind.

const (
	// AzureActivityLog specifies the azure activity log state for data source kind.
	AzureActivityLog DataSourceKind = "AzureActivityLog"
	// ChangeTrackingCustomRegistry specifies the change tracking custom registry state for data source kind.
	ChangeTrackingCustomRegistry DataSourceKind = "ChangeTrackingCustomRegistry"
	// ChangeTrackingDefaultPath specifies the change tracking default path state for data source kind.
	ChangeTrackingDefaultPath DataSourceKind = "ChangeTrackingDefaultPath"
	// ChangeTrackingDefaultRegistry specifies the change tracking default registry state for data source kind.
	ChangeTrackingDefaultRegistry DataSourceKind = "ChangeTrackingDefaultRegistry"
	// ChangeTrackingPath specifies the change tracking path state for data source kind.
	ChangeTrackingPath DataSourceKind = "ChangeTrackingPath"
	// CustomLog specifies the custom log state for data source kind.
	CustomLog DataSourceKind = "CustomLog"
	// CustomLogCollection specifies the custom log collection state for data source kind.
	CustomLogCollection DataSourceKind = "CustomLogCollection"
	// GenericDataSource specifies the generic data source state for data source kind.
	GenericDataSource DataSourceKind = "GenericDataSource"
	// IISLogs specifies the iis logs state for data source kind.
	IISLogs DataSourceKind = "IISLogs"
	// LinuxPerformanceCollection specifies the linux performance collection state for data source kind.
	LinuxPerformanceCollection DataSourceKind = "LinuxPerformanceCollection"
	// LinuxPerformanceObject specifies the linux performance object state for data source kind.
	LinuxPerformanceObject DataSourceKind = "LinuxPerformanceObject"
	// LinuxSyslog specifies the linux syslog state for data source kind.
	LinuxSyslog DataSourceKind = "LinuxSyslog"
	// LinuxSyslogCollection specifies the linux syslog collection state for data source kind.
	LinuxSyslogCollection DataSourceKind = "LinuxSyslogCollection"
	// WindowsEvent specifies the windows event state for data source kind.
	WindowsEvent DataSourceKind = "WindowsEvent"
	// WindowsPerformanceCounter specifies the windows performance counter state for data source kind.
	WindowsPerformanceCounter DataSourceKind = "WindowsPerformanceCounter"
)

type DataSourceListResult

type DataSourceListResult struct {
	autorest.Response `json:"-"`
	Value             *[]DataSource `json:"value,omitempty"`
	NextLink          *string       `json:"nextLink,omitempty"`
}

DataSourceListResult is the list data source by workspace operation response.

func (DataSourceListResult) DataSourceListResultPreparer

func (client DataSourceListResult) DataSourceListResultPreparer() (*http.Request, error)

DataSourceListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type DataSourcesClient

type DataSourcesClient struct {
	ManagementClient
}

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.

func (DataSourcesClient) CreateOrUpdate

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

CreateOrUpdate create or update a data source.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that will contain the datasource dataSourceName is the name of the datasource resource. parameters is the parameters required to create or update a datasource.

func (DataSourcesClient) CreateOrUpdatePreparer

func (client DataSourcesClient) CreateOrUpdatePreparer(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(resourceGroupName string, workspaceName string, dataSourceName string) (result autorest.Response, err error)

Delete deletes a data source instance.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that contains the datasource. dataSourceName is name of the datasource.

func (DataSourcesClient) DeletePreparer

func (client DataSourcesClient) DeletePreparer(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(resourceGroupName string, workspaceName string, dataSourceName string) (result DataSource, err error)

Get gets a datasource instance.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that contains the datasource. dataSourceName is name of the datasource

func (DataSourcesClient) GetPreparer

func (client DataSourcesClient) GetPreparer(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(resourceGroupName string, workspaceName string, filter string, skiptoken string) (result DataSourceListResult, err error)

ListByWorkspace gets the first page of data source instances in a workspace with the link to the next page.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is the workspace that contains the data sources. filter is the filter to apply on the operation. skiptoken is starting point of the collection of data source instances.

func (DataSourcesClient) ListByWorkspaceComplete

func (client DataSourcesClient) ListByWorkspaceComplete(resourceGroupName string, workspaceName string, filter string, skiptoken string, cancel <-chan struct{}) (<-chan DataSource, <-chan error)

ListByWorkspaceComplete gets all elements from the list without paging.

func (DataSourcesClient) ListByWorkspaceNextResults

func (client DataSourcesClient) ListByWorkspaceNextResults(lastResults DataSourceListResult) (result DataSourceListResult, err error)

ListByWorkspaceNextResults retrieves the next set of results, if any.

func (DataSourcesClient) ListByWorkspacePreparer

func (client DataSourcesClient) ListByWorkspacePreparer(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 EntityStatus

type EntityStatus string

EntityStatus enumerates the values for entity status.

const (
	// Canceled specifies the canceled state for entity status.
	Canceled EntityStatus = "Canceled"
	// Creating specifies the creating state for entity status.
	Creating EntityStatus = "Creating"
	// Deleting specifies the deleting state for entity status.
	Deleting EntityStatus = "Deleting"
	// Failed specifies the failed state for entity status.
	Failed EntityStatus = "Failed"
	// ProvisioningAccount specifies the provisioning account state for entity status.
	ProvisioningAccount EntityStatus = "ProvisioningAccount"
	// Succeeded specifies the succeeded state for entity status.
	Succeeded EntityStatus = "Succeeded"
)

type IntelligencePack

type IntelligencePack struct {
	Name    *string `json:"name,omitempty"`
	Enabled *bool   `json:"enabled,omitempty"`
}

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

type LinkTarget

type LinkTarget struct {
	CustomerID    *string `json:"customerId,omitempty"`
	DisplayName   *string `json:"accountName,omitempty"`
	WorkspaceName *string `json:"workspaceName,omitempty"`
	Location      *string `json:"location,omitempty"`
}

LinkTarget is metadata for a workspace that isn't linked to an Azure subscription.

type LinkedService

type LinkedService struct {
	autorest.Response        `json:"-"`
	ID                       *string             `json:"id,omitempty"`
	Name                     *string             `json:"name,omitempty"`
	Type                     *string             `json:"type,omitempty"`
	Tags                     *map[string]*string `json:"tags,omitempty"`
	*LinkedServiceProperties `json:"properties,omitempty"`
}

LinkedService is the top level Linked service resource container.

type LinkedServiceListResult

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

LinkedServiceListResult is the list linked service operation response.

type LinkedServiceProperties

type LinkedServiceProperties struct {
	ResourceID *string `json:"resourceId,omitempty"`
}

LinkedServiceProperties is linked service properties.

type LinkedServicesClient

type LinkedServicesClient struct {
	ManagementClient
}

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.

func (LinkedServicesClient) CreateOrUpdate

func (client LinkedServicesClient) CreateOrUpdate(resourceGroupName string, workspaceName string, linkedServiceName string, parameters LinkedService) (result LinkedService, err error)

CreateOrUpdate create or update a linked service.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that will contain the linkedServices resource linkedServiceName is name of the linkedServices resource parameters is the parameters required to create or update a linked service.

func (LinkedServicesClient) CreateOrUpdatePreparer

func (client LinkedServicesClient) CreateOrUpdatePreparer(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) (*http.Response, 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(resourceGroupName string, workspaceName string, linkedServiceName string) (result autorest.Response, err error)

Delete deletes a linked service instance.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that contains the linkedServices resource linkedServiceName is name of the linked service.

func (LinkedServicesClient) DeletePreparer

func (client LinkedServicesClient) DeletePreparer(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 autorest.Response, 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) (*http.Response, 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(resourceGroupName string, workspaceName string, linkedServiceName string) (result LinkedService, err error)

Get gets a linked service instance.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that contains the linkedServices resource linkedServiceName is name of the linked service.

func (LinkedServicesClient) GetPreparer

func (client LinkedServicesClient) GetPreparer(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(resourceGroupName string, workspaceName string) (result LinkedServiceListResult, err error)

ListByWorkspace gets the linked services instances in a workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace that contains the linked services.

func (LinkedServicesClient) ListByWorkspacePreparer

func (client LinkedServicesClient) ListByWorkspacePreparer(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 ListIntelligencePack

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

ListIntelligencePack is

type ListLinkTarget

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

ListLinkTarget is

type ManagementClient

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

ManagementClient is the base client for Operationalinsights.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type ManagementGroup

type ManagementGroup struct {
	*ManagementGroupProperties `json:"properties,omitempty"`
}

ManagementGroup is a management group that is connected to a workspace

type ManagementGroupProperties

type ManagementGroupProperties struct {
	ServerCount  *int32     `json:"serverCount,omitempty"`
	IsGateway    *bool      `json:"isGateway,omitempty"`
	Name         *string    `json:"name,omitempty"`
	ID           *string    `json:"id,omitempty"`
	Created      *date.Time `json:"created,omitempty"`
	DataReceived *date.Time `json:"dataReceived,omitempty"`
	Version      *string    `json:"version,omitempty"`
	Sku          *string    `json:"sku,omitempty"`
}

ManagementGroupProperties is management group properties.

type MetricName

type MetricName struct {
	Value          *string `json:"value,omitempty"`
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

MetricName is the name of a metric.

type ProxyResource

type ProxyResource struct {
	ID   *string             `json:"id,omitempty"`
	Name *string             `json:"name,omitempty"`
	Type *string             `json:"type,omitempty"`
	Tags *map[string]*string `json:"tags,omitempty"`
}

ProxyResource is common properties of proxy resource.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is the resource definition.

type SavedSearch

type SavedSearch struct {
	autorest.Response      `json:"-"`
	ID                     *string `json:"id,omitempty"`
	Etag                   *string `json:"etag,omitempty"`
	*SavedSearchProperties `json:"properties,omitempty"`
}

SavedSearch is value object for saved search results.

type SavedSearchProperties

type SavedSearchProperties struct {
	Category    *string `json:"Category,omitempty"`
	DisplayName *string `json:"DisplayName,omitempty"`
	Query       *string `json:"Query,omitempty"`
	Version     *int64  `json:"Version,omitempty"`
	Tags        *[]Tag  `json:"Tags,omitempty"`
}

SavedSearchProperties is value object for saved search results.

type SavedSearchesClient

type SavedSearchesClient struct {
	ManagementClient
}

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.

func (SavedSearchesClient) CreateOrUpdate

func (client SavedSearchesClient) CreateOrUpdate(resourceGroupName string, workspaceName string, savedSearchName string, parameters SavedSearch) (result SavedSearch, err error)

CreateOrUpdate creates or updates a saved search for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name savedSearchName is the id of the saved search. parameters is the parameters required to save a search.

func (SavedSearchesClient) CreateOrUpdatePreparer

func (client SavedSearchesClient) CreateOrUpdatePreparer(resourceGroupName string, workspaceName string, savedSearchName 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(resourceGroupName string, workspaceName string, savedSearchName string) (result autorest.Response, err error)

Delete deletes the specified saved search in a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name savedSearchName is name of the saved search.

func (SavedSearchesClient) DeletePreparer

func (client SavedSearchesClient) DeletePreparer(resourceGroupName string, workspaceName string, savedSearchName 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(resourceGroupName string, workspaceName string, savedSearchName string) (result SavedSearch, err error)

Get gets the specified saved search for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name savedSearchName is the id of the saved search.

func (SavedSearchesClient) GetPreparer

func (client SavedSearchesClient) GetPreparer(resourceGroupName string, workspaceName string, savedSearchName 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) GetResults

func (client SavedSearchesClient) GetResults(resourceGroupName string, workspaceName string, savedSearchName string) (result SearchResultsResponse, err error)

GetResults gets the results from a saved search for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name savedSearchName is the name of the saved search.

func (SavedSearchesClient) GetResultsPreparer

func (client SavedSearchesClient) GetResultsPreparer(resourceGroupName string, workspaceName string, savedSearchName string) (*http.Request, error)

GetResultsPreparer prepares the GetResults request.

func (SavedSearchesClient) GetResultsResponder

func (client SavedSearchesClient) GetResultsResponder(resp *http.Response) (result SearchResultsResponse, err error)

GetResultsResponder handles the response to the GetResults request. The method always closes the http.Response Body.

func (SavedSearchesClient) GetResultsSender

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

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

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(resourceGroupName string, workspaceName string) (result SavedSearchesListResult, err error)

ListByWorkspace gets the saved searches for a given Log Analytics Workspace

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name

func (SavedSearchesClient) ListByWorkspacePreparer

func (client SavedSearchesClient) ListByWorkspacePreparer(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:"-"`
	Metadata          *SearchMetadata `json:"__metadata,omitempty"`
	Value             *[]SavedSearch  `json:"value,omitempty"`
}

SavedSearchesListResult is the saved search operation response.

type SearchError

type SearchError struct {
	Type    *string `json:"type,omitempty"`
	Message *string `json:"message,omitempty"`
}

SearchError is details for a search error.

type SearchGetSchemaResponse

type SearchGetSchemaResponse struct {
	autorest.Response `json:"-"`
	Metadata          *SearchMetadata      `json:"__metadata,omitempty"`
	Value             *[]SearchSchemaValue `json:"value,omitempty"`
}

SearchGetSchemaResponse is the get schema operation response.

type SearchHighlight

type SearchHighlight struct {
	Pre  *string `json:"pre,omitempty"`
	Post *string `json:"post,omitempty"`
}

SearchHighlight is highlight details.

type SearchMetadata

type SearchMetadata struct {
	SearchID                 *string               `json:"RequestId,omitempty"`
	ResultType               *string               `json:"resultType,omitempty"`
	Total                    *int64                `json:"total,omitempty"`
	Top                      *int64                `json:"top,omitempty"`
	ID                       *string               `json:"id,omitempty"`
	CoreSummaries            *[]CoreSummary        `json:"CoreSummaries,omitempty"`
	Status                   *string               `json:"Status,omitempty"`
	StartTime                *date.Time            `json:"StartTime,omitempty"`
	LastUpdated              *date.Time            `json:"LastUpdated,omitempty"`
	ETag                     *string               `json:"ETag,omitempty"`
	Sort                     *[]SearchSort         `json:"sort,omitempty"`
	RequestTime              *int64                `json:"requestTime,omitempty"`
	AggregatedValueField     *string               `json:"aggregatedValueField,omitempty"`
	AggregatedGroupingFields *string               `json:"aggregatedGroupingFields,omitempty"`
	Sum                      *int64                `json:"sum,omitempty"`
	Max                      *int64                `json:"max,omitempty"`
	Schema                   *SearchMetadataSchema `json:"schema,omitempty"`
}

SearchMetadata is metadata for search results.

type SearchMetadataSchema

type SearchMetadataSchema struct {
	Name    *string `json:"name,omitempty"`
	Version *int32  `json:"version,omitempty"`
}

SearchMetadataSchema is schema metadata for search.

type SearchParameters

type SearchParameters struct {
	Top       *int64           `json:"top,omitempty"`
	Highlight *SearchHighlight `json:"highlight,omitempty"`
	Query     *string          `json:"query,omitempty"`
	Start     *date.Time       `json:"start,omitempty"`
	End       *date.Time       `json:"end,omitempty"`
}

SearchParameters is parameters specifying the search query and range.

type SearchResultsResponse

type SearchResultsResponse struct {
	autorest.Response `json:"-"`
	ID                *string                   `json:"id,omitempty"`
	Metadata          *SearchMetadata           `json:"__metadata,omitempty"`
	Value             *[]map[string]interface{} `json:"value,omitempty"`
	Error             *SearchError              `json:"error,omitempty"`
}

SearchResultsResponse is the get search result operation response.

type SearchSchemaValue

type SearchSchemaValue struct {
	Name        *string   `json:"name,omitempty"`
	DisplayName *string   `json:"displayName,omitempty"`
	Type        *string   `json:"type,omitempty"`
	Indexed     *bool     `json:"indexed,omitempty"`
	Stored      *bool     `json:"stored,omitempty"`
	Facet       *bool     `json:"facet,omitempty"`
	OwnerType   *[]string `json:"ownerType,omitempty"`
}

SearchSchemaValue is value object for schema results.

type SearchSort

type SearchSort struct {
	Name  *string        `json:"name,omitempty"`
	Order SearchSortEnum `json:"order,omitempty"`
}

SearchSort is the sort parameters for search.

type SearchSortEnum

type SearchSortEnum string

SearchSortEnum enumerates the values for search sort enum.

const (
	// Asc specifies the asc state for search sort enum.
	Asc SearchSortEnum = "asc"
	// Desc specifies the desc state for search sort enum.
	Desc SearchSortEnum = "desc"
)

type SharedKeys

type SharedKeys struct {
	autorest.Response  `json:"-"`
	PrimarySharedKey   *string `json:"primarySharedKey,omitempty"`
	SecondarySharedKey *string `json:"secondarySharedKey,omitempty"`
}

SharedKeys is the shared keys for a workspace.

type Sku

type Sku struct {
	Name SkuNameEnum `json:"name,omitempty"`
}

Sku is the SKU (tier) of a workspace.

type SkuNameEnum

type SkuNameEnum string

SkuNameEnum enumerates the values for sku name enum.

const (
	// Free specifies the free state for sku name enum.
	Free SkuNameEnum = "Free"
	// PerNode specifies the per node state for sku name enum.
	PerNode SkuNameEnum = "PerNode"
	// Premium specifies the premium state for sku name enum.
	Premium SkuNameEnum = "Premium"
	// Standalone specifies the standalone state for sku name enum.
	Standalone SkuNameEnum = "Standalone"
	// Standard specifies the standard state for sku name enum.
	Standard SkuNameEnum = "Standard"
	// Unlimited specifies the unlimited state for sku name enum.
	Unlimited SkuNameEnum = "Unlimited"
)

type StorageAccount

type StorageAccount struct {
	ID  *string `json:"id,omitempty"`
	Key *string `json:"key,omitempty"`
}

StorageAccount is describes a storage account connection.

type StorageInsight

type StorageInsight struct {
	autorest.Response         `json:"-"`
	ID                        *string             `json:"id,omitempty"`
	Name                      *string             `json:"name,omitempty"`
	Type                      *string             `json:"type,omitempty"`
	Tags                      *map[string]*string `json:"tags,omitempty"`
	*StorageInsightProperties `json:"properties,omitempty"`
	ETag                      *string `json:"eTag,omitempty"`
}

StorageInsight is the top level storage insight resource container.

type StorageInsightListResult

type StorageInsightListResult struct {
	autorest.Response `json:"-"`
	Value             *[]StorageInsight `json:"value,omitempty"`
	OdataNextLink     *string           `json:"@odata.nextLink,omitempty"`
}

StorageInsightListResult is the list storage insights operation response.

func (StorageInsightListResult) StorageInsightListResultPreparer

func (client StorageInsightListResult) StorageInsightListResultPreparer() (*http.Request, error)

StorageInsightListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type StorageInsightProperties

type StorageInsightProperties struct {
	Containers     *[]string             `json:"containers,omitempty"`
	Tables         *[]string             `json:"tables,omitempty"`
	StorageAccount *StorageAccount       `json:"storageAccount,omitempty"`
	Status         *StorageInsightStatus `json:"status,omitempty"`
}

StorageInsightProperties is storage insight properties.

type StorageInsightState

type StorageInsightState string

StorageInsightState enumerates the values for storage insight state.

const (
	// ERROR specifies the error state for storage insight state.
	ERROR StorageInsightState = "ERROR"
	// OK specifies the ok state for storage insight state.
	OK StorageInsightState = "OK"
)

type StorageInsightStatus

type StorageInsightStatus struct {
	State       StorageInsightState `json:"state,omitempty"`
	Description *string             `json:"description,omitempty"`
}

StorageInsightStatus is the status of the storage insight.

type StorageInsightsClient

type StorageInsightsClient struct {
	ManagementClient
}

StorageInsightsClient is the operational Insights Client

func NewStorageInsightsClient

func NewStorageInsightsClient(subscriptionID string) StorageInsightsClient

NewStorageInsightsClient creates an instance of the StorageInsightsClient client.

func NewStorageInsightsClientWithBaseURI

func NewStorageInsightsClientWithBaseURI(baseURI string, subscriptionID string) StorageInsightsClient

NewStorageInsightsClientWithBaseURI creates an instance of the StorageInsightsClient client.

func (StorageInsightsClient) CreateOrUpdate

func (client StorageInsightsClient) CreateOrUpdate(resourceGroupName string, workspaceName string, storageInsightName string, parameters StorageInsight) (result StorageInsight, err error)

CreateOrUpdate create or update a storage insight.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics Workspace name that will contain the storageInsightsConfigs resource storageInsightName is name of the storageInsightsConfigs resource parameters is the parameters required to create or update a storage insight.

func (StorageInsightsClient) CreateOrUpdatePreparer

func (client StorageInsightsClient) CreateOrUpdatePreparer(resourceGroupName string, workspaceName string, storageInsightName string, parameters StorageInsight) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (StorageInsightsClient) CreateOrUpdateResponder

func (client StorageInsightsClient) 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 (StorageInsightsClient) CreateOrUpdateSender

func (client StorageInsightsClient) 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 (StorageInsightsClient) Delete

func (client StorageInsightsClient) Delete(resourceGroupName string, workspaceName string, storageInsightName string) (result autorest.Response, err error)

Delete deletes a storageInsightsConfigs resource

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics Workspace name that contains the storageInsightsConfigs resource storageInsightName is name of the storageInsightsConfigs resource

func (StorageInsightsClient) DeletePreparer

func (client StorageInsightsClient) DeletePreparer(resourceGroupName string, workspaceName string, storageInsightName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (StorageInsightsClient) DeleteResponder

func (client StorageInsightsClient) 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 (StorageInsightsClient) DeleteSender

func (client StorageInsightsClient) 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 (StorageInsightsClient) Get

func (client StorageInsightsClient) Get(resourceGroupName string, workspaceName string, storageInsightName string) (result StorageInsight, err error)

Get gets a storage insight instance.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics Workspace name that contains the storageInsightsConfigs resource storageInsightName is name of the storageInsightsConfigs resource

func (StorageInsightsClient) GetPreparer

func (client StorageInsightsClient) GetPreparer(resourceGroupName string, workspaceName string, storageInsightName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (StorageInsightsClient) GetResponder

func (client StorageInsightsClient) 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 (StorageInsightsClient) GetSender

func (client StorageInsightsClient) 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 (StorageInsightsClient) ListByWorkspace

func (client StorageInsightsClient) ListByWorkspace(resourceGroupName string, workspaceName string) (result StorageInsightListResult, err error)

ListByWorkspace lists the storage insight instances within a workspace

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics Workspace name that will contain the storageInsightsConfigs resource

func (StorageInsightsClient) ListByWorkspaceComplete

func (client StorageInsightsClient) ListByWorkspaceComplete(resourceGroupName string, workspaceName string, cancel <-chan struct{}) (<-chan StorageInsight, <-chan error)

ListByWorkspaceComplete gets all elements from the list without paging.

func (StorageInsightsClient) ListByWorkspaceNextResults

func (client StorageInsightsClient) ListByWorkspaceNextResults(lastResults StorageInsightListResult) (result StorageInsightListResult, err error)

ListByWorkspaceNextResults retrieves the next set of results, if any.

func (StorageInsightsClient) ListByWorkspacePreparer

func (client StorageInsightsClient) ListByWorkspacePreparer(resourceGroupName string, workspaceName string) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (StorageInsightsClient) ListByWorkspaceResponder

func (client StorageInsightsClient) 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 (StorageInsightsClient) ListByWorkspaceSender

func (client StorageInsightsClient) 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 Tag

type Tag struct {
	Name  *string `json:"Name,omitempty"`
	Value *string `json:"Value,omitempty"`
}

Tag is a tag of a saved search.

type UsageMetric

type UsageMetric struct {
	Name          *MetricName `json:"name,omitempty"`
	Unit          *string     `json:"unit,omitempty"`
	CurrentValue  *float64    `json:"currentValue,omitempty"`
	Limit         *float64    `json:"limit,omitempty"`
	NextResetTime *date.Time  `json:"nextResetTime,omitempty"`
	QuotaPeriod   *string     `json:"quotaPeriod,omitempty"`
}

UsageMetric is a metric describing the usage of a resource.

type Workspace

type Workspace struct {
	autorest.Response    `json:"-"`
	ID                   *string             `json:"id,omitempty"`
	Name                 *string             `json:"name,omitempty"`
	Type                 *string             `json:"type,omitempty"`
	Location             *string             `json:"location,omitempty"`
	Tags                 *map[string]*string `json:"tags,omitempty"`
	*WorkspaceProperties `json:"properties,omitempty"`
	ETag                 *string `json:"eTag,omitempty"`
}

Workspace is the top level Workspace resource container.

type WorkspaceListManagementGroupsResult

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

WorkspaceListManagementGroupsResult is the list workspace managmement groups operation response.

type WorkspaceListResult

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

WorkspaceListResult is the list workspaces operation response.

type WorkspaceListUsagesResult

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

WorkspaceListUsagesResult is the list workspace usages operation response.

type WorkspaceProperties

type WorkspaceProperties struct {
	ProvisioningState EntityStatus `json:"provisioningState,omitempty"`
	Source            *string      `json:"source,omitempty"`
	CustomerID        *string      `json:"customerId,omitempty"`
	PortalURL         *string      `json:"portalUrl,omitempty"`
	Sku               *Sku         `json:"sku,omitempty"`
	RetentionInDays   *int32       `json:"retentionInDays,omitempty"`
}

WorkspaceProperties is workspace properties.

type WorkspacesClient

type WorkspacesClient struct {
	ManagementClient
}

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.

func (WorkspacesClient) CreateOrUpdate

func (client WorkspacesClient) CreateOrUpdate(resourceGroupName string, workspaceName string, parameters Workspace, cancel <-chan struct{}) (<-chan Workspace, <-chan error)

CreateOrUpdate create or update a workspace. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the resource group name of the workspace. workspaceName is the name of the workspace. parameters is the parameters required to create or update a workspace.

func (WorkspacesClient) CreateOrUpdatePreparer

func (client WorkspacesClient) CreateOrUpdatePreparer(resourceGroupName string, workspaceName string, parameters Workspace, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, workspaceName string) (result autorest.Response, err error)

Delete deletes a workspace instance.

resourceGroupName is the resource group name of the workspace. workspaceName is name of the Log Analytics Workspace.

func (WorkspacesClient) DeletePreparer

func (client WorkspacesClient) DeletePreparer(resourceGroupName string, workspaceName string) (*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) (*http.Response, error)

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

func (WorkspacesClient) DisableIntelligencePack

func (client WorkspacesClient) DisableIntelligencePack(resourceGroupName string, workspaceName string, intelligencePackName string) (result autorest.Response, err error)

DisableIntelligencePack disables an intelligence pack for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace. intelligencePackName is the name of the intelligence pack to be disabled.

func (WorkspacesClient) DisableIntelligencePackPreparer

func (client WorkspacesClient) DisableIntelligencePackPreparer(resourceGroupName string, workspaceName string, intelligencePackName string) (*http.Request, error)

DisableIntelligencePackPreparer prepares the DisableIntelligencePack request.

func (WorkspacesClient) DisableIntelligencePackResponder

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

DisableIntelligencePackResponder handles the response to the DisableIntelligencePack request. The method always closes the http.Response Body.

func (WorkspacesClient) DisableIntelligencePackSender

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

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

func (WorkspacesClient) EnableIntelligencePack

func (client WorkspacesClient) EnableIntelligencePack(resourceGroupName string, workspaceName string, intelligencePackName string) (result autorest.Response, err error)

EnableIntelligencePack enables an intelligence pack for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace. intelligencePackName is the name of the intelligence pack to be enabled.

func (WorkspacesClient) EnableIntelligencePackPreparer

func (client WorkspacesClient) EnableIntelligencePackPreparer(resourceGroupName string, workspaceName string, intelligencePackName string) (*http.Request, error)

EnableIntelligencePackPreparer prepares the EnableIntelligencePack request.

func (WorkspacesClient) EnableIntelligencePackResponder

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

EnableIntelligencePackResponder handles the response to the EnableIntelligencePack request. The method always closes the http.Response Body.

func (WorkspacesClient) EnableIntelligencePackSender

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

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

func (WorkspacesClient) Get

func (client WorkspacesClient) Get(resourceGroupName string, workspaceName string) (result Workspace, err error)

Get gets a workspace instance.

resourceGroupName is the resource group name of the workspace. workspaceName is name of the Log Analytics Workspace.

func (WorkspacesClient) GetPreparer

func (client WorkspacesClient) GetPreparer(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) GetSchema

func (client WorkspacesClient) GetSchema(resourceGroupName string, workspaceName string) (result SearchGetSchemaResponse, err error)

GetSchema gets the schema for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name

func (WorkspacesClient) GetSchemaPreparer

func (client WorkspacesClient) GetSchemaPreparer(resourceGroupName string, workspaceName string) (*http.Request, error)

GetSchemaPreparer prepares the GetSchema request.

func (WorkspacesClient) GetSchemaResponder

func (client WorkspacesClient) GetSchemaResponder(resp *http.Response) (result SearchGetSchemaResponse, err error)

GetSchemaResponder handles the response to the GetSchema request. The method always closes the http.Response Body.

func (WorkspacesClient) GetSchemaSender

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

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

func (WorkspacesClient) GetSearchResults

func (client WorkspacesClient) GetSearchResults(resourceGroupName string, workspaceName string, parameters SearchParameters, cancel <-chan struct{}) (<-chan SearchResultsResponse, <-chan error)

GetSearchResults submit a search for a given workspace. The response will contain an id to track the search. User can use the id to poll the search status and get the full search result later if the search takes long time to finish. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name parameters is the parameters required to execute a search query.

func (WorkspacesClient) GetSearchResultsPreparer

func (client WorkspacesClient) GetSearchResultsPreparer(resourceGroupName string, workspaceName string, parameters SearchParameters, cancel <-chan struct{}) (*http.Request, error)

GetSearchResultsPreparer prepares the GetSearchResults request.

func (WorkspacesClient) GetSearchResultsResponder

func (client WorkspacesClient) GetSearchResultsResponder(resp *http.Response) (result SearchResultsResponse, err error)

GetSearchResultsResponder handles the response to the GetSearchResults request. The method always closes the http.Response Body.

func (WorkspacesClient) GetSearchResultsSender

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

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

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

func (client WorkspacesClient) GetSharedKeys(resourceGroupName string, workspaceName string) (result SharedKeys, err error)

GetSharedKeys gets the shared keys for a workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace.

func (WorkspacesClient) GetSharedKeysPreparer

func (client WorkspacesClient) GetSharedKeysPreparer(resourceGroupName string, workspaceName string) (*http.Request, error)

GetSharedKeysPreparer prepares the GetSharedKeys request.

func (WorkspacesClient) GetSharedKeysResponder

func (client WorkspacesClient) 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 (WorkspacesClient) GetSharedKeysSender

func (client WorkspacesClient) 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 (WorkspacesClient) List

func (client WorkspacesClient) List() (result WorkspaceListResult, err error)

List gets the workspaces in a subscription.

func (WorkspacesClient) ListByResourceGroup

func (client WorkspacesClient) ListByResourceGroup(resourceGroupName string) (result WorkspaceListResult, err error)

ListByResourceGroup gets workspaces in a resource group.

resourceGroupName is the name of the resource group to get. The name is case insensitive.

func (WorkspacesClient) ListByResourceGroupPreparer

func (client WorkspacesClient) ListByResourceGroupPreparer(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) ListIntelligencePacks

func (client WorkspacesClient) ListIntelligencePacks(resourceGroupName string, workspaceName string) (result ListIntelligencePack, err error)

ListIntelligencePacks lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is name of the Log Analytics Workspace.

func (WorkspacesClient) ListIntelligencePacksPreparer

func (client WorkspacesClient) ListIntelligencePacksPreparer(resourceGroupName string, workspaceName string) (*http.Request, error)

ListIntelligencePacksPreparer prepares the ListIntelligencePacks request.

func (WorkspacesClient) ListIntelligencePacksResponder

func (client WorkspacesClient) ListIntelligencePacksResponder(resp *http.Response) (result ListIntelligencePack, err error)

ListIntelligencePacksResponder handles the response to the ListIntelligencePacks request. The method always closes the http.Response Body.

func (WorkspacesClient) ListIntelligencePacksSender

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

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

func (WorkspacesClient) ListLinkTargets

func (client WorkspacesClient) ListLinkTargets() (result ListLinkTarget, err error)

ListLinkTargets get a list of workspaces which the current user has administrator privileges and are not associated with an Azure Subscription. The subscriptionId parameter in the Url is ignored.

func (WorkspacesClient) ListLinkTargetsPreparer

func (client WorkspacesClient) ListLinkTargetsPreparer() (*http.Request, error)

ListLinkTargetsPreparer prepares the ListLinkTargets request.

func (WorkspacesClient) ListLinkTargetsResponder

func (client WorkspacesClient) ListLinkTargetsResponder(resp *http.Response) (result ListLinkTarget, err error)

ListLinkTargetsResponder handles the response to the ListLinkTargets request. The method always closes the http.Response Body.

func (WorkspacesClient) ListLinkTargetsSender

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

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

func (WorkspacesClient) ListManagementGroups

func (client WorkspacesClient) ListManagementGroups(resourceGroupName string, workspaceName string) (result WorkspaceListManagementGroupsResult, err error)

ListManagementGroups gets a list of management groups connected to a workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is the name of the workspace.

func (WorkspacesClient) ListManagementGroupsPreparer

func (client WorkspacesClient) ListManagementGroupsPreparer(resourceGroupName string, workspaceName string) (*http.Request, error)

ListManagementGroupsPreparer prepares the ListManagementGroups request.

func (WorkspacesClient) ListManagementGroupsResponder

func (client WorkspacesClient) ListManagementGroupsResponder(resp *http.Response) (result WorkspaceListManagementGroupsResult, err error)

ListManagementGroupsResponder handles the response to the ListManagementGroups request. The method always closes the http.Response Body.

func (WorkspacesClient) ListManagementGroupsSender

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

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

func (WorkspacesClient) ListPreparer

func (client WorkspacesClient) ListPreparer() (*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) ListUsages

func (client WorkspacesClient) ListUsages(resourceGroupName string, workspaceName string) (result WorkspaceListUsagesResult, err error)

ListUsages gets a list of usage metrics for a workspace.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is the name of the workspace.

func (WorkspacesClient) ListUsagesPreparer

func (client WorkspacesClient) ListUsagesPreparer(resourceGroupName string, workspaceName string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (WorkspacesClient) ListUsagesResponder

func (client WorkspacesClient) ListUsagesResponder(resp *http.Response) (result WorkspaceListUsagesResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (WorkspacesClient) ListUsagesSender

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

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

func (WorkspacesClient) UpdateSearchResults

func (client WorkspacesClient) UpdateSearchResults(resourceGroupName string, workspaceName string, ID string) (result SearchResultsResponse, err error)

UpdateSearchResults gets updated search results for a given search query.

resourceGroupName is the name of the resource group to get. The name is case insensitive. workspaceName is log Analytics workspace name ID is the id of the search that will have results updated. You can get the id from the response of the GetResults call.

func (WorkspacesClient) UpdateSearchResultsPreparer

func (client WorkspacesClient) UpdateSearchResultsPreparer(resourceGroupName string, workspaceName string, ID string) (*http.Request, error)

UpdateSearchResultsPreparer prepares the UpdateSearchResults request.

func (WorkspacesClient) UpdateSearchResultsResponder

func (client WorkspacesClient) UpdateSearchResultsResponder(resp *http.Response) (result SearchResultsResponse, err error)

UpdateSearchResultsResponder handles the response to the UpdateSearchResults request. The method always closes the http.Response Body.

func (WorkspacesClient) UpdateSearchResultsSender

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

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

Jump to

Keyboard shortcuts

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