Documentation ¶
Overview ¶
Package operationalinsights implements the Azure ARM Operationalinsights service API version 2015-03-20.
Operational Insights Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type CoreSummary
- type LinkTarget
- type ListLinkTarget
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type ProxyResource
- type PurgeState
- 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 StorageAccount
- type StorageInsight
- type StorageInsightListResult
- type StorageInsightListResultIterator
- func (iter *StorageInsightListResultIterator) Next() error
- func (iter *StorageInsightListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter StorageInsightListResultIterator) NotDone() bool
- func (iter StorageInsightListResultIterator) Response() StorageInsightListResult
- func (iter StorageInsightListResultIterator) Value() StorageInsight
- type StorageInsightListResultPage
- func (page *StorageInsightListResultPage) Next() error
- func (page *StorageInsightListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page StorageInsightListResultPage) NotDone() bool
- func (page StorageInsightListResultPage) Response() StorageInsightListResult
- func (page StorageInsightListResultPage) Values() []StorageInsight
- 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 WorkspacePurgeBody
- type WorkspacePurgeBodyFilters
- type WorkspacePurgeResponse
- type WorkspacePurgeStatusResponse
- type WorkspacesClient
- func (client WorkspacesClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspacePurgeStatusResponse, err error)
- func (client WorkspacesClient) GetPurgeStatusPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) GetPurgeStatusResponder(resp *http.Response) (result WorkspacePurgeStatusResponse, err error)
- func (client WorkspacesClient) GetPurgeStatusSender(req *http.Request) (*http.Response, 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) ListKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
- func (client WorkspacesClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListKeysResponder(resp *http.Response) (result SharedKeys, err error)
- func (client WorkspacesClient) ListKeysSender(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) Purge(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result WorkspacePurgeResponse, err error)
- func (client WorkspacesClient) PurgePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) PurgeResponder(resp *http.Response) (result WorkspacePurgeResponse, err error)
- func (client WorkspacesClient) PurgeSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) RegenerateSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
- func (client WorkspacesClient) RegenerateSharedKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) RegenerateSharedKeysResponder(resp *http.Response) (result SharedKeys, err error)
- func (client WorkspacesClient) RegenerateSharedKeysSender(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 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, purgeID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string, purgeID 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 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 ListLinkTarget ¶
type ListLinkTarget struct { autorest.Response `json:"-"` Value *[]LinkTarget `json:"value,omitempty"` }
ListLinkTarget ...
type Operation ¶
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation supported operation of OperationalInsights resource provider.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: OperationalInsights. Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed etc. Resource *string `json:"resource,omitempty"` // Operation - Type of operation: get, read, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationDisplay display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the OperationalInsights resource provider. Value *[]Operation `json:"value,omitempty"` }
OperationListResult result of the request to list OperationalInsights operations.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the operational Insights Client
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string, purgeID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, purgeID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
List lists all of the available OperationalInsights Rest API operations.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
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"` }
ProxyResource common properties of proxy resource.
func (ProxyResource) MarshalJSON ¶
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
type PurgeState ¶
type PurgeState string
PurgeState enumerates the values for purge state.
const ( // Completed ... Completed PurgeState = "completed" // Pending ... Pending PurgeState = "pending" )
func PossiblePurgeStateValues ¶
func PossiblePurgeStateValues() []PurgeState
PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.
type Resource ¶
type Resource struct { // ID - 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"` }
Resource the resource definition.
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type SavedSearch ¶
type SavedSearch struct { autorest.Response `json:"-"` // ID - The id of the saved search. ID *string `json:"id,omitempty"` // Name - The name of the saved search. Name *string `json:"name,omitempty"` // Type - The type of the saved search. Type *string `json:"type,omitempty"` // ETag - The ETag of the saved search. ETag *string `json:"eTag,omitempty"` // SavedSearchProperties - The properties of the saved search. *SavedSearchProperties `json:"properties,omitempty"` }
SavedSearch value object for saved search results.
func (SavedSearch) MarshalJSON ¶
func (ss SavedSearch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SavedSearch.
func (*SavedSearch) UnmarshalJSON ¶
func (ss *SavedSearch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SavedSearch struct.
type SavedSearchProperties ¶
type SavedSearchProperties struct { // Category - The category of the saved search. This helps the user to find a saved search faster. Category *string `json:"category,omitempty"` // DisplayName - Saved search display name. DisplayName *string `json:"displayName,omitempty"` // Query - The query expression for the saved search. 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 language. The current version is 2 and is the default. Version *int64 `json:"version,omitempty"` // Tags - The tags attached to the saved search. Tags *[]Tag `json:"tags,omitempty"` }
SavedSearchProperties value object for saved search results.
type SavedSearchesClient ¶
type SavedSearchesClient struct {
BaseClient
}
SavedSearchesClient is the operational Insights Client
func NewSavedSearchesClient ¶
func NewSavedSearchesClient(subscriptionID string, purgeID string) SavedSearchesClient
NewSavedSearchesClient creates an instance of the SavedSearchesClient client.
func NewSavedSearchesClientWithBaseURI ¶
func NewSavedSearchesClientWithBaseURI(baseURI string, subscriptionID string, purgeID string) SavedSearchesClient
NewSavedSearchesClientWithBaseURI creates an instance of the SavedSearchesClient client.
func (SavedSearchesClient) CreateOrUpdate ¶
func (client SavedSearchesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, parameters SavedSearch) (result SavedSearch, err error)
CreateOrUpdate creates or updates a saved search for a given workspace. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. savedSearchID - the id of the saved search. parameters - the parameters required to save a search.
func (SavedSearchesClient) CreateOrUpdatePreparer ¶
func (client SavedSearchesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, parameters SavedSearch) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (SavedSearchesClient) CreateOrUpdateResponder ¶
func (client SavedSearchesClient) CreateOrUpdateResponder(resp *http.Response) (result SavedSearch, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (SavedSearchesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (SavedSearchesClient) Delete ¶
func (client SavedSearchesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result autorest.Response, err error)
Delete deletes the specified saved search in a given workspace. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. savedSearchID - the id of the saved search.
func (SavedSearchesClient) DeletePreparer ¶
func (client SavedSearchesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (SavedSearchesClient) DeleteResponder ¶
func (client SavedSearchesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (SavedSearchesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (SavedSearchesClient) Get ¶
func (client SavedSearchesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result SavedSearch, err error)
Get gets the specified saved search for a given workspace. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. savedSearchID - the id of the saved search.
func (SavedSearchesClient) GetPreparer ¶
func (client SavedSearchesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (SavedSearchesClient) GetResponder ¶
func (client SavedSearchesClient) GetResponder(resp *http.Response) (result SavedSearch, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (SavedSearchesClient) GetResults ¶
func (client SavedSearchesClient) GetResults(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result SearchResultsResponse, err error)
GetResults gets the results from a saved search for a given workspace. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. savedSearchID - the id of the saved search.
func (SavedSearchesClient) GetResultsPreparer ¶
func (client SavedSearchesClient) GetResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID 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 Parameters: resourceGroupName - the Resource Group name. workspaceName - the 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 list 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 occurrences 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 *[]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" )
func PossibleSearchSortEnumValues ¶
func PossibleSearchSortEnumValues() []SearchSortEnum
PossibleSearchSortEnumValues returns an array of possible values for the SearchSortEnum const type.
type SharedKeys ¶
type SharedKeys struct { string `json:"primarySharedKey,omitempty"` SecondarySharedKey *string `json:"secondarySharedKey,omitempty"` }PrimarySharedKey *
SharedKeys the shared keys for a workspace.
type StorageAccount ¶
type StorageAccount struct { // ID - The Azure Resource Manager ID of the storage account resource. ID *string `json:"id,omitempty"` // Key - The storage account key. Key *string `json:"key,omitempty"` }
StorageAccount describes a storage account connection.
type StorageInsight ¶
type StorageInsight struct { autorest.Response `json:"-"` // StorageInsightProperties - Storage insight properties. *StorageInsightProperties `json:"properties,omitempty"` // ETag - The ETag of the storage insight. ETag *string `json:"eTag,omitempty"` // 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"` }
StorageInsight the top level storage insight resource container.
func (StorageInsight) MarshalJSON ¶
func (si StorageInsight) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StorageInsight.
func (*StorageInsight) UnmarshalJSON ¶
func (si *StorageInsight) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StorageInsight struct.
type StorageInsightListResult ¶
type StorageInsightListResult struct { autorest.Response `json:"-"` // Value - A list of storage insight items. Value *[]StorageInsight `json:"value,omitempty"` // OdataNextLink - The link (url) to the next page of results. OdataNextLink *string `json:"@odata.nextLink,omitempty"` }
StorageInsightListResult the list storage insights operation response.
func (StorageInsightListResult) IsEmpty ¶
func (silr StorageInsightListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type StorageInsightListResultIterator ¶
type StorageInsightListResultIterator struct {
// contains filtered or unexported fields
}
StorageInsightListResultIterator provides access to a complete listing of StorageInsight values.
func NewStorageInsightListResultIterator ¶
func NewStorageInsightListResultIterator(page StorageInsightListResultPage) StorageInsightListResultIterator
Creates a new instance of the StorageInsightListResultIterator type.
func (*StorageInsightListResultIterator) Next ¶
func (iter *StorageInsightListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*StorageInsightListResultIterator) NextWithContext ¶
func (iter *StorageInsightListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (StorageInsightListResultIterator) NotDone ¶
func (iter StorageInsightListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (StorageInsightListResultIterator) Response ¶
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 NewStorageInsightListResultPage ¶
func NewStorageInsightListResultPage(getNextPage func(context.Context, StorageInsightListResult) (StorageInsightListResult, error)) StorageInsightListResultPage
Creates a new instance of the StorageInsightListResultPage type.
func (*StorageInsightListResultPage) Next ¶
func (page *StorageInsightListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*StorageInsightListResultPage) NextWithContext ¶
func (page *StorageInsightListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (StorageInsightListResultPage) NotDone ¶
func (page StorageInsightListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (StorageInsightListResultPage) Response ¶
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" )
func PossibleStorageInsightStateValues ¶
func PossibleStorageInsightStateValues() []StorageInsightState
PossibleStorageInsightStateValues returns an array of possible values for the StorageInsightState const type.
type StorageInsightStatus ¶
type StorageInsightStatus struct { // State - The state of the storage insight connection to the workspace. Possible values include: 'OK', 'ERROR' State StorageInsightState `json:"state,omitempty"` // Description - Description of the state of the storage insight. Description *string `json:"description,omitempty"` }
StorageInsightStatus the status of the storage insight.
type StorageInsightsClient ¶
type StorageInsightsClient struct {
BaseClient
}
StorageInsightsClient is the operational Insights Client
func NewStorageInsightsClient ¶
func NewStorageInsightsClient(subscriptionID string, purgeID string) StorageInsightsClient
NewStorageInsightsClient creates an instance of the StorageInsightsClient client.
func NewStorageInsightsClientWithBaseURI ¶
func NewStorageInsightsClientWithBaseURI(baseURI string, subscriptionID string, purgeID 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. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. storageInsightName - name of the storageInsightsConfigs resource parameters - 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 Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. storageInsightName - 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. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. storageInsightName - 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 Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name.
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 WorkspacePurgeBody ¶
type WorkspacePurgeBody struct { // Table - Table from which to purge data. Table *string `json:"table,omitempty"` // Filters - The set of columns and filters (queries) to run over them to purge the resulting data. Filters *[]WorkspacePurgeBodyFilters `json:"filters,omitempty"` }
WorkspacePurgeBody describes the body of a purge request for an App Insights Workspace
type WorkspacePurgeBodyFilters ¶
type WorkspacePurgeBodyFilters struct { // Column - The column of the table over which the given query should run Column *string `json:"column,omitempty"` // Operator - A query operator to evaluate over the provided column and value(s). Operator *string `json:"operator,omitempty"` // Value - the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values. Value interface{} `json:"value,omitempty"` // Key - When filtering over custom dimensions, this key will be used as the name of the custom dimension. Key *string `json:"key,omitempty"` }
WorkspacePurgeBodyFilters user-defined filters to return data which will be purged from the table.
type WorkspacePurgeResponse ¶
type WorkspacePurgeResponse struct { autorest.Response `json:"-"` // OperationID - Id to use when querying for status for a particular purge operation. OperationID *string `json:"operationId,omitempty"` }
WorkspacePurgeResponse response containing operationId for a specific purge action.
type WorkspacePurgeStatusResponse ¶
type WorkspacePurgeStatusResponse struct { autorest.Response `json:"-"` // Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed' Status PurgeState `json:"status,omitempty"` }
WorkspacePurgeStatusResponse response containing status for a specific purge operation.
type WorkspacesClient ¶
type WorkspacesClient struct {
BaseClient
}
WorkspacesClient is the operational Insights Client
func NewWorkspacesClient ¶
func NewWorkspacesClient(subscriptionID string, purgeID string) WorkspacesClient
NewWorkspacesClient creates an instance of the WorkspacesClient client.
func NewWorkspacesClientWithBaseURI ¶
func NewWorkspacesClientWithBaseURI(baseURI string, subscriptionID string, purgeID string) WorkspacesClient
NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client.
func (WorkspacesClient) GetPurgeStatus ¶
func (client WorkspacesClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspacePurgeStatusResponse, err error)
GetPurgeStatus gets status of an ongoing purge operation. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name.
func (WorkspacesClient) GetPurgeStatusPreparer ¶
func (client WorkspacesClient) GetPurgeStatusPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
GetPurgeStatusPreparer prepares the GetPurgeStatus request.
func (WorkspacesClient) GetPurgeStatusResponder ¶
func (client WorkspacesClient) GetPurgeStatusResponder(resp *http.Response) (result WorkspacePurgeStatusResponse, err error)
GetPurgeStatusResponder handles the response to the GetPurgeStatus request. The method always closes the http.Response Body.
func (WorkspacesClient) GetPurgeStatusSender ¶
GetPurgeStatusSender sends the GetPurgeStatus request. The method will close the http.Response Body if it receives an error.
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. Parameters: resourceGroupName - the Resource Group name. workspaceName - the 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. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. parameters - 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) ListKeys ¶
func (client WorkspacesClient) ListKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
ListKeys gets the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name.
func (WorkspacesClient) ListKeysPreparer ¶
func (client WorkspacesClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (WorkspacesClient) ListKeysResponder ¶
func (client WorkspacesClient) ListKeysResponder(resp *http.Response) (result SharedKeys, err error)
ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.
func (WorkspacesClient) ListKeysSender ¶
ListKeysSender sends the ListKeys 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) Purge ¶
func (client WorkspacesClient) Purge(ctx context.Context, resourceGroupName string, workspaceName string, body WorkspacePurgeBody) (result WorkspacePurgeResponse, err error)
Purge purges data in an Log Analytics workspace by a set of user-defined filters. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. body - describes the body of a request to purge data in a single table of an Log Analytics Workspace
func (WorkspacesClient) PurgePreparer ¶
func (client WorkspacesClient) PurgePreparer(ctx context.Context, resourceGroupName string, workspaceName string, body WorkspacePurgeBody) (*http.Request, error)
PurgePreparer prepares the Purge request.
func (WorkspacesClient) PurgeResponder ¶
func (client WorkspacesClient) PurgeResponder(resp *http.Response) (result WorkspacePurgeResponse, err error)
PurgeResponder handles the response to the Purge request. The method always closes the http.Response Body.
func (WorkspacesClient) PurgeSender ¶
PurgeSender sends the Purge request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) RegenerateSharedKeys ¶
func (client WorkspacesClient) RegenerateSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
RegenerateSharedKeys regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name.
func (WorkspacesClient) RegenerateSharedKeysPreparer ¶
func (client WorkspacesClient) RegenerateSharedKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
RegenerateSharedKeysPreparer prepares the RegenerateSharedKeys request.
func (WorkspacesClient) RegenerateSharedKeysResponder ¶
func (client WorkspacesClient) RegenerateSharedKeysResponder(resp *http.Response) (result SharedKeys, err error)
RegenerateSharedKeysResponder handles the response to the RegenerateSharedKeys request. The method always closes the http.Response Body.
func (WorkspacesClient) RegenerateSharedKeysSender ¶
func (client WorkspacesClient) RegenerateSharedKeysSender(req *http.Request) (*http.Response, error)
RegenerateSharedKeysSender sends the RegenerateSharedKeys 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. Parameters: resourceGroupName - the Resource Group name. workspaceName - the Log Analytics Workspace name. ID - 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 WorkspacesGetSearchResultsFuture ¶
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.