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 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 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 WorkspacesClient
- 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) 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) 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) 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 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 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 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 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) 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) 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) 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 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.