const ( // DefaultBaseURI is the default URI used for the service Elastic DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
BaseClient is the base client for Elastic.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
CloudDeployment details of the user's elastic deployment associated with the monitor resource.
type CloudDeployment struct { // Name - READ-ONLY; Elastic deployment name Name *string `json:"name,omitempty"` // DeploymentID - READ-ONLY; Elastic deployment Id DeploymentID *string `json:"deploymentId,omitempty"` // AzureSubscriptionID - READ-ONLY; Associated Azure subscription Id for the elastic deployment. AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` // ElasticsearchRegion - READ-ONLY; Region where Deployment at Elastic side took place. ElasticsearchRegion *string `json:"elasticsearchRegion,omitempty"` // ElasticsearchServiceURL - READ-ONLY; Elasticsearch ingestion endpoint of the Elastic deployment. ElasticsearchServiceURL *string `json:"elasticsearchServiceUrl,omitempty"` // KibanaServiceURL - READ-ONLY; Kibana endpoint of the Elastic deployment. KibanaServiceURL *string `json:"kibanaServiceUrl,omitempty"` // KibanaSsoURL - READ-ONLY; Kibana dashboard sso URL of the Elastic deployment. KibanaSsoURL *string `json:"kibanaSsoUrl,omitempty"` }
func (cd CloudDeployment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CloudDeployment.
CloudUser details of the user's elastic account.
type CloudUser struct { // EmailAddress - READ-ONLY; Email of the Elastic User Account. EmailAddress *string `json:"emailAddress,omitempty"` // ID - READ-ONLY; User Id of the elastic account of the User. ID *string `json:"id,omitempty"` // ElasticCloudSsoDefaultURL - READ-ONLY; Elastic cloud default dashboard sso URL of the Elastic user account. ElasticCloudSsoDefaultURL *string `json:"elasticCloudSsoDefaultUrl,omitempty"` }
func (cu CloudUser) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CloudUser.
CompanyInfo company information of the user to be passed to partners.
type CompanyInfo struct { // Domain - Domain of the company Domain *string `json:"domain,omitempty"` // Business - Business of the company Business *string `json:"business,omitempty"` // EmployeesNumber - Number of employees in the company EmployeesNumber *string `json:"employeesNumber,omitempty"` // State - State of the company location. State *string `json:"state,omitempty"` // Country - Country of the company location. Country *string `json:"country,omitempty"` }
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
DeploymentInfoClient is the client for the DeploymentInfo methods of the Elastic service.
type DeploymentInfoClient struct { BaseClient }
func NewDeploymentInfoClient(subscriptionID string) DeploymentInfoClient
NewDeploymentInfoClient creates an instance of the DeploymentInfoClient client.
func NewDeploymentInfoClientWithBaseURI(baseURI string, subscriptionID string) DeploymentInfoClient
NewDeploymentInfoClientWithBaseURI creates an instance of the DeploymentInfoClient 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 (client DeploymentInfoClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result DeploymentInfoResponse, err error)
List sends the list request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client DeploymentInfoClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client DeploymentInfoClient) ListResponder(resp *http.Response) (result DeploymentInfoResponse, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client DeploymentInfoClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
DeploymentInfoResponse the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
type DeploymentInfoResponse struct { autorest.Response `json:"-"` // Status - READ-ONLY; The Elastic deployment status. Possible values include: 'DeploymentStatusHealthy', 'DeploymentStatusUnhealthy' Status DeploymentStatus `json:"status,omitempty"` // Version - READ-ONLY; Version of the elasticsearch in Elastic cloud deployment. Version *string `json:"version,omitempty"` // MemoryCapacity - READ-ONLY; RAM capacity of the elasticsearch in Elastic cloud deployment. MemoryCapacity *string `json:"memoryCapacity,omitempty"` // DiskCapacity - READ-ONLY; Disk capacity of the elasticsearch in Elastic cloud deployment. DiskCapacity *string `json:"diskCapacity,omitempty"` }
func (dir DeploymentInfoResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DeploymentInfoResponse.
DeploymentStatus enumerates the values for deployment status.
type DeploymentStatus string
const ( // DeploymentStatusHealthy ... DeploymentStatusHealthy DeploymentStatus = "Healthy" // DeploymentStatusUnhealthy ... DeploymentStatusUnhealthy DeploymentStatus = "Unhealthy" )
func PossibleDeploymentStatusValues() []DeploymentStatus
PossibleDeploymentStatusValues returns an array of possible values for the DeploymentStatus const type.
ErrorResponseBody error response body.
type ErrorResponseBody struct { // Code - Error code. Code *string `json:"code,omitempty"` // Message - Error message. Message *string `json:"message,omitempty"` // Target - Error target. Target *string `json:"target,omitempty"` // Details - Error details. Details *[]ErrorResponseBody `json:"details,omitempty"` }
FilteringTag the definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.
type FilteringTag struct { // Name - The name (also known as the key) of the tag. Name *string `json:"name,omitempty"` // Value - The value of the tag. Value *string `json:"value,omitempty"` // Action - Valid actions for a filtering tag. Possible values include: 'TagActionInclude', 'TagActionExclude' Action TagAction `json:"action,omitempty"` }
IdentityProperties identity properties.
type IdentityProperties struct { // PrincipalID - READ-ONLY; The identity ID. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - Managed identity type. Possible values include: 'ManagedIdentityTypesSystemAssigned' Type ManagedIdentityTypes `json:"type,omitempty"` }
func (IP IdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IdentityProperties.
LiftrResourceCategories enumerates the values for liftr resource categories.
type LiftrResourceCategories string
const ( // LiftrResourceCategoriesMonitorLogs ... LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs" // LiftrResourceCategoriesUnknown ... LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown" )
func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories
PossibleLiftrResourceCategoriesValues returns an array of possible values for the LiftrResourceCategories const type.
LogRules set of rules for sending logs for the Monitor resource.
type LogRules struct { // SendAadLogs - Flag specifying if AAD logs should be sent for the Monitor resource. SendAadLogs *bool `json:"sendAadLogs,omitempty"` // SendSubscriptionLogs - Flag specifying if subscription logs should be sent for the Monitor resource. SendSubscriptionLogs *bool `json:"sendSubscriptionLogs,omitempty"` // SendActivityLogs - Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. SendActivityLogs *bool `json:"sendActivityLogs,omitempty"` // FilteringTags - List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. FilteringTags *[]FilteringTag `json:"filteringTags,omitempty"` }
ManagedIdentityTypes enumerates the values for managed identity types.
type ManagedIdentityTypes string
const ( // ManagedIdentityTypesSystemAssigned ... ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = "SystemAssigned" )
func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes
PossibleManagedIdentityTypesValues returns an array of possible values for the ManagedIdentityTypes const type.
MonitorProperties properties specific to the monitor resource.
type MonitorProperties struct { // ProvisioningState - Provisioning state of the monitor resource. Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // MonitoringStatus - Flag specifying if the resource monitoring is enabled or disabled. Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` // ElasticProperties - Elastic cloud properties. ElasticProperties *Properties `json:"elasticProperties,omitempty"` // UserInfo - User information. UserInfo *UserInfo `json:"userInfo,omitempty"` // LiftrResourceCategory - Possible values include: 'LiftrResourceCategoriesUnknown', 'LiftrResourceCategoriesMonitorLogs' LiftrResourceCategory LiftrResourceCategories `json:"liftrResourceCategory,omitempty"` // LiftrResourcePreference - READ-ONLY; The priority of the resource. LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty"` }
func (mp MonitorProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorProperties.
MonitorResource monitor resource.
type MonitorResource struct { autorest.Response `json:"-"` // ID - READ-ONLY; ARM id of the monitor resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the monitor resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the monitor resource. Type *string `json:"type,omitempty"` // Sku - SKU of the monitor resource. Sku *ResourceSku `json:"sku,omitempty"` // Properties - Properties of the monitor resource. Properties *MonitorProperties `json:"properties,omitempty"` // Identity - Identity properties of the monitor resource. Identity *IdentityProperties `json:"identity,omitempty"` // Tags - The tags of the monitor resource. Tags map[string]*string `json:"tags"` // Location - The location of the monitor resource Location *string `json:"location,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource SystemData *SystemData `json:"systemData,omitempty"` }
func (mr MonitorResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorResource.
MonitorResourceListResponse response of a list operation.
type MonitorResourceListResponse struct { autorest.Response `json:"-"` // Value - Results of a list operation. Value *[]MonitorResource `json:"value,omitempty"` // NextLink - Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` }
func (mrlr MonitorResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MonitorResourceListResponseIterator provides access to a complete listing of MonitorResource values.
type MonitorResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewMonitorResourceListResponseIterator(page MonitorResourceListResponsePage) MonitorResourceListResponseIterator
Creates a new instance of the MonitorResourceListResponseIterator type.
func (iter *MonitorResourceListResponseIterator) 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 (iter *MonitorResourceListResponseIterator) 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 (iter MonitorResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MonitorResourceListResponseIterator) Response() MonitorResourceListResponse
Response returns the raw server response from the last page request.
func (iter MonitorResourceListResponseIterator) Value() MonitorResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MonitorResourceListResponsePage contains a page of MonitorResource values.
type MonitorResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewMonitorResourceListResponsePage(cur MonitorResourceListResponse, getNextPage func(context.Context, MonitorResourceListResponse) (MonitorResourceListResponse, error)) MonitorResourceListResponsePage
Creates a new instance of the MonitorResourceListResponsePage type.
func (page *MonitorResourceListResponsePage) 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 (page *MonitorResourceListResponsePage) 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 (page MonitorResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MonitorResourceListResponsePage) Response() MonitorResourceListResponse
Response returns the raw server response from the last page request.
func (page MonitorResourceListResponsePage) Values() []MonitorResource
Values returns the slice of values for the current page or nil if there are no values.
MonitorResourceUpdateParameters monitor resource update parameters.
type MonitorResourceUpdateParameters struct { // Tags - elastic monitor resource tags. Tags map[string]*string `json:"tags"` }
func (mrup MonitorResourceUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorResourceUpdateParameters.
MonitoredResource the properties of a resource currently being monitored by the Elastic monitor resource.
type MonitoredResource struct { // ID - The ARM id of the resource. ID *string `json:"id,omitempty"` // SendingLogs - Flag indicating the status of the resource for sending logs operation to Elastic. Possible values include: 'SendingLogsTrue', 'SendingLogsFalse' SendingLogs SendingLogs `json:"sendingLogs,omitempty"` // ReasonForLogsStatus - Reason for why the resource is sending logs (or why it is not sending). ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"` }
MonitoredResourceListResponse response of a list operation.
type MonitoredResourceListResponse struct { autorest.Response `json:"-"` // Value - Results of a list operation. Value *[]MonitoredResource `json:"value,omitempty"` // NextLink - Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` }
func (mrlr MonitoredResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MonitoredResourceListResponseIterator provides access to a complete listing of MonitoredResource values.
type MonitoredResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewMonitoredResourceListResponseIterator(page MonitoredResourceListResponsePage) MonitoredResourceListResponseIterator
Creates a new instance of the MonitoredResourceListResponseIterator type.
func (iter *MonitoredResourceListResponseIterator) 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 (iter *MonitoredResourceListResponseIterator) 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 (iter MonitoredResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MonitoredResourceListResponseIterator) Response() MonitoredResourceListResponse
Response returns the raw server response from the last page request.
func (iter MonitoredResourceListResponseIterator) Value() MonitoredResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MonitoredResourceListResponsePage contains a page of MonitoredResource values.
type MonitoredResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewMonitoredResourceListResponsePage(cur MonitoredResourceListResponse, getNextPage func(context.Context, MonitoredResourceListResponse) (MonitoredResourceListResponse, error)) MonitoredResourceListResponsePage
Creates a new instance of the MonitoredResourceListResponsePage type.
func (page *MonitoredResourceListResponsePage) 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 (page *MonitoredResourceListResponsePage) 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 (page MonitoredResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MonitoredResourceListResponsePage) Response() MonitoredResourceListResponse
Response returns the raw server response from the last page request.
func (page MonitoredResourceListResponsePage) Values() []MonitoredResource
Values returns the slice of values for the current page or nil if there are no values.
MonitoredResourcesClient is the client for the MonitoredResources methods of the Elastic service.
type MonitoredResourcesClient struct { BaseClient }
func NewMonitoredResourcesClient(subscriptionID string) MonitoredResourcesClient
NewMonitoredResourcesClient creates an instance of the MonitoredResourcesClient client.
func NewMonitoredResourcesClientWithBaseURI(baseURI string, subscriptionID string) MonitoredResourcesClient
NewMonitoredResourcesClientWithBaseURI creates an instance of the MonitoredResourcesClient 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 (client MonitoredResourcesClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoredResourceListResponsePage, err error)
List sends the list request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client MonitoredResourcesClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoredResourceListResponseIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client MonitoredResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client MonitoredResourcesClient) ListResponder(resp *http.Response) (result MonitoredResourceListResponse, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client MonitoredResourcesClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
MonitoringStatus enumerates the values for monitoring status.
type MonitoringStatus string
const ( // MonitoringStatusDisabled ... MonitoringStatusDisabled MonitoringStatus = "Disabled" // MonitoringStatusEnabled ... MonitoringStatusEnabled MonitoringStatus = "Enabled" )
func PossibleMonitoringStatusValues() []MonitoringStatus
PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type.
MonitoringTagRules capture logs and metrics of Azure resources based on ARM tags.
type MonitoringTagRules struct { autorest.Response `json:"-"` // Name - READ-ONLY; Name of the rule set. Name *string `json:"name,omitempty"` // ID - READ-ONLY; The id of the rule set. ID *string `json:"id,omitempty"` // Type - READ-ONLY; The type of the rule set. Type *string `json:"type,omitempty"` // Properties - Properties of the monitoring tag rules. Properties *MonitoringTagRulesProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource SystemData *SystemData `json:"systemData,omitempty"` }
func (mtr MonitoringTagRules) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitoringTagRules.
MonitoringTagRulesListResponse response of a list operation.
type MonitoringTagRulesListResponse struct { autorest.Response `json:"-"` // Value - Results of a list operation. Value *[]MonitoringTagRules `json:"value,omitempty"` // NextLink - Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` }
func (mtrlr MonitoringTagRulesListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MonitoringTagRulesListResponseIterator provides access to a complete listing of MonitoringTagRules values.
type MonitoringTagRulesListResponseIterator struct {
// contains filtered or unexported fields
}
func NewMonitoringTagRulesListResponseIterator(page MonitoringTagRulesListResponsePage) MonitoringTagRulesListResponseIterator
Creates a new instance of the MonitoringTagRulesListResponseIterator type.
func (iter *MonitoringTagRulesListResponseIterator) 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 (iter *MonitoringTagRulesListResponseIterator) 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 (iter MonitoringTagRulesListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MonitoringTagRulesListResponseIterator) Response() MonitoringTagRulesListResponse
Response returns the raw server response from the last page request.
func (iter MonitoringTagRulesListResponseIterator) Value() MonitoringTagRules
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MonitoringTagRulesListResponsePage contains a page of MonitoringTagRules values.
type MonitoringTagRulesListResponsePage struct {
// contains filtered or unexported fields
}
func NewMonitoringTagRulesListResponsePage(cur MonitoringTagRulesListResponse, getNextPage func(context.Context, MonitoringTagRulesListResponse) (MonitoringTagRulesListResponse, error)) MonitoringTagRulesListResponsePage
Creates a new instance of the MonitoringTagRulesListResponsePage type.
func (page *MonitoringTagRulesListResponsePage) 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 (page *MonitoringTagRulesListResponsePage) 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 (page MonitoringTagRulesListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MonitoringTagRulesListResponsePage) Response() MonitoringTagRulesListResponse
Response returns the raw server response from the last page request.
func (page MonitoringTagRulesListResponsePage) Values() []MonitoringTagRules
Values returns the slice of values for the current page or nil if there are no values.
MonitoringTagRulesProperties definition of the properties for a TagRules resource.
type MonitoringTagRulesProperties struct { // ProvisioningState - Provisioning state of the monitoring tag rules. Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // LogRules - Rules for sending logs. LogRules *LogRules `json:"logRules,omitempty"` }
MonitorsClient is the client for the Monitors methods of the Elastic service.
type MonitorsClient struct { BaseClient }
func NewMonitorsClient(subscriptionID string) MonitorsClient
NewMonitorsClient creates an instance of the MonitorsClient client.
func NewMonitorsClientWithBaseURI(baseURI string, subscriptionID string) MonitorsClient
NewMonitorsClientWithBaseURI creates an instance of the MonitorsClient 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 (client MonitorsClient) Create(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (result MonitorsCreateFuture, err error)
Create sends the create request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name body - elastic monitor resource model
func (client MonitorsClient) CreatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client MonitorsClient) CreateResponder(resp *http.Response) (result MonitorResource, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client MonitorsClient) CreateSender(req *http.Request) (future MonitorsCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client MonitorsClient) Delete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorsDeleteFuture, err error)
Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client MonitorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client MonitorsClient) 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 (client MonitorsClient) DeleteSender(req *http.Request) (future MonitorsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorResource, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client MonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client MonitorsClient) GetResponder(resp *http.Response) (result MonitorResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client MonitorsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client MonitorsClient) List(ctx context.Context) (result MonitorResourceListResponsePage, err error)
List sends the list request.
func (client MonitorsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponsePage, err error)
ListByResourceGroup sends the list by resource group request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs.
func (client MonitorsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponseIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client MonitorsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client MonitorsClient) ListByResourceGroupResponder(resp *http.Response) (result MonitorResourceListResponse, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client MonitorsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client MonitorsClient) ListComplete(ctx context.Context) (result MonitorResourceListResponseIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client MonitorsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client MonitorsClient) ListResponder(resp *http.Response) (result MonitorResourceListResponse, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client MonitorsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (result MonitorResource, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name body - elastic resource model update parameters.
func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client MonitorsClient) UpdateResponder(resp *http.Response) (result MonitorResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client MonitorsClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
MonitorsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type MonitorsCreateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(MonitorsClient) (MonitorResource, error) }
func (future *MonitorsCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
MonitorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type MonitorsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(MonitorsClient) (autorest.Response, error) }
func (future *MonitorsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
OperationDisplay the object that represents the operation.
type OperationDisplay struct { // Provider - Service provider, i.e., Microsoft.Elastic. Provider *string `json:"provider,omitempty"` // Resource - Type on which the operation is performed, e.g., 'monitors'. Resource *string `json:"resource,omitempty"` // Operation - Operation type, e.g., read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Description - Description of the operation, e.g., 'Write monitors'. Description *string `json:"description,omitempty"` }
OperationListResult result of GET request to list the Microsoft.Elastic operations.
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the Microsoft.Elastic provider. Value *[]OperationResult `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
OperationListResultIterator provides access to a complete listing of OperationResult values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
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. Deprecated: Use NextWithContext() instead.
func (iter *OperationListResultIterator) 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 (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() OperationResult
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationListResultPage contains a page of OperationResult values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
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. Deprecated: Use NextWithContext() instead.
func (page *OperationListResultPage) 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 (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []OperationResult
Values returns the slice of values for the current page or nil if there are no values.
OperationName enumerates the values for operation name.
type OperationName string
const ( // OperationNameAdd ... OperationNameAdd OperationName = "Add" // OperationNameDelete ... OperationNameDelete OperationName = "Delete" )
func PossibleOperationNameValues() []OperationName
PossibleOperationNameValues returns an array of possible values for the OperationName const type.
OperationResult a Microsoft.Elastic REST API operation.
type OperationResult struct { // Name - Operation name, i.e., {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` // IsDataAction - Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Origin - Origin of the operation Origin *string `json:"origin,omitempty"` }
OperationsClient is the client for the Operations methods of the Elastic service.
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient 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 (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List sends the list request.
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
Properties elastic Resource Properties.
type Properties struct { // ElasticCloudUser - Details of the user's elastic account. ElasticCloudUser *CloudUser `json:"elasticCloudUser,omitempty"` // ElasticCloudDeployment - Details of the elastic cloud deployment. ElasticCloudDeployment *CloudDeployment `json:"elasticCloudDeployment,omitempty"` }
ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const ( // ProvisioningStateAccepted ... ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled ... ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateCreating ... ProvisioningStateCreating ProvisioningState = "Creating" // ProvisioningStateDeleted ... ProvisioningStateDeleted ProvisioningState = "Deleted" // ProvisioningStateDeleting ... ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateNotSpecified ... ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
ResourceProviderDefaultErrorResponse RP default error response.
type ResourceProviderDefaultErrorResponse struct { // Error - READ-ONLY; Response body of Error Error *ErrorResponseBody `json:"error,omitempty"` }
func (rpder ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceProviderDefaultErrorResponse.
ResourceSku microsoft.Elastic SKU.
type ResourceSku struct { // Name - Name of the SKU. Name *string `json:"name,omitempty"` }
SendingLogs enumerates the values for sending logs.
type SendingLogs string
const ( // SendingLogsFalse ... SendingLogsFalse SendingLogs = "False" // SendingLogsTrue ... SendingLogsTrue SendingLogs = "True" )
func PossibleSendingLogsValues() []SendingLogs
PossibleSendingLogsValues returns an array of possible values for the SendingLogs const type.
SystemData metadata pertaining to creation and last modification of the resource.
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TagAction enumerates the values for tag action.
type TagAction string
const ( // TagActionExclude ... TagActionExclude TagAction = "Exclude" // TagActionInclude ... TagActionInclude TagAction = "Include" )
func PossibleTagActionValues() []TagAction
PossibleTagActionValues returns an array of possible values for the TagAction const type.
TagRulesClient is the client for the TagRules methods of the Elastic service.
type TagRulesClient struct { BaseClient }
func NewTagRulesClient(subscriptionID string) TagRulesClient
NewTagRulesClient creates an instance of the TagRulesClient client.
func NewTagRulesClientWithBaseURI(baseURI string, subscriptionID string) TagRulesClient
NewTagRulesClientWithBaseURI creates an instance of the TagRulesClient 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 (client TagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (result MonitoringTagRules, err error)
CreateOrUpdate sends the create or update request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name ruleSetName - tag Rule Set resource name body - request body of MonitoringTagRules
func (client TagRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client TagRulesClient) CreateOrUpdateResponder(resp *http.Response) (result MonitoringTagRules, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client TagRulesClient) 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 (client TagRulesClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result TagRulesDeleteFuture, err error)
Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name ruleSetName - tag Rule Set resource name
func (client TagRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client TagRulesClient) 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 (client TagRulesClient) DeleteSender(req *http.Request) (future TagRulesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client TagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result MonitoringTagRules, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name ruleSetName - tag Rule Set resource name
func (client TagRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client TagRulesClient) GetResponder(resp *http.Response) (result MonitoringTagRules, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client TagRulesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client TagRulesClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoringTagRulesListResponsePage, err error)
List sends the list request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client TagRulesClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoringTagRulesListResponseIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client TagRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client TagRulesClient) ListResponder(resp *http.Response) (result MonitoringTagRulesListResponse, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client TagRulesClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
TagRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type TagRulesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(TagRulesClient) (autorest.Response, error) }
func (future *TagRulesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
UserInfo user Information to be passed to partners.
type UserInfo struct { // FirstName - First name of the user FirstName *string `json:"firstName,omitempty"` // LastName - Last name of the user LastName *string `json:"lastName,omitempty"` // CompanyName - Company name of the user CompanyName *string `json:"companyName,omitempty"` // EmailAddress - Email of the user used by Elastic for contacting them if needed EmailAddress *string `json:"emailAddress,omitempty"` // CompanyInfo - Company information of the user to be passed to partners. CompanyInfo *CompanyInfo `json:"companyInfo,omitempty"` }
VMCollectionClient is the client for the VMCollection methods of the Elastic service.
type VMCollectionClient struct { BaseClient }
func NewVMCollectionClient(subscriptionID string) VMCollectionClient
NewVMCollectionClient creates an instance of the VMCollectionClient client.
func NewVMCollectionClientWithBaseURI(baseURI string, subscriptionID string) VMCollectionClient
NewVMCollectionClientWithBaseURI creates an instance of the VMCollectionClient 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 (client VMCollectionClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *VMCollectionUpdate) (result autorest.Response, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name body - VM resource Id
func (client VMCollectionClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *VMCollectionUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client VMCollectionClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client VMCollectionClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
VMCollectionUpdate update VM resource collection.
type VMCollectionUpdate struct { // VMResourceID - ARM id of the VM resource. VMResourceID *string `json:"vmResourceId,omitempty"` // OperationName - Operation to be performed for given VM. Possible values include: 'OperationNameAdd', 'OperationNameDelete' OperationName OperationName `json:"operationName,omitempty"` }
VMHostClient is the client for the VMHost methods of the Elastic service.
type VMHostClient struct { BaseClient }
func NewVMHostClient(subscriptionID string) VMHostClient
NewVMHostClient creates an instance of the VMHostClient client.
func NewVMHostClientWithBaseURI(baseURI string, subscriptionID string) VMHostClient
NewVMHostClientWithBaseURI creates an instance of the VMHostClient 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 (client VMHostClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result VMHostListResponsePage, err error)
List sends the list request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client VMHostClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result VMHostListResponseIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client VMHostClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client VMHostClient) ListResponder(resp *http.Response) (result VMHostListResponse, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client VMHostClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
VMHostListResponse response of a list operation.
type VMHostListResponse struct { autorest.Response `json:"-"` // Value - Results of a list operation. Value *[]VMResources `json:"value,omitempty"` // NextLink - Link to the next Vm resource Id, if any. NextLink *string `json:"nextLink,omitempty"` }
func (vhlr VMHostListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
VMHostListResponseIterator provides access to a complete listing of VMResources values.
type VMHostListResponseIterator struct {
// contains filtered or unexported fields
}
func NewVMHostListResponseIterator(page VMHostListResponsePage) VMHostListResponseIterator
Creates a new instance of the VMHostListResponseIterator type.
func (iter *VMHostListResponseIterator) 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 (iter *VMHostListResponseIterator) 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 (iter VMHostListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter VMHostListResponseIterator) Response() VMHostListResponse
Response returns the raw server response from the last page request.
func (iter VMHostListResponseIterator) Value() VMResources
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
VMHostListResponsePage contains a page of VMResources values.
type VMHostListResponsePage struct {
// contains filtered or unexported fields
}
func NewVMHostListResponsePage(cur VMHostListResponse, getNextPage func(context.Context, VMHostListResponse) (VMHostListResponse, error)) VMHostListResponsePage
Creates a new instance of the VMHostListResponsePage type.
func (page *VMHostListResponsePage) 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 (page *VMHostListResponsePage) 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 (page VMHostListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page VMHostListResponsePage) Response() VMHostListResponse
Response returns the raw server response from the last page request.
func (page VMHostListResponsePage) Values() []VMResources
Values returns the slice of values for the current page or nil if there are no values.
VMIngestionClient is the client for the VMIngestion methods of the Elastic service.
type VMIngestionClient struct { BaseClient }
func NewVMIngestionClient(subscriptionID string) VMIngestionClient
NewVMIngestionClient creates an instance of the VMIngestionClient client.
func NewVMIngestionClientWithBaseURI(baseURI string, subscriptionID string) VMIngestionClient
NewVMIngestionClientWithBaseURI creates an instance of the VMIngestionClient 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 (client VMIngestionClient) Details(ctx context.Context, resourceGroupName string, monitorName string) (result VMIngestionDetailsResponse, err error)
Details sends the details request. Parameters: resourceGroupName - the name of the resource group to which the Elastic resource belongs. monitorName - monitor resource name
func (client VMIngestionClient) DetailsPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
DetailsPreparer prepares the Details request.
func (client VMIngestionClient) DetailsResponder(resp *http.Response) (result VMIngestionDetailsResponse, err error)
DetailsResponder handles the response to the Details request. The method always closes the http.Response Body.
func (client VMIngestionClient) DetailsSender(req *http.Request) (*http.Response, error)
DetailsSender sends the Details request. The method will close the http.Response Body if it receives an error.
VMIngestionDetailsResponse the vm ingestion details to install an agent.
type VMIngestionDetailsResponse struct { autorest.Response `json:"-"` // CloudID - The cloudId of given Elastic monitor resource. CloudID *string `json:"cloudId,omitempty"` // IngestionKey - Ingestion details to install agent on given VM. IngestionKey *string `json:"ingestionKey,omitempty"` }
VMResources the vm resource properties that is currently being monitored by the Elastic monitor resource.
type VMResources struct { // VMResourceID - The ARM id of the VM resource. VMResourceID *string `json:"vmResourceId,omitempty"` }
Name | Synopsis |
---|---|
.. | |
elasticapi | Deprecated: Please note, this package has been deprecated. |