elastic

package
v65.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package elastic implements the Azure ARM Elastic service API version 2020-07-01.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Elastic
	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

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Elastic.

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 CloudDeployment

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"`
}

CloudDeployment details of the user's elastic deployment associated with the monitor resource.

func (CloudDeployment) MarshalJSON

func (cd CloudDeployment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudDeployment.

type CloudUser

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"`
}

CloudUser details of the user's elastic account.

func (CloudUser) MarshalJSON

func (cu CloudUser) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudUser.

type CompanyInfo

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"`
}

CompanyInfo company information of the user to be passed to partners.

type CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// CreatedByTypeApplication ...
	CreatedByTypeApplication CreatedByType = "Application"
	// CreatedByTypeKey ...
	CreatedByTypeKey CreatedByType = "Key"
	// CreatedByTypeManagedIdentity ...
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	// CreatedByTypeUser ...
	CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type DeploymentInfoClient

type DeploymentInfoClient struct {
	BaseClient
}

DeploymentInfoClient is the client for the DeploymentInfo methods of the Elastic service.

func NewDeploymentInfoClient

func NewDeploymentInfoClient(subscriptionID string) DeploymentInfoClient

NewDeploymentInfoClient creates an instance of the DeploymentInfoClient client.

func NewDeploymentInfoClientWithBaseURI

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 (DeploymentInfoClient) List

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 (DeploymentInfoClient) ListPreparer

func (client DeploymentInfoClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

ListPreparer prepares the List request.

func (DeploymentInfoClient) ListResponder

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 (DeploymentInfoClient) ListSender

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.

type DeploymentInfoResponse

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"`
}

DeploymentInfoResponse the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.

func (DeploymentInfoResponse) MarshalJSON

func (dir DeploymentInfoResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeploymentInfoResponse.

type DeploymentStatus

type DeploymentStatus string

DeploymentStatus enumerates the values for deployment status.

const (
	// DeploymentStatusHealthy ...
	DeploymentStatusHealthy DeploymentStatus = "Healthy"
	// DeploymentStatusUnhealthy ...
	DeploymentStatusUnhealthy DeploymentStatus = "Unhealthy"
)

func PossibleDeploymentStatusValues

func PossibleDeploymentStatusValues() []DeploymentStatus

PossibleDeploymentStatusValues returns an array of possible values for the DeploymentStatus const type.

type ErrorResponseBody

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"`
}

ErrorResponseBody error response body.

type FilteringTag

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"`
}

FilteringTag the definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.

type IdentityProperties

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"`
}

IdentityProperties identity properties.

func (IdentityProperties) MarshalJSON

func (IP IdentityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IdentityProperties.

type LiftrResourceCategories

type LiftrResourceCategories string

LiftrResourceCategories enumerates the values for liftr resource categories.

const (
	// LiftrResourceCategoriesMonitorLogs ...
	LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs"
	// LiftrResourceCategoriesUnknown ...
	LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown"
)

func PossibleLiftrResourceCategoriesValues

func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories

PossibleLiftrResourceCategoriesValues returns an array of possible values for the LiftrResourceCategories const type.

type LogRules

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"`
}

LogRules set of rules for sending logs for the Monitor resource.

type ManagedIdentityTypes

type ManagedIdentityTypes string

ManagedIdentityTypes enumerates the values for managed identity types.

const (
	// ManagedIdentityTypesSystemAssigned ...
	ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = "SystemAssigned"
)

func PossibleManagedIdentityTypesValues

func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes

PossibleManagedIdentityTypesValues returns an array of possible values for the ManagedIdentityTypes const type.

type MonitorProperties

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"`
}

MonitorProperties properties specific to the monitor resource.

func (MonitorProperties) MarshalJSON

func (mp MonitorProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitorProperties.

type MonitorResource

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"`
}

MonitorResource monitor resource.

func (MonitorResource) MarshalJSON

func (mr MonitorResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitorResource.

type MonitorResourceListResponse

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"`
}

MonitorResourceListResponse response of a list operation.

func (MonitorResourceListResponse) IsEmpty

