const ( // DefaultBaseURI is the default URI used for the service Datadog DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
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"` }
APIKeyListResponse response of a list operation.
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"` }
func (aklr APIKeyListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
APIKeyListResponseIterator provides access to a complete listing of APIKey values.
type APIKeyListResponseIterator struct {
// contains filtered or unexported fields
}
func NewAPIKeyListResponseIterator(page APIKeyListResponsePage) APIKeyListResponseIterator
Creates a new instance of the APIKeyListResponseIterator type.
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 (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 (iter APIKeyListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter APIKeyListResponseIterator) Response() APIKeyListResponse
Response returns the raw server response from the last page request.
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.
APIKeyListResponsePage contains a page of APIKey values.
type APIKeyListResponsePage struct {
// contains filtered or unexported fields
}
func NewAPIKeyListResponsePage(cur APIKeyListResponse, getNextPage func(context.Context, APIKeyListResponse) (APIKeyListResponse, error)) APIKeyListResponsePage
Creates a new instance of the APIKeyListResponsePage type.
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 (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 (page APIKeyListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page APIKeyListResponsePage) Response() APIKeyListResponse
Response returns the raw server response from the last page request.
func (page APIKeyListResponsePage) Values() []APIKey
Values returns the slice of values for the current page or nil if there are no values.
AgreementProperties terms properties.
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"` }
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` }
func (ar AgreementResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AgreementResource.
AgreementResourceListResponse response of a list operation.
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"` }
func (arlr AgreementResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
AgreementResourceListResponseIterator provides access to a complete listing of AgreementResource values.
type AgreementResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewAgreementResourceListResponseIterator(page AgreementResourceListResponsePage) AgreementResourceListResponseIterator
Creates a new instance of the AgreementResourceListResponseIterator type.
func (iter *AgreementResourceListResponseIterator) 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 (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 (iter AgreementResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AgreementResourceListResponseIterator) Response() AgreementResourceListResponse
Response returns the raw server response from the last page request.
func (iter AgreementResourceListResponseIterator) Value() AgreementResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
AgreementResourceListResponsePage contains a page of AgreementResource values.
type AgreementResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewAgreementResourceListResponsePage(cur AgreementResourceListResponse, getNextPage func(context.Context, AgreementResourceListResponse) (AgreementResourceListResponse, error)) AgreementResourceListResponsePage
Creates a new instance of the AgreementResourceListResponsePage type.
func (page *AgreementResourceListResponsePage) 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 (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 (page AgreementResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AgreementResourceListResponsePage) Response() AgreementResourceListResponse
Response returns the raw server response from the last page request.
func (page AgreementResourceListResponsePage) Values() []AgreementResource
Values returns the slice of values for the current page or nil if there are no values.
BaseClient is the base client for Datadog.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
ErrorAdditionalInfo the resource management error additional info.
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
ErrorDetail the error detail.
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type ErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
FilteringTag the definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.
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: 'TagActionInclude', 'TagActionExclude' Action TagAction `json:"action,omitempty"` }
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"` }
HostListResponse response of a list operation.
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"` }
func (hlr HostListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
HostListResponseIterator provides access to a complete listing of Host values.
type HostListResponseIterator struct {
// contains filtered or unexported fields
}
func NewHostListResponseIterator(page HostListResponsePage) HostListResponseIterator
Creates a new instance of the HostListResponseIterator type.
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 (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 (iter HostListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter HostListResponseIterator) Response() HostListResponse
Response returns the raw server response from the last page request.
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.
HostListResponsePage contains a page of Host values.
type HostListResponsePage struct {
// contains filtered or unexported fields
}
func NewHostListResponsePage(cur HostListResponse, getNextPage func(context.Context, HostListResponse) (HostListResponse, error)) HostListResponsePage
Creates a new instance of the HostListResponsePage type.
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 (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 (page HostListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page HostListResponsePage) Response() HostListResponse
Response returns the raw server response from the last page request.
func (page HostListResponsePage) Values() []Host
Values returns the slice of values for the current page or nil if there are no values.
HostMetadata ...
type HostMetadata struct { // AgentVersion - The agent version. AgentVersion *string `json:"agentVersion,omitempty"` InstallMethod *InstallMethod `json:"installMethod,omitempty"` LogsAgent *LogsAgent `json:"logsAgent,omitempty"` }
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: 'ManagedIdentityTypesSystemAssigned', 'ManagedIdentityTypesUserAssigned' Type ManagedIdentityTypes `json:"type,omitempty"` }
func (IP IdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IdentityProperties.
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"` }
LiftrResourceCategories enumerates the values for liftr resource categories.
type LiftrResourceCategories string
const ( // LiftrResourceCategoriesMonitorLogs ... LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs" // LiftrResourceCategoriesUnknown ... LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown" )
func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories
PossibleLiftrResourceCategoriesValues returns an array of possible values for the LiftrResourceCategories const type.
LinkedResource the definition of a linked resource.
type LinkedResource struct { // ID - The ARM id of the linked resource. ID *string `json:"id,omitempty"` }
LinkedResourceListResponse response of a list operation.
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"` }
func (lrlr LinkedResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
LinkedResourceListResponseIterator provides access to a complete listing of LinkedResource values.
type LinkedResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewLinkedResourceListResponseIterator(page LinkedResourceListResponsePage) LinkedResourceListResponseIterator
Creates a new instance of the LinkedResourceListResponseIterator type.
func (iter *LinkedResourceListResponseIterator) 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 (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 (iter LinkedResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter LinkedResourceListResponseIterator) Response() LinkedResourceListResponse
Response returns the raw server response from the last page request.
func (iter LinkedResourceListResponseIterator) Value() LinkedResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
LinkedResourceListResponsePage contains a page of LinkedResource values.
type LinkedResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewLinkedResourceListResponsePage(cur LinkedResourceListResponse, getNextPage func(context.Context, LinkedResourceListResponse) (LinkedResourceListResponse, error)) LinkedResourceListResponsePage
Creates a new instance of the LinkedResourceListResponsePage type.
func (page *LinkedResourceListResponsePage) 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 (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 (page LinkedResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page LinkedResourceListResponsePage) Response() LinkedResourceListResponse
Response returns the raw server response from the last page request.
func (page LinkedResourceListResponsePage) Values() []LinkedResource
Values returns the slice of values for the current page or nil if there are no values.
LogRules set of rules for sending logs for the Monitor resource.
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"` }
LogsAgent ...
type LogsAgent struct { // Transport - The transport. Transport *string `json:"transport,omitempty"` }
ManagedIdentityTypes enumerates the values for managed identity types.
type ManagedIdentityTypes string
const ( // ManagedIdentityTypesSystemAssigned ... ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = "SystemAssigned" // ManagedIdentityTypesUserAssigned ... ManagedIdentityTypesUserAssigned ManagedIdentityTypes = "UserAssigned" )
func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes
PossibleManagedIdentityTypesValues returns an array of possible values for the ManagedIdentityTypes const type.
MarketplaceAgreementsClient is the client for the MarketplaceAgreements methods of the Datadog service.
type MarketplaceAgreementsClient struct { BaseClient }
func NewMarketplaceAgreementsClient(subscriptionID string) MarketplaceAgreementsClient
NewMarketplaceAgreementsClient creates an instance of the MarketplaceAgreementsClient client.
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 (client MarketplaceAgreementsClient) CreateOrUpdate(ctx context.Context, body *AgreementResource) (result AgreementResource, err error)
CreateOrUpdate sends the create or update request.
func (client MarketplaceAgreementsClient) CreateOrUpdatePreparer(ctx context.Context, body *AgreementResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (client MarketplaceAgreementsClient) List(ctx context.Context) (result AgreementResourceListResponsePage, err error)
List sends the list request.
func (client MarketplaceAgreementsClient) ListComplete(ctx context.Context) (result AgreementResourceListResponseIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client MarketplaceAgreementsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
MarketplaceSubscriptionStatus enumerates the values for marketplace subscription status.
type MarketplaceSubscriptionStatus string
const ( // MarketplaceSubscriptionStatusActive ... MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = "Active" // MarketplaceSubscriptionStatusProvisioning ... MarketplaceSubscriptionStatusProvisioning MarketplaceSubscriptionStatus = "Provisioning" // MarketplaceSubscriptionStatusSuspended ... MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended" // MarketplaceSubscriptionStatusUnsubscribed ... MarketplaceSubscriptionStatusUnsubscribed MarketplaceSubscriptionStatus = "Unsubscribed" )
func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus
PossibleMarketplaceSubscriptionStatusValues returns an array of possible values for the MarketplaceSubscriptionStatus const type.
MetricRules set of rules for sending metrics for the Monitor resource.
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"` }
MonitorProperties properties specific to the monitor resource.
type MonitorProperties struct { // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // MonitoringStatus - Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` // MarketplaceSubscriptionStatus - Possible values include: 'MarketplaceSubscriptionStatusProvisioning', 'MarketplaceSubscriptionStatusActive', 'MarketplaceSubscriptionStatusSuspended', 'MarketplaceSubscriptionStatusUnsubscribed' MarketplaceSubscriptionStatus MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"` DatadogOrganizationProperties *OrganizationProperties `json:"datadogOrganizationProperties,omitempty"` UserInfo *UserInfo `json:"userInfo,omitempty"` // LiftrResourceCategory - Possible values include: 'LiftrResourceCategoriesUnknown', 'LiftrResourceCategoriesMonitorLogs' LiftrResourceCategory LiftrResourceCategories `json:"liftrResourceCategory,omitempty"` // LiftrResourcePreference - READ-ONLY; The priority of the resource. LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty"` }
func (mp MonitorProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorProperties.
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` }
func (mr MonitorResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorResource.
MonitorResourceListResponse response of a list operation.
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"` }
func (mrlr MonitorResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MonitorResourceListResponseIterator provides access to a complete listing of MonitorResource values.
type MonitorResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewMonitorResourceListResponseIterator(page MonitorResourceListResponsePage) MonitorResourceListResponseIterator
Creates a new instance of the MonitorResourceListResponseIterator type.
func (iter *MonitorResourceListResponseIterator) 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 (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 (iter MonitorResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MonitorResourceListResponseIterator) Response() MonitorResourceListResponse
Response returns the raw server response from the last page request.
func (iter MonitorResourceListResponseIterator) Value() MonitorResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MonitorResourceListResponsePage contains a page of MonitorResource values.
type MonitorResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewMonitorResourceListResponsePage(cur MonitorResourceListResponse, getNextPage func(context.Context, MonitorResourceListResponse) (MonitorResourceListResponse, error)) MonitorResourceListResponsePage
Creates a new instance of the MonitorResourceListResponsePage type.
func (page *MonitorResourceListResponsePage) 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 (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 (page MonitorResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MonitorResourceListResponsePage) Response() MonitorResourceListResponse
Response returns the raw server response from the last page request.
func (page MonitorResourceListResponsePage) Values() []MonitorResource
Values returns the slice of values for the current page or nil if there are no values.
MonitorResourceUpdateParameters the parameters for a PATCH request to a monitor resource.
type MonitorResourceUpdateParameters struct { Properties *MonitorUpdateProperties `json:"properties,omitempty"` // Tags - The new tags of the monitor resource. Tags map[string]*string `json:"tags"` Sku *ResourceSku `json:"sku,omitempty"` }
func (mrup MonitorResourceUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorResourceUpdateParameters.
MonitorUpdateProperties the set of properties that can be update in a PATCH request to a monitor resource.
type MonitorUpdateProperties struct { // MonitoringStatus - Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` }
MonitoredResource the properties of a resource currently being monitored by the Datadog monitor resource.
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"` }
MonitoredResourceListResponse response of a list operation.
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"` }
func (mrlr MonitoredResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MonitoredResourceListResponseIterator provides access to a complete listing of MonitoredResource values.
type MonitoredResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewMonitoredResourceListResponseIterator(page MonitoredResourceListResponsePage) MonitoredResourceListResponseIterator
Creates a new instance of the MonitoredResourceListResponseIterator type.
func (iter *MonitoredResourceListResponseIterator) 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 (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 (iter MonitoredResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MonitoredResourceListResponseIterator) Response() MonitoredResourceListResponse
Response returns the raw server response from the last page request.
func (iter MonitoredResourceListResponseIterator) Value() MonitoredResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MonitoredResourceListResponsePage contains a page of MonitoredResource values.
type MonitoredResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewMonitoredResourceListResponsePage(cur MonitoredResourceListResponse, getNextPage func(context.Context, MonitoredResourceListResponse) (MonitoredResourceListResponse, error)) MonitoredResourceListResponsePage
Creates a new instance of the MonitoredResourceListResponsePage type.
func (page *MonitoredResourceListResponsePage) 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 (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 (page MonitoredResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MonitoredResourceListResponsePage) Response() MonitoredResourceListResponse
Response returns the raw server response from the last page request.
func (page MonitoredResourceListResponsePage) Values() []MonitoredResource
Values returns the slice of values for the current page or nil if there are no values.
MonitoringStatus enumerates the values for monitoring status.
type MonitoringStatus string
const ( // MonitoringStatusDisabled ... MonitoringStatusDisabled MonitoringStatus = "Disabled" // MonitoringStatusEnabled ... MonitoringStatusEnabled MonitoringStatus = "Enabled" )
func PossibleMonitoringStatusValues() []MonitoringStatus
PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type.
MonitoringTagRules capture logs and metrics of Azure resources based on ARM tags.
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` }
func (mtr MonitoringTagRules) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitoringTagRules.
MonitoringTagRulesListResponse response of a list operation.
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"` }
func (mtrlr MonitoringTagRulesListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MonitoringTagRulesListResponseIterator provides access to a complete listing of MonitoringTagRules values.
type MonitoringTagRulesListResponseIterator struct {
// contains filtered or unexported fields
}
func NewMonitoringTagRulesListResponseIterator(page MonitoringTagRulesListResponsePage) MonitoringTagRulesListResponseIterator
Creates a new instance of the MonitoringTagRulesListResponseIterator type.
func (iter *MonitoringTagRulesListResponseIterator) 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 (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 (iter MonitoringTagRulesListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MonitoringTagRulesListResponseIterator) Response() MonitoringTagRulesListResponse
Response returns the raw server response from the last page request.
func (iter MonitoringTagRulesListResponseIterator) Value() MonitoringTagRules
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MonitoringTagRulesListResponsePage contains a page of MonitoringTagRules values.
type MonitoringTagRulesListResponsePage struct {
// contains filtered or unexported fields
}
func NewMonitoringTagRulesListResponsePage(cur MonitoringTagRulesListResponse, getNextPage func(context.Context, MonitoringTagRulesListResponse) (MonitoringTagRulesListResponse, error)) MonitoringTagRulesListResponsePage
Creates a new instance of the MonitoringTagRulesListResponsePage type.
func (page *MonitoringTagRulesListResponsePage) 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 (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 (page MonitoringTagRulesListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MonitoringTagRulesListResponsePage) Response() MonitoringTagRulesListResponse
Response returns the raw server response from the last page request.
func (page MonitoringTagRulesListResponsePage) Values() []MonitoringTagRules
Values returns the slice of values for the current page or nil if there are no values.
MonitoringTagRulesProperties definition of the properties for a TagRules resource.
type MonitoringTagRulesProperties struct { // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` LogRules *LogRules `json:"logRules,omitempty"` MetricRules *MetricRules `json:"metricRules,omitempty"` }
MonitorsClient is the client for the Monitors methods of the Datadog service.
type MonitorsClient struct { BaseClient }
func NewMonitorsClient(subscriptionID string) MonitorsClient
NewMonitorsClient creates an instance of the MonitorsClient client.
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 (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. The name is case insensitive. monitorName - monitor resource name
func (client MonitorsClient) CreatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
func (client MonitorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
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. The name is case insensitive. monitorName - monitor resource name
func (client MonitorsClient) GetDefaultKeyPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
GetDefaultKeyPreparer prepares the GetDefaultKey request.
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 (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 (client MonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client MonitorsClient) List(ctx context.Context) (result MonitorResourceListResponsePage, err error)
List sends the list request.
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. The name is case insensitive. monitorName - monitor resource name
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 (client MonitorsClient) ListAPIKeysPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListAPIKeysPreparer prepares the ListAPIKeys request.
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 (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 (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. The name is case insensitive.
func (client MonitorsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponseIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client MonitorsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client MonitorsClient) ListComplete(ctx context.Context) (result MonitorResourceListResponseIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
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. The name is case insensitive. monitorName - monitor resource name
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 (client MonitorsClient) ListHostsPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListHostsPreparer prepares the ListHosts request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
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 (client MonitorsClient) ListLinkedResourcesPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListLinkedResourcesPreparer prepares the ListLinkedResources request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
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 (client MonitorsClient) ListMonitoredResourcesPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListMonitoredResourcesPreparer prepares the ListMonitoredResources request.
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 (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 (client MonitorsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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. The name is case insensitive. monitorName - monitor resource name
func (client MonitorsClient) RefreshSetPasswordLinkPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
RefreshSetPasswordLinkPreparer prepares the RefreshSetPasswordLink request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
func (client MonitorsClient) SetDefaultKeyPreparer(ctx context.Context, resourceGroupName string, monitorName string, body *APIKey) (*http.Request, error)
SetDefaultKeyPreparer prepares the SetDefaultKey request.
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 (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 (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (result MonitorsUpdateFuture, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. monitorName - monitor resource name
func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (client MonitorsClient) UpdateSender(req *http.Request) (future MonitorsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
MonitorsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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) }
func (future *MonitorsCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
MonitorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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) }
func (future *MonitorsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
MonitorsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type MonitorsUpdateFuture 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) }
func (future *MonitorsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
OperationDisplay the object that represents the operation.
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"` }
OperationListResult result of GET request to list the Microsoft.Datadog operations.
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"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
OperationListResultIterator provides access to a complete listing of OperationResult values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
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 (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 (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() OperationResult
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationListResultPage contains a page of OperationResult values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
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 (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 (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []OperationResult
Values returns the slice of values for the current page or nil if there are no values.
OperationResult a Microsoft.Datadog REST API operation.
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"` }
OperationsClient is the client for the Operations methods of the Datadog service.
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
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 (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List sends the list request.
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
OrganizationProperties datadog organization properties
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"` }
func (op OrganizationProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OrganizationProperties.
ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const ( // ProvisioningStateAccepted ... ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled ... ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateCreating ... ProvisioningStateCreating ProvisioningState = "Creating" // ProvisioningStateDeleted ... ProvisioningStateDeleted ProvisioningState = "Deleted" // ProvisioningStateDeleting ... ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateNotSpecified ... ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
ResourceSku ...
type ResourceSku struct { // Name - Name of the SKU. Name *string `json:"name,omitempty"` }
SetPasswordLink ...
type SetPasswordLink struct { autorest.Response `json:"-"` SetPasswordLink *string `json:"setPasswordLink,omitempty"` }
SingleSignOnConfigurationsClient is the client for the SingleSignOnConfigurations methods of the Datadog service.
type SingleSignOnConfigurationsClient struct { BaseClient }
func NewSingleSignOnConfigurationsClient(subscriptionID string) SingleSignOnConfigurationsClient
NewSingleSignOnConfigurationsClient creates an instance of the SingleSignOnConfigurationsClient client.
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 (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. The name is case insensitive. monitorName - monitor resource name configurationName - configuration name
func (client SingleSignOnConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, body *SingleSignOnResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (client SingleSignOnConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future SingleSignOnConfigurationsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
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. The name is case insensitive. monitorName - monitor resource name configurationName - configuration name
func (client SingleSignOnConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, configurationName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
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 (client SingleSignOnConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
SingleSignOnConfigurationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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) }
func (future *SingleSignOnConfigurationsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
SingleSignOnProperties ...
type SingleSignOnProperties struct { // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // SingleSignOnState - Possible values include: 'SingleSignOnStatesInitial', 'SingleSignOnStatesEnable', 'SingleSignOnStatesDisable', 'SingleSignOnStatesExisting' 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"` }
func (ssop SingleSignOnProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SingleSignOnProperties.
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` }
func (ssor SingleSignOnResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SingleSignOnResource.
SingleSignOnResourceListResponse response of a list operation.
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"` }
func (ssorlr SingleSignOnResourceListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
SingleSignOnResourceListResponseIterator provides access to a complete listing of SingleSignOnResource values.
type SingleSignOnResourceListResponseIterator struct {
// contains filtered or unexported fields
}
func NewSingleSignOnResourceListResponseIterator(page SingleSignOnResourceListResponsePage) SingleSignOnResourceListResponseIterator
Creates a new instance of the SingleSignOnResourceListResponseIterator type.
func (iter *SingleSignOnResourceListResponseIterator) 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 (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 (iter SingleSignOnResourceListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SingleSignOnResourceListResponseIterator) Response() SingleSignOnResourceListResponse
Response returns the raw server response from the last page request.
func (iter SingleSignOnResourceListResponseIterator) Value() SingleSignOnResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
SingleSignOnResourceListResponsePage contains a page of SingleSignOnResource values.
type SingleSignOnResourceListResponsePage struct {
// contains filtered or unexported fields
}
func NewSingleSignOnResourceListResponsePage(cur SingleSignOnResourceListResponse, getNextPage func(context.Context, SingleSignOnResourceListResponse) (SingleSignOnResourceListResponse, error)) SingleSignOnResourceListResponsePage
Creates a new instance of the SingleSignOnResourceListResponsePage type.
func (page *SingleSignOnResourceListResponsePage) 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 (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 (page SingleSignOnResourceListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SingleSignOnResourceListResponsePage) Response() SingleSignOnResourceListResponse
Response returns the raw server response from the last page request.
func (page SingleSignOnResourceListResponsePage) Values() []SingleSignOnResource
Values returns the slice of values for the current page or nil if there are no values.
SingleSignOnStates enumerates the values for single sign on states.
type SingleSignOnStates string
const ( // SingleSignOnStatesDisable ... SingleSignOnStatesDisable SingleSignOnStates = "Disable" // SingleSignOnStatesEnable ... SingleSignOnStatesEnable SingleSignOnStates = "Enable" // SingleSignOnStatesExisting ... SingleSignOnStatesExisting SingleSignOnStates = "Existing" // SingleSignOnStatesInitial ... SingleSignOnStatesInitial SingleSignOnStates = "Initial" )
func PossibleSingleSignOnStatesValues() []SingleSignOnStates
PossibleSingleSignOnStatesValues returns an array of possible values for the SingleSignOnStates const type.
SystemData metadata pertaining to creation and last modification of the resource.
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TagAction enumerates the values for tag action.
type TagAction string
const ( // TagActionExclude ... TagActionExclude TagAction = "Exclude" // TagActionInclude ... TagActionInclude TagAction = "Include" )
func PossibleTagActionValues() []TagAction
PossibleTagActionValues returns an array of possible values for the TagAction const type.
TagRulesClient is the client for the TagRules methods of the Datadog service.
type TagRulesClient struct { BaseClient }
func NewTagRulesClient(subscriptionID string) TagRulesClient
NewTagRulesClient creates an instance of the TagRulesClient client.
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 (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. The name is case insensitive. monitorName - monitor resource name ruleSetName - rule set name
func (client TagRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name ruleSetName - rule set name
func (client TagRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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. The name is case insensitive. monitorName - monitor resource name
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 (client TagRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
UserInfo user info
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"` }
Name | Synopsis |
---|---|
.. | |
datadogapi | Deprecated: Please note, this package has been deprecated. |