Documentation
¶
Overview ¶
Package operationalinsights implements the Azure ARM Operationalinsights service API version 2019-08-01-preview.
Operational Insights Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type Cluster
- type ClusterListResult
- type ClusterListResultIterator
- func (iter *ClusterListResultIterator) Next() error
- func (iter *ClusterListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ClusterListResultIterator) NotDone() bool
- func (iter ClusterListResultIterator) Response() ClusterListResult
- func (iter ClusterListResultIterator) Value() Cluster
- type ClusterListResultPage
- type ClusterPatch
- type ClusterPatchProperties
- type ClusterProperties
- type ClustersClient
- func (client ClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ClustersCreateOrUpdateFuture, err error)
- func (client ClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ClustersClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ClustersClient) CreateOrUpdateSender(req *http.Request) (future ClustersCreateOrUpdateFuture, err error)
- func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result autorest.Response, err error)
- func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ClustersClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)
- func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error)
- func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) List(ctx context.Context) (result ClusterListResultPage, err error)
- func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ClusterListResultPage, err error)
- func (client ClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ClusterListResultIterator, err error)
- func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error)
- func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) ListComplete(ctx context.Context) (result ClusterListResultIterator, err error)
- func (client ClustersClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error)
- func (client ClustersClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, ...) (result Cluster, err error)
- func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error)
- func (client ClustersClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ClustersCreateOrUpdateFuture
- type DataExport
- type DataExportClient
- func (client DataExportClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataExportCreateOrUpdateFuture, err error)
- func (client DataExportClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataExportClient) CreateOrUpdateResponder(resp *http.Response) (result DataExport, err error)
- func (client DataExportClient) CreateOrUpdateSender(req *http.Request) (future DataExportCreateOrUpdateFuture, err error)
- func (client DataExportClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client DataExportClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataExportClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DataExportClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client DataExportClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result DataExport, err error)
- func (client DataExportClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client DataExportClient) GetResponder(resp *http.Response) (result DataExport, err error)
- func (client DataExportClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DataExportClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result DataExportListResultPage, err error)
- func (client DataExportClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result DataExportListResultIterator, err error)
- func (client DataExportClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client DataExportClient) ListByWorkspaceResponder(resp *http.Response) (result DataExportListResult, err error)
- func (client DataExportClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type DataExportCreateOrUpdateFuture
- type DataExportListResult
- type DataExportListResultIterator
- func (iter *DataExportListResultIterator) Next() error
- func (iter *DataExportListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DataExportListResultIterator) NotDone() bool
- func (iter DataExportListResultIterator) Response() DataExportListResult
- func (iter DataExportListResultIterator) Value() DataExport
- type DataExportListResultPage
- func (page *DataExportListResultPage) Next() error
- func (page *DataExportListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DataExportListResultPage) NotDone() bool
- func (page DataExportListResultPage) Response() DataExportListResult
- func (page DataExportListResultPage) Values() []DataExport
- type DataExportProperties
- type DataSourceType
- type Destination
- type DestinationMetaData
- type EntityStatus
- type ErrorDetails
- type ErrorResponse
- type Identity
- type IdentityType
- type KeyVaultProperties
- 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 LinkedStorageAccounts
- type LinkedStorageAccountsClient
- func (client LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result LinkedStorageAccounts, err error)
- func (client LinkedStorageAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedStorageAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedStorageAccounts, err error)
- func (client LinkedStorageAccountsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result autorest.Response, err error)
- func (client LinkedStorageAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedStorageAccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client LinkedStorageAccountsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (result LinkedStorageAccounts, err error)
- func (client LinkedStorageAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*http.Request, error)
- func (client LinkedStorageAccountsClient) GetResponder(resp *http.Response) (result LinkedStorageAccounts, err error)
- func (client LinkedStorageAccountsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client LinkedStorageAccountsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedStorageAccountsListResult, err error)
- func (client LinkedStorageAccountsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
- func (client LinkedStorageAccountsClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedStorageAccountsListResult, err error)
- func (client LinkedStorageAccountsClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
- type LinkedStorageAccountsListResult
- type LinkedStorageAccountsProperties
- type ProxyResource
- type Resource
- type Sku
- type SkuNameEnum
- type Type
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type Cluster ¶
type Cluster struct { autorest.Response `json:"-"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // Sku - The sku properties. Sku *Sku `json:"sku,omitempty"` // ClusterProperties - Log Analytics cluster properties. *ClusterProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
Cluster the top level Log Analytics cluster resource container.
func (Cluster) MarshalJSON ¶
MarshalJSON is the custom marshaler for Cluster.
func (*Cluster) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Cluster struct.
type ClusterListResult ¶
type ClusterListResult struct { autorest.Response `json:"-"` // NextLink - The link used to get the next page of recommendations. NextLink *string `json:"nextLink,omitempty"` // Value - A list of Log Analytics clusters. Value *[]Cluster `json:"value,omitempty"` }
ClusterListResult the list clusters operation response.
func (ClusterListResult) IsEmpty ¶
func (clr ClusterListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ClusterListResultIterator ¶
type ClusterListResultIterator struct {
// contains filtered or unexported fields
}
ClusterListResultIterator provides access to a complete listing of Cluster values.
func NewClusterListResultIterator ¶
func NewClusterListResultIterator(page ClusterListResultPage) ClusterListResultIterator
Creates a new instance of the ClusterListResultIterator type.
func (*ClusterListResultIterator) Next ¶
func (iter *ClusterListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ClusterListResultIterator) NextWithContext ¶
func (iter *ClusterListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ClusterListResultIterator) NotDone ¶
func (iter ClusterListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ClusterListResultIterator) Response ¶
func (iter ClusterListResultIterator) Response() ClusterListResult
Response returns the raw server response from the last page request.
func (ClusterListResultIterator) Value ¶
func (iter ClusterListResultIterator) Value() Cluster
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ClusterListResultPage ¶
type ClusterListResultPage struct {
// contains filtered or unexported fields
}
ClusterListResultPage contains a page of Cluster values.
func NewClusterListResultPage ¶
func NewClusterListResultPage(cur ClusterListResult, getNextPage func(context.Context, ClusterListResult) (ClusterListResult, error)) ClusterListResultPage
Creates a new instance of the ClusterListResultPage type.
func (*ClusterListResultPage) Next ¶
func (page *ClusterListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ClusterListResultPage) NextWithContext ¶
func (page *ClusterListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ClusterListResultPage) NotDone ¶
func (page ClusterListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ClusterListResultPage) Response ¶
func (page ClusterListResultPage) Response() ClusterListResult
Response returns the raw server response from the last page request.
func (ClusterListResultPage) Values ¶
func (page ClusterListResultPage) Values() []Cluster
Values returns the slice of values for the current page or nil if there are no values.
type ClusterPatch ¶
type ClusterPatch struct { // ClusterPatchProperties - Log Analytics cluster properties. *ClusterPatchProperties `json:"properties,omitempty"` // Sku - The sku properties. Sku *Sku `json:"sku,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
ClusterPatch the top level Log Analytics cluster resource container.
func (ClusterPatch) MarshalJSON ¶
func (cp ClusterPatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterPatch.
func (*ClusterPatch) UnmarshalJSON ¶
func (cp *ClusterPatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClusterPatch struct.
type ClusterPatchProperties ¶
type ClusterPatchProperties struct { // KeyVaultProperties - The associated key properties. KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` }
ClusterPatchProperties log Analytics cluster patch properties.
type ClusterProperties ¶
type ClusterProperties struct { // NextLink - The link used to get the next page of recommendations. NextLink *string `json:"nextLink,omitempty"` // ClusterID - READ-ONLY; The ID associated with the cluster. ClusterID *string `json:"clusterId,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the cluster. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount' ProvisioningState EntityStatus `json:"provisioningState,omitempty"` // KeyVaultProperties - The associated key properties. KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` }
ClusterProperties cluster properties.
func (ClusterProperties) MarshalJSON ¶
func (cp ClusterProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterProperties.
type ClustersClient ¶
type ClustersClient struct {
BaseClient
}
ClustersClient is the operational Insights Client
func NewClustersClient ¶
func NewClustersClient(subscriptionID string) ClustersClient
NewClustersClient creates an instance of the ClustersClient client.
func NewClustersClientWithBaseURI ¶
func NewClustersClientWithBaseURI(baseURI string, subscriptionID string) ClustersClient
NewClustersClientWithBaseURI creates an instance of the ClustersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ClustersClient) CreateOrUpdate ¶
func (client ClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster) (result ClustersCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a Log Analytics cluster. Parameters: resourceGroupName - the resource group name of the Log Analytics cluster. clusterName - the name of the Log Analytics cluster. parameters - the parameters required to create or update a Log Analytics cluster.
func (ClustersClient) CreateOrUpdatePreparer ¶
func (client ClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ClustersClient) CreateOrUpdateResponder ¶
func (client ClustersClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ClustersClient) CreateOrUpdateSender ¶
func (client ClustersClient) CreateOrUpdateSender(req *http.Request) (future ClustersCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) Delete ¶
func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result autorest.Response, err error)
Delete deletes a cluster instance. Parameters: resourceGroupName - the resource group name of the Log Analytics cluster. clusterName - name of the Log Analytics Cluster.
func (ClustersClient) DeletePreparer ¶
func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ClustersClient) DeleteResponder ¶
func (client ClustersClient) 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 (ClustersClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) Get ¶
func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)
Get gets a Log Analytics cluster instance. Parameters: resourceGroupName - the resource group name of the Log Analytics cluster. clusterName - name of the Log Analytics Cluster.
func (ClustersClient) GetPreparer ¶
func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ClustersClient) GetResponder ¶
func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ClustersClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) List ¶
func (client ClustersClient) List(ctx context.Context) (result ClusterListResultPage, err error)
List gets the Log Analytics clusters in a subscription.
func (ClustersClient) ListByResourceGroup ¶
func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ClusterListResultPage, err error)
ListByResourceGroup gets Log Analytics clusters in a resource group. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive.
func (ClustersClient) ListByResourceGroupComplete ¶
func (client ClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ClusterListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (ClustersClient) ListByResourceGroupPreparer ¶
func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ClustersClient) ListByResourceGroupResponder ¶
func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ClustersClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) ListComplete ¶
func (client ClustersClient) ListComplete(ctx context.Context) (result ClusterListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (ClustersClient) ListPreparer ¶
ListPreparer prepares the List request.
func (ClustersClient) ListResponder ¶
func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ClustersClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) Update ¶
func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterPatch) (result Cluster, err error)
Update updates a Log Analytics cluster. Parameters: resourceGroupName - the resource group name of the cluster. clusterName - the name of the cluster. parameters - the parameters required to patch a Log Analytics cluster.
func (ClustersClient) UpdatePreparer ¶
func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterPatch) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ClustersClient) UpdateResponder ¶
func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ClustersClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ClustersCreateOrUpdateFuture ¶
ClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ClustersCreateOrUpdateFuture) Result ¶
func (future *ClustersCreateOrUpdateFuture) Result(client ClustersClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DataExport ¶
type DataExport struct { autorest.Response `json:"-"` // DataExportProperties - data export properties. *DataExportProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
DataExport the top level data export resource container.
func (DataExport) MarshalJSON ¶
func (de DataExport) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataExport.
func (*DataExport) UnmarshalJSON ¶
func (de *DataExport) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DataExport struct.
type DataExportClient ¶
type DataExportClient struct {
BaseClient
}
DataExportClient is the operational Insights Client
func NewDataExportClient ¶
func NewDataExportClient(subscriptionID string) DataExportClient
NewDataExportClient creates an instance of the DataExportClient client.
func NewDataExportClientWithBaseURI ¶
func NewDataExportClientWithBaseURI(baseURI string, subscriptionID string) DataExportClient
NewDataExportClientWithBaseURI creates an instance of the DataExportClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DataExportClient) CreateOrUpdate ¶
func (client DataExportClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, parameters DataExport) (result DataExportCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a data export. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the Log Analytics workspace name. dataExportName - the data export rule name. parameters - the parameters required to create or update a data export.
func (DataExportClient) CreateOrUpdatePreparer ¶
func (client DataExportClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string, parameters DataExport) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DataExportClient) CreateOrUpdateResponder ¶
func (client DataExportClient) CreateOrUpdateResponder(resp *http.Response) (result DataExport, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DataExportClient) CreateOrUpdateSender ¶
func (client DataExportClient) CreateOrUpdateSender(req *http.Request) (future DataExportCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (DataExportClient) Delete ¶
func (client DataExportClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (result autorest.Response, err error)
Delete deletes the specified data export in a given workspace.. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the Log Analytics workspace name. dataExportName - the data export rule name.
func (DataExportClient) DeletePreparer ¶
func (client DataExportClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DataExportClient) DeleteResponder ¶
func (client DataExportClient) 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 (DataExportClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DataExportClient) Get ¶
func (client DataExportClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (result DataExport, err error)
Get gets a data export instance. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the Log Analytics workspace name. dataExportName - the data export rule name.
func (DataExportClient) GetPreparer ¶
func (client DataExportClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataExportName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DataExportClient) GetResponder ¶
func (client DataExportClient) GetResponder(resp *http.Response) (result DataExport, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DataExportClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DataExportClient) ListByWorkspace ¶
func (client DataExportClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result DataExportListResultPage, err error)
ListByWorkspace lists the data export instances within a workspace. Parameters: resourceGroupName - the name of the resource group to get. The name is case insensitive. workspaceName - the Log Analytics workspace name.
func (DataExportClient) ListByWorkspaceComplete ¶
func (client DataExportClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result DataExportListResultIterator, err error)
ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.
func (DataExportClient) ListByWorkspacePreparer ¶
func (client DataExportClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListByWorkspacePreparer prepares the ListByWorkspace request.
func (DataExportClient) ListByWorkspaceResponder ¶
func (client DataExportClient) ListByWorkspaceResponder(resp *http.Response) (result DataExportListResult, err error)
ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.
func (DataExportClient) ListByWorkspaceSender ¶
ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.
type DataExportCreateOrUpdateFuture ¶
DataExportCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DataExportCreateOrUpdateFuture) Result ¶
func (future *DataExportCreateOrUpdateFuture) Result(client DataExportClient) (de DataExport, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DataExportListResult ¶
type DataExportListResult struct { autorest.Response `json:"-"` // Value - List of data export instances within a workspace.. Value *[]DataExport `json:"value,omitempty"` }
DataExportListResult result of the request to list data exports.
func (DataExportListResult) IsEmpty ¶
func (delr DataExportListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DataExportListResultIterator ¶
type DataExportListResultIterator struct {
// contains filtered or unexported fields
}
DataExportListResultIterator provides access to a complete listing of DataExport values.
func NewDataExportListResultIterator ¶
func NewDataExportListResultIterator(page DataExportListResultPage) DataExportListResultIterator
Creates a new instance of the DataExportListResultIterator type.
func (*DataExportListResultIterator) Next ¶
func (iter *DataExportListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DataExportListResultIterator) NextWithContext ¶
func (iter *DataExportListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (DataExportListResultIterator) NotDone ¶
func (iter DataExportListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DataExportListResultIterator) Response ¶
func (iter DataExportListResultIterator) Response() DataExportListResult
Response returns the raw server response from the last page request.
func (DataExportListResultIterator) Value ¶
func (iter DataExportListResultIterator) Value() DataExport
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DataExportListResultPage ¶
type DataExportListResultPage struct {
// contains filtered or unexported fields
}
DataExportListResultPage contains a page of DataExport values.
func NewDataExportListResultPage ¶
func NewDataExportListResultPage(cur DataExportListResult, getNextPage func(context.Context, DataExportListResult) (DataExportListResult, error)) DataExportListResultPage
Creates a new instance of the DataExportListResultPage type.
func (*DataExportListResultPage) Next ¶
func (page *DataExportListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DataExportListResultPage) NextWithContext ¶
func (page *DataExportListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (DataExportListResultPage) NotDone ¶
func (page DataExportListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DataExportListResultPage) Response ¶
func (page DataExportListResultPage) Response() DataExportListResult
Response returns the raw server response from the last page request.
func (DataExportListResultPage) Values ¶
func (page DataExportListResultPage) Values() []DataExport
Values returns the slice of values for the current page or nil if there are no values.
type DataExportProperties ¶
type DataExportProperties struct { // DataExportID - The data export rule ID. DataExportID *string `json:"dataExportId,omitempty"` // TableNames - An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. TableNames *[]string `json:"tableNames,omitempty"` // Destination - destination properties. *Destination `json:"destination,omitempty"` // Enable - Active when enabled. Enable *bool `json:"enable,omitempty"` // CreatedDate - The latest data export rule modification time. CreatedDate *string `json:"createdDate,omitempty"` // LastModifiedDate - Date and time when the export was last modified. LastModifiedDate *string `json:"lastModifiedDate,omitempty"` }
DataExportProperties data Export properties.
func (DataExportProperties) MarshalJSON ¶
func (dep DataExportProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataExportProperties.
func (*DataExportProperties) UnmarshalJSON ¶
func (dep *DataExportProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DataExportProperties struct.
type DataSourceType ¶
type DataSourceType string
DataSourceType enumerates the values for data source type.
const ( // AzureWatson ... AzureWatson DataSourceType = "AzureWatson" // CustomLogs ... CustomLogs DataSourceType = "CustomLogs" )
func PossibleDataSourceTypeValues ¶
func PossibleDataSourceTypeValues() []DataSourceType
PossibleDataSourceTypeValues returns an array of possible values for the DataSourceType const type.
type Destination ¶
type Destination struct { // ResourceID - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure. ResourceID *string `json:"resourceId,omitempty"` // Type - READ-ONLY; The type of the destination resource. Possible values include: 'StorageAccount', 'EventHub' Type Type `json:"type,omitempty"` // DestinationMetaData - destination meta data. *DestinationMetaData `json:"metaData,omitempty"` }
Destination destination properties.
func (Destination) MarshalJSON ¶
func (d Destination) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Destination.
func (*Destination) UnmarshalJSON ¶
func (d *Destination) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Destination struct.
type DestinationMetaData ¶
type DestinationMetaData struct { // EventHubName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account. EventHubName *string `json:"eventHubName,omitempty"` }
DestinationMetaData destination meta data.
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 ErrorDetails ¶
type ErrorDetails struct { // Code - READ-ONLY; Error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; Error message indicating why the operation failed. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The target of the particular error. Target *string `json:"target,omitempty"` }
ErrorDetails the details of the error.
type ErrorResponse ¶
type ErrorResponse struct { // Error - The details of the error. Error *ErrorDetails `json:"error,omitempty"` }
ErrorResponse error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
type Identity ¶
type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned', 'None' Type IdentityType `json:"type,omitempty"` }
Identity identity for the resource.
func (Identity) MarshalJSON ¶
MarshalJSON is the custom marshaler for Identity.
type IdentityType ¶
type IdentityType string
IdentityType enumerates the values for identity type.
const ( // None ... None IdentityType = "None" // SystemAssigned ... SystemAssigned IdentityType = "SystemAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.
type KeyVaultProperties ¶
type KeyVaultProperties struct { // KeyVaultURI - The Key Vault uri which holds they key associated with the Log Analytics cluster. KeyVaultURI *string `json:"keyVaultUri,omitempty"` // KeyName - The name of the key associated with the Log Analytics cluster. KeyName *string `json:"keyName,omitempty"` // KeyVersion - The version of the key associated with the Log Analytics cluster. KeyVersion *string `json:"keyVersion,omitempty"` }
KeyVaultProperties ...
type LinkedService ¶
type LinkedService struct { autorest.Response `json:"-"` // LinkedServiceProperties - The properties of the linked service. *LinkedServiceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
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 - The 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. This should be used for linking resources which require read access ResourceID *string `json:"resourceId,omitempty"` // WriteAccessResourceID - The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access WriteAccessResourceID *string `json:"writeAccessResourceId,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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
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 LinkedStorageAccounts ¶
type LinkedStorageAccounts struct { autorest.Response `json:"-"` // LinkedStorageAccountsProperties - Linked storage accounts properties. *LinkedStorageAccountsProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
LinkedStorageAccounts linked storage accounts top level resource container.
func (LinkedStorageAccounts) MarshalJSON ¶
func (lsa LinkedStorageAccounts) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LinkedStorageAccounts.
func (*LinkedStorageAccounts) UnmarshalJSON ¶
func (lsa *LinkedStorageAccounts) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LinkedStorageAccounts struct.
type LinkedStorageAccountsClient ¶
type LinkedStorageAccountsClient struct {
BaseClient
}
LinkedStorageAccountsClient is the operational Insights Client
func NewLinkedStorageAccountsClient ¶
func NewLinkedStorageAccountsClient(subscriptionID string) LinkedStorageAccountsClient
NewLinkedStorageAccountsClient creates an instance of the LinkedStorageAccountsClient client.
func NewLinkedStorageAccountsClientWithBaseURI ¶
func NewLinkedStorageAccountsClientWithBaseURI(baseURI string, subscriptionID string) LinkedStorageAccountsClient
NewLinkedStorageAccountsClientWithBaseURI creates an instance of the LinkedStorageAccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (LinkedStorageAccountsClient) CreateOrUpdate ¶
func (client LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, parameters LinkedStorageAccounts) (result LinkedStorageAccounts, err error)
CreateOrUpdate create or Update a link relation between current workspace and a group of storage accounts of a specific data source type. 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 resource. dataSourceType - linked storage accounts type. parameters - the parameters required to create or update linked storage accounts.
func (LinkedStorageAccountsClient) CreateOrUpdatePreparer ¶
func (client LinkedStorageAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType, parameters LinkedStorageAccounts) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (LinkedStorageAccountsClient) CreateOrUpdateResponder ¶
func (client LinkedStorageAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedStorageAccounts, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (LinkedStorageAccountsClient) CreateOrUpdateSender ¶
func (client LinkedStorageAccountsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (LinkedStorageAccountsClient) Delete ¶
func (client LinkedStorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (result autorest.Response, err error)
Delete deletes all linked storage accounts of a specific data source type associated with the specified workspace. 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 resource. dataSourceType - linked storage accounts type.
func (LinkedStorageAccountsClient) DeletePreparer ¶
func (client LinkedStorageAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (LinkedStorageAccountsClient) DeleteResponder ¶
func (client LinkedStorageAccountsClient) 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 (LinkedStorageAccountsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (LinkedStorageAccountsClient) Get ¶
func (client LinkedStorageAccountsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (result LinkedStorageAccounts, err error)
Get gets all linked storage account of a specific data source type associated with the specified workspace. 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 resource. dataSourceType - linked storage accounts type.
func (LinkedStorageAccountsClient) GetPreparer ¶
func (client LinkedStorageAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) (*http.Request, error)
GetPreparer prepares the Get request.
func (LinkedStorageAccountsClient) GetResponder ¶
func (client LinkedStorageAccountsClient) GetResponder(resp *http.Response) (result LinkedStorageAccounts, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (LinkedStorageAccountsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (LinkedStorageAccountsClient) ListByWorkspace ¶
func (client LinkedStorageAccountsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result LinkedStorageAccountsListResult, err error)
ListByWorkspace gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type. 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 resource.
func (LinkedStorageAccountsClient) ListByWorkspacePreparer ¶
func (client LinkedStorageAccountsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListByWorkspacePreparer prepares the ListByWorkspace request.
func (LinkedStorageAccountsClient) ListByWorkspaceResponder ¶
func (client LinkedStorageAccountsClient) ListByWorkspaceResponder(resp *http.Response) (result LinkedStorageAccountsListResult, err error)
ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.
func (LinkedStorageAccountsClient) ListByWorkspaceSender ¶
func (client LinkedStorageAccountsClient) 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 LinkedStorageAccountsListResult ¶
type LinkedStorageAccountsListResult struct { autorest.Response `json:"-"` // Value - A list of linked storage accounts instances. Value *[]LinkedStorageAccounts `json:"value,omitempty"` }
LinkedStorageAccountsListResult the list linked storage accounts service operation response.
type LinkedStorageAccountsProperties ¶
type LinkedStorageAccountsProperties struct { // DataSourceType - READ-ONLY; Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson' DataSourceType DataSourceType `json:"dataSourceType,omitempty"` // StorageAccountIds - Linked storage accounts resources ids. StorageAccountIds *[]string `json:"storageAccountIds,omitempty"` }
LinkedStorageAccountsProperties linked storage accounts properties.
func (LinkedStorageAccountsProperties) MarshalJSON ¶
func (lsap LinkedStorageAccountsProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LinkedStorageAccountsProperties.
type ProxyResource ¶
type ProxyResource struct { // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
ProxyResource common properties of proxy resource.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; 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 Sku ¶
type Sku struct { // Capacity - The capacity value Capacity *int64 `json:"capacity,omitempty"` // Name - The name of the SKU. Possible values include: 'CapacityReservation' Name SkuNameEnum `json:"name,omitempty"` }
Sku ...
type SkuNameEnum ¶
type SkuNameEnum string
SkuNameEnum enumerates the values for sku name enum.
const ( // CapacityReservation ... CapacityReservation SkuNameEnum = "CapacityReservation" )
func PossibleSkuNameEnumValues ¶
func PossibleSkuNameEnumValues() []SkuNameEnum
PossibleSkuNameEnumValues returns an array of possible values for the SkuNameEnum const type.