Documentation ¶
Overview ¶
Package operationalinsights implements the Azure ARM Operationalinsights service API version .
Operational Insights Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type CoreSummary
- type DataSource
- type DataSourceFilter
- type DataSourceKind
- type DataSourceListResult
- type DataSourceListResultIterator
- type DataSourceListResultPage
- type DataSourcesClient
- func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSource, err error)
- func (client DataSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result DataSource, err error)
- func (client DataSourcesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client DataSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DataSourcesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSource, err error)
- func (client DataSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) GetResponder(resp *http.Response) (result DataSource, err error)
- func (client DataSourcesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSourceListResultPage, err error)
- func (client DataSourcesClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSourceListResultIterator, err error)
- func (client DataSourcesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) ListByWorkspaceResponder(resp *http.Response) (result DataSourceListResult, err error)
- func (client DataSourcesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type EntityStatus
- type IntelligencePack
- type LinkTarget
- type LinkedService
- type LinkedServiceListResult
- type LinkedServiceProperties
- type LinkedServicesClient
- func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result LinkedService, err error)
- func (client LinkedServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedServicesClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedService, err error)
- func (client LinkedServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client LinkedServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client LinkedServicesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result LinkedService, err error)
- func (client LinkedServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedServicesClient) GetResponder(resp *http.Response) (result LinkedService, err error)
- func (client LinkedServicesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedServiceListResult, err error)
- func (client LinkedServicesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client LinkedServicesClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedServiceListResult, err error)
- func (client LinkedServicesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type ListIntelligencePack
- type ListLinkTarget
- type ManagementGroup
- type ManagementGroupProperties
- type MetricName
- type ProxyResource
- type Resource
- type SavedSearch
- type SavedSearchProperties
- type SavedSearchesClient
- func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result SavedSearch, err error)
- func (client SavedSearchesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client SavedSearchesClient) CreateOrUpdateResponder(resp *http.Response) (result SavedSearch, err error)
- func (client SavedSearchesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client SavedSearchesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client SavedSearchesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client SavedSearchesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client SavedSearchesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client SavedSearchesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result SavedSearch, err error)
- func (client SavedSearchesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client SavedSearchesClient) GetResponder(resp *http.Response) (result SavedSearch, err error)
- func (client SavedSearchesClient) GetResults(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result SearchResultsResponse, err error)
- func (client SavedSearchesClient) GetResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client SavedSearchesClient) GetResultsResponder(resp *http.Response) (result SearchResultsResponse, err error)
- func (client SavedSearchesClient) GetResultsSender(req *http.Request) (*http.Response, error)
- func (client SavedSearchesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SavedSearchesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result SavedSearchesListResult, err error)
- func (client SavedSearchesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client SavedSearchesClient) ListByWorkspaceResponder(resp *http.Response) (result SavedSearchesListResult, err error)
- func (client SavedSearchesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type SavedSearchesListResult
- type SearchError
- type SearchGetSchemaResponse
- type SearchHighlight
- type SearchMetadata
- type SearchMetadataSchema
- type SearchParameters
- type SearchResultsResponse
- type SearchSchemaValue
- type SearchSort
- type SearchSortEnum
- type SharedKeys
- type Sku
- type SkuNameEnum
- type StorageAccount
- type StorageInsight
- type StorageInsightListResult
- type StorageInsightListResultIterator
- type StorageInsightListResultPage
- type StorageInsightProperties
- type StorageInsightState
- type StorageInsightStatus
- type StorageInsightsClient
- func (client StorageInsightsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result StorageInsight, err error)
- func (client StorageInsightsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client StorageInsightsClient) CreateOrUpdateResponder(resp *http.Response) (result StorageInsight, err error)
- func (client StorageInsightsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client StorageInsightsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client StorageInsightsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client StorageInsightsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client StorageInsightsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client StorageInsightsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result StorageInsight, err error)
- func (client StorageInsightsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client StorageInsightsClient) GetResponder(resp *http.Response) (result StorageInsight, err error)
- func (client StorageInsightsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client StorageInsightsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result StorageInsightListResultPage, err error)
- func (client StorageInsightsClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result StorageInsightListResultIterator, err error)
- func (client StorageInsightsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client StorageInsightsClient) ListByWorkspaceResponder(resp *http.Response) (result StorageInsightListResult, err error)
- func (client StorageInsightsClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type Tag
- type UsageMetric
- type Workspace
- type WorkspaceListManagementGroupsResult
- type WorkspaceListResult
- type WorkspaceListUsagesResult
- type WorkspaceProperties
- type WorkspacesClient
- func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result WorkspacesCreateOrUpdateFuture, err error)
- func (client WorkspacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)
- func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (future WorkspacesCreateOrUpdateFuture, err error)
- func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error)
- func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client WorkspacesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) DisableIntelligencePack(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client WorkspacesClient) DisableIntelligencePackPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) DisableIntelligencePackResponder(resp *http.Response) (result autorest.Response, err error)
- func (client WorkspacesClient) DisableIntelligencePackSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) EnableIntelligencePack(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client WorkspacesClient) EnableIntelligencePackPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) EnableIntelligencePackResponder(resp *http.Response) (result autorest.Response, err error)
- func (client WorkspacesClient) EnableIntelligencePackSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)
- func (client WorkspacesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error)
- func (client WorkspacesClient) GetSchema(ctx context.Context, resourceGroupName string, workspaceName string) (result SearchGetSchemaResponse, err error)
- func (client WorkspacesClient) GetSchemaPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) GetSchemaResponder(resp *http.Response) (result SearchGetSchemaResponse, err error)
- func (client WorkspacesClient) GetSchemaSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) GetSearchResults(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result WorkspacesGetSearchResultsFuture, err error)
- func (client WorkspacesClient) GetSearchResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) GetSearchResultsResponder(resp *http.Response) (result SearchResultsResponse, err error)
- func (client WorkspacesClient) GetSearchResultsSender(req *http.Request) (future WorkspacesGetSearchResultsFuture, err error)
- func (client WorkspacesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) GetSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
- func (client WorkspacesClient) GetSharedKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) GetSharedKeysResponder(resp *http.Response) (result SharedKeys, err error)
- func (client WorkspacesClient) GetSharedKeysSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListIntelligencePacks(ctx context.Context, resourceGroupName string, workspaceName string) (result ListIntelligencePack, err error)
- func (client WorkspacesClient) ListIntelligencePacksPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListIntelligencePacksResponder(resp *http.Response) (result ListIntelligencePack, err error)
- func (client WorkspacesClient) ListIntelligencePacksSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListLinkTargets(ctx context.Context) (result ListLinkTarget, err error)
- func (client WorkspacesClient) ListLinkTargetsPreparer(ctx context.Context) (*http.Request, error)
- func (client WorkspacesClient) ListLinkTargetsResponder(resp *http.Response) (result ListLinkTarget, err error)
- func (client WorkspacesClient) ListLinkTargetsSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListManagementGroups(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListManagementGroupsResult, err error)
- func (client WorkspacesClient) ListManagementGroupsPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListManagementGroupsResponder(resp *http.Response) (result WorkspaceListManagementGroupsResult, err error)
- func (client WorkspacesClient) ListManagementGroupsSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client WorkspacesClient) ListResponder(resp *http.Response) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListUsages(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListUsagesResult, err error)
- func (client WorkspacesClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListUsagesResponder(resp *http.Response) (result WorkspaceListUsagesResult, err error)
- func (client WorkspacesClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) UpdateSearchResults(ctx context.Context, resourceGroupName string, workspaceName string, ID string) (result SearchResultsResponse, err error)
- func (client WorkspacesClient) UpdateSearchResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ID string) (*http.Request, error)
- func (client WorkspacesClient) UpdateSearchResultsResponder(resp *http.Response) (result SearchResultsResponse, err error)
- func (client WorkspacesClient) UpdateSearchResultsSender(req *http.Request) (*http.Response, error)
- type WorkspacesCreateOrUpdateFuture
- type WorkspacesGetSearchResultsFuture
Constants ¶
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 BaseClient ¶
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.
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 DataSource ¶
type DataSource struct { autorest.Response `json:"-"` // ID - Resource ID. ID *string `json:"id,omitempty"` // Name - Resource name. Name *string `json:"name,omitempty"` // Type - Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags *map[string]*string `json:"tags,omitempty"` // Properties - The data source properties in raw json format, each kind of data source have it's own schema. Properties *map[string]interface{} `json:"properties,omitempty"` // ETag - The ETag of the data source. ETag *string `json:"eTag,omitempty"` // Kind - Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' Kind DataSourceKind `json:"kind,omitempty"` }
DataSource datasources under OMS Workspace.
type DataSourceFilter ¶
type DataSourceFilter struct { // Kind - Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' 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 ( // AzureActivityLog ... AzureActivityLog DataSourceKind = "AzureActivityLog" // ChangeTrackingCustomRegistry ... ChangeTrackingCustomRegistry DataSourceKind = "ChangeTrackingCustomRegistry" // ChangeTrackingDefaultPath ... ChangeTrackingDefaultPath DataSourceKind = "ChangeTrackingDefaultPath" // ChangeTrackingDefaultRegistry ... ChangeTrackingDefaultRegistry DataSourceKind = "ChangeTrackingDefaultRegistry" // ChangeTrackingPath ... ChangeTrackingPath DataSourceKind = "ChangeTrackingPath" // CustomLog ... CustomLog DataSourceKind = "CustomLog" // CustomLogCollection ... CustomLogCollection DataSourceKind = "CustomLogCollection" // GenericDataSource ... GenericDataSource DataSourceKind = "GenericDataSource" // IISLogs ... IISLogs DataSourceKind = "IISLogs" // LinuxPerformanceCollection ... LinuxPerformanceCollection DataSourceKind = "LinuxPerformanceCollection" // LinuxPerformanceObject ... LinuxPerformanceObject DataSourceKind = "LinuxPerformanceObject" // LinuxSyslog ... LinuxSyslog DataSourceKind = "LinuxSyslog" // LinuxSyslogCollection ... LinuxSyslogCollection DataSourceKind = "LinuxSyslogCollection" // WindowsEvent ... WindowsEvent DataSourceKind = "WindowsEvent" // WindowsPerformanceCounter ... WindowsPerformanceCounter DataSourceKind = "WindowsPerformanceCounter" )
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 (*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.
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 ¶
func (iter DataSourceListResultIterator) Response() DataSourceListResult
Response returns the raw server response from the last page request.
func (DataSourceListResultIterator) Value ¶
func (iter DataSourceListResultIterator) Value() DataSource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DataSourceListResultPage ¶
type DataSourceListResultPage struct {
// contains filtered or unexported fields
}
DataSourceListResultPage contains a page of DataSource values.
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.
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 ¶
func (page DataSourceListResultPage) Response() DataSourceListResult
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 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.
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.
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(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 ¶
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.
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(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 ¶
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.
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(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 ¶
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.
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(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 ¶
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 ... Canceled EntityStatus = "Canceled" // Creating ... Creating EntityStatus = "Creating" // Deleting ... Deleting EntityStatus = "Deleting" // Failed ... Failed EntityStatus = "Failed" // ProvisioningAccount ... ProvisioningAccount EntityStatus = "ProvisioningAccount" // Succeeded ... Succeeded EntityStatus = "Succeeded" )
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"` }
IntelligencePack intelligence Pack containing a string name and boolean indicating if it's enabled.
type LinkTarget ¶
type LinkTarget struct { // CustomerID - The GUID that uniquely identifies the workspace. CustomerID *string `json:"customerId,omitempty"` // DisplayName - The display name of the workspace. DisplayName *string `json:"accountName,omitempty"` // WorkspaceName - The DNS valid workspace name. WorkspaceName *string `json:"workspaceName,omitempty"` // Location - The location of the workspace. Location *string `json:"location,omitempty"` }
LinkTarget metadata for a workspace that isn't linked to an Azure subscription.
type LinkedService ¶
type LinkedService struct { autorest.Response `json:"-"` // ID - Resource ID. ID *string `json:"id,omitempty"` // Name - Resource name. Name *string `json:"name,omitempty"` // Type - Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags *map[string]*string `json:"tags,omitempty"` // LinkedServiceProperties - The properties of the linked service. *LinkedServiceProperties `json:"properties,omitempty"` }
LinkedService the top level Linked service resource container.
func (*LinkedService) UnmarshalJSON ¶
func (ls *LinkedService) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LinkedService struct.
type LinkedServiceListResult ¶
type LinkedServiceListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a 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. ResourceID *string `json:"resourceId,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.
func (LinkedServicesClient) CreateOrUpdate ¶
func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, 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(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 ¶
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 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(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 autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (LinkedServicesClient) DeleteSender ¶
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.
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(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 ¶
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.
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(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 ¶
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 ...
type ListLinkTarget ¶
type ListLinkTarget struct { autorest.Response `json:"-"` Value *[]LinkTarget `json:"value,omitempty"` }
ListLinkTarget ...
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) 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 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 ProxyResource ¶
type ProxyResource struct { // ID - Resource ID. ID *string `json:"id,omitempty"` // Name - Resource name. Name *string `json:"name,omitempty"` // Type - Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags *map[string]*string `json:"tags,omitempty"` }
ProxyResource common properties of proxy resource.
type Resource ¶
type Resource struct { // ID - Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags *map[string]*string `json:"tags,omitempty"` }
Resource the resource definition.
type SavedSearch ¶
type SavedSearch struct { autorest.Response `json:"-"` // ID - The id of the saved search. ID *string `json:"id,omitempty"` // Etag - The etag of the saved search. Etag *string `json:"etag,omitempty"` // SavedSearchProperties - Gets or sets properties of the saved search. *SavedSearchProperties `json:"properties,omitempty"` }
SavedSearch value object for saved search results.
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. Please see https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-search-reference for reference. Query *string `json:"Query,omitempty"` // Version - The version number of the query lanuage. Only verion 1 is allowed here. 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.
func (SavedSearchesClient) CreateOrUpdate ¶
func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, 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(ctx context.Context, 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 ¶
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, 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(ctx context.Context, 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 ¶
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, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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 ¶
GetResultsSender sends the GetResults request. The method will close the http.Response Body if it receives an error.
func (SavedSearchesClient) GetSender ¶
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
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(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 ¶
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 - The metadata from search results. Metadata *SearchMetadata `json:"__metadata,omitempty"` // Value - The array of result values. Value *[]SavedSearch `json:"value,omitempty"` }
SavedSearchesListResult the saved search operation response.
type SearchError ¶
type SearchError struct { // Type - The error type. Type *string `json:"type,omitempty"` // Message - The error message. Message *string `json:"message,omitempty"` }
SearchError details for a search 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 SearchHighlight ¶
type SearchHighlight struct { // Pre - The string that is put before a matched result. Pre *string `json:"pre,omitempty"` // Post - The string that is put after a matched result. Post *string `json:"post,omitempty"` }
SearchHighlight highlight details.
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 SearchParameters ¶
type SearchParameters struct { // Top - The number to get from the top. Top *int64 `json:"top,omitempty"` // Highlight - The highlight that looks for all occurences of a string. Highlight *SearchHighlight `json:"highlight,omitempty"` // Query - The query to search. Query *string `json:"query,omitempty"` // Start - The start date filter, so the only query results returned are after this date. Start *date.Time `json:"start,omitempty"` // End - The end date filter, so the only query results returned are before this date. End *date.Time `json:"end,omitempty"` }
SearchParameters parameters specifying the search query and range.
type SearchResultsResponse ¶
type SearchResultsResponse struct { autorest.Response `json:"-"` // ID - The id of the search, which includes the full url. ID *string `json:"id,omitempty"` // Metadata - The metadata from search results. Metadata *SearchMetadata `json:"__metadata,omitempty"` // Value - The array of result values. Value *[]map[string]interface{} `json:"value,omitempty"` // Error - The error. Error *SearchError `json:"error,omitempty"` }
SearchResultsResponse the get search result operation response.
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" )
type SharedKeys ¶
type SharedKeys struct { string `json:"primarySharedKey,omitempty"` SecondarySharedKey *string `json:"secondarySharedKey,omitempty"` }PrimarySharedKey *
SharedKeys the shared keys for a workspace.
type Sku ¶
type Sku struct { // Name - The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'Unlimited', 'PerNode', 'Standalone' Name SkuNameEnum `json:"name,omitempty"` }
Sku the SKU (tier) of a workspace.
type SkuNameEnum ¶
type SkuNameEnum string
SkuNameEnum enumerates the values for sku name enum.
const ( // Free ... Free SkuNameEnum = "Free" // PerNode ... PerNode SkuNameEnum = "PerNode" // Premium ... Premium SkuNameEnum = "Premium" // Standalone ... Standalone SkuNameEnum = "Standalone" // Standard ... Standard SkuNameEnum = "Standard" // Unlimited ... Unlimited SkuNameEnum = "Unlimited" )
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:"-"` // ID - Resource ID. ID *string `json:"id,omitempty"` // Name - Resource name. Name *string `json:"name,omitempty"` // Type - Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags *map[string]*string `json:"tags,omitempty"` // StorageInsightProperties - Storage insight properties. *StorageInsightProperties `json:"properties,omitempty"` // ETag - The ETag of the storage insight. ETag *string `json:"eTag,omitempty"` }
StorageInsight the top level storage insight resource container.
func (*StorageInsight) UnmarshalJSON ¶
func (si *StorageInsight) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StorageInsight struct.
type StorageInsightListResult ¶
type StorageInsightListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of storage insight instances. 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 (*StorageInsightListResultIterator) Next ¶
func (iter *StorageInsightListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
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 ¶
func (iter StorageInsightListResultIterator) Response() StorageInsightListResult
Response returns the raw server response from the last page request.
func (StorageInsightListResultIterator) Value ¶
func (iter StorageInsightListResultIterator) Value() StorageInsight
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type StorageInsightListResultPage ¶
type StorageInsightListResultPage struct {
// contains filtered or unexported fields
}
StorageInsightListResultPage contains a page of StorageInsight values.
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.
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 ¶
func (page StorageInsightListResultPage) Response() StorageInsightListResult
Response returns the raw server response from the last page request.
func (StorageInsightListResultPage) Values ¶
func (page StorageInsightListResultPage) Values() []StorageInsight
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 - 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" )
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 StorageInsightsClient ¶
type StorageInsightsClient struct {
BaseClient
}
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(ctx context.Context, 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(ctx context.Context, 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 ¶
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(ctx context.Context, 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(ctx context.Context, 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 ¶
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(ctx context.Context, 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(ctx context.Context, 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 ¶
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(ctx context.Context, resourceGroupName string, workspaceName string) (result StorageInsightListResultPage, 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(ctx context.Context, resourceGroupName string, workspaceName string) (result StorageInsightListResultIterator, err error)
ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.
func (StorageInsightsClient) ListByWorkspacePreparer ¶
func (client StorageInsightsClient) ListByWorkspacePreparer(ctx context.Context, 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 - 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 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 Workspace ¶
type Workspace struct { autorest.Response `json:"-"` // ID - Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags *map[string]*string `json:"tags,omitempty"` // WorkspaceProperties - Workspace properties. *WorkspaceProperties `json:"properties,omitempty"` // ETag - The ETag of the workspace. ETag *string `json:"eTag,omitempty"` }
Workspace the top level Workspace resource container.
func (*Workspace) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Workspace struct.
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 managmement 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 WorkspaceProperties ¶
type WorkspaceProperties struct { // ProvisioningState - The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount' ProvisioningState EntityStatus `json:"provisioningState,omitempty"` // Source - The source of the workspace. Source defines where the workspace was created. 'Azure' implies it was created in Azure. 'External' implies it was created via the Operational Insights Portal. This value is set on the service side and read-only on the client side. Source *string `json:"source,omitempty"` // CustomerID - The ID associated with the workspace. Setting this value at creation time allows the workspace being created to be linked to an existing workspace. CustomerID *string `json:"customerId,omitempty"` // PortalURL - The URL of the Operational Insights portal for this workspace. This value is set on the service side and read-only on the client side. PortalURL *string `json:"portalUrl,omitempty"` // Sku - The SKU of the workspace. Sku *Sku `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"` }
WorkspaceProperties workspace properties.
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.
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.
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(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) (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(ctx context.Context, 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 ¶
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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(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) GetSchema ¶
func (client WorkspacesClient) GetSchema(ctx context.Context, 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(ctx context.Context, 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 ¶
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(ctx context.Context, resourceGroupName string, workspaceName string, parameters SearchParameters) (result WorkspacesGetSearchResultsFuture, err 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.
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(ctx context.Context, resourceGroupName string, workspaceName string, parameters SearchParameters) (*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) (future WorkspacesGetSearchResultsFuture, err error)
GetSearchResultsSender sends the GetSearchResults request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) GetSender ¶
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(ctx context.Context, 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(ctx context.Context, 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 ¶
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(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.
resourceGroupName is the name of the resource group to get. 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 ¶
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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context) (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 ¶
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 ¶
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(ctx context.Context, 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(ctx context.Context, 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 ¶
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 ¶
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(ctx context.Context, 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(ctx context.Context, 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 ¶
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(ctx context.Context, 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(ctx context.Context, 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 ¶
UpdateSearchResultsSender sends the UpdateSearchResults request. The method will close the http.Response Body if it receives an error.
type WorkspacesCreateOrUpdateFuture ¶
type WorkspacesCreateOrUpdateFuture struct { azure.Future // contains filtered or unexported fields }
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 WorkspacesGetSearchResultsFuture ¶
type WorkspacesGetSearchResultsFuture struct { azure.Future // contains filtered or unexported fields }
WorkspacesGetSearchResultsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (WorkspacesGetSearchResultsFuture) Result ¶
func (future WorkspacesGetSearchResultsFuture) Result(client WorkspacesClient) (srr SearchResultsResponse, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.