monitoredresources

package
v0.20230807.1063129 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

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

The monitoredresources SDK allows for interaction with the Azure Resource Manager Service 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/monitoredresources"

Client Initialization

client := monitoredresources.NewMonitoredResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MonitoredResourcesClient.MonitorsListMonitoredResources

ctx := context.TODO()
id := monitoredresources.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

// alternatively `client.MonitorsListMonitoredResources(ctx, id)` can be used to do batched pagination
items, err := client.MonitorsListMonitoredResourcesComplete(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 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) 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 MonitoredResource

type MonitoredResource struct {
	Id                     *string `json:"id,omitempty"`
	ReasonForLogsStatus    *string `json:"reasonForLogsStatus,omitempty"`
	ReasonForMetricsStatus *string `json:"reasonForMetricsStatus,omitempty"`
	SendingLogs            *bool   `json:"sendingLogs,omitempty"`
	SendingMetrics         *bool   `json:"sendingMetrics,omitempty"`
}

type MonitoredResourceOperationPredicate

type MonitoredResourceOperationPredicate struct {
	Id                     *string
	ReasonForLogsStatus    *string
	ReasonForMetricsStatus *string
	SendingLogs            *bool
	SendingMetrics         *bool
}

func (MonitoredResourceOperationPredicate) Matches

type MonitoredResourcesClient

type MonitoredResourcesClient struct {
	Client *resourcemanager.Client
}

func NewMonitoredResourcesClientWithBaseURI

func NewMonitoredResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitoredResourcesClient, error)

func (MonitoredResourcesClient) MonitorsListMonitoredResources

func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Context, id MonitorId) (result MonitorsListMonitoredResourcesOperationResponse, err error)

MonitorsListMonitoredResources ...

func (MonitoredResourcesClient) MonitorsListMonitoredResourcesComplete

func (c MonitoredResourcesClient) MonitorsListMonitoredResourcesComplete(ctx context.Context, id MonitorId) (MonitorsListMonitoredResourcesCompleteResult, error)

MonitorsListMonitoredResourcesComplete retrieves all the results into a single object

func (MonitoredResourcesClient) MonitorsListMonitoredResourcesCompleteMatchingPredicate

func (c MonitoredResourcesClient) MonitorsListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceOperationPredicate) (result MonitorsListMonitoredResourcesCompleteResult, err error)

MonitorsListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate

type MonitorsListMonitoredResourcesCompleteResult

type MonitorsListMonitoredResourcesCompleteResult struct {
	Items []MonitoredResource
}

type MonitorsListMonitoredResourcesOperationResponse

type MonitorsListMonitoredResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]MonitoredResource
}

Jump to

Keyboard shortcuts

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