func (mrlr MonitorResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitorResourceListResponseIterator

type MonitorResourceListResponseIterator struct {
	// contains filtered or unexported fields
}

MonitorResourceListResponseIterator provides access to a complete listing of MonitorResource values.

func NewMonitorResourceListResponseIterator

func NewMonitorResourceListResponseIterator(page MonitorResourceListResponsePage) MonitorResourceListResponseIterator

Creates a new instance of the MonitorResourceListResponseIterator type.

func (*MonitorResourceListResponseIterator) Next

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 (*MonitorResourceListResponseIterator) NextWithContext

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 (MonitorResourceListResponseIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (MonitorResourceListResponseIterator) Response

Response returns the raw server response from the last page request.

func (MonitorResourceListResponseIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type MonitorResourceListResponsePage

type MonitorResourceListResponsePage struct {
	// contains filtered or unexported fields
}

MonitorResourceListResponsePage contains a page of MonitorResource values.

func NewMonitorResourceListResponsePage

Creates a new instance of the MonitorResourceListResponsePage type.

func (*MonitorResourceListResponsePage) Next

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 (*MonitorResourceListResponsePage) NextWithContext

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 (MonitorResourceListResponsePage) NotDone

func (page MonitorResourceListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (MonitorResourceListResponsePage) Response

Response returns the raw server response from the last page request.

func (MonitorResourceListResponsePage) Values

Values returns the slice of values for the current page or nil if there are no values.

type MonitorResourceUpdateParameters

type MonitorResourceUpdateParameters struct {
	// Tags - elastic monitor resource tags.
	Tags map[string]*string `json:"tags"`
}

MonitorResourceUpdateParameters monitor resource update parameters.

func (MonitorResourceUpdateParameters) MarshalJSON

func (mrup MonitorResourceUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitorResourceUpdateParameters.

type MonitoredResource

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"`
}

MonitoredResource the properties of a resource currently being monitored by the Elastic monitor resource.

type MonitoredResourceListResponse

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"`
}

MonitoredResourceListResponse response of a list operation.

func (MonitoredResourceListResponse) IsEmpty

func (mrlr MonitoredResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitoredResourceListResponseIterator

type MonitoredResourceListResponseIterator struct {
	// contains filtered or unexported fields
}

MonitoredResourceListResponseIterator provides access to a complete listing of MonitoredResource values.

func NewMonitoredResourceListResponseIterator

func NewMonitoredResourceListResponseIterator(page MonitoredResourceListResponsePage) MonitoredResourceListResponseIterator

Creates a new instance of the MonitoredResourceListResponseIterator type.

func (*MonitoredResourceListResponseIterator) Next

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 (*MonitoredResourceListResponseIterator) NextWithContext

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 (MonitoredResourceListResponseIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (MonitoredResourceListResponseIterator) Response

Response returns the raw server response from the last page request.

func (MonitoredResourceListResponseIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type MonitoredResourceListResponsePage

type MonitoredResourceListResponsePage struct {
	// contains filtered or unexported fields
}

MonitoredResourceListResponsePage contains a page of MonitoredResource values.

func NewMonitoredResourceListResponsePage

Creates a new instance of the MonitoredResourceListResponsePage type.

func (*MonitoredResourceListResponsePage) Next

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 (*MonitoredResourceListResponsePage) NextWithContext

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 (MonitoredResourceListResponsePage) NotDone

func (page MonitoredResourceListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (MonitoredResourceListResponsePage) Response

Response returns the raw server response from the last page request.

func (MonitoredResourceListResponsePage) Values

Values returns the slice of values for the current page or nil if there are no values.

type MonitoredResourcesClient

type MonitoredResourcesClient struct {
	BaseClient
}

MonitoredResourcesClient is the client for the MonitoredResources methods of the Elastic service.

func NewMonitoredResourcesClient

func NewMonitoredResourcesClient(subscriptionID string) MonitoredResourcesClient

NewMonitoredResourcesClient creates an instance of the MonitoredResourcesClient client.

func NewMonitoredResourcesClientWithBaseURI

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 (MonitoredResourcesClient) List

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 (MonitoredResourcesClient) ListComplete

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 (MonitoredResourcesClient) ListPreparer

func (client MonitoredResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

ListPreparer prepares the List request.

func (MonitoredResourcesClient) ListResponder

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 (MonitoredResourcesClient) ListSender

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.

type MonitoringStatus

type MonitoringStatus string

MonitoringStatus enumerates the values for monitoring status.

const (
	// MonitoringStatusDisabled ...
	MonitoringStatusDisabled MonitoringStatus = "Disabled"
	// MonitoringStatusEnabled ...
	MonitoringStatusEnabled MonitoringStatus = "Enabled"
)

func PossibleMonitoringStatusValues

func PossibleMonitoringStatusValues() []MonitoringStatus

PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type.

type MonitoringTagRules

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"`
}

MonitoringTagRules capture logs and metrics of Azure resources based on ARM tags.

func (MonitoringTagRules) MarshalJSON

func (mtr MonitoringTagRules) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitoringTagRules.

type MonitoringTagRulesListResponse

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"`
}

MonitoringTagRulesListResponse response of a list operation.

func (MonitoringTagRulesListResponse) IsEmpty

func (mtrlr MonitoringTagRulesListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitoringTagRulesListResponseIterator

type MonitoringTagRulesListResponseIterator struct {
	// contains filtered or unexported fields
}

MonitoringTagRulesListResponseIterator provides access to a complete listing of MonitoringTagRules values.

func NewMonitoringTagRulesListResponseIterator

func NewMonitoringTagRulesListResponseIterator(page MonitoringTagRulesListResponsePage) MonitoringTagRulesListResponseIterator

Creates a new instance of the MonitoringTagRulesListResponseIterator type.

func (*MonitoringTagRulesListResponseIterator) Next

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 (*MonitoringTagRulesListResponseIterator) NextWithContext

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 (MonitoringTagRulesListResponseIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (MonitoringTagRulesListResponseIterator) Response

Response returns the raw server response from the last page request.

func (MonitoringTagRulesListResponseIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type MonitoringTagRulesListResponsePage

type MonitoringTagRulesListResponsePage struct {
	// contains filtered or unexported fields
}

MonitoringTagRulesListResponsePage contains a page of MonitoringTagRules values.

func NewMonitoringTagRulesListResponsePage

Creates a new instance of the MonitoringTagRulesListResponsePage type.

func (*MonitoringTagRulesListResponsePage) Next

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 (*MonitoringTagRulesListResponsePage) NextWithContext

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 (MonitoringTagRulesListResponsePage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (MonitoringTagRulesListResponsePage) Response

Response returns the raw server response from the last page request.

func (MonitoringTagRulesListResponsePage) Values

Values returns the slice of values for the current page or nil if there are no values.

type MonitoringTagRulesProperties

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"`
}

MonitoringTagRulesProperties definition of the properties for a TagRules resource.

type MonitorsClient

type MonitorsClient struct {
	BaseClient
}

MonitorsClient is the client for the Monitors methods of the Elastic service.

func NewMonitorsClient

func NewMonitorsClient(subscriptionID string) MonitorsClient

NewMonitorsClient creates an instance of the MonitorsClient client.

func NewMonitorsClientWithBaseURI

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 (MonitorsClient) Create

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 (MonitorsClient) CreatePreparer

func (client MonitorsClient) CreatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (*http.Request, error)

CreatePreparer prepares the Create request.

func (MonitorsClient) CreateResponder

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 (MonitorsClient) CreateSender

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 (MonitorsClient) Delete

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 (MonitorsClient) DeletePreparer

func (client MonitorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (MonitorsClient) DeleteResponder

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 (MonitorsClient) DeleteSender

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 (MonitorsClient) Get

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 (MonitorsClient) GetPreparer

func (client MonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (MonitorsClient) GetResponder

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 (MonitorsClient) GetSender

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 (MonitorsClient) List

func (client MonitorsClient) List(ctx context.Context) (result MonitorResourceListResponsePage, err error)

List sends the list request.

func (MonitorsClient) ListByResourceGroup

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 (MonitorsClient) ListByResourceGroupComplete

func (client MonitorsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponseIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (MonitorsClient) ListByResourceGroupPreparer

func (client MonitorsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (MonitorsClient) ListByResourceGroupResponder

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 (MonitorsClient) ListByResourceGroupSender

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 (MonitorsClient) ListComplete

func (client MonitorsClient) ListComplete(ctx context.Context) (result MonitorResourceListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (MonitorsClient) ListPreparer

func (client MonitorsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (MonitorsClient) ListResponder

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 (MonitorsClient) ListSender

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 (MonitorsClient) Update

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 (MonitorsClient) UpdatePreparer

func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (MonitorsClient) UpdateResponder

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 (MonitorsClient) UpdateSender

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.

type MonitorsCreateFuture

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)
}

MonitorsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*MonitorsCreateFuture) UnmarshalJSON

func (future *MonitorsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type MonitorsDeleteFuture

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)
}

MonitorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*MonitorsDeleteFuture) UnmarshalJSON

func (future *MonitorsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type OperationDisplay

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"`
}

OperationDisplay the object that represents the operation.

type OperationListResult

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"`
}

OperationListResult result of GET request to list the Microsoft.Elastic operations.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of OperationResult values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

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 (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of OperationResult values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

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 (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []OperationResult

Values returns the slice of values for the current page or nil if there are no values.

type OperationName

type OperationName string

OperationName enumerates the values for operation name.

const (
	// OperationNameAdd ...
	OperationNameAdd OperationName = "Add"
	// OperationNameDelete ...
	OperationNameDelete OperationName = "Delete"
)

func PossibleOperationNameValues

func PossibleOperationNameValues() []OperationName

PossibleOperationNameValues returns an array of possible values for the OperationName const type.

type OperationResult

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"`
}

OperationResult a Microsoft.Elastic REST API operation.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the client for the Operations methods of the Elastic service.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List sends the list request.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

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.

type 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"`
}

Properties elastic Resource Properties.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

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

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ResourceProviderDefaultErrorResponse

type ResourceProviderDefaultErrorResponse struct {
	// Error - READ-ONLY; Response body of Error
	Error *ErrorResponseBody `json:"error,omitempty"`
}

ResourceProviderDefaultErrorResponse RP default error response.

func (ResourceProviderDefaultErrorResponse) MarshalJSON

func (rpder ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceProviderDefaultErrorResponse.

type ResourceSku

type ResourceSku struct {
	// Name - Name of the SKU.
	Name *string `json:"name,omitempty"`
}

ResourceSku microsoft.Elastic SKU.

type SendingLogs

type SendingLogs string

SendingLogs enumerates the values for sending logs.

const (
	// SendingLogsFalse ...
	SendingLogsFalse SendingLogs = "False"
	// SendingLogsTrue ...
	SendingLogsTrue SendingLogs = "True"
)

func PossibleSendingLogsValues

func PossibleSendingLogsValues() []SendingLogs

PossibleSendingLogsValues returns an array of possible values for the SendingLogs const type.

type SystemData

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"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type TagAction

type TagAction string

TagAction enumerates the values for tag action.

const (
	// TagActionExclude ...
	TagActionExclude TagAction = "Exclude"
	// TagActionInclude ...
	TagActionInclude TagAction = "Include"
)

func PossibleTagActionValues

func PossibleTagActionValues() []TagAction

PossibleTagActionValues returns an array of possible values for the TagAction const type.

type TagRulesClient

type TagRulesClient struct {
	BaseClient
}

TagRulesClient is the client for the TagRules methods of the Elastic service.

func NewTagRulesClient

func NewTagRulesClient(subscriptionID string) TagRulesClient

NewTagRulesClient creates an instance of the TagRulesClient client.

func NewTagRulesClientWithBaseURI

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 (TagRulesClient) CreateOrUpdate

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 (TagRulesClient) CreateOrUpdatePreparer

func (client TagRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (TagRulesClient) CreateOrUpdateResponder

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 (TagRulesClient) CreateOrUpdateSender

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 (TagRulesClient) Delete

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 (TagRulesClient) DeletePreparer

func (client TagRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (TagRulesClient) DeleteResponder

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 (TagRulesClient) DeleteSender

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 (TagRulesClient) Get

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 (TagRulesClient) GetPreparer

func (client TagRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TagRulesClient) GetResponder

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 (TagRulesClient) GetSender

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 (TagRulesClient) List

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 (TagRulesClient) ListComplete

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 (TagRulesClient) ListPreparer

func (client TagRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

ListPreparer prepares the List request.

func (TagRulesClient) ListResponder

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 (TagRulesClient) ListSender

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.

type TagRulesDeleteFuture

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)
}

TagRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*TagRulesDeleteFuture) UnmarshalJSON

func (future *TagRulesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type UserInfo

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"`
}

UserInfo user Information to be passed to partners.

type VMCollectionClient

type VMCollectionClient struct {
	BaseClient
}

VMCollectionClient is the client for the VMCollection methods of the Elastic service.

func NewVMCollectionClient

func NewVMCollectionClient(subscriptionID string) VMCollectionClient

NewVMCollectionClient creates an instance of the VMCollectionClient client.

func NewVMCollectionClientWithBaseURI

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 (VMCollectionClient) Update

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 (VMCollectionClient) UpdatePreparer

func (client VMCollectionClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *VMCollectionUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VMCollectionClient) UpdateResponder

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 (VMCollectionClient) UpdateSender

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.

type VMCollectionUpdate

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"`
}

VMCollectionUpdate update VM resource collection.

type VMHostClient

type VMHostClient struct {
	BaseClient
}

VMHostClient is the client for the VMHost methods of the Elastic service.

func NewVMHostClient

func NewVMHostClient(subscriptionID string) VMHostClient

NewVMHostClient creates an instance of the VMHostClient client.

func NewVMHostClientWithBaseURI

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 (VMHostClient) List

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 (VMHostClient) ListComplete

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 (VMHostClient) ListPreparer

func (client VMHostClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

ListPreparer prepares the List request.

func (VMHostClient) ListResponder

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 (VMHostClient) ListSender

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.

type VMHostListResponse

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"`
}

VMHostListResponse response of a list operation.

func (VMHostListResponse) IsEmpty

func (vhlr VMHostListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VMHostListResponseIterator

type VMHostListResponseIterator struct {
	// contains filtered or unexported fields
}

VMHostListResponseIterator provides access to a complete listing of VMResources values.

func NewVMHostListResponseIterator

func NewVMHostListResponseIterator(page VMHostListResponsePage) VMHostListResponseIterator

Creates a new instance of the VMHostListResponseIterator type.

func (*VMHostListResponseIterator) Next

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 (*VMHostListResponseIterator) NextWithContext

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 (VMHostListResponseIterator) NotDone

func (iter VMHostListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VMHostListResponseIterator) Response

Response returns the raw server response from the last page request.

func (VMHostListResponseIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VMHostListResponsePage

type VMHostListResponsePage struct {
	// contains filtered or unexported fields
}

VMHostListResponsePage contains a page of VMResources values.

func NewVMHostListResponsePage

func NewVMHostListResponsePage(cur VMHostListResponse, getNextPage func(context.Context, VMHostListResponse) (VMHostListResponse, error)) VMHostListResponsePage

Creates a new instance of the VMHostListResponsePage type.

func (*VMHostListResponsePage) Next

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 (*VMHostListResponsePage) NextWithContext

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 (VMHostListResponsePage) NotDone

func (page VMHostListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VMHostListResponsePage) Response

Response returns the raw server response from the last page request.

func (VMHostListResponsePage) Values

func (page VMHostListResponsePage) Values() []VMResources

Values returns the slice of values for the current page or nil if there are no values.

type VMIngestionClient

type VMIngestionClient struct {
	BaseClient
}

VMIngestionClient is the client for the VMIngestion methods of the Elastic service.

func NewVMIngestionClient

func NewVMIngestionClient(subscriptionID string) VMIngestionClient

NewVMIngestionClient creates an instance of the VMIngestionClient client.

func NewVMIngestionClientWithBaseURI

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 (VMIngestionClient) Details

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 (VMIngestionClient) DetailsPreparer

func (client VMIngestionClient) DetailsPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)

DetailsPreparer prepares the Details request.

func (VMIngestionClient) DetailsResponder

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 (VMIngestionClient) DetailsSender

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.

type VMIngestionDetailsResponse

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"`
}

VMIngestionDetailsResponse the vm ingestion details to install an agent.

type VMResources

type VMResources struct {
	// VMResourceID - The ARM id of the VM resource.
	VMResourceID *string `json:"vmResourceId,omitempty"`
}

VMResources the vm resource properties that is currently being monitored by the Elastic monitor resource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL