hosts

package
v0.20241023.1122425 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts Documentation

The hosts SDK allows for interaction with Azure Resource Manager datadog (API Version 2021-03-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/2021-03-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", "monitorName")

// 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMonitorID

func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)

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

type DatadogInstallMethod

type DatadogInstallMethod struct {
	InstallerVersion *string `json:"installerVersion,omitempty"`
	Tool             *string `json:"tool,omitempty"`
	ToolVersion      *string `json:"toolVersion,omitempty"`
}

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

type MonitorId struct {
	SubscriptionId    string
	ResourceGroupName string
	MonitorName       string
}

MonitorId is a struct representing the Resource ID for a Monitor

func NewMonitorID

func NewMonitorID(subscriptionId string, resourceGroupName string, monitorName string) MonitorId

NewMonitorID returns a new MonitorId struct

func ParseMonitorID

func ParseMonitorID(input string) (*MonitorId, error)

ParseMonitorID parses 'input' into a MonitorId

func ParseMonitorIDInsensitively

func ParseMonitorIDInsensitively(input string) (*MonitorId, error)

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

func (id *MonitorId) FromParseResult(input resourceids.ParseResult) error

func (MonitorId) ID

func (id MonitorId) ID() string

ID returns the formatted Monitor ID

func (MonitorId) Segments

func (id MonitorId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Monitor ID

func (MonitorId) String

func (id MonitorId) String() string

String returns a human-readable description of this Monitor ID

type MonitorsListHostsCompleteResult

type MonitorsListHostsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DatadogHost
}

type MonitorsListHostsCustomPager added in v0.20240628.1153531

type MonitorsListHostsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *MonitorsListHostsCustomPager) NextPageLink() *odata.Link

type MonitorsListHostsOperationResponse

type MonitorsListHostsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DatadogHost
}

Jump to

Keyboard shortcuts

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