datadog

package
v60.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package datadog implements the Azure ARM Datadog service API version 2020-02-01-preview.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Datadog
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIKey

type APIKey struct {
	autorest.Response `json:"-"`
	// CreatedBy - The user that created the API key.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Name - The name of the API key.
	Name *string `json:"name,omitempty"`
	// Key - The value of the API key.
	Key *string `json:"key,omitempty"`
	// Created - The time of creation of the API key.
	Created *string `json:"created,omitempty"`
}

APIKey ...

type APIKeyListResponse

type APIKeyListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]APIKey `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

APIKeyListResponse response of a list operation.

func (APIKeyListResponse) IsEmpty

func (aklr APIKeyListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type APIKeyListResponseIterator

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

APIKeyListResponseIterator provides access to a complete listing of APIKey values.

func NewAPIKeyListResponseIterator

func NewAPIKeyListResponseIterator(page APIKeyListResponsePage) APIKeyListResponseIterator

Creates a new instance of the APIKeyListResponseIterator type.

func (*APIKeyListResponseIterator) Next

func (iter *APIKeyListResponseIterator) Next() error

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

func (*APIKeyListResponseIterator) NextWithContext

func (iter *APIKeyListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (APIKeyListResponseIterator) NotDone

func (iter APIKeyListResponseIterator) NotDone() bool

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

func (APIKeyListResponseIterator) Response

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

func (APIKeyListResponseIterator) Value

func (iter APIKeyListResponseIterator) Value() APIKey

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

type APIKeyListResponsePage

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

APIKeyListResponsePage contains a page of APIKey values.

func NewAPIKeyListResponsePage

func NewAPIKeyListResponsePage(cur APIKeyListResponse, getNextPage func(context.Context, APIKeyListResponse) (APIKeyListResponse, error)) APIKeyListResponsePage

Creates a new instance of the APIKeyListResponsePage type.

func (*APIKeyListResponsePage) Next

func (page *APIKeyListResponsePage) Next() error

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

func (*APIKeyListResponsePage) NextWithContext

func (page *APIKeyListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (APIKeyListResponsePage) NotDone

func (page APIKeyListResponsePage) NotDone() bool

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

func (APIKeyListResponsePage) Response

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

func (APIKeyListResponsePage) Values

func (page APIKeyListResponsePage) Values() []APIKey

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

type AgreementProperties

type AgreementProperties struct {
	// Publisher - Publisher identifier string.
	Publisher *string `json:"publisher,omitempty"`
	// Product - Product identifier string.
	Product *string `json:"product,omitempty"`
	// Plan - Plan identifier string.
	Plan *string `json:"plan,omitempty"`
	// LicenseTextLink - Link to HTML with Microsoft and Publisher terms.
	LicenseTextLink *string `json:"licenseTextLink,omitempty"`
	// PrivacyPolicyLink - Link to the privacy policy of the publisher.
	PrivacyPolicyLink *string `json:"privacyPolicyLink,omitempty"`
	// RetrieveDatetime - Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.
	RetrieveDatetime *date.Time `json:"retrieveDatetime,omitempty"`
	// Signature - Terms signature.
	Signature *string `json:"signature,omitempty"`
	// Accepted - If any version of the terms have been accepted, otherwise false.
	Accepted *bool `json:"accepted,omitempty"`
}

AgreementProperties terms properties.

type AgreementResource

type AgreementResource struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; ARM id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the agreement.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Properties - Represents the properties of the resource.
	Properties *AgreementProperties `json:"properties,omitempty"`
}

AgreementResource ...

func (AgreementResource) MarshalJSON

func (ar AgreementResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgreementResource.

type AgreementResourceListResponse

type AgreementResourceListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]AgreementResource `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

AgreementResourceListResponse response of a list operation.

func (AgreementResourceListResponse) IsEmpty

func (arlr AgreementResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AgreementResourceListResponseIterator

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

AgreementResourceListResponseIterator provides access to a complete listing of AgreementResource values.

func NewAgreementResourceListResponseIterator

func NewAgreementResourceListResponseIterator(page AgreementResourceListResponsePage) AgreementResourceListResponseIterator

Creates a new instance of the AgreementResourceListResponseIterator type.

func (*AgreementResourceListResponseIterator) Next

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

func (*AgreementResourceListResponseIterator) NextWithContext

func (iter *AgreementResourceListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AgreementResourceListResponseIterator) NotDone

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

func (AgreementResourceListResponseIterator) Response

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

func (AgreementResourceListResponseIterator) Value

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

type AgreementResourceListResponsePage

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

AgreementResourceListResponsePage contains a page of AgreementResource values.

func NewAgreementResourceListResponsePage

Creates a new instance of the AgreementResourceListResponsePage type.

func (*AgreementResourceListResponsePage) Next

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

func (*AgreementResourceListResponsePage) NextWithContext

func (page *AgreementResourceListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AgreementResourceListResponsePage) NotDone

func (page AgreementResourceListResponsePage) NotDone() bool

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

func (AgreementResourceListResponsePage) Response

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

func (AgreementResourceListResponsePage) Values

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

type BaseClient

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

BaseClient is the base client for Datadog.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type ErrorResponseBody

type ErrorResponseBody struct {
	Code    *string              `json:"code,omitempty"`
	Message *string              `json:"message,omitempty"`
	Target  *string              `json:"target,omitempty"`
	Details *[]ErrorResponseBody `json:"details,omitempty"`
}

ErrorResponseBody ...

type FilteringTag

type FilteringTag struct {
	// Name - The name (also known as the key) of the tag.
	Name *string `json:"name,omitempty"`
	// Value - The value of the tag.
	Value *string `json:"value,omitempty"`
	// Action - Possible values include: 'Include', 'Exclude'
	Action TagAction `json:"action,omitempty"`
}

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

type Host

type Host struct {
	// Name - The name of the host.
	Name *string `json:"name,omitempty"`
	// Aliases - The aliases for the host.
	Aliases *[]string `json:"aliases,omitempty"`
	// Apps - The Datadog integrations reporting metrics for the host.
	Apps *[]string     `json:"apps,omitempty"`
	Meta *HostMetadata `json:"meta,omitempty"`
}

Host ...

type HostListResponse

type HostListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]Host `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

HostListResponse response of a list operation.

func (HostListResponse) IsEmpty

func (hlr HostListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HostListResponseIterator

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

HostListResponseIterator provides access to a complete listing of Host values.

func NewHostListResponseIterator

func NewHostListResponseIterator(page HostListResponsePage) HostListResponseIterator

Creates a new instance of the HostListResponseIterator type.

func (*HostListResponseIterator) Next

func (iter *HostListResponseIterator) Next() error

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

func (*HostListResponseIterator) NextWithContext

func (iter *HostListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (HostListResponseIterator) NotDone

func (iter HostListResponseIterator) NotDone() bool

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

func (HostListResponseIterator) Response

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

func (HostListResponseIterator) Value

func (iter HostListResponseIterator) Value() Host

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

type HostListResponsePage

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

HostListResponsePage contains a page of Host values.

func NewHostListResponsePage

func NewHostListResponsePage(cur HostListResponse, getNextPage func(context.Context, HostListResponse) (HostListResponse, error)) HostListResponsePage

Creates a new instance of the HostListResponsePage type.

func (*HostListResponsePage) Next

func (page *HostListResponsePage) Next() error

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

func (*HostListResponsePage) NextWithContext

func (page *HostListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (HostListResponsePage) NotDone

func (page HostListResponsePage) NotDone() bool

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

func (HostListResponsePage) Response

func (page HostListResponsePage) Response() HostListResponse

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

func (HostListResponsePage) Values

func (page HostListResponsePage) Values() []Host

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

type HostMetadata

type HostMetadata struct {
	// AgentVersion - The agent version.
	AgentVersion  *string        `json:"agentVersion,omitempty"`
	InstallMethod *InstallMethod `json:"installMethod,omitempty"`
	LogsAgent     *LogsAgent     `json:"logsAgent,omitempty"`
}

HostMetadata ...

type IdentityProperties

type IdentityProperties struct {
	// PrincipalID - READ-ONLY; The identity ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - Possible values include: 'SystemAssigned', 'UserAssigned'
	Type ManagedIdentityTypes `json:"type,omitempty"`
}

IdentityProperties ...

func (IdentityProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for IdentityProperties.

type InstallMethod

type InstallMethod struct {
	// Tool - The tool.
	Tool *string `json:"tool,omitempty"`
	// ToolVersion - The tool version.
	ToolVersion *string `json:"toolVersion,omitempty"`
	// InstallerVersion - The installer version.
	InstallerVersion *string `json:"installerVersion,omitempty"`
}

InstallMethod ...

type LiftrResourceCategories

type LiftrResourceCategories string

LiftrResourceCategories enumerates the values for liftr resource categories.

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

func PossibleLiftrResourceCategoriesValues

func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories

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

type LinkedResource

type LinkedResource struct {
	// ID - The ARM id of the linked resource.
	ID *string `json:"id,omitempty"`
}

LinkedResource the definition of a linked resource.

type LinkedResourceListResponse

type LinkedResourceListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]LinkedResource `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

LinkedResourceListResponse response of a list operation.

func (LinkedResourceListResponse) IsEmpty

func (lrlr LinkedResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type LinkedResourceListResponseIterator

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

LinkedResourceListResponseIterator provides access to a complete listing of LinkedResource values.

func NewLinkedResourceListResponseIterator

func NewLinkedResourceListResponseIterator(page LinkedResourceListResponsePage) LinkedResourceListResponseIterator

Creates a new instance of the LinkedResourceListResponseIterator type.

func (*LinkedResourceListResponseIterator) Next

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

func (*LinkedResourceListResponseIterator) NextWithContext

func (iter *LinkedResourceListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (LinkedResourceListResponseIterator) NotDone

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

func (LinkedResourceListResponseIterator) Response

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

func (LinkedResourceListResponseIterator) Value

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

type LinkedResourceListResponsePage

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

LinkedResourceListResponsePage contains a page of LinkedResource values.

func NewLinkedResourceListResponsePage

Creates a new instance of the LinkedResourceListResponsePage type.

func (*LinkedResourceListResponsePage) Next

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

func (*LinkedResourceListResponsePage) NextWithContext

func (page *LinkedResourceListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (LinkedResourceListResponsePage) NotDone

func (page LinkedResourceListResponsePage) NotDone() bool

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

func (LinkedResourceListResponsePage) Response

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

func (LinkedResourceListResponsePage) Values

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

type LogRules

type LogRules struct {
	// SendAadLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
	SendAadLogs *bool `json:"sendAadLogs,omitempty"`
	// SendSubscriptionLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
	SendSubscriptionLogs *bool `json:"sendSubscriptionLogs,omitempty"`
	// SendResourceLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
	SendResourceLogs *bool `json:"sendResourceLogs,omitempty"`
	// FilteringTags - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
	FilteringTags *[]FilteringTag `json:"filteringTags,omitempty"`
}

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

type LogsAgent

type LogsAgent struct {
	// Transport - The transport.
	Transport *string `json:"transport,omitempty"`
}

LogsAgent ...

type ManagedIdentityTypes

type ManagedIdentityTypes string

ManagedIdentityTypes enumerates the values for managed identity types.

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

func PossibleManagedIdentityTypesValues

func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes

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

type MarketplaceAgreementsClient

type MarketplaceAgreementsClient struct {
	BaseClient
}

MarketplaceAgreementsClient is the client for the MarketplaceAgreements methods of the Datadog service.

func NewMarketplaceAgreementsClient

func NewMarketplaceAgreementsClient(subscriptionID string) MarketplaceAgreementsClient

NewMarketplaceAgreementsClient creates an instance of the MarketplaceAgreementsClient client.

func NewMarketplaceAgreementsClientWithBaseURI

func NewMarketplaceAgreementsClientWithBaseURI(baseURI string, subscriptionID string) MarketplaceAgreementsClient

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

func (MarketplaceAgreementsClient) CreateOrUpdate

func (client MarketplaceAgreementsClient) CreateOrUpdate(ctx context.Context, body *AgreementResource) (result AgreementResource, err error)

CreateOrUpdate sends the create or update request.

func (MarketplaceAgreementsClient) CreateOrUpdatePreparer

func (client MarketplaceAgreementsClient) CreateOrUpdatePreparer(ctx context.Context, body *AgreementResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (MarketplaceAgreementsClient) CreateOrUpdateResponder

func (client MarketplaceAgreementsClient) CreateOrUpdateResponder(resp *http.Response) (result AgreementResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (MarketplaceAgreementsClient) CreateOrUpdateSender

func (client MarketplaceAgreementsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (MarketplaceAgreementsClient) List

List sends the list request.

func (MarketplaceAgreementsClient) ListComplete

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

func (MarketplaceAgreementsClient) ListPreparer

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

ListPreparer prepares the List request.

func (MarketplaceAgreementsClient) ListResponder

func (client MarketplaceAgreementsClient) ListResponder(resp *http.Response) (result AgreementResourceListResponse, err error)

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

func (MarketplaceAgreementsClient) ListSender

func (client MarketplaceAgreementsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type MarketplaceSubscriptionStatus

type MarketplaceSubscriptionStatus string

MarketplaceSubscriptionStatus enumerates the values for marketplace subscription status.

const (
	// Active ...
	Active MarketplaceSubscriptionStatus = "Active"
	// Provisioning ...
	Provisioning MarketplaceSubscriptionStatus = "Provisioning"
	// Suspended ...
	Suspended MarketplaceSubscriptionStatus = "Suspended"
	// Unsubscribed ...
	Unsubscribed MarketplaceSubscriptionStatus = "Unsubscribed"
)

func PossibleMarketplaceSubscriptionStatusValues

func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus

PossibleMarketplaceSubscriptionStatusValues returns an array of possible values for the MarketplaceSubscriptionStatus const type.

type MetricRules

type MetricRules struct {
	// FilteringTags - List of filtering tags to be used for capturing metrics. 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"`
}

MetricRules set of rules for sending metrics for the Monitor resource.

type MonitorProperties

type MonitorProperties struct {
	// ProvisioningState - Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// MonitoringStatus - Possible values include: 'Enabled', 'Disabled'
	MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"`
	// MarketplaceSubscriptionStatus - Possible values include: 'Provisioning', 'Active', 'Suspended', 'Unsubscribed'
	MarketplaceSubscriptionStatus MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"`
	DatadogOrganizationProperties *OrganizationProperties       `json:"datadogOrganizationProperties,omitempty"`
	UserInfo                      *UserInfo                     `json:"userInfo,omitempty"`
	// LiftrResourceCategory - Possible values include: 'Unknown', 'MonitorLogs'
	LiftrResourceCategory LiftrResourceCategories `json:"liftrResourceCategory,omitempty"`
	// LiftrResourcePreference - READ-ONLY; The priority of the resource.
	LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty"`
}

MonitorProperties properties specific to the monitor resource.

func (MonitorProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for MonitorProperties.

type MonitorResource

type MonitorResource struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; ARM id of the monitor resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the monitor resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the monitor resource.
	Type       *string             `json:"type,omitempty"`
	Sku        *ResourceSku        `json:"sku,omitempty"`
	Properties *MonitorProperties  `json:"properties,omitempty"`
	Identity   *IdentityProperties `json:"identity,omitempty"`
	Tags       map[string]*string  `json:"tags"`
	Location   *string             `json:"location,omitempty"`
}

MonitorResource ...

func (MonitorResource) MarshalJSON

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

MarshalJSON is the custom marshaler for MonitorResource.

type MonitorResourceListResponse

type MonitorResourceListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]MonitorResource `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

MonitorResourceListResponse response of a list operation.

func (MonitorResourceListResponse) IsEmpty

func (mrlr MonitorResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitorResourceListResponseIterator

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

MonitorResourceListResponseIterator provides access to a complete listing of MonitorResource values.

func NewMonitorResourceListResponseIterator

func NewMonitorResourceListResponseIterator(page MonitorResourceListResponsePage) MonitorResourceListResponseIterator

Creates a new instance of the MonitorResourceListResponseIterator type.

func (*MonitorResourceListResponseIterator) Next

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

func (*MonitorResourceListResponseIterator) NextWithContext

func (iter *MonitorResourceListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (MonitorResourceListResponseIterator) NotDone

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

func (MonitorResourceListResponseIterator) Response

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

func (MonitorResourceListResponseIterator) Value

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

type MonitorResourceListResponsePage

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

MonitorResourceListResponsePage contains a page of MonitorResource values.

func NewMonitorResourceListResponsePage

Creates a new instance of the MonitorResourceListResponsePage type.

func (*MonitorResourceListResponsePage) Next

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

func (*MonitorResourceListResponsePage) NextWithContext

func (page *MonitorResourceListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (MonitorResourceListResponsePage) NotDone

func (page MonitorResourceListResponsePage) NotDone() bool

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

func (MonitorResourceListResponsePage) Response

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

func (MonitorResourceListResponsePage) Values

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

type MonitorResourceUpdateParameters

type MonitorResourceUpdateParameters struct {
	Properties *MonitorUpdateProperties `json:"properties,omitempty"`
	// Tags - The new tags of the monitor resource.
	Tags map[string]*string `json:"tags"`
}

MonitorResourceUpdateParameters the parameters for a PATCH request to a monitor resource.

func (MonitorResourceUpdateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for MonitorResourceUpdateParameters.

type MonitorUpdateProperties

type MonitorUpdateProperties struct {
	// MonitoringStatus - Possible values include: 'Enabled', 'Disabled'
	MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"`
}

MonitorUpdateProperties the set of properties that can be update in a PATCH request to a monitor resource.

type MonitoredResource

type MonitoredResource struct {
	// ID - The ARM id of the resource.
	ID *string `json:"id,omitempty"`
	// SendingMetrics - Flag indicating if resource is sending metrics to Datadog.
	SendingMetrics *bool `json:"sendingMetrics,omitempty"`
	// ReasonForMetricsStatus - Reason for why the resource is sending metrics (or why it is not sending).
	ReasonForMetricsStatus *string `json:"reasonForMetricsStatus,omitempty"`
	// SendingLogs - Flag indicating if resource is sending logs to Datadog.
	SendingLogs *bool `json:"sendingLogs,omitempty"`
	// ReasonForLogsStatus - Reason for why the resource is sending logs (or why it is not sending).
	ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"`
}

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

type MonitoredResourceListResponse

type MonitoredResourceListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]MonitoredResource `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

MonitoredResourceListResponse response of a list operation.

func (MonitoredResourceListResponse) IsEmpty

func (mrlr MonitoredResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitoredResourceListResponseIterator

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

MonitoredResourceListResponseIterator provides access to a complete listing of MonitoredResource values.

func NewMonitoredResourceListResponseIterator

func NewMonitoredResourceListResponseIterator(page MonitoredResourceListResponsePage) MonitoredResourceListResponseIterator

Creates a new instance of the MonitoredResourceListResponseIterator type.

func (*MonitoredResourceListResponseIterator) Next

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

func (*MonitoredResourceListResponseIterator) NextWithContext

func (iter *MonitoredResourceListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (MonitoredResourceListResponseIterator) NotDone

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

func (MonitoredResourceListResponseIterator) Response

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

func (MonitoredResourceListResponseIterator) Value

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

type MonitoredResourceListResponsePage

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

MonitoredResourceListResponsePage contains a page of MonitoredResource values.

func NewMonitoredResourceListResponsePage

Creates a new instance of the MonitoredResourceListResponsePage type.

func (*MonitoredResourceListResponsePage) Next

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

func (*MonitoredResourceListResponsePage) NextWithContext

func (page *MonitoredResourceListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (MonitoredResourceListResponsePage) NotDone

func (page MonitoredResourceListResponsePage) NotDone() bool

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

func (MonitoredResourceListResponsePage) Response

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

func (MonitoredResourceListResponsePage) Values

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

type MonitoringStatus

type MonitoringStatus string

MonitoringStatus enumerates the values for monitoring status.

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

func PossibleMonitoringStatusValues

func PossibleMonitoringStatusValues() []MonitoringStatus

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

type MonitoringTagRules

type MonitoringTagRules struct {
	autorest.Response `json:"-"`
	// Name - READ-ONLY; Name of the rule set.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The id of the rule set.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the rule set.
	Type       *string                       `json:"type,omitempty"`
	Properties *MonitoringTagRulesProperties `json:"properties,omitempty"`
}

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

func (MonitoringTagRules) MarshalJSON

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

MarshalJSON is the custom marshaler for MonitoringTagRules.

type MonitoringTagRulesListResponse

type MonitoringTagRulesListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]MonitoringTagRules `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

MonitoringTagRulesListResponse response of a list operation.

func (MonitoringTagRulesListResponse) IsEmpty

func (mtrlr MonitoringTagRulesListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitoringTagRulesListResponseIterator

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

MonitoringTagRulesListResponseIterator provides access to a complete listing of MonitoringTagRules values.

func NewMonitoringTagRulesListResponseIterator

func NewMonitoringTagRulesListResponseIterator(page MonitoringTagRulesListResponsePage) MonitoringTagRulesListResponseIterator

Creates a new instance of the MonitoringTagRulesListResponseIterator type.

func (*MonitoringTagRulesListResponseIterator) Next

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

func (*MonitoringTagRulesListResponseIterator) NextWithContext

func (iter *MonitoringTagRulesListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (MonitoringTagRulesListResponseIterator) NotDone

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

func (MonitoringTagRulesListResponseIterator) Response

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

func (MonitoringTagRulesListResponseIterator) Value

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

type MonitoringTagRulesListResponsePage

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

MonitoringTagRulesListResponsePage contains a page of MonitoringTagRules values.

func NewMonitoringTagRulesListResponsePage

Creates a new instance of the MonitoringTagRulesListResponsePage type.

func (*MonitoringTagRulesListResponsePage) Next

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

func (*MonitoringTagRulesListResponsePage) NextWithContext

func (page *MonitoringTagRulesListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (MonitoringTagRulesListResponsePage) NotDone

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

func (MonitoringTagRulesListResponsePage) Response

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

func (MonitoringTagRulesListResponsePage) Values

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

type MonitoringTagRulesProperties

type MonitoringTagRulesProperties struct {
	// ProvisioningState - Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	LogRules          *LogRules         `json:"logRules,omitempty"`
	MetricRules       *MetricRules      `json:"metricRules,omitempty"`
}

MonitoringTagRulesProperties definition of the properties for a TagRules resource.

type MonitorsClient

type MonitorsClient struct {
	BaseClient
}

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

func NewMonitorsClient

func NewMonitorsClient(subscriptionID string) MonitorsClient

NewMonitorsClient creates an instance of the MonitorsClient client.

func NewMonitorsClientWithBaseURI

func NewMonitorsClientWithBaseURI(baseURI string, subscriptionID string) MonitorsClient

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

func (MonitorsClient) Create

func (client MonitorsClient) Create(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (result MonitorsCreateFuture, err error)

Create sends the create request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (MonitorsClient) CreateResponder

func (client MonitorsClient) CreateResponder(resp *http.Response) (result MonitorResource, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (MonitorsClient) CreateSender

func (client MonitorsClient) CreateSender(req *http.Request) (future MonitorsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) Delete

func (client MonitorsClient) Delete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorsDeleteFuture, err error)

Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (MonitorsClient) DeleteResponder

func (client MonitorsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (MonitorsClient) DeleteSender

func (client MonitorsClient) DeleteSender(req *http.Request) (future MonitorsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) Get

func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorResource, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) GetDefaultKey

func (client MonitorsClient) GetDefaultKey(ctx context.Context, resourceGroupName string, monitorName string) (result APIKey, err error)

GetDefaultKey sends the get default key request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) GetDefaultKeyPreparer

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

GetDefaultKeyPreparer prepares the GetDefaultKey request.

func (MonitorsClient) GetDefaultKeyResponder

func (client MonitorsClient) GetDefaultKeyResponder(resp *http.Response) (result APIKey, err error)

GetDefaultKeyResponder handles the response to the GetDefaultKey request. The method always closes the http.Response Body.

func (MonitorsClient) GetDefaultKeySender

func (client MonitorsClient) GetDefaultKeySender(req *http.Request) (*http.Response, error)

GetDefaultKeySender sends the GetDefaultKey request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (MonitorsClient) GetResponder

func (client MonitorsClient) GetResponder(resp *http.Response) (result MonitorResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (MonitorsClient) GetSender

func (client MonitorsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) List

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

List sends the list request.

func (MonitorsClient) ListAPIKeys

func (client MonitorsClient) ListAPIKeys(ctx context.Context, resourceGroupName string, monitorName string) (result APIKeyListResponsePage, err error)

ListAPIKeys sends the list api keys request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) ListAPIKeysComplete

func (client MonitorsClient) ListAPIKeysComplete(ctx context.Context, resourceGroupName string, monitorName string) (result APIKeyListResponseIterator, err error)

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

func (MonitorsClient) ListAPIKeysPreparer

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

ListAPIKeysPreparer prepares the ListAPIKeys request.

func (MonitorsClient) ListAPIKeysResponder

func (client MonitorsClient) ListAPIKeysResponder(resp *http.Response) (result APIKeyListResponse, err error)

ListAPIKeysResponder handles the response to the ListAPIKeys request. The method always closes the http.Response Body.

func (MonitorsClient) ListAPIKeysSender

func (client MonitorsClient) ListAPIKeysSender(req *http.Request) (*http.Response, error)

ListAPIKeysSender sends the ListAPIKeys request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) ListByResourceGroup

func (client MonitorsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponsePage, err error)

ListByResourceGroup sends the list by resource group request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs.

func (MonitorsClient) ListByResourceGroupComplete

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

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

func (MonitorsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (MonitorsClient) ListByResourceGroupResponder

func (client MonitorsClient) ListByResourceGroupResponder(resp *http.Response) (result MonitorResourceListResponse, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (MonitorsClient) ListByResourceGroupSender

func (client MonitorsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) ListComplete

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

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

func (MonitorsClient) ListHosts

func (client MonitorsClient) ListHosts(ctx context.Context, resourceGroupName string, monitorName string) (result HostListResponsePage, err error)

ListHosts sends the list hosts request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) ListHostsComplete

func (client MonitorsClient) ListHostsComplete(ctx context.Context, resourceGroupName string, monitorName string) (result HostListResponseIterator, err error)

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

func (MonitorsClient) ListHostsPreparer

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

ListHostsPreparer prepares the ListHosts request.

func (MonitorsClient) ListHostsResponder

func (client MonitorsClient) ListHostsResponder(resp *http.Response) (result HostListResponse, err error)

ListHostsResponder handles the response to the ListHosts request. The method always closes the http.Response Body.

func (MonitorsClient) ListHostsSender

func (client MonitorsClient) ListHostsSender(req *http.Request) (*http.Response, error)

ListHostsSender sends the ListHosts request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) ListLinkedResources

func (client MonitorsClient) ListLinkedResources(ctx context.Context, resourceGroupName string, monitorName string) (result LinkedResourceListResponsePage, err error)

ListLinkedResources sends the list linked resources request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) ListLinkedResourcesComplete

func (client MonitorsClient) ListLinkedResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string) (result LinkedResourceListResponseIterator, err error)

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

func (MonitorsClient) ListLinkedResourcesPreparer

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

ListLinkedResourcesPreparer prepares the ListLinkedResources request.

func (MonitorsClient) ListLinkedResourcesResponder

func (client MonitorsClient) ListLinkedResourcesResponder(resp *http.Response) (result LinkedResourceListResponse, err error)

ListLinkedResourcesResponder handles the response to the ListLinkedResources request. The method always closes the http.Response Body.

func (MonitorsClient) ListLinkedResourcesSender

func (client MonitorsClient) ListLinkedResourcesSender(req *http.Request) (*http.Response, error)

ListLinkedResourcesSender sends the ListLinkedResources request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) ListMonitoredResources

func (client MonitorsClient) ListMonitoredResources(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoredResourceListResponsePage, err error)

ListMonitoredResources sends the list monitored resources request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) ListMonitoredResourcesComplete

func (client MonitorsClient) ListMonitoredResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoredResourceListResponseIterator, err error)

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

func (MonitorsClient) ListMonitoredResourcesPreparer

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

ListMonitoredResourcesPreparer prepares the ListMonitoredResources request.

func (MonitorsClient) ListMonitoredResourcesResponder

func (client MonitorsClient) ListMonitoredResourcesResponder(resp *http.Response) (result MonitoredResourceListResponse, err error)

ListMonitoredResourcesResponder handles the response to the ListMonitoredResources request. The method always closes the http.Response Body.

func (MonitorsClient) ListMonitoredResourcesSender

func (client MonitorsClient) ListMonitoredResourcesSender(req *http.Request) (*http.Response, error)

ListMonitoredResourcesSender sends the ListMonitoredResources request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) ListPreparer

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

ListPreparer prepares the List request.

func (MonitorsClient) ListResponder

func (client MonitorsClient) ListResponder(resp *http.Response) (result MonitorResourceListResponse, err error)

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

func (MonitorsClient) ListSender

func (client MonitorsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (client MonitorsClient) RefreshSetPasswordLink(ctx context.Context, resourceGroupName string, monitorName string) (result SetPasswordLink, err error)

RefreshSetPasswordLink sends the refresh set password link request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) RefreshSetPasswordLinkPreparer

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

RefreshSetPasswordLinkPreparer prepares the RefreshSetPasswordLink request.

func (MonitorsClient) RefreshSetPasswordLinkResponder

func (client MonitorsClient) RefreshSetPasswordLinkResponder(resp *http.Response) (result SetPasswordLink, err error)

RefreshSetPasswordLinkResponder handles the response to the RefreshSetPasswordLink request. The method always closes the http.Response Body.

func (MonitorsClient) RefreshSetPasswordLinkSender

func (client MonitorsClient) RefreshSetPasswordLinkSender(req *http.Request) (*http.Response, error)

RefreshSetPasswordLinkSender sends the RefreshSetPasswordLink request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) SetDefaultKey

func (client MonitorsClient) SetDefaultKey(ctx context.Context, resourceGroupName string, monitorName string, body *APIKey) (result autorest.Response, err error)

SetDefaultKey sends the set default key request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) SetDefaultKeyPreparer

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

SetDefaultKeyPreparer prepares the SetDefaultKey request.

func (MonitorsClient) SetDefaultKeyResponder

func (client MonitorsClient) SetDefaultKeyResponder(resp *http.Response) (result autorest.Response, err error)

SetDefaultKeyResponder handles the response to the SetDefaultKey request. The method always closes the http.Response Body.

func (MonitorsClient) SetDefaultKeySender

func (client MonitorsClient) SetDefaultKeySender(req *http.Request) (*http.Response, error)

SetDefaultKeySender sends the SetDefaultKey request. The method will close the http.Response Body if it receives an error.

func (MonitorsClient) Update

func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (result MonitorResource, err error)

Update sends the update request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (MonitorsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (MonitorsClient) UpdateResponder

func (client MonitorsClient) UpdateResponder(resp *http.Response) (result MonitorResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (MonitorsClient) UpdateSender

func (client MonitorsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type MonitorsCreateFuture

type MonitorsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(MonitorsClient) (MonitorResource, error)
}

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

func (*MonitorsCreateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type MonitorsDeleteFuture

type MonitorsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(MonitorsClient) (autorest.Response, error)
}

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

func (*MonitorsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type OperationDisplay

type OperationDisplay struct {
	// Provider - Service provider, i.e., Microsoft.Datadog.
	Provider *string `json:"provider,omitempty"`
	// Resource - Type on which the operation is performed, e.g., 'monitors'.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operation type, e.g., read, write, delete, etc.
	Operation *string `json:"operation,omitempty"`
	// Description - Description of the operation, e.g., 'Write monitors'.
	Description *string `json:"description,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - List of operations supported by the Microsoft.Datadog provider.
	Value *[]OperationResult `json:"value,omitempty"`
	// NextLink - URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

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

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of OperationResult values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

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

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of OperationResult values.

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

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

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []OperationResult

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

type OperationResult

type OperationResult struct {
	// Name - Operation name, i.e., {provider}/{resource}/{operation}.
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
	// IsDataAction - Indicates whether the operation is a data action
	IsDataAction *bool `json:"isDataAction,omitempty"`
}

OperationResult a Microsoft.Datadog REST API operation.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

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

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List

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

List sends the list request.

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type OrganizationProperties

type OrganizationProperties struct {
	// Name - READ-ONLY; Name of the Datadog organization.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; Id of the Datadog organization.
	ID *string `json:"id,omitempty"`
	// LinkingAuthCode - The auth code used to linking to an existing datadog organization.
	LinkingAuthCode *string `json:"linkingAuthCode,omitempty"`
	// LinkingClientID - The client_id from an existing in exchange for an auth token to link organization.
	LinkingClientID *string `json:"linkingClientId,omitempty"`
	// RedirectURI - The redirect uri for linking.
	RedirectURI *string `json:"redirectUri,omitempty"`
	// APIKey - Api key associated to the Datadog organization.
	APIKey *string `json:"apiKey,omitempty"`
	// ApplicationKey - Application key associated to the Datadog organization.
	ApplicationKey *string `json:"applicationKey,omitempty"`
	// EnterpriseAppID - The Id of the Enterprise App used for Single sign on.
	EnterpriseAppID *string `json:"enterpriseAppId,omitempty"`
}

OrganizationProperties datadog organization properties

func (OrganizationProperties) MarshalJSON

func (op OrganizationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OrganizationProperties.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Accepted ...
	Accepted ProvisioningState = "Accepted"
	// Canceled ...
	Canceled ProvisioningState = "Canceled"
	// Creating ...
	Creating ProvisioningState = "Creating"
	// Deleted ...
	Deleted ProvisioningState = "Deleted"
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// NotSpecified ...
	NotSpecified ProvisioningState = "NotSpecified"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
	// Updating ...
	Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

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

type ResourceProviderDefaultErrorResponse

type ResourceProviderDefaultErrorResponse struct {
	Error *ErrorResponseBody `json:"error,omitempty"`
}

ResourceProviderDefaultErrorResponse ...

type ResourceSku

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

ResourceSku ...

type SetPasswordLink struct {
	autorest.Response `json:"-"`
	SetPasswordLink   *string `json:"setPasswordLink,omitempty"`
}

SetPasswordLink ...

type SingleSignOnConfigurationsClient

type SingleSignOnConfigurationsClient struct {
	BaseClient
}

SingleSignOnConfigurationsClient is the client for the SingleSignOnConfigurations methods of the Datadog service.

func NewSingleSignOnConfigurationsClient

func NewSingleSignOnConfigurationsClient(subscriptionID string) SingleSignOnConfigurationsClient

NewSingleSignOnConfigurationsClient creates an instance of the SingleSignOnConfigurationsClient client.

func NewSingleSignOnConfigurationsClientWithBaseURI

func NewSingleSignOnConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) SingleSignOnConfigurationsClient

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

func (SingleSignOnConfigurationsClient) CreateOrUpdate

func (client SingleSignOnConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, body *SingleSignOnResource) (result SingleSignOnConfigurationsCreateOrUpdateFuture, err error)

CreateOrUpdate sends the create or update request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name configurationName - configuration name

func (SingleSignOnConfigurationsClient) CreateOrUpdatePreparer

func (client SingleSignOnConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, body *SingleSignOnResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SingleSignOnConfigurationsClient) CreateOrUpdateResponder

func (client SingleSignOnConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result SingleSignOnResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SingleSignOnConfigurationsClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SingleSignOnConfigurationsClient) Get

func (client SingleSignOnConfigurationsClient) Get(ctx context.Context, resourceGroupName string, monitorName string, configurationName string) (result SingleSignOnResource, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name configurationName - configuration name

func (SingleSignOnConfigurationsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SingleSignOnConfigurationsClient) GetResponder

func (client SingleSignOnConfigurationsClient) GetResponder(resp *http.Response) (result SingleSignOnResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SingleSignOnConfigurationsClient) GetSender

func (client SingleSignOnConfigurationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SingleSignOnConfigurationsClient) List

func (client SingleSignOnConfigurationsClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result SingleSignOnResourceListResponsePage, err error)

List sends the list request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (SingleSignOnConfigurationsClient) ListComplete

func (client SingleSignOnConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result SingleSignOnResourceListResponseIterator, err error)

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

func (SingleSignOnConfigurationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (SingleSignOnConfigurationsClient) ListResponder

func (client SingleSignOnConfigurationsClient) ListResponder(resp *http.Response) (result SingleSignOnResourceListResponse, err error)

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

func (SingleSignOnConfigurationsClient) ListSender

func (client SingleSignOnConfigurationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type SingleSignOnConfigurationsCreateOrUpdateFuture

type SingleSignOnConfigurationsCreateOrUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(SingleSignOnConfigurationsClient) (SingleSignOnResource, error)
}

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

func (*SingleSignOnConfigurationsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SingleSignOnProperties

type SingleSignOnProperties struct {
	// ProvisioningState - Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// SingleSignOnState - Possible values include: 'Initial', 'Enable', 'Disable', 'Existing'
	SingleSignOnState SingleSignOnStates `json:"singleSignOnState,omitempty"`
	// EnterpriseAppID - The Id of the Enterprise App used for Single sign-on.
	EnterpriseAppID *string `json:"enterpriseAppId,omitempty"`
	// SingleSignOnURL - READ-ONLY; The login URL specific to this Datadog Organization.
	SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"`
}

SingleSignOnProperties ...

func (SingleSignOnProperties) MarshalJSON

func (ssop SingleSignOnProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SingleSignOnProperties.

type SingleSignOnResource

type SingleSignOnResource struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; ARM id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the configuration.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type       *string                 `json:"type,omitempty"`
	Properties *SingleSignOnProperties `json:"properties,omitempty"`
}

SingleSignOnResource ...

func (SingleSignOnResource) MarshalJSON

func (ssor SingleSignOnResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SingleSignOnResource.

type SingleSignOnResourceListResponse

type SingleSignOnResourceListResponse struct {
	autorest.Response `json:"-"`
	// Value - Results of a list operation.
	Value *[]SingleSignOnResource `json:"value,omitempty"`
	// NextLink - Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`
}

SingleSignOnResourceListResponse response of a list operation.

func (SingleSignOnResourceListResponse) IsEmpty

func (ssorlr SingleSignOnResourceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SingleSignOnResourceListResponseIterator

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

SingleSignOnResourceListResponseIterator provides access to a complete listing of SingleSignOnResource values.

func NewSingleSignOnResourceListResponseIterator

func NewSingleSignOnResourceListResponseIterator(page SingleSignOnResourceListResponsePage) SingleSignOnResourceListResponseIterator

Creates a new instance of the SingleSignOnResourceListResponseIterator type.

func (*SingleSignOnResourceListResponseIterator) Next

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

func (*SingleSignOnResourceListResponseIterator) NextWithContext

func (iter *SingleSignOnResourceListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SingleSignOnResourceListResponseIterator) NotDone

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

func (SingleSignOnResourceListResponseIterator) Response

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

func (SingleSignOnResourceListResponseIterator) Value

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

type SingleSignOnResourceListResponsePage

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

SingleSignOnResourceListResponsePage contains a page of SingleSignOnResource values.

func NewSingleSignOnResourceListResponsePage

Creates a new instance of the SingleSignOnResourceListResponsePage type.

func (*SingleSignOnResourceListResponsePage) Next

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

func (*SingleSignOnResourceListResponsePage) NextWithContext

func (page *SingleSignOnResourceListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SingleSignOnResourceListResponsePage) NotDone

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

func (SingleSignOnResourceListResponsePage) Response

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

func (SingleSignOnResourceListResponsePage) Values

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

type SingleSignOnStates

type SingleSignOnStates string

SingleSignOnStates enumerates the values for single sign on states.

const (
	// Disable ...
	Disable SingleSignOnStates = "Disable"
	// Enable ...
	Enable SingleSignOnStates = "Enable"
	// Existing ...
	Existing SingleSignOnStates = "Existing"
	// Initial ...
	Initial SingleSignOnStates = "Initial"
)

func PossibleSingleSignOnStatesValues

func PossibleSingleSignOnStatesValues() []SingleSignOnStates

PossibleSingleSignOnStatesValues returns an array of possible values for the SingleSignOnStates const type.

type TagAction

type TagAction string

TagAction enumerates the values for tag action.

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

func PossibleTagActionValues

func PossibleTagActionValues() []TagAction

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

type TagRulesClient

type TagRulesClient struct {
	BaseClient
}

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

func NewTagRulesClient

func NewTagRulesClient(subscriptionID string) TagRulesClient

NewTagRulesClient creates an instance of the TagRulesClient client.

func NewTagRulesClientWithBaseURI

func NewTagRulesClientWithBaseURI(baseURI string, subscriptionID string) TagRulesClient

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

func (TagRulesClient) CreateOrUpdate

func (client TagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (result MonitoringTagRules, err error)

CreateOrUpdate sends the create or update request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name ruleSetName - rule set name

func (TagRulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (TagRulesClient) CreateOrUpdateResponder

func (client TagRulesClient) CreateOrUpdateResponder(resp *http.Response) (result MonitoringTagRules, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (TagRulesClient) CreateOrUpdateSender

func (client TagRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (TagRulesClient) Get

func (client TagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result MonitoringTagRules, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name ruleSetName - rule set name

func (TagRulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (TagRulesClient) GetResponder

func (client TagRulesClient) GetResponder(resp *http.Response) (result MonitoringTagRules, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TagRulesClient) GetSender

func (client TagRulesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (TagRulesClient) List

func (client TagRulesClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoringTagRulesListResponsePage, err error)

List sends the list request. Parameters: resourceGroupName - the name of the resource group to which the Datadog resource belongs. monitorName - monitor resource name

func (TagRulesClient) ListComplete

func (client TagRulesClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoringTagRulesListResponseIterator, err error)

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

func (TagRulesClient) ListPreparer

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

ListPreparer prepares the List request.

func (TagRulesClient) ListResponder

func (client TagRulesClient) ListResponder(resp *http.Response) (result MonitoringTagRulesListResponse, err error)

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

func (TagRulesClient) ListSender

func (client TagRulesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type UserInfo

type UserInfo struct {
	// Name - Name of the user
	Name *string `json:"name,omitempty"`
	// EmailAddress - Email of the user used by Datadog for contacting them if needed
	EmailAddress *string `json:"emailAddress,omitempty"`
	// PhoneNumber - Phone number of the user used by Datadog for contacting them if needed
	PhoneNumber *string `json:"phoneNumber,omitempty"`
}

UserInfo user info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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