README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2022-06-01/hosts
Documentation
The hosts
SDK allows for interaction with the Azure Resource Manager Service datadog
(API Version 2022-06-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2022-06-01/hosts"
Client Initialization
client := hosts.NewHostsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: HostsClient.MonitorsListHosts
ctx := context.TODO()
id := hosts.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")
// alternatively `client.MonitorsListHosts(ctx, id)` can be used to do batched pagination
items, err := client.MonitorsListHostsComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation
¶
Index ¶
- func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)
- type DatadogHost
- type DatadogHostMetadata
- type DatadogHostOperationPredicate
- type DatadogInstallMethod
- type DatadogLogsAgent
- type HostsClient
- func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (result MonitorsListHostsOperationResponse, err error)
- func (c HostsClient) MonitorsListHostsComplete(ctx context.Context, id MonitorId) (MonitorsListHostsCompleteResult, error)
- func (c HostsClient) MonitorsListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogHostOperationPredicate) (result MonitorsListHostsCompleteResult, err error)
- type MonitorId
- type MonitorsListHostsCompleteResult
- type MonitorsListHostsOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateMonitorID ¶
ValidateMonitorID checks that 'input' can be parsed as a Monitor ID
Types ¶
type DatadogHost ¶
type DatadogHost struct { Aliases *[]string `json:"aliases,omitempty"` Apps *[]string `json:"apps,omitempty"` Meta *DatadogHostMetadata `json:"meta,omitempty"` Name *string `json:"name,omitempty"` }
type DatadogHostMetadata ¶
type DatadogHostMetadata struct { AgentVersion *string `json:"agentVersion,omitempty"` InstallMethod *DatadogInstallMethod `json:"installMethod,omitempty"` LogsAgent *DatadogLogsAgent `json:"logsAgent,omitempty"` }
type DatadogHostOperationPredicate ¶
type DatadogHostOperationPredicate struct {
Name *string
}
func (DatadogHostOperationPredicate) Matches ¶
func (p DatadogHostOperationPredicate) Matches(input DatadogHost) bool
type DatadogInstallMethod ¶
type DatadogLogsAgent ¶
type DatadogLogsAgent struct {
Transport *string `json:"transport,omitempty"`
}
type HostsClient ¶
type HostsClient struct {
Client *resourcemanager.Client
}
func NewHostsClientWithBaseURI ¶
func NewHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*HostsClient, error)
func (HostsClient) MonitorsListHosts ¶
func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (result MonitorsListHostsOperationResponse, err error)
MonitorsListHosts ...
func (HostsClient) MonitorsListHostsComplete ¶
func (c HostsClient) MonitorsListHostsComplete(ctx context.Context, id MonitorId) (MonitorsListHostsCompleteResult, error)
MonitorsListHostsComplete retrieves all the results into a single object
func (HostsClient) MonitorsListHostsCompleteMatchingPredicate ¶
func (c HostsClient) MonitorsListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogHostOperationPredicate) (result MonitorsListHostsCompleteResult, err error)
MonitorsListHostsCompleteMatchingPredicate retrieves all the results and then applies the predicate
type MonitorId ¶
MonitorId is a struct representing the Resource ID for a Monitor
func NewMonitorID ¶
NewMonitorID returns a new MonitorId struct
func ParseMonitorID ¶
ParseMonitorID parses 'input' into a MonitorId
func ParseMonitorIDInsensitively ¶
ParseMonitorIDInsensitively parses 'input' case-insensitively into a MonitorId note: this method should only be used for API response data and not user input
func (MonitorId) Segments ¶
func (id MonitorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Monitor ID
type MonitorsListHostsCompleteResult ¶
type MonitorsListHostsCompleteResult struct {
Items []DatadogHost
}
type MonitorsListHostsOperationResponse ¶
type MonitorsListHostsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatadogHost }