Documentation ¶
Overview ¶
Package operationalinsights implements the Azure ARM Operationalinsights service API version 2015-11-01-preview.
Operational Insights Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type DataSource
- type DataSourceFilter
- type DataSourceKind
- type DataSourceListResult
- type DataSourceListResultIterator
- type DataSourceListResultPage
- type DataSourcesClient
- func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSource, err error)
- func (client DataSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result DataSource, err error)
- func (client DataSourcesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client DataSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DataSourcesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSource, err error)
- func (client DataSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) GetResponder(resp *http.Response) (result DataSource, err error)
- func (client DataSourcesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSourceListResultPage, err error)
- func (client DataSourcesClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataSourceListResultIterator, err error)
- func (client DataSourcesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataSourcesClient) ListByWorkspaceResponder(resp *http.Response) (result DataSourceListResult, err error)
- func (client DataSourcesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type EntityStatus
- type IntelligencePack
- type LinkedService
- type LinkedServiceListResult
- type LinkedServiceProperties
- type LinkedServicesClient
- func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result LinkedService, err error)
- func (client LinkedServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedServicesClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedService, err error)
- func (client LinkedServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client LinkedServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client LinkedServicesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result LinkedService, err error)
- func (client LinkedServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedServicesClient) GetResponder(resp *http.Response) (result LinkedService, err error)
- func (client LinkedServicesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedServiceListResult, err error)
- func (client LinkedServicesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client LinkedServicesClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedServiceListResult, err error)
- func (client LinkedServicesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type ListIntelligencePack
- type ManagementGroup
- type ManagementGroupProperties
- type MetricName
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- type OperationListResultPage
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, 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 Resource
- type SharedKeys
- type Sku
- type SkuNameEnum
- type UsageMetric
- type Workspace
- type WorkspaceListManagementGroupsResult
- type WorkspaceListResult
- type WorkspaceListUsagesResult
- type WorkspaceProperties
- type WorkspacesClient
- func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result WorkspacesCreateOrUpdateFuture, err error)
- func (client WorkspacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)
- func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (future WorkspacesCreateOrUpdateFuture, err error)
- func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error)
- func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client WorkspacesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) DisableIntelligencePack(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client WorkspacesClient) DisableIntelligencePackPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) DisableIntelligencePackResponder(resp *http.Response) (result autorest.Response, err error)
- func (client WorkspacesClient) DisableIntelligencePackSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) EnableIntelligencePack(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client WorkspacesClient) EnableIntelligencePackPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) EnableIntelligencePackResponder(resp *http.Response) (result autorest.Response, err error)
- func (client WorkspacesClient) EnableIntelligencePackSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)
- func (client WorkspacesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error)
- func (client WorkspacesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) GetSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
- func (client WorkspacesClient) GetSharedKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) GetSharedKeysResponder(resp *http.Response) (result SharedKeys, err error)
- func (client WorkspacesClient) GetSharedKeysSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListIntelligencePacks(ctx context.Context, resourceGroupName string, workspaceName string) (result ListIntelligencePack, err error)
- func (client WorkspacesClient) ListIntelligencePacksPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListIntelligencePacksResponder(resp *http.Response) (result ListIntelligencePack, err error)
- func (client WorkspacesClient) ListIntelligencePacksSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListManagementGroups(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListManagementGroupsResult, err error)
- func (client WorkspacesClient) ListManagementGroupsPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListManagementGroupsResponder(resp *http.Response) (result WorkspaceListManagementGroupsResult, err error)
- func (client WorkspacesClient) ListManagementGroupsSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client WorkspacesClient) ListResponder(resp *http.Response) (result WorkspaceListResult, err error)
- func (client WorkspacesClient) ListSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) ListUsages(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListUsagesResult, err error)
- func (client WorkspacesClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client WorkspacesClient) ListUsagesResponder(resp *http.Response) (result WorkspaceListUsagesResult, err error)
- func (client WorkspacesClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result Workspace, err error)
- func (client WorkspacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client WorkspacesClient) UpdateResponder(resp *http.Response) (result Workspace, err error)
- func (client WorkspacesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type WorkspacesCreateOrUpdateFuture
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 DataSource ¶
type DataSource struct { autorest.Response `json:"-"` // Properties - The data source properties in raw json format, each kind of data source have it's own schema. Properties interface{} `json:"properties,omitempty"` // ETag - The ETag of the data source. ETag *string `json:"eTag,omitempty"` // Kind - Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' Kind DataSourceKind `json:"kind,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"` }
DataSource datasources under OMS Workspace.
func (DataSource) MarshalJSON ¶
func (ds DataSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataSource.
type DataSourceFilter ¶
type DataSourceFilter struct { // Kind - Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' Kind DataSourceKind `json:"kind,omitempty"` }
DataSourceFilter dataSource filter. Right now, only filter by kind is supported.
type DataSourceKind ¶
type DataSourceKind string
DataSourceKind enumerates the values for data source kind.
const ( // AzureActivityLog ... AzureActivityLog DataSourceKind = "AzureActivityLog" // ChangeTrackingCustomRegistry ... ChangeTrackingCustomRegistry DataSourceKind = "ChangeTrackingCustomRegistry" // ChangeTrackingDefaultPath ... ChangeTrackingDefaultPath DataSourceKind = "ChangeTrackingDefaultPath" // ChangeTrackingDefaultRegistry ... ChangeTrackingDefaultRegistry DataSourceKind = "ChangeTrackingDefaultRegistry" // ChangeTrackingPath ... ChangeTrackingPath DataSourceKind = "ChangeTrackingPath" // CustomLog ... CustomLog DataSourceKind = "CustomLog" // CustomLogCollection ... CustomLogCollection DataSourceKind = "CustomLogCollection" // GenericDataSource ... GenericDataSource DataSourceKind = "GenericDataSource" // IISLogs ... IISLogs DataSourceKind = "IISLogs" // LinuxPerformanceCollection ... LinuxPerformanceCollection DataSourceKind = "LinuxPerformanceCollection" // LinuxPerformanceObject ... LinuxPerformanceObject DataSourceKind = "LinuxPerformanceObject" // LinuxSyslog ... LinuxSyslog DataSourceKind = "LinuxSyslog" // LinuxSyslogCollection ... LinuxSyslogCollection DataSourceKind = "LinuxSyslogCollection" // WindowsEvent ... WindowsEvent DataSourceKind = "WindowsEvent" // WindowsPerformanceCounter ... WindowsPerformanceCounter DataSourceKind = "WindowsPerformanceCounter" )
func PossibleDataSourceKindValues ¶
func PossibleDataSourceKindValues() []DataSourceKind
PossibleDataSourceKindValues returns an array of possible values for the DataSourceKind const type.
type DataSourceListResult ¶
type DataSourceListResult struct { autorest.Response `json:"-"` // Value - A list of datasources. Value *[]DataSource `json:"value,omitempty"` // NextLink - The link (url) to the next page of datasources. NextLink *string `json:"nextLink,omitempty"` }
DataSourceListResult the list data source by workspace operation response.
func (DataSourceListResult) IsEmpty ¶
func (dslr DataSourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DataSourceListResultIterator ¶
type DataSourceListResultIterator struct {
// contains filtered or unexported fields
}
DataSourceListResultIterator provides access to a complete listing of DataSource values.
func (*DataSourceListResultIterator) Next ¶
func (iter *DataSourceListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (DataSourceListResultIterator) NotDone ¶
func (iter DataSourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DataSourceListResultIterator) Response ¶
func (iter DataSourceListResultIterator) Response() DataSourceListResult
Response returns the raw server response from the last page request.
func (DataSourceListResultIterator) Value ¶
func (iter DataSourceListResultIterator) Value() DataSource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DataSourceListResultPage ¶
type DataSourceListResultPage struct {
// contains filtered or unexported fields
}
DataSourceListResultPage contains a page of DataSource values.
func (*DataSourceListResultPage) Next ¶
func (page *DataSourceListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (DataSourceListResultPage) NotDone ¶
func (page DataSourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DataSourceListResultPage) Response ¶
func (page DataSourceListResultPage) Response() DataSourceListResult
Response returns the raw server response from the last page request.
func (DataSourceListResultPage) Values ¶
func (page DataSourceListResultPage) Values() []DataSource
Values returns the slice of values for the current page or nil if there are no values.
type DataSourcesClient ¶
type DataSourcesClient struct {
BaseClient
}
DataSourcesClient is the operational Insights Client
func NewDataSourcesClient ¶
func NewDataSourcesClient(subscriptionID string) DataSourcesClient
NewDataSourcesClient creates an instance of the DataSourcesClient client.
func NewDataSourcesClientWithBaseURI ¶
func NewDataSourcesClientWithBaseURI(baseURI string, subscriptionID string) DataSourcesClient
NewDataSourcesClientWithBaseURI creates an instance of the DataSourcesClient client.
func (DataSourcesClient) CreateOrUpdate ¶
func (client DataSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, parameters DataSource) (result DataSource, err error)
CreateOrUpdate create or update a data source. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that will contain the datasource dataSourceName - the name of the datasource resource. parameters - the parameters required to create or update a datasource.
func (DataSourcesClient) CreateOrUpdatePreparer ¶
func (client DataSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string, parameters DataSource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DataSourcesClient) CreateOrUpdateResponder ¶
func (client DataSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result DataSource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DataSourcesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (DataSourcesClient) Delete ¶
func (client DataSourcesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (result autorest.Response, err error)
Delete deletes a data source instance. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that contains the datasource. dataSourceName - name of the datasource.
func (DataSourcesClient) DeletePreparer ¶
func (client DataSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DataSourcesClient) DeleteResponder ¶
func (client DataSourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (DataSourcesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DataSourcesClient) Get ¶
func (client DataSourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (result DataSource, err error)
Get gets a datasource instance. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that contains the datasource. dataSourceName - name of the datasource
func (DataSourcesClient) GetPreparer ¶
func (client DataSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DataSourcesClient) GetResponder ¶
func (client DataSourcesClient) GetResponder(resp *http.Response) (result DataSource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DataSourcesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DataSourcesClient) ListByWorkspace ¶
func (client DataSourcesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, filter string, skiptoken string) (result DataSourceListResultPage, err error)
ListByWorkspace gets the first page of data source instances in a workspace with the link to the next page. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the workspace that contains the data sources. filter - the filter to apply on the operation. skiptoken - starting point of the collection of data source instances.
func (DataSourcesClient) ListByWorkspaceComplete ¶
func (client DataSourcesClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, filter string, skiptoken string) (result DataSourceListResultIterator, err error)
ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.
func (DataSourcesClient) ListByWorkspacePreparer ¶
func (client DataSourcesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, filter string, skiptoken string) (*http.Request, error)
ListByWorkspacePreparer prepares the ListByWorkspace request.
func (DataSourcesClient) ListByWorkspaceResponder ¶
func (client DataSourcesClient) ListByWorkspaceResponder(resp *http.Response) (result DataSourceListResult, err error)
ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.
func (DataSourcesClient) ListByWorkspaceSender ¶
ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.
type EntityStatus ¶
type EntityStatus string
EntityStatus enumerates the values for entity status.
const ( // Canceled ... Canceled EntityStatus = "Canceled" // Creating ... Creating EntityStatus = "Creating" // Deleting ... Deleting EntityStatus = "Deleting" // Failed ... Failed EntityStatus = "Failed" // ProvisioningAccount ... ProvisioningAccount EntityStatus = "ProvisioningAccount" // Succeeded ... Succeeded EntityStatus = "Succeeded" )
func PossibleEntityStatusValues ¶
func PossibleEntityStatusValues() []EntityStatus
PossibleEntityStatusValues returns an array of possible values for the EntityStatus const type.
type IntelligencePack ¶
type IntelligencePack struct { // Name - The name of the intelligence pack. Name *string `json:"name,omitempty"` // Enabled - The enabled boolean for the intelligence pack. Enabled *bool `json:"enabled,omitempty"` // DisplayName - The display name of the intelligence pack. DisplayName *string `json:"displayName,omitempty"` }
IntelligencePack intelligence Pack containing a string name and boolean indicating if it's enabled.
type LinkedService ¶
type LinkedService struct { autorest.Response `json:"-"` // LinkedServiceProperties - The properties of the linked service. *LinkedServiceProperties `json:"properties,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"` }
LinkedService the top level Linked service resource container.
func (LinkedService) MarshalJSON ¶
func (ls LinkedService) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LinkedService.
func (*LinkedService) UnmarshalJSON ¶
func (ls *LinkedService) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LinkedService struct.
type LinkedServiceListResult ¶
type LinkedServiceListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of linked service instances. Value *[]LinkedService `json:"value,omitempty"` }
LinkedServiceListResult the list linked service operation response.
type LinkedServiceProperties ¶
type LinkedServiceProperties struct { // ResourceID - The resource id of the resource that will be linked to the workspace. ResourceID *string `json:"resourceId,omitempty"` }
LinkedServiceProperties linked service properties.
type LinkedServicesClient ¶
type LinkedServicesClient struct {
BaseClient
}
LinkedServicesClient is the operational Insights Client
func NewLinkedServicesClient ¶
func NewLinkedServicesClient(subscriptionID string) LinkedServicesClient
NewLinkedServicesClient creates an instance of the LinkedServicesClient client.
func NewLinkedServicesClientWithBaseURI ¶
func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) LinkedServicesClient
NewLinkedServicesClientWithBaseURI creates an instance of the LinkedServicesClient client.
func (LinkedServicesClient) CreateOrUpdate ¶
func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, parameters LinkedService) (result LinkedService, err error)
CreateOrUpdate create or update a linked service. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that will contain the linkedServices resource linkedServiceName - name of the linkedServices resource parameters - the parameters required to create or update a linked service.
func (LinkedServicesClient) CreateOrUpdatePreparer ¶
func (client LinkedServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string, parameters LinkedService) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (LinkedServicesClient) CreateOrUpdateResponder ¶
func (client LinkedServicesClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedService, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (LinkedServicesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (LinkedServicesClient) Delete ¶
func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (result autorest.Response, err error)
Delete deletes a linked service instance. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that contains the linkedServices resource linkedServiceName - name of the linked service.
func (LinkedServicesClient) DeletePreparer ¶
func (client LinkedServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (LinkedServicesClient) DeleteResponder ¶
func (client LinkedServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (LinkedServicesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (LinkedServicesClient) Get ¶
func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (result LinkedService, err error)
Get gets a linked service instance. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that contains the linkedServices resource linkedServiceName - name of the linked service.
func (LinkedServicesClient) GetPreparer ¶
func (client LinkedServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, linkedServiceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (LinkedServicesClient) GetResponder ¶
func (client LinkedServicesClient) GetResponder(resp *http.Response) (result LinkedService, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (LinkedServicesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (LinkedServicesClient) ListByWorkspace ¶
func (client LinkedServicesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedServiceListResult, err error)
ListByWorkspace gets the linked services instances in a workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace that contains the linked services.
func (LinkedServicesClient) ListByWorkspacePreparer ¶
func (client LinkedServicesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListByWorkspacePreparer prepares the ListByWorkspace request.
func (LinkedServicesClient) ListByWorkspaceResponder ¶
func (client LinkedServicesClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedServiceListResult, err error)
ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.
func (LinkedServicesClient) ListByWorkspaceSender ¶
ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.
type ListIntelligencePack ¶
type ListIntelligencePack struct { autorest.Response `json:"-"` Value *[]IntelligencePack `json:"value,omitempty"` }
ListIntelligencePack ...
type ManagementGroup ¶
type ManagementGroup struct { // ManagementGroupProperties - The properties of the management group. *ManagementGroupProperties `json:"properties,omitempty"` }
ManagementGroup a management group that is connected to a workspace
func (ManagementGroup) MarshalJSON ¶
func (mg ManagementGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagementGroup.
func (*ManagementGroup) UnmarshalJSON ¶
func (mg *ManagementGroup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagementGroup struct.
type ManagementGroupProperties ¶
type ManagementGroupProperties struct { // ServerCount - The number of servers connected to the management group. ServerCount *int32 `json:"serverCount,omitempty"` // IsGateway - Gets or sets a value indicating whether the management group is a gateway. IsGateway *bool `json:"isGateway,omitempty"` // Name - The name of the management group. Name *string `json:"name,omitempty"` // ID - The unique ID of the management group. ID *string `json:"id,omitempty"` // Created - The datetime that the management group was created. Created *date.Time `json:"created,omitempty"` // DataReceived - The last datetime that the management group received data. DataReceived *date.Time `json:"dataReceived,omitempty"` // Version - The version of System Center that is managing the management group. Version *string `json:"version,omitempty"` // Sku - The SKU of System Center that is managing the management group. Sku *string `json:"sku,omitempty"` }
ManagementGroupProperties management group properties.
type MetricName ¶
type MetricName struct { // Value - The system name of the metric. Value *string `json:"value,omitempty"` // LocalizedValue - The localized name of the metric. LocalizedValue *string `json:"localizedValue,omitempty"` }
MetricName the name of a metric.
type Operation ¶
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation supported operation of OperationalInsights resource provider.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: Microsoft OperationsManagement. Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed etc. Resource *string `json:"resource,omitempty"` // Operation - Type of operation: get, read, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationDisplay display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of solution operations supported by the OperationsManagement resource provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
OperationListResult result of the request to list solution operations.
func (OperationListResult) IsEmpty ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func (*OperationListResultIterator) Next ¶
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListResultIterator) NotDone ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func (*OperationListResultPage) Next ¶
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListResultPage) NotDone ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the operational Insights Client
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all of the available OperationalInsights Rest API operations.
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
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 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 SharedKeys ¶
type SharedKeys struct { string `json:"primarySharedKey,omitempty"` SecondarySharedKey *string `json:"secondarySharedKey,omitempty"` }PrimarySharedKey *
SharedKeys the shared keys for a workspace.
type Sku ¶
type Sku struct { // Name - The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'Unlimited', 'PerNode', 'PerGB2018', 'Standalone' Name SkuNameEnum `json:"name,omitempty"` }
Sku the SKU (tier) of a workspace.
type SkuNameEnum ¶
type SkuNameEnum string
SkuNameEnum enumerates the values for sku name enum.
const ( // Free ... Free SkuNameEnum = "Free" // PerGB2018 ... PerGB2018 SkuNameEnum = "PerGB2018" // PerNode ... PerNode SkuNameEnum = "PerNode" // Premium ... Premium SkuNameEnum = "Premium" // Standalone ... Standalone SkuNameEnum = "Standalone" // Standard ... Standard SkuNameEnum = "Standard" // Unlimited ... Unlimited SkuNameEnum = "Unlimited" )
func PossibleSkuNameEnumValues ¶
func PossibleSkuNameEnumValues() []SkuNameEnum
PossibleSkuNameEnumValues returns an array of possible values for the SkuNameEnum const type.
type UsageMetric ¶
type UsageMetric struct { // Name - The name of the metric. Name *MetricName `json:"name,omitempty"` // Unit - The units used for the metric. Unit *string `json:"unit,omitempty"` // CurrentValue - The current value of the metric. CurrentValue *float64 `json:"currentValue,omitempty"` // Limit - The quota limit for the metric. Limit *float64 `json:"limit,omitempty"` // NextResetTime - The time that the metric's value will reset. NextResetTime *date.Time `json:"nextResetTime,omitempty"` // QuotaPeriod - The quota period that determines the length of time between value resets. QuotaPeriod *string `json:"quotaPeriod,omitempty"` }
UsageMetric a metric describing the usage of a resource.
type Workspace ¶
type Workspace struct { autorest.Response `json:"-"` // WorkspaceProperties - Workspace properties. *WorkspaceProperties `json:"properties,omitempty"` // ETag - The ETag of the workspace. ETag *string `json:"eTag,omitempty"` // 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"` }
Workspace the top level Workspace resource container.
func (Workspace) MarshalJSON ¶
MarshalJSON is the custom marshaler for Workspace.
func (*Workspace) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Workspace struct.
type WorkspaceListManagementGroupsResult ¶
type WorkspaceListManagementGroupsResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of management groups attached to the workspace. Value *[]ManagementGroup `json:"value,omitempty"` }
WorkspaceListManagementGroupsResult the list workspace managmement groups operation response.
type WorkspaceListResult ¶
type WorkspaceListResult struct { autorest.Response `json:"-"` // Value - A list of workspaces. Value *[]Workspace `json:"value,omitempty"` }
WorkspaceListResult the list workspaces operation response.
type WorkspaceListUsagesResult ¶
type WorkspaceListUsagesResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of usage metrics for a workspace. Value *[]UsageMetric `json:"value,omitempty"` }
WorkspaceListUsagesResult the list workspace usages operation response.
type WorkspaceProperties ¶
type WorkspaceProperties struct { // ProvisioningState - The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount' ProvisioningState EntityStatus `json:"provisioningState,omitempty"` // Source - The source of the workspace. Source defines where the workspace was created. 'Azure' implies it was created in Azure. 'External' implies it was created via the Operational Insights Portal. This value is set on the service side and read-only on the client side. Source *string `json:"source,omitempty"` // CustomerID - The ID associated with the workspace. Setting this value at creation time allows the workspace being created to be linked to an existing workspace. CustomerID *string `json:"customerId,omitempty"` // PortalURL - The URL of the Operational Insights portal for this workspace. This value is set on the service side and read-only on the client side. PortalURL *string `json:"portalUrl,omitempty"` // Sku - The SKU of the workspace. Sku *Sku `json:"sku,omitempty"` // RetentionInDays - The workspace data retention in days. -1 means Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed for all other Skus. RetentionInDays *int32 `json:"retentionInDays,omitempty"` }
WorkspaceProperties workspace properties.
type WorkspacesClient ¶
type WorkspacesClient struct {
BaseClient
}
WorkspacesClient is the operational Insights Client
func NewWorkspacesClient ¶
func NewWorkspacesClient(subscriptionID string) WorkspacesClient
NewWorkspacesClient creates an instance of the WorkspacesClient client.
func NewWorkspacesClientWithBaseURI ¶
func NewWorkspacesClientWithBaseURI(baseURI string, subscriptionID string) WorkspacesClient
NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client.
func (WorkspacesClient) CreateOrUpdate ¶
func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (result WorkspacesCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a workspace. Parameters: resourceGroupName - the resource group name of the workspace. workspaceName - the name of the workspace. parameters - the parameters required to create or update a workspace.
func (WorkspacesClient) CreateOrUpdatePreparer ¶
func (client WorkspacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (WorkspacesClient) CreateOrUpdateResponder ¶
func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (WorkspacesClient) CreateOrUpdateSender ¶
func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (future WorkspacesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) Delete ¶
func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error)
Delete deletes a workspace instance. Parameters: resourceGroupName - the resource group name of the workspace. workspaceName - name of the Log Analytics Workspace.
func (WorkspacesClient) DeletePreparer ¶
func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (WorkspacesClient) DeleteResponder ¶
func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (WorkspacesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) DisableIntelligencePack ¶
func (client WorkspacesClient) DisableIntelligencePack(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (result autorest.Response, err error)
DisableIntelligencePack disables an intelligence pack for a given workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace. intelligencePackName - the name of the intelligence pack to be disabled.
func (WorkspacesClient) DisableIntelligencePackPreparer ¶
func (client WorkspacesClient) DisableIntelligencePackPreparer(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (*http.Request, error)
DisableIntelligencePackPreparer prepares the DisableIntelligencePack request.
func (WorkspacesClient) DisableIntelligencePackResponder ¶
func (client WorkspacesClient) DisableIntelligencePackResponder(resp *http.Response) (result autorest.Response, err error)
DisableIntelligencePackResponder handles the response to the DisableIntelligencePack request. The method always closes the http.Response Body.
func (WorkspacesClient) DisableIntelligencePackSender ¶
func (client WorkspacesClient) DisableIntelligencePackSender(req *http.Request) (*http.Response, error)
DisableIntelligencePackSender sends the DisableIntelligencePack request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) EnableIntelligencePack ¶
func (client WorkspacesClient) EnableIntelligencePack(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (result autorest.Response, err error)
EnableIntelligencePack enables an intelligence pack for a given workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace. intelligencePackName - the name of the intelligence pack to be enabled.
func (WorkspacesClient) EnableIntelligencePackPreparer ¶
func (client WorkspacesClient) EnableIntelligencePackPreparer(ctx context.Context, resourceGroupName string, workspaceName string, intelligencePackName string) (*http.Request, error)
EnableIntelligencePackPreparer prepares the EnableIntelligencePack request.
func (WorkspacesClient) EnableIntelligencePackResponder ¶
func (client WorkspacesClient) EnableIntelligencePackResponder(resp *http.Response) (result autorest.Response, err error)
EnableIntelligencePackResponder handles the response to the EnableIntelligencePack request. The method always closes the http.Response Body.
func (WorkspacesClient) EnableIntelligencePackSender ¶
func (client WorkspacesClient) EnableIntelligencePackSender(req *http.Request) (*http.Response, error)
EnableIntelligencePackSender sends the EnableIntelligencePack request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) Get ¶
func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)
Get gets a workspace instance. Parameters: resourceGroupName - the resource group name of the workspace. workspaceName - name of the Log Analytics Workspace.
func (WorkspacesClient) GetPreparer ¶
func (client WorkspacesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (WorkspacesClient) GetResponder ¶
func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (WorkspacesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) GetSharedKeys ¶
func (client WorkspacesClient) GetSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result SharedKeys, err error)
GetSharedKeys gets the shared keys for a workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace.
func (WorkspacesClient) GetSharedKeysPreparer ¶
func (client WorkspacesClient) GetSharedKeysPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
GetSharedKeysPreparer prepares the GetSharedKeys request.
func (WorkspacesClient) GetSharedKeysResponder ¶
func (client WorkspacesClient) GetSharedKeysResponder(resp *http.Response) (result SharedKeys, err error)
GetSharedKeysResponder handles the response to the GetSharedKeys request. The method always closes the http.Response Body.
func (WorkspacesClient) GetSharedKeysSender ¶
GetSharedKeysSender sends the GetSharedKeys request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) List ¶
func (client WorkspacesClient) List(ctx context.Context) (result WorkspaceListResult, err error)
List gets the workspaces in a subscription.
func (WorkspacesClient) ListByResourceGroup ¶
func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListResult, err error)
ListByResourceGroup gets workspaces in a resource group. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive.
func (WorkspacesClient) ListByResourceGroupPreparer ¶
func (client WorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (WorkspacesClient) ListByResourceGroupResponder ¶
func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (WorkspacesClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) ListIntelligencePacks ¶
func (client WorkspacesClient) ListIntelligencePacks(ctx context.Context, resourceGroupName string, workspaceName string) (result ListIntelligencePack, err error)
ListIntelligencePacks lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - name of the Log Analytics Workspace.
func (WorkspacesClient) ListIntelligencePacksPreparer ¶
func (client WorkspacesClient) ListIntelligencePacksPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListIntelligencePacksPreparer prepares the ListIntelligencePacks request.
func (WorkspacesClient) ListIntelligencePacksResponder ¶
func (client WorkspacesClient) ListIntelligencePacksResponder(resp *http.Response) (result ListIntelligencePack, err error)
ListIntelligencePacksResponder handles the response to the ListIntelligencePacks request. The method always closes the http.Response Body.
func (WorkspacesClient) ListIntelligencePacksSender ¶
func (client WorkspacesClient) ListIntelligencePacksSender(req *http.Request) (*http.Response, error)
ListIntelligencePacksSender sends the ListIntelligencePacks request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) ListManagementGroups ¶
func (client WorkspacesClient) ListManagementGroups(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListManagementGroupsResult, err error)
ListManagementGroups gets a list of management groups connected to a workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the name of the workspace.
func (WorkspacesClient) ListManagementGroupsPreparer ¶
func (client WorkspacesClient) ListManagementGroupsPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListManagementGroupsPreparer prepares the ListManagementGroups request.
func (WorkspacesClient) ListManagementGroupsResponder ¶
func (client WorkspacesClient) ListManagementGroupsResponder(resp *http.Response) (result WorkspaceListManagementGroupsResult, err error)
ListManagementGroupsResponder handles the response to the ListManagementGroups request. The method always closes the http.Response Body.
func (WorkspacesClient) ListManagementGroupsSender ¶
func (client WorkspacesClient) ListManagementGroupsSender(req *http.Request) (*http.Response, error)
ListManagementGroupsSender sends the ListManagementGroups request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) ListPreparer ¶
ListPreparer prepares the List request.
func (WorkspacesClient) ListResponder ¶
func (client WorkspacesClient) ListResponder(resp *http.Response) (result WorkspaceListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (WorkspacesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) ListUsages ¶
func (client WorkspacesClient) ListUsages(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspaceListUsagesResult, err error)
ListUsages gets a list of usage metrics for a workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the name of the workspace.
func (WorkspacesClient) ListUsagesPreparer ¶
func (client WorkspacesClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListUsagesPreparer prepares the ListUsages request.
func (WorkspacesClient) ListUsagesResponder ¶
func (client WorkspacesClient) ListUsagesResponder(resp *http.Response) (result WorkspaceListUsagesResult, err error)
ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.
func (WorkspacesClient) ListUsagesSender ¶
ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.
func (WorkspacesClient) Update ¶
func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (result Workspace, err error)
Update updates a workspace. Parameters: resourceGroupName - the resource group name of the workspace. workspaceName - the name of the workspace. parameters - the parameters required to patch a workspace.
func (WorkspacesClient) UpdatePreparer ¶
func (client WorkspacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (WorkspacesClient) UpdateResponder ¶
func (client WorkspacesClient) UpdateResponder(resp *http.Response) (result Workspace, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (WorkspacesClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type WorkspacesCreateOrUpdateFuture ¶
WorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*WorkspacesCreateOrUpdateFuture) Result ¶
func (future *WorkspacesCreateOrUpdateFuture) Result(client WorkspacesClient) (w Workspace, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.