Documentation ¶
Index ¶
- type AllTrafficFiltersClient
- type AllTrafficFiltersClientListOptions
- type AllTrafficFiltersClientListResponse
- type AssociateTrafficFilterClient
- type AssociateTrafficFilterClientAssociateResponse
- type AssociateTrafficFilterClientBeginAssociateOptions
- type CloudDeployment
- type CloudUser
- type CompanyInfo
- type CreateAndAssociateIPFilterClient
- type CreateAndAssociateIPFilterClientBeginCreateOptions
- type CreateAndAssociateIPFilterClientCreateResponse
- type CreateAndAssociatePLFilterClient
- type CreateAndAssociatePLFilterClientBeginCreateOptions
- type CreateAndAssociatePLFilterClientCreateResponse
- type CreatedByType
- type DeploymentInfoClient
- type DeploymentInfoClientListOptions
- type DeploymentInfoClientListResponse
- type DeploymentInfoResponse
- type DetachAndDeleteTrafficFilterClient
- type DetachAndDeleteTrafficFilterClientDeleteOptions
- type DetachAndDeleteTrafficFilterClientDeleteResponse
- type DetachTrafficFilterClient
- type DetachTrafficFilterClientBeginUpdateOptions
- type DetachTrafficFilterClientUpdateResponse
- type ElasticDeploymentStatus
- type ExternalUserClient
- type ExternalUserClientCreateOrUpdateOptions
- type ExternalUserClientCreateOrUpdateResponse
- type ExternalUserCreationResponse
- type ExternalUserInfo
- type FilteringTag
- type IdentityProperties
- type LiftrResourceCategories
- type ListAssociatedTrafficFiltersClient
- type ListAssociatedTrafficFiltersClientListOptions
- type ListAssociatedTrafficFiltersClientListResponse
- type LogRules
- type ManagedIdentityTypes
- type MonitorClient
- type MonitorClientBeginUpgradeOptions
- type MonitorClientUpgradeResponse
- type MonitorProperties
- type MonitorResource
- type MonitorResourceListResponse
- type MonitorResourceUpdateParameters
- type MonitorUpgrade
- type MonitoredResource
- type MonitoredResourceListResponse
- type MonitoredResourcesClient
- type MonitoredResourcesClientListOptions
- type MonitoredResourcesClientListResponse
- type MonitoringStatus
- type MonitoringTagRules
- type MonitoringTagRulesListResponse
- type MonitoringTagRulesProperties
- type MonitorsClient
- func (client *MonitorsClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, ...) (*runtime.Poller[MonitorsClientCreateResponse], error)
- func (client *MonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, ...) (*runtime.Poller[MonitorsClientDeleteResponse], error)
- func (client *MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ...) (MonitorsClientGetResponse, error)
- func (client *MonitorsClient) NewListByResourceGroupPager(resourceGroupName string, options *MonitorsClientListByResourceGroupOptions) *runtime.Pager[MonitorsClientListByResourceGroupResponse]
- func (client *MonitorsClient) NewListPager(options *MonitorsClientListOptions) *runtime.Pager[MonitorsClientListResponse]
- func (client *MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, ...) (MonitorsClientUpdateResponse, error)
- type MonitorsClientBeginCreateOptions
- type MonitorsClientBeginDeleteOptions
- type MonitorsClientCreateResponse
- type MonitorsClientDeleteResponse
- type MonitorsClientGetOptions
- type MonitorsClientGetResponse
- type MonitorsClientListByResourceGroupOptions
- type MonitorsClientListByResourceGroupResponse
- type MonitorsClientListOptions
- type MonitorsClientListResponse
- type MonitorsClientUpdateOptions
- type MonitorsClientUpdateResponse
- type OperationDisplay
- type OperationListResult
- type OperationName
- type OperationResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Properties
- type ProvisioningState
- type ResourceSKU
- type SendingLogs
- type SystemData
- type TagAction
- type TagRulesClient
- func (client *TagRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, ...) (*runtime.Poller[TagRulesClientDeleteResponse], error)
- func (client *TagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ...) (TagRulesClientCreateOrUpdateResponse, error)
- func (client *TagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ...) (TagRulesClientGetResponse, error)
- func (client *TagRulesClient) NewListPager(resourceGroupName string, monitorName string, ...) *runtime.Pager[TagRulesClientListResponse]
- type TagRulesClientBeginDeleteOptions
- type TagRulesClientCreateOrUpdateOptions
- type TagRulesClientCreateOrUpdateResponse
- type TagRulesClientDeleteResponse
- type TagRulesClientGetOptions
- type TagRulesClientGetResponse
- type TagRulesClientListOptions
- type TagRulesClientListResponse
- type TrafficFilter
- type TrafficFilterResponse
- type TrafficFilterRule
- type TrafficFiltersClient
- type TrafficFiltersClientDeleteOptions
- type TrafficFiltersClientDeleteResponse
- type Type
- type UpgradableVersionsClient
- type UpgradableVersionsClientDetailsOptions
- type UpgradableVersionsClientDetailsResponse
- type UpgradableVersionsList
- type UserInfo
- type VMCollectionClient
- type VMCollectionClientUpdateOptions
- type VMCollectionClientUpdateResponse
- type VMCollectionUpdate
- type VMHostClient
- type VMHostClientListOptions
- type VMHostClientListResponse
- type VMHostListResponse
- type VMIngestionClient
- type VMIngestionClientDetailsOptions
- type VMIngestionClientDetailsResponse
- type VMIngestionDetailsResponse
- type VMResources
Examples ¶
- AllTrafficFiltersClient.List
- AssociateTrafficFilterClient.BeginAssociate
- CreateAndAssociateIPFilterClient.BeginCreate
- CreateAndAssociatePLFilterClient.BeginCreate
- DeploymentInfoClient.List
- DetachAndDeleteTrafficFilterClient.Delete
- DetachTrafficFilterClient.BeginUpdate
- ExternalUserClient.CreateOrUpdate
- ListAssociatedTrafficFiltersClient.List
- MonitorClient.BeginUpgrade
- MonitoredResourcesClient.NewListPager
- MonitorsClient.BeginCreate
- MonitorsClient.BeginDelete
- MonitorsClient.Get
- MonitorsClient.NewListByResourceGroupPager
- MonitorsClient.NewListPager
- MonitorsClient.Update
- OperationsClient.NewListPager
- TagRulesClient.BeginDelete
- TagRulesClient.CreateOrUpdate
- TagRulesClient.Get
- TagRulesClient.NewListPager
- TrafficFiltersClient.Delete
- UpgradableVersionsClient.Details
- VMCollectionClient.Update
- VMHostClient.NewListPager
- VMIngestionClient.Details
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllTrafficFiltersClient ¶ added in v0.6.0
type AllTrafficFiltersClient struct {
// contains filtered or unexported fields
}
AllTrafficFiltersClient contains the methods for the AllTrafficFilters group. Don't use this type directly, use NewAllTrafficFiltersClient() instead.
func NewAllTrafficFiltersClient ¶ added in v0.6.0
func NewAllTrafficFiltersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AllTrafficFiltersClient, error)
NewAllTrafficFiltersClient creates a new instance of AllTrafficFiltersClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AllTrafficFiltersClient) List ¶ added in v0.6.0
func (client *AllTrafficFiltersClient) List(ctx context.Context, resourceGroupName string, monitorName string, options *AllTrafficFiltersClientListOptions) (AllTrafficFiltersClientListResponse, error)
List - Get the list of all traffic filters for the account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - AllTrafficFiltersClientListOptions contains the optional parameters for the AllTrafficFiltersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/AllTrafficFilters_list.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewAllTrafficFiltersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type AllTrafficFiltersClientListOptions ¶ added in v0.6.0
type AllTrafficFiltersClientListOptions struct { }
AllTrafficFiltersClientListOptions contains the optional parameters for the AllTrafficFiltersClient.List method.
type AllTrafficFiltersClientListResponse ¶ added in v0.6.0
type AllTrafficFiltersClientListResponse struct {
TrafficFilterResponse
}
AllTrafficFiltersClientListResponse contains the response from method AllTrafficFiltersClient.List.
type AssociateTrafficFilterClient ¶ added in v0.6.0
type AssociateTrafficFilterClient struct {
// contains filtered or unexported fields
}
AssociateTrafficFilterClient contains the methods for the AssociateTrafficFilter group. Don't use this type directly, use NewAssociateTrafficFilterClient() instead.
func NewAssociateTrafficFilterClient ¶ added in v0.6.0
func NewAssociateTrafficFilterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AssociateTrafficFilterClient, error)
NewAssociateTrafficFilterClient creates a new instance of AssociateTrafficFilterClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AssociateTrafficFilterClient) BeginAssociate ¶ added in v0.6.0
func (client *AssociateTrafficFilterClient) BeginAssociate(ctx context.Context, resourceGroupName string, monitorName string, options *AssociateTrafficFilterClientBeginAssociateOptions) (*runtime.Poller[AssociateTrafficFilterClientAssociateResponse], error)
BeginAssociate - Associate traffic filter for the given deployment. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - AssociateTrafficFilterClientBeginAssociateOptions contains the optional parameters for the AssociateTrafficFilterClient.BeginAssociate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/AssociateTrafficFilter_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewAssociateTrafficFilterClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginAssociate(ctx, "myResourceGroup", "myMonitor", &armelastic.AssociateTrafficFilterClientBeginAssociateOptions{RulesetID: to.Ptr("31d91b5afb6f4c2eaaf104c97b1991dd")}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
type AssociateTrafficFilterClientAssociateResponse ¶ added in v0.6.0
type AssociateTrafficFilterClientAssociateResponse struct { }
AssociateTrafficFilterClientAssociateResponse contains the response from method AssociateTrafficFilterClient.Associate.
type AssociateTrafficFilterClientBeginAssociateOptions ¶ added in v0.6.0
type AssociateTrafficFilterClientBeginAssociateOptions struct { // Resumes the LRO from the provided token. ResumeToken string // Ruleset Id of the filter RulesetID *string }
AssociateTrafficFilterClientBeginAssociateOptions contains the optional parameters for the AssociateTrafficFilterClient.BeginAssociate method.
type CloudDeployment ¶ added in v0.2.0
type CloudDeployment struct { // READ-ONLY; Associated Azure subscription Id for the elastic deployment. AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty" azure:"ro"` // READ-ONLY; Elastic deployment Id DeploymentID *string `json:"deploymentId,omitempty" azure:"ro"` // READ-ONLY; Region where Deployment at Elastic side took place. ElasticsearchRegion *string `json:"elasticsearchRegion,omitempty" azure:"ro"` // READ-ONLY; Elasticsearch ingestion endpoint of the Elastic deployment. ElasticsearchServiceURL *string `json:"elasticsearchServiceUrl,omitempty" azure:"ro"` // READ-ONLY; Kibana endpoint of the Elastic deployment. KibanaServiceURL *string `json:"kibanaServiceUrl,omitempty" azure:"ro"` // READ-ONLY; Kibana dashboard sso URL of the Elastic deployment. KibanaSsoURL *string `json:"kibanaSsoUrl,omitempty" azure:"ro"` // READ-ONLY; Elastic deployment name Name *string `json:"name,omitempty" azure:"ro"` }
CloudDeployment - Details of the user's elastic deployment associated with the monitor resource.
func (CloudDeployment) MarshalJSON ¶ added in v0.6.0
func (c CloudDeployment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudDeployment.
func (*CloudDeployment) UnmarshalJSON ¶ added in v0.6.0
func (c *CloudDeployment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CloudDeployment.
type CloudUser ¶ added in v0.2.0
type CloudUser struct { // READ-ONLY; Elastic cloud default dashboard sso URL of the Elastic user account. ElasticCloudSsoDefaultURL *string `json:"elasticCloudSsoDefaultUrl,omitempty" azure:"ro"` // READ-ONLY; Email of the Elastic User Account. EmailAddress *string `json:"emailAddress,omitempty" azure:"ro"` // READ-ONLY; User Id of the elastic account of the User. ID *string `json:"id,omitempty" azure:"ro"` }
CloudUser - Details of the user's elastic account.
func (CloudUser) MarshalJSON ¶ added in v0.6.0
MarshalJSON implements the json.Marshaller interface for type CloudUser.
func (*CloudUser) UnmarshalJSON ¶ added in v0.6.0
UnmarshalJSON implements the json.Unmarshaller interface for type CloudUser.
type CompanyInfo ¶
type CompanyInfo struct { // Business of the company Business *string `json:"business,omitempty"` // Country of the company location. Country *string `json:"country,omitempty"` // Domain of the company Domain *string `json:"domain,omitempty"` // Number of employees in the company EmployeesNumber *string `json:"employeesNumber,omitempty"` // State of the company location. State *string `json:"state,omitempty"` }
CompanyInfo - Company information of the user to be passed to partners.
func (CompanyInfo) MarshalJSON ¶ added in v0.6.0
func (c CompanyInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CompanyInfo.
func (*CompanyInfo) UnmarshalJSON ¶ added in v0.6.0
func (c *CompanyInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CompanyInfo.
type CreateAndAssociateIPFilterClient ¶ added in v0.6.0
type CreateAndAssociateIPFilterClient struct {
// contains filtered or unexported fields
}
CreateAndAssociateIPFilterClient contains the methods for the CreateAndAssociateIPFilter group. Don't use this type directly, use NewCreateAndAssociateIPFilterClient() instead.
func NewCreateAndAssociateIPFilterClient ¶ added in v0.6.0
func NewCreateAndAssociateIPFilterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CreateAndAssociateIPFilterClient, error)
NewCreateAndAssociateIPFilterClient creates a new instance of CreateAndAssociateIPFilterClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CreateAndAssociateIPFilterClient) BeginCreate ¶ added in v0.6.0
func (client *CreateAndAssociateIPFilterClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, options *CreateAndAssociateIPFilterClientBeginCreateOptions) (*runtime.Poller[CreateAndAssociateIPFilterClientCreateResponse], error)
BeginCreate - Create and Associate IP traffic filter for the given deployment. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - CreateAndAssociateIPFilterClientBeginCreateOptions contains the optional parameters for the CreateAndAssociateIPFilterClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/IPTrafficFilter_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewCreateAndAssociateIPFilterClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myResourceGroup", "myMonitor", &armelastic.CreateAndAssociateIPFilterClientBeginCreateOptions{IPs: to.Ptr("192.168.131.0, 192.168.132.6/22"), Name: nil, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
type CreateAndAssociateIPFilterClientBeginCreateOptions ¶ added in v0.6.0
type CreateAndAssociateIPFilterClientBeginCreateOptions struct { // List of ips IPs *string // Name of the traffic filter Name *string // Resumes the LRO from the provided token. ResumeToken string }
CreateAndAssociateIPFilterClientBeginCreateOptions contains the optional parameters for the CreateAndAssociateIPFilterClient.BeginCreate method.
type CreateAndAssociateIPFilterClientCreateResponse ¶ added in v0.6.0
type CreateAndAssociateIPFilterClientCreateResponse struct { }
CreateAndAssociateIPFilterClientCreateResponse contains the response from method CreateAndAssociateIPFilterClient.Create.
type CreateAndAssociatePLFilterClient ¶ added in v0.6.0
type CreateAndAssociatePLFilterClient struct {
// contains filtered or unexported fields
}
CreateAndAssociatePLFilterClient contains the methods for the CreateAndAssociatePLFilter group. Don't use this type directly, use NewCreateAndAssociatePLFilterClient() instead.
func NewCreateAndAssociatePLFilterClient ¶ added in v0.6.0
func NewCreateAndAssociatePLFilterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CreateAndAssociatePLFilterClient, error)
NewCreateAndAssociatePLFilterClient creates a new instance of CreateAndAssociatePLFilterClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CreateAndAssociatePLFilterClient) BeginCreate ¶ added in v0.6.0
func (client *CreateAndAssociatePLFilterClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, options *CreateAndAssociatePLFilterClientBeginCreateOptions) (*runtime.Poller[CreateAndAssociatePLFilterClientCreateResponse], error)
BeginCreate - Create and Associate private link traffic filter for the given deployment. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - CreateAndAssociatePLFilterClientBeginCreateOptions contains the optional parameters for the CreateAndAssociatePLFilterClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/PrivateLinkTrafficFilters_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewCreateAndAssociatePLFilterClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myResourceGroup", "myMonitor", &armelastic.CreateAndAssociatePLFilterClientBeginCreateOptions{Name: nil, PrivateEndpointGUID: to.Ptr("fdb54d3b-e85e-4d08-8958-0d2f7g523df9"), PrivateEndpointName: to.Ptr("myPrivateEndpoint"), }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
type CreateAndAssociatePLFilterClientBeginCreateOptions ¶ added in v0.6.0
type CreateAndAssociatePLFilterClientBeginCreateOptions struct { // Name of the traffic filter Name *string // Guid of the private endpoint PrivateEndpointGUID *string // Name of the private endpoint PrivateEndpointName *string // Resumes the LRO from the provided token. ResumeToken string }
CreateAndAssociatePLFilterClientBeginCreateOptions contains the optional parameters for the CreateAndAssociatePLFilterClient.BeginCreate method.
type CreateAndAssociatePLFilterClientCreateResponse ¶ added in v0.6.0
type CreateAndAssociatePLFilterClientCreateResponse struct { }
CreateAndAssociatePLFilterClientCreateResponse contains the response from method CreateAndAssociatePLFilterClient.Create.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DeploymentInfoClient ¶
type DeploymentInfoClient struct {
// contains filtered or unexported fields
}
DeploymentInfoClient contains the methods for the DeploymentInfo group. Don't use this type directly, use NewDeploymentInfoClient() instead.
func NewDeploymentInfoClient ¶
func NewDeploymentInfoClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeploymentInfoClient, error)
NewDeploymentInfoClient creates a new instance of DeploymentInfoClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DeploymentInfoClient) List ¶
func (client *DeploymentInfoClient) List(ctx context.Context, resourceGroupName string, monitorName string, options *DeploymentInfoClientListOptions) (DeploymentInfoClientListResponse, error)
List - Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - DeploymentInfoClientListOptions contains the optional parameters for the DeploymentInfoClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/DeploymentInfo_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewDeploymentInfoClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type DeploymentInfoClientListOptions ¶ added in v0.2.0
type DeploymentInfoClientListOptions struct { }
DeploymentInfoClientListOptions contains the optional parameters for the DeploymentInfoClient.List method.
type DeploymentInfoClientListResponse ¶ added in v0.2.0
type DeploymentInfoClientListResponse struct {
DeploymentInfoResponse
}
DeploymentInfoClientListResponse contains the response from method DeploymentInfoClient.List.
type DeploymentInfoResponse ¶
type DeploymentInfoResponse struct { // READ-ONLY; Disk capacity of the elasticsearch in Elastic cloud deployment. DiskCapacity *string `json:"diskCapacity,omitempty" azure:"ro"` // READ-ONLY; RAM capacity of the elasticsearch in Elastic cloud deployment. MemoryCapacity *string `json:"memoryCapacity,omitempty" azure:"ro"` // READ-ONLY; The Elastic deployment status. Status *ElasticDeploymentStatus `json:"status,omitempty" azure:"ro"` // READ-ONLY; Version of the elasticsearch in Elastic cloud deployment. Version *string `json:"version,omitempty" azure:"ro"` }
DeploymentInfoResponse - The properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
func (DeploymentInfoResponse) MarshalJSON ¶ added in v0.6.0
func (d DeploymentInfoResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentInfoResponse.
func (*DeploymentInfoResponse) UnmarshalJSON ¶ added in v0.6.0
func (d *DeploymentInfoResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentInfoResponse.
type DetachAndDeleteTrafficFilterClient ¶ added in v0.6.0
type DetachAndDeleteTrafficFilterClient struct {
// contains filtered or unexported fields
}
DetachAndDeleteTrafficFilterClient contains the methods for the DetachAndDeleteTrafficFilter group. Don't use this type directly, use NewDetachAndDeleteTrafficFilterClient() instead.
func NewDetachAndDeleteTrafficFilterClient ¶ added in v0.6.0
func NewDetachAndDeleteTrafficFilterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DetachAndDeleteTrafficFilterClient, error)
NewDetachAndDeleteTrafficFilterClient creates a new instance of DetachAndDeleteTrafficFilterClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DetachAndDeleteTrafficFilterClient) Delete ¶ added in v0.6.0
func (client *DetachAndDeleteTrafficFilterClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, options *DetachAndDeleteTrafficFilterClientDeleteOptions) (DetachAndDeleteTrafficFilterClientDeleteResponse, error)
Delete - Detach and Delete traffic filter from the given deployment. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - DetachAndDeleteTrafficFilterClientDeleteOptions contains the optional parameters for the DetachAndDeleteTrafficFilterClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/DetachAndDeleteTrafficFilter_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewDetachAndDeleteTrafficFilterClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "myResourceGroup", "myMonitor", &armelastic.DetachAndDeleteTrafficFilterClientDeleteOptions{RulesetID: to.Ptr("31d91b5afb6f4c2eaaf104c97b1991dd")}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type DetachAndDeleteTrafficFilterClientDeleteOptions ¶ added in v0.6.0
type DetachAndDeleteTrafficFilterClientDeleteOptions struct { // Ruleset Id of the filter RulesetID *string }
DetachAndDeleteTrafficFilterClientDeleteOptions contains the optional parameters for the DetachAndDeleteTrafficFilterClient.Delete method.
type DetachAndDeleteTrafficFilterClientDeleteResponse ¶ added in v0.6.0
type DetachAndDeleteTrafficFilterClientDeleteResponse struct { }
DetachAndDeleteTrafficFilterClientDeleteResponse contains the response from method DetachAndDeleteTrafficFilterClient.Delete.
type DetachTrafficFilterClient ¶ added in v0.6.0
type DetachTrafficFilterClient struct {
// contains filtered or unexported fields
}
DetachTrafficFilterClient contains the methods for the DetachTrafficFilter group. Don't use this type directly, use NewDetachTrafficFilterClient() instead.
func NewDetachTrafficFilterClient ¶ added in v0.6.0
func NewDetachTrafficFilterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DetachTrafficFilterClient, error)
NewDetachTrafficFilterClient creates a new instance of DetachTrafficFilterClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DetachTrafficFilterClient) BeginUpdate ¶ added in v0.6.0
func (client *DetachTrafficFilterClient) BeginUpdate(ctx context.Context, resourceGroupName string, monitorName string, options *DetachTrafficFilterClientBeginUpdateOptions) (*runtime.Poller[DetachTrafficFilterClientUpdateResponse], error)
BeginUpdate - Detach traffic filter for the given deployment. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - DetachTrafficFilterClientBeginUpdateOptions contains the optional parameters for the DetachTrafficFilterClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/DetachTrafficFilters_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewDetachTrafficFilterClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myMonitor", &armelastic.DetachTrafficFilterClientBeginUpdateOptions{RulesetID: to.Ptr("31d91b5afb6f4c2eaaf104c97b1991dd")}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
type DetachTrafficFilterClientBeginUpdateOptions ¶ added in v0.6.0
type DetachTrafficFilterClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string // Ruleset Id of the filter RulesetID *string }
DetachTrafficFilterClientBeginUpdateOptions contains the optional parameters for the DetachTrafficFilterClient.BeginUpdate method.
type DetachTrafficFilterClientUpdateResponse ¶ added in v0.6.0
type DetachTrafficFilterClientUpdateResponse struct { }
DetachTrafficFilterClientUpdateResponse contains the response from method DetachTrafficFilterClient.Update.
type ElasticDeploymentStatus ¶
type ElasticDeploymentStatus string
ElasticDeploymentStatus - Flag specifying if the Elastic deployment status is healthy or not.
const ( ElasticDeploymentStatusHealthy ElasticDeploymentStatus = "Healthy" ElasticDeploymentStatusUnhealthy ElasticDeploymentStatus = "Unhealthy" )
func PossibleElasticDeploymentStatusValues ¶
func PossibleElasticDeploymentStatusValues() []ElasticDeploymentStatus
PossibleElasticDeploymentStatusValues returns the possible values for the ElasticDeploymentStatus const type.
type ExternalUserClient ¶ added in v0.6.0
type ExternalUserClient struct {
// contains filtered or unexported fields
}
ExternalUserClient contains the methods for the ExternalUser group. Don't use this type directly, use NewExternalUserClient() instead.
func NewExternalUserClient ¶ added in v0.6.0
func NewExternalUserClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExternalUserClient, error)
NewExternalUserClient creates a new instance of ExternalUserClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExternalUserClient) CreateOrUpdate ¶ added in v0.6.0
func (client *ExternalUserClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, options *ExternalUserClientCreateOrUpdateOptions) (ExternalUserClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create User inside elastic deployment which are used by customers to perform operations on the elastic deployment If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - ExternalUserClientCreateOrUpdateOptions contains the optional parameters for the ExternalUserClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/ExternalUserInfo.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewExternalUserClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "myResourceGroup", "myMonitor", &armelastic.ExternalUserClientCreateOrUpdateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ExternalUserClientCreateOrUpdateOptions ¶ added in v0.6.0
type ExternalUserClientCreateOrUpdateOptions struct { // Elastic External User Creation Parameters Body *ExternalUserInfo }
ExternalUserClientCreateOrUpdateOptions contains the optional parameters for the ExternalUserClient.CreateOrUpdate method.
type ExternalUserClientCreateOrUpdateResponse ¶ added in v0.6.0
type ExternalUserClientCreateOrUpdateResponse struct {
ExternalUserCreationResponse
}
ExternalUserClientCreateOrUpdateResponse contains the response from method ExternalUserClient.CreateOrUpdate.
type ExternalUserCreationResponse ¶ added in v0.6.0
type ExternalUserCreationResponse struct { // READ-ONLY; Shows if user is created or updated Created *bool `json:"created,omitempty" azure:"ro"` }
ExternalUserCreationResponse - The properties of the response we got from elastic while creating external user
func (ExternalUserCreationResponse) MarshalJSON ¶ added in v0.6.0
func (e ExternalUserCreationResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExternalUserCreationResponse.
func (*ExternalUserCreationResponse) UnmarshalJSON ¶ added in v0.6.0
func (e *ExternalUserCreationResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExternalUserCreationResponse.
type ExternalUserInfo ¶ added in v0.6.0
type ExternalUserInfo struct { // Email id of the user to be created or updated EmailID *string `json:"emailId,omitempty"` // Full name of the user to be created or updated FullName *string `json:"fullName,omitempty"` // Password of the user to be created or updated Password *string `json:"password,omitempty"` // Roles to be assigned for created or updated user Roles []*string `json:"roles,omitempty"` // Username of the user to be created or updated UserName *string `json:"userName,omitempty"` }
ExternalUserInfo - The properties of the request required for creating user on elastic side
func (ExternalUserInfo) MarshalJSON ¶ added in v0.6.0
func (e ExternalUserInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExternalUserInfo.
func (*ExternalUserInfo) UnmarshalJSON ¶ added in v0.6.0
func (e *ExternalUserInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExternalUserInfo.
type FilteringTag ¶
type FilteringTag struct { // Valid actions for a filtering tag. Action *TagAction `json:"action,omitempty"` // The name (also known as the key) of the tag. Name *string `json:"name,omitempty"` // The value of the tag. Value *string `json:"value,omitempty"` }
FilteringTag - The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.
func (FilteringTag) MarshalJSON ¶ added in v0.6.0
func (f FilteringTag) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FilteringTag.
func (*FilteringTag) UnmarshalJSON ¶ added in v0.6.0
func (f *FilteringTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FilteringTag.
type IdentityProperties ¶
type IdentityProperties struct { // Managed identity type. Type *ManagedIdentityTypes `json:"type,omitempty"` // READ-ONLY; The identity ID. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
IdentityProperties - Identity properties.
func (IdentityProperties) MarshalJSON ¶ added in v0.6.0
func (i IdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IdentityProperties.
func (*IdentityProperties) UnmarshalJSON ¶ added in v0.6.0
func (i *IdentityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IdentityProperties.
type LiftrResourceCategories ¶
type LiftrResourceCategories string
const ( LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs" LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown" )
func PossibleLiftrResourceCategoriesValues ¶
func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories
PossibleLiftrResourceCategoriesValues returns the possible values for the LiftrResourceCategories const type.
type ListAssociatedTrafficFiltersClient ¶ added in v0.6.0
type ListAssociatedTrafficFiltersClient struct {
// contains filtered or unexported fields
}
ListAssociatedTrafficFiltersClient contains the methods for the ListAssociatedTrafficFilters group. Don't use this type directly, use NewListAssociatedTrafficFiltersClient() instead.
func NewListAssociatedTrafficFiltersClient ¶ added in v0.6.0
func NewListAssociatedTrafficFiltersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ListAssociatedTrafficFiltersClient, error)
NewListAssociatedTrafficFiltersClient creates a new instance of ListAssociatedTrafficFiltersClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ListAssociatedTrafficFiltersClient) List ¶ added in v0.6.0
func (client *ListAssociatedTrafficFiltersClient) List(ctx context.Context, resourceGroupName string, monitorName string, options *ListAssociatedTrafficFiltersClientListOptions) (ListAssociatedTrafficFiltersClientListResponse, error)
List - Get the list of all associated traffic filters for the given deployment. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - ListAssociatedTrafficFiltersClientListOptions contains the optional parameters for the ListAssociatedTrafficFiltersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/AssociatedFiltersForDeployment_list.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewListAssociatedTrafficFiltersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ListAssociatedTrafficFiltersClientListOptions ¶ added in v0.6.0
type ListAssociatedTrafficFiltersClientListOptions struct { }
ListAssociatedTrafficFiltersClientListOptions contains the optional parameters for the ListAssociatedTrafficFiltersClient.List method.
type ListAssociatedTrafficFiltersClientListResponse ¶ added in v0.6.0
type ListAssociatedTrafficFiltersClientListResponse struct {
TrafficFilterResponse
}
ListAssociatedTrafficFiltersClientListResponse contains the response from method ListAssociatedTrafficFiltersClient.List.
type LogRules ¶
type LogRules struct { // 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"` // Flag specifying if AAD logs should be sent for the Monitor resource. SendAADLogs *bool `json:"sendAadLogs,omitempty"` // Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. SendActivityLogs *bool `json:"sendActivityLogs,omitempty"` // Flag specifying if subscription logs should be sent for the Monitor resource. SendSubscriptionLogs *bool `json:"sendSubscriptionLogs,omitempty"` }
LogRules - Set of rules for sending logs for the Monitor resource.
func (LogRules) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type LogRules.
func (*LogRules) UnmarshalJSON ¶ added in v0.6.0
UnmarshalJSON implements the json.Unmarshaller interface for type LogRules.
type ManagedIdentityTypes ¶
type ManagedIdentityTypes string
ManagedIdentityTypes - Managed Identity types.
const (
ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = "SystemAssigned"
)
func PossibleManagedIdentityTypesValues ¶
func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes
PossibleManagedIdentityTypesValues returns the possible values for the ManagedIdentityTypes const type.
type MonitorClient ¶ added in v0.6.0
type MonitorClient struct {
// contains filtered or unexported fields
}
MonitorClient contains the methods for the Monitor group. Don't use this type directly, use NewMonitorClient() instead.
func NewMonitorClient ¶ added in v0.6.0
func NewMonitorClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitorClient, error)
NewMonitorClient creates a new instance of MonitorClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MonitorClient) BeginUpgrade ¶ added in v0.6.0
func (client *MonitorClient) BeginUpgrade(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorClientBeginUpgradeOptions) (*runtime.Poller[MonitorClientUpgradeResponse], error)
BeginUpgrade - Upgradable version for a monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - MonitorClientBeginUpgradeOptions contains the optional parameters for the MonitorClient.BeginUpgrade method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitor_Upgrade.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpgrade(ctx, "myResourceGroup", "myMonitor", &armelastic.MonitorClientBeginUpgradeOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
type MonitorClientBeginUpgradeOptions ¶ added in v0.6.0
type MonitorClientBeginUpgradeOptions struct { // Elastic Monitor Upgrade Parameters Body *MonitorUpgrade // Resumes the LRO from the provided token. ResumeToken string }
MonitorClientBeginUpgradeOptions contains the optional parameters for the MonitorClient.BeginUpgrade method.
type MonitorClientUpgradeResponse ¶ added in v0.6.0
type MonitorClientUpgradeResponse struct { }
MonitorClientUpgradeResponse contains the response from method MonitorClient.Upgrade.
type MonitorProperties ¶
type MonitorProperties struct { // Elastic cloud properties. ElasticProperties *Properties `json:"elasticProperties,omitempty"` // Flag specifying if the resource monitoring is enabled or disabled. MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty"` // Provisioning state of the monitor resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` // User information. UserInfo *UserInfo `json:"userInfo,omitempty"` // Version of elastic of the monitor resource Version *string `json:"version,omitempty"` // READ-ONLY LiftrResourceCategory *LiftrResourceCategories `json:"liftrResourceCategory,omitempty" azure:"ro"` // READ-ONLY; The priority of the resource. LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty" azure:"ro"` }
MonitorProperties - Properties specific to the monitor resource.
func (MonitorProperties) MarshalJSON ¶ added in v0.6.0
func (m MonitorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorProperties.
func (*MonitorProperties) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorProperties.
type MonitorResource ¶ added in v0.2.0
type MonitorResource struct { // REQUIRED; The location of the monitor resource Location *string `json:"location,omitempty"` // Identity properties of the monitor resource. Identity *IdentityProperties `json:"identity,omitempty"` // Properties of the monitor resource. Properties *MonitorProperties `json:"properties,omitempty"` // SKU of the monitor resource. SKU *ResourceSKU `json:"sku,omitempty"` // The tags of the monitor resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; ARM id of the monitor resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Name of the monitor resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system metadata relating to this resource SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the monitor resource. Type *string `json:"type,omitempty" azure:"ro"` }
MonitorResource - Monitor resource.
func (MonitorResource) MarshalJSON ¶ added in v0.2.0
func (m MonitorResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorResource.
func (*MonitorResource) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitorResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorResource.
type MonitorResourceListResponse ¶ added in v0.2.0
type MonitorResourceListResponse struct { // Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` // Results of a list operation. Value []*MonitorResource `json:"value,omitempty"` }
MonitorResourceListResponse - Response of a list operation.
func (MonitorResourceListResponse) MarshalJSON ¶ added in v0.2.0
func (m MonitorResourceListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorResourceListResponse.
func (*MonitorResourceListResponse) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitorResourceListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorResourceListResponse.
type MonitorResourceUpdateParameters ¶ added in v0.2.0
type MonitorResourceUpdateParameters struct { // elastic monitor resource tags. Tags map[string]*string `json:"tags,omitempty"` }
MonitorResourceUpdateParameters - Monitor resource update parameters.
func (MonitorResourceUpdateParameters) MarshalJSON ¶ added in v0.2.0
func (m MonitorResourceUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorResourceUpdateParameters.
func (*MonitorResourceUpdateParameters) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitorResourceUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorResourceUpdateParameters.
type MonitorUpgrade ¶ added in v0.6.0
type MonitorUpgrade struct { // Version to which the elastic monitor should be upgraded to Version *string `json:"version,omitempty"` }
MonitorUpgrade - Upgrade elastic monitor version
func (MonitorUpgrade) MarshalJSON ¶ added in v0.6.0
func (m MonitorUpgrade) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitorUpgrade.
func (*MonitorUpgrade) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitorUpgrade) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitorUpgrade.
type MonitoredResource ¶
type MonitoredResource struct { // The ARM id of the resource. ID *string `json:"id,omitempty"` // Reason for why the resource is sending logs (or why it is not sending). ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"` // Flag indicating the status of the resource for sending logs operation to Elastic. SendingLogs *SendingLogs `json:"sendingLogs,omitempty"` }
MonitoredResource - The properties of a resource currently being monitored by the Elastic monitor resource.
func (MonitoredResource) MarshalJSON ¶ added in v0.6.0
func (m MonitoredResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoredResource.
func (*MonitoredResource) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitoredResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoredResource.
type MonitoredResourceListResponse ¶
type MonitoredResourceListResponse struct { // Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` // Results of a list operation. Value []*MonitoredResource `json:"value,omitempty"` }
MonitoredResourceListResponse - Response of a list operation.
func (MonitoredResourceListResponse) MarshalJSON ¶
func (m MonitoredResourceListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoredResourceListResponse.
func (*MonitoredResourceListResponse) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitoredResourceListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoredResourceListResponse.
type MonitoredResourcesClient ¶
type MonitoredResourcesClient struct {
// contains filtered or unexported fields
}
MonitoredResourcesClient contains the methods for the MonitoredResources group. Don't use this type directly, use NewMonitoredResourcesClient() instead.
func NewMonitoredResourcesClient ¶
func NewMonitoredResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitoredResourcesClient, error)
NewMonitoredResourcesClient creates a new instance of MonitoredResourcesClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MonitoredResourcesClient) NewListPager ¶ added in v0.4.0
func (client *MonitoredResourcesClient) NewListPager(resourceGroupName string, monitorName string, options *MonitoredResourcesClientListOptions) *runtime.Pager[MonitoredResourcesClientListResponse]
NewListPager - List the resources currently being monitored by the Elastic monitor resource. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - MonitoredResourcesClientListOptions contains the optional parameters for the MonitoredResourcesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/MonitoredResources_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitoredResourcesClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myResourceGroup", "myMonitor", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type MonitoredResourcesClientListOptions ¶ added in v0.2.0
type MonitoredResourcesClientListOptions struct { }
MonitoredResourcesClientListOptions contains the optional parameters for the MonitoredResourcesClient.List method.
type MonitoredResourcesClientListResponse ¶ added in v0.2.0
type MonitoredResourcesClientListResponse struct {
MonitoredResourceListResponse
}
MonitoredResourcesClientListResponse contains the response from method MonitoredResourcesClient.List.
type MonitoringStatus ¶
type MonitoringStatus string
MonitoringStatus - Flag specifying if the resource monitoring is enabled or disabled.
const ( MonitoringStatusDisabled MonitoringStatus = "Disabled" MonitoringStatusEnabled MonitoringStatus = "Enabled" )
func PossibleMonitoringStatusValues ¶
func PossibleMonitoringStatusValues() []MonitoringStatus
PossibleMonitoringStatusValues returns the possible values for the MonitoringStatus const type.
type MonitoringTagRules ¶
type MonitoringTagRules struct { // Properties of the monitoring tag rules. Properties *MonitoringTagRulesProperties `json:"properties,omitempty"` // READ-ONLY; The id of the rule set. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Name of the rule set. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system metadata relating to this resource SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the rule set. Type *string `json:"type,omitempty" azure:"ro"` }
MonitoringTagRules - Capture logs and metrics of Azure resources based on ARM tags.
func (MonitoringTagRules) MarshalJSON ¶ added in v0.6.0
func (m MonitoringTagRules) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoringTagRules.
func (*MonitoringTagRules) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitoringTagRules) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoringTagRules.
type MonitoringTagRulesListResponse ¶
type MonitoringTagRulesListResponse struct { // Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` // Results of a list operation. Value []*MonitoringTagRules `json:"value,omitempty"` }
MonitoringTagRulesListResponse - Response of a list operation.
func (MonitoringTagRulesListResponse) MarshalJSON ¶
func (m MonitoringTagRulesListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoringTagRulesListResponse.
func (*MonitoringTagRulesListResponse) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitoringTagRulesListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoringTagRulesListResponse.
type MonitoringTagRulesProperties ¶
type MonitoringTagRulesProperties struct { // Rules for sending logs. LogRules *LogRules `json:"logRules,omitempty"` // Provisioning state of the monitoring tag rules. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
MonitoringTagRulesProperties - Definition of the properties for a TagRules resource.
func (MonitoringTagRulesProperties) MarshalJSON ¶ added in v0.6.0
func (m MonitoringTagRulesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoringTagRulesProperties.
func (*MonitoringTagRulesProperties) UnmarshalJSON ¶ added in v0.6.0
func (m *MonitoringTagRulesProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoringTagRulesProperties.
type MonitorsClient ¶
type MonitorsClient struct {
// contains filtered or unexported fields
}
MonitorsClient contains the methods for the Monitors group. Don't use this type directly, use NewMonitorsClient() instead.
func NewMonitorsClient ¶
func NewMonitorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitorsClient, error)
NewMonitorsClient creates a new instance of MonitorsClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MonitorsClient) BeginCreate ¶
func (client *MonitorsClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientBeginCreateOptions) (*runtime.Poller[MonitorsClientCreateResponse], error)
BeginCreate - Create a monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myResourceGroup", "myMonitor", &armelastic.MonitorsClientBeginCreateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*MonitorsClient) BeginDelete ¶
func (client *MonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientBeginDeleteOptions) (*runtime.Poller[MonitorsClientDeleteResponse], error)
BeginDelete - Delete a monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*MonitorsClient) Get ¶
func (client *MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetOptions) (MonitorsClientGetResponse, error)
Get - Get the properties of a specific monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*MonitorsClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *MonitorsClient) NewListByResourceGroupPager(resourceGroupName string, options *MonitorsClientListByResourceGroupOptions) *runtime.Pager[MonitorsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all monitors under the specified resource group. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. options - MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("myResourceGroup", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*MonitorsClient) NewListPager ¶ added in v0.4.0
func (client *MonitorsClient) NewListPager(options *MonitorsClientListOptions) *runtime.Pager[MonitorsClientListResponse]
NewListPager - List all monitors under the specified subscription. Generated from API version 2022-07-01-preview options - MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*MonitorsClient) Update ¶
func (client *MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientUpdateOptions) (MonitorsClientUpdateResponse, error)
Update - Update a monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "myResourceGroup", "myMonitor", &armelastic.MonitorsClientUpdateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type MonitorsClientBeginCreateOptions ¶ added in v0.2.0
type MonitorsClientBeginCreateOptions struct { // Elastic monitor resource model Body *MonitorResource // Resumes the LRO from the provided token. ResumeToken string }
MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method.
type MonitorsClientBeginDeleteOptions ¶ added in v0.2.0
type MonitorsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.
type MonitorsClientCreateResponse ¶ added in v0.2.0
type MonitorsClientCreateResponse struct {
MonitorResource
}
MonitorsClientCreateResponse contains the response from method MonitorsClient.Create.
type MonitorsClientDeleteResponse ¶ added in v0.2.0
type MonitorsClientDeleteResponse struct { }
MonitorsClientDeleteResponse contains the response from method MonitorsClient.Delete.
type MonitorsClientGetOptions ¶ added in v0.2.0
type MonitorsClientGetOptions struct { }
MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.
type MonitorsClientGetResponse ¶ added in v0.2.0
type MonitorsClientGetResponse struct {
MonitorResource
}
MonitorsClientGetResponse contains the response from method MonitorsClient.Get.
type MonitorsClientListByResourceGroupOptions ¶ added in v0.2.0
type MonitorsClientListByResourceGroupOptions struct { }
MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.
type MonitorsClientListByResourceGroupResponse ¶ added in v0.2.0
type MonitorsClientListByResourceGroupResponse struct {
MonitorResourceListResponse
}
MonitorsClientListByResourceGroupResponse contains the response from method MonitorsClient.ListByResourceGroup.
type MonitorsClientListOptions ¶ added in v0.2.0
type MonitorsClientListOptions struct { }
MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method.
type MonitorsClientListResponse ¶ added in v0.2.0
type MonitorsClientListResponse struct {
MonitorResourceListResponse
}
MonitorsClientListResponse contains the response from method MonitorsClient.List.
type MonitorsClientUpdateOptions ¶ added in v0.2.0
type MonitorsClientUpdateOptions struct { // Elastic resource model update parameters. Body *MonitorResourceUpdateParameters }
MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.
type MonitorsClientUpdateResponse ¶ added in v0.2.0
type MonitorsClientUpdateResponse struct {
MonitorResource
}
MonitorsClientUpdateResponse contains the response from method MonitorsClient.Update.
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation, e.g., 'Write monitors'. Description *string `json:"description,omitempty"` // Operation type, e.g., read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider, i.e., Microsoft.Elastic. Provider *string `json:"provider,omitempty"` // Type on which the operation is performed, e.g., 'monitors'. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that represents the operation.
func (OperationDisplay) MarshalJSON ¶ added in v0.6.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v0.6.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of operations supported by the Microsoft.Elastic provider. Value []*OperationResult `json:"value,omitempty"` }
OperationListResult - Result of GET request to list the Microsoft.Elastic operations.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶ added in v0.6.0
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationName ¶
type OperationName string
OperationName - Operation to be performed on the given vm resource id.
const ( OperationNameAdd OperationName = "Add" OperationNameDelete OperationName = "Delete" )
func PossibleOperationNameValues ¶
func PossibleOperationNameValues() []OperationName
PossibleOperationNameValues returns the possible values for the OperationName const type.
type OperationResult ¶
type OperationResult struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Operation name, i.e., {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` // Origin of the operation Origin *string `json:"origin,omitempty"` }
OperationResult - A Microsoft.Elastic REST API operation.
func (OperationResult) MarshalJSON ¶ added in v0.6.0
func (o OperationResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationResult.
func (*OperationResult) UnmarshalJSON ¶ added in v0.6.0
func (o *OperationResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List all operations provided by Microsoft.Elastic. Generated from API version 2022-07-01-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type Properties ¶ added in v0.2.0
type Properties struct { // Details of the elastic cloud deployment. ElasticCloudDeployment *CloudDeployment `json:"elasticCloudDeployment,omitempty"` // Details of the user's elastic account. ElasticCloudUser *CloudUser `json:"elasticCloudUser,omitempty"` }
Properties - Elastic Resource Properties.
func (Properties) MarshalJSON ¶ added in v0.6.0
func (p Properties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Properties.
func (*Properties) UnmarshalJSON ¶ added in v0.6.0
func (p *Properties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Properties.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Provisioning state of Elastic resource.
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ResourceSKU ¶
type ResourceSKU struct { // REQUIRED; Name of the SKU. Name *string `json:"name,omitempty"` }
ResourceSKU - Microsoft.Elastic SKU.
func (ResourceSKU) MarshalJSON ¶ added in v0.6.0
func (r ResourceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKU.
func (*ResourceSKU) UnmarshalJSON ¶ added in v0.6.0
func (r *ResourceSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKU.
type SendingLogs ¶
type SendingLogs string
SendingLogs - Flag indicating the status of the resource for sending logs operation to Elastic.
const ( SendingLogsFalse SendingLogs = "False" SendingLogsTrue SendingLogs = "True" )
func PossibleSendingLogsValues ¶
func PossibleSendingLogsValues() []SendingLogs
PossibleSendingLogsValues returns the possible values for the SendingLogs const type.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TagAction ¶
type TagAction string
TagAction - Valid actions for a filtering tag. Exclusion takes priority over inclusion.
func PossibleTagActionValues ¶
func PossibleTagActionValues() []TagAction
PossibleTagActionValues returns the possible values for the TagAction const type.
type TagRulesClient ¶
type TagRulesClient struct {
// contains filtered or unexported fields
}
TagRulesClient contains the methods for the TagRules group. Don't use this type directly, use NewTagRulesClient() instead.
func NewTagRulesClient ¶
func NewTagRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TagRulesClient, error)
NewTagRulesClient creates a new instance of TagRulesClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*TagRulesClient) BeginDelete ¶
func (client *TagRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *TagRulesClientBeginDeleteOptions) (*runtime.Poller[TagRulesClientDeleteResponse], error)
BeginDelete - Delete a tag rule set for a given monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name ruleSetName - Tag Rule Set resource name options - TagRulesClientBeginDeleteOptions contains the optional parameters for the TagRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/TagRules_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myResourceGroup", "myMonitor", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*TagRulesClient) CreateOrUpdate ¶
func (client *TagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *TagRulesClientCreateOrUpdateOptions) (TagRulesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update a tag rule set for a given monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name ruleSetName - Tag Rule Set resource name options - TagRulesClientCreateOrUpdateOptions contains the optional parameters for the TagRulesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/TagRules_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "myResourceGroup", "myMonitor", "default", &armelastic.TagRulesClientCreateOrUpdateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*TagRulesClient) Get ¶
func (client *TagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *TagRulesClientGetOptions) (TagRulesClientGetResponse, error)
Get - Get a tag rule set for a given monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name ruleSetName - Tag Rule Set resource name options - TagRulesClientGetOptions contains the optional parameters for the TagRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/TagRules_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myResourceGroup", "myMonitor", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*TagRulesClient) NewListPager ¶ added in v0.4.0
func (client *TagRulesClient) NewListPager(resourceGroupName string, monitorName string, options *TagRulesClientListOptions) *runtime.Pager[TagRulesClientListResponse]
NewListPager - List the tag rules for a given monitor resource. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - TagRulesClientListOptions contains the optional parameters for the TagRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/TagRules_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myResourceGroup", "myMonitor", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type TagRulesClientBeginDeleteOptions ¶ added in v0.2.0
type TagRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
TagRulesClientBeginDeleteOptions contains the optional parameters for the TagRulesClient.BeginDelete method.
type TagRulesClientCreateOrUpdateOptions ¶ added in v0.2.0
type TagRulesClientCreateOrUpdateOptions struct { // request body of MonitoringTagRules Body *MonitoringTagRules }
TagRulesClientCreateOrUpdateOptions contains the optional parameters for the TagRulesClient.CreateOrUpdate method.
type TagRulesClientCreateOrUpdateResponse ¶ added in v0.2.0
type TagRulesClientCreateOrUpdateResponse struct {
MonitoringTagRules
}
TagRulesClientCreateOrUpdateResponse contains the response from method TagRulesClient.CreateOrUpdate.
type TagRulesClientDeleteResponse ¶ added in v0.2.0
type TagRulesClientDeleteResponse struct { }
TagRulesClientDeleteResponse contains the response from method TagRulesClient.Delete.
type TagRulesClientGetOptions ¶ added in v0.2.0
type TagRulesClientGetOptions struct { }
TagRulesClientGetOptions contains the optional parameters for the TagRulesClient.Get method.
type TagRulesClientGetResponse ¶ added in v0.2.0
type TagRulesClientGetResponse struct {
MonitoringTagRules
}
TagRulesClientGetResponse contains the response from method TagRulesClient.Get.
type TagRulesClientListOptions ¶ added in v0.2.0
type TagRulesClientListOptions struct { }
TagRulesClientListOptions contains the optional parameters for the TagRulesClient.List method.
type TagRulesClientListResponse ¶ added in v0.2.0
type TagRulesClientListResponse struct {
MonitoringTagRulesListResponse
}
TagRulesClientListResponse contains the response from method TagRulesClient.List.
type TrafficFilter ¶ added in v0.6.0
type TrafficFilter struct { // Description of the elastic filter Description *string `json:"description,omitempty"` // Id of the elastic filter ID *string `json:"id,omitempty"` // IncludeByDefault for the elastic filter IncludeByDefault *bool `json:"includeByDefault,omitempty"` // Name of the elastic filter Name *string `json:"name,omitempty"` // Region of the elastic filter Region *string `json:"region,omitempty"` // Rules in the elastic filter Rules []*TrafficFilterRule `json:"rules,omitempty"` // Type of the elastic filter Type *Type `json:"type,omitempty"` }
TrafficFilter - Elastic traffic filter object
func (TrafficFilter) MarshalJSON ¶ added in v0.6.0
func (t TrafficFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficFilter.
func (*TrafficFilter) UnmarshalJSON ¶ added in v0.6.0
func (t *TrafficFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficFilter.
type TrafficFilterResponse ¶ added in v0.6.0
type TrafficFilterResponse struct { // List of elastic traffic filters in the account Rulesets []*TrafficFilter `json:"rulesets,omitempty"` }
TrafficFilterResponse - List of elastic traffic filters in the account
func (TrafficFilterResponse) MarshalJSON ¶ added in v0.6.0
func (t TrafficFilterResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficFilterResponse.
func (*TrafficFilterResponse) UnmarshalJSON ¶ added in v0.6.0
func (t *TrafficFilterResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficFilterResponse.
type TrafficFilterRule ¶ added in v0.6.0
type TrafficFilterRule struct { // Guid of Private Endpoint in the elastic filter rule AzureEndpointGUID *string `json:"azureEndpointGuid,omitempty"` // Name of the Private Endpoint in the elastic filter rule AzureEndpointName *string `json:"azureEndpointName,omitempty"` // Description of the elastic filter rule Description *string `json:"description,omitempty"` // Id of the elastic filter rule ID *string `json:"id,omitempty"` // IP of the elastic filter rule Source *string `json:"source,omitempty"` }
TrafficFilterRule - Elastic traffic filter rule object
func (TrafficFilterRule) MarshalJSON ¶ added in v0.6.0
func (t TrafficFilterRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficFilterRule.
func (*TrafficFilterRule) UnmarshalJSON ¶ added in v0.6.0
func (t *TrafficFilterRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficFilterRule.
type TrafficFiltersClient ¶ added in v0.6.0
type TrafficFiltersClient struct {
// contains filtered or unexported fields
}
TrafficFiltersClient contains the methods for the TrafficFilters group. Don't use this type directly, use NewTrafficFiltersClient() instead.
func NewTrafficFiltersClient ¶ added in v0.6.0
func NewTrafficFiltersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TrafficFiltersClient, error)
NewTrafficFiltersClient creates a new instance of TrafficFiltersClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*TrafficFiltersClient) Delete ¶ added in v0.6.0
func (client *TrafficFiltersClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, options *TrafficFiltersClientDeleteOptions) (TrafficFiltersClientDeleteResponse, error)
Delete - Delete traffic filter from the account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - TrafficFiltersClientDeleteOptions contains the optional parameters for the TrafficFiltersClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/TrafficFilters_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewTrafficFiltersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "myResourceGroup", "myMonitor", &armelastic.TrafficFiltersClientDeleteOptions{RulesetID: to.Ptr("31d91b5afb6f4c2eaaf104c97b1991dd")}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type TrafficFiltersClientDeleteOptions ¶ added in v0.6.0
type TrafficFiltersClientDeleteOptions struct { // Ruleset Id of the filter RulesetID *string }
TrafficFiltersClientDeleteOptions contains the optional parameters for the TrafficFiltersClient.Delete method.
type TrafficFiltersClientDeleteResponse ¶ added in v0.6.0
type TrafficFiltersClientDeleteResponse struct { }
TrafficFiltersClientDeleteResponse contains the response from method TrafficFiltersClient.Delete.
type Type ¶ added in v0.6.0
type Type string
Type - Type of the elastic filter
func PossibleTypeValues ¶ added in v0.6.0
func PossibleTypeValues() []Type
PossibleTypeValues returns the possible values for the Type const type.
type UpgradableVersionsClient ¶ added in v0.6.0
type UpgradableVersionsClient struct {
// contains filtered or unexported fields
}
UpgradableVersionsClient contains the methods for the UpgradableVersions group. Don't use this type directly, use NewUpgradableVersionsClient() instead.
func NewUpgradableVersionsClient ¶ added in v0.6.0
func NewUpgradableVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UpgradableVersionsClient, error)
NewUpgradableVersionsClient creates a new instance of UpgradableVersionsClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*UpgradableVersionsClient) Details ¶ added in v0.6.0
func (client *UpgradableVersionsClient) Details(ctx context.Context, resourceGroupName string, monitorName string, options *UpgradableVersionsClientDetailsOptions) (UpgradableVersionsClientDetailsResponse, error)
Details - List of upgradable versions for a given monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - UpgradableVersionsClientDetailsOptions contains the optional parameters for the UpgradableVersionsClient.Details method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/UpgradableVersions_Details.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewUpgradableVersionsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Details(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type UpgradableVersionsClientDetailsOptions ¶ added in v0.6.0
type UpgradableVersionsClientDetailsOptions struct { }
UpgradableVersionsClientDetailsOptions contains the optional parameters for the UpgradableVersionsClient.Details method.
type UpgradableVersionsClientDetailsResponse ¶ added in v0.6.0
type UpgradableVersionsClientDetailsResponse struct {
UpgradableVersionsList
}
UpgradableVersionsClientDetailsResponse contains the response from method UpgradableVersionsClient.Details.
type UpgradableVersionsList ¶ added in v0.6.0
type UpgradableVersionsList struct { // Current version of the elastic monitor CurrentVersion *string `json:"currentVersion,omitempty"` // Stack Versions that this version can upgrade to UpgradableVersions []*string `json:"upgradableVersions,omitempty"` }
UpgradableVersionsList - Stack Versions that this version can upgrade to
func (UpgradableVersionsList) MarshalJSON ¶ added in v0.6.0
func (u UpgradableVersionsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpgradableVersionsList.
func (*UpgradableVersionsList) UnmarshalJSON ¶ added in v0.6.0
func (u *UpgradableVersionsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpgradableVersionsList.
type UserInfo ¶
type UserInfo struct { // Company information of the user to be passed to partners. CompanyInfo *CompanyInfo `json:"companyInfo,omitempty"` // Company name of the user CompanyName *string `json:"companyName,omitempty"` // Email of the user used by Elastic for contacting them if needed EmailAddress *string `json:"emailAddress,omitempty"` // First name of the user FirstName *string `json:"firstName,omitempty"` // Last name of the user LastName *string `json:"lastName,omitempty"` }
UserInfo - User Information to be passed to partners.
func (UserInfo) MarshalJSON ¶ added in v0.6.0
MarshalJSON implements the json.Marshaller interface for type UserInfo.
func (*UserInfo) UnmarshalJSON ¶ added in v0.6.0
UnmarshalJSON implements the json.Unmarshaller interface for type UserInfo.
type VMCollectionClient ¶
type VMCollectionClient struct {
// contains filtered or unexported fields
}
VMCollectionClient contains the methods for the VMCollection group. Don't use this type directly, use NewVMCollectionClient() instead.
func NewVMCollectionClient ¶
func NewVMCollectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VMCollectionClient, error)
NewVMCollectionClient creates a new instance of VMCollectionClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VMCollectionClient) Update ¶
func (client *VMCollectionClient) Update(ctx context.Context, resourceGroupName string, monitorName string, options *VMCollectionClientUpdateOptions) (VMCollectionClientUpdateResponse, error)
Update - Update the vm details that will be monitored by the Elastic monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - VMCollectionClientUpdateOptions contains the optional parameters for the VMCollectionClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/VMCollection_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewVMCollectionClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Update(ctx, "myResourceGroup", "myMonitor", &armelastic.VMCollectionClientUpdateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type VMCollectionClientUpdateOptions ¶ added in v0.2.0
type VMCollectionClientUpdateOptions struct { // VM resource Id Body *VMCollectionUpdate }
VMCollectionClientUpdateOptions contains the optional parameters for the VMCollectionClient.Update method.
type VMCollectionClientUpdateResponse ¶ added in v0.2.0
type VMCollectionClientUpdateResponse struct { }
VMCollectionClientUpdateResponse contains the response from method VMCollectionClient.Update.
type VMCollectionUpdate ¶
type VMCollectionUpdate struct { // Operation to be performed for given VM. OperationName *OperationName `json:"operationName,omitempty"` // ARM id of the VM resource. VMResourceID *string `json:"vmResourceId,omitempty"` }
VMCollectionUpdate - Update VM resource collection.
func (VMCollectionUpdate) MarshalJSON ¶ added in v0.6.0
func (v VMCollectionUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMCollectionUpdate.
func (*VMCollectionUpdate) UnmarshalJSON ¶ added in v0.6.0
func (v *VMCollectionUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMCollectionUpdate.
type VMHostClient ¶
type VMHostClient struct {
// contains filtered or unexported fields
}
VMHostClient contains the methods for the VMHost group. Don't use this type directly, use NewVMHostClient() instead.
func NewVMHostClient ¶
func NewVMHostClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VMHostClient, error)
NewVMHostClient creates a new instance of VMHostClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VMHostClient) NewListPager ¶ added in v0.4.0
func (client *VMHostClient) NewListPager(resourceGroupName string, monitorName string, options *VMHostClientListOptions) *runtime.Pager[VMHostClientListResponse]
NewListPager - List the vm resources currently being monitored by the Elastic monitor resource. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - VMHostClientListOptions contains the optional parameters for the VMHostClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/VMHost_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewVMHostClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myResourceGroup", "myMonitor", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VMHostClientListOptions ¶ added in v0.2.0
type VMHostClientListOptions struct { }
VMHostClientListOptions contains the optional parameters for the VMHostClient.List method.
type VMHostClientListResponse ¶ added in v0.2.0
type VMHostClientListResponse struct {
VMHostListResponse
}
VMHostClientListResponse contains the response from method VMHostClient.List.
type VMHostListResponse ¶
type VMHostListResponse struct { // Link to the next Vm resource Id, if any. NextLink *string `json:"nextLink,omitempty"` // Results of a list operation. Value []*VMResources `json:"value,omitempty"` }
VMHostListResponse - Response of a list operation.
func (VMHostListResponse) MarshalJSON ¶
func (v VMHostListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMHostListResponse.
func (*VMHostListResponse) UnmarshalJSON ¶ added in v0.6.0
func (v *VMHostListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMHostListResponse.
type VMIngestionClient ¶
type VMIngestionClient struct {
// contains filtered or unexported fields
}
VMIngestionClient contains the methods for the VMIngestion group. Don't use this type directly, use NewVMIngestionClient() instead.
func NewVMIngestionClient ¶
func NewVMIngestionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VMIngestionClient, error)
NewVMIngestionClient creates a new instance of VMIngestionClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VMIngestionClient) Details ¶
func (client *VMIngestionClient) Details(ctx context.Context, resourceGroupName string, monitorName string, options *VMIngestionClientDetailsOptions) (VMIngestionClientDetailsResponse, error)
Details - List the vm ingestion details that will be monitored by the Elastic monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-07-01-preview resourceGroupName - The name of the resource group to which the Elastic resource belongs. monitorName - Monitor resource name options - VMIngestionClientDetailsOptions contains the optional parameters for the VMIngestionClient.Details method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/VMIngestion_Details.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armelastic.NewVMIngestionClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Details(ctx, "myResourceGroup", "myMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VMIngestionClientDetailsOptions ¶ added in v0.2.0
type VMIngestionClientDetailsOptions struct { }
VMIngestionClientDetailsOptions contains the optional parameters for the VMIngestionClient.Details method.
type VMIngestionClientDetailsResponse ¶ added in v0.2.0
type VMIngestionClientDetailsResponse struct {
VMIngestionDetailsResponse
}
VMIngestionClientDetailsResponse contains the response from method VMIngestionClient.Details.
type VMIngestionDetailsResponse ¶
type VMIngestionDetailsResponse struct { // The cloudId of given Elastic monitor resource. CloudID *string `json:"cloudId,omitempty"` // Ingestion details to install agent on given VM. IngestionKey *string `json:"ingestionKey,omitempty"` }
VMIngestionDetailsResponse - The vm ingestion details to install an agent.
func (VMIngestionDetailsResponse) MarshalJSON ¶ added in v0.6.0
func (v VMIngestionDetailsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMIngestionDetailsResponse.
func (*VMIngestionDetailsResponse) UnmarshalJSON ¶ added in v0.6.0
func (v *VMIngestionDetailsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMIngestionDetailsResponse.
type VMResources ¶
type VMResources struct { // 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.
func (VMResources) MarshalJSON ¶ added in v0.6.0
func (v VMResources) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMResources.
func (*VMResources) UnmarshalJSON ¶ added in v0.6.0
func (v *VMResources) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMResources.
Source Files ¶
- alltrafficfilters_client.go
- associatetrafficfilter_client.go
- build.go
- constants.go
- createandassociateipfilter_client.go
- createandassociateplfilter_client.go
- deploymentinfo_client.go
- detachanddeletetrafficfilter_client.go
- detachtrafficfilter_client.go
- externaluser_client.go
- listassociatedtrafficfilters_client.go
- models.go
- models_serde.go
- monitor_client.go
- monitoredresources_client.go
- monitors_client.go
- operations_client.go
- response_types.go
- tagrules_client.go
- time_rfc3339.go
- trafficfilters_client.go
- upgradableversions_client.go
- vmcollection_client.go
- vmhost_client.go
- vmingestion_client.go