armdynatrace

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 16 Imported by: 2

README

Azure Dynatrace Module for Go

PkgGoDev

The armdynatrace module provides operations for working with Azure Dynatrace.

Source code

Getting started

Prerequisites

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Dynatrace module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Dynatrace. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Clients

Azure Dynatrace modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential.

client, err := armdynatrace.NewTagRulesClient(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions{
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
client, err := armdynatrace.NewTagRulesClient(<subscription ID>, cred, &options)

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Dynatrace label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {
	// Account Id of the account this environment is linked to
	AccountID *string `json:"accountId,omitempty"`

	// Region in which the account is created
	RegionID *string `json:"regionId,omitempty"`
}

AccountInfo - Dynatrace Account Information

type AccountInfoSecure

type AccountInfoSecure struct {
	// READ-ONLY; API Key of the user account
	APIKey *string `json:"apiKey,omitempty" azure:"ro"`

	// READ-ONLY; Account Id of the account this environment is linked to
	AccountID *string `json:"accountId,omitempty" azure:"ro"`

	// READ-ONLY; Region in which the account is created
	RegionID *string `json:"regionId,omitempty" azure:"ro"`
}

AccountInfoSecure - Dynatrace account API Key

type ActionType

type ActionType string

ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

const (
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns the possible values for the ActionType const type.

type AppServiceInfo

type AppServiceInfo struct {
	// Update settings of OneAgent.
	AutoUpdateSetting *AutoUpdateSetting `json:"autoUpdateSetting,omitempty"`

	// The availability state of OneAgent.
	AvailabilityState *AvailabilityState `json:"availabilityState,omitempty"`

	// The name of the host group
	HostGroup *string `json:"hostGroup,omitempty"`

	// The name of the host
	HostName *string `json:"hostName,omitempty"`

	// Tells whether log modules are enabled or not
	LogModule *LogModule `json:"logModule,omitempty"`

	// The monitoring mode of OneAgent
	MonitoringType *MonitoringType `json:"monitoringType,omitempty"`

	// App service resource ID
	ResourceID *string `json:"resourceId,omitempty"`

	// The current update status of OneAgent.
	UpdateStatus *UpdateStatus `json:"updateStatus,omitempty"`

	// Version of the Dynatrace agent installed on the App Service.
	Version *string `json:"version,omitempty"`
}

AppServiceInfo - Details of App Services having Dynatrace OneAgent installed

type AppServiceListResponse

type AppServiceListResponse struct {
	// REQUIRED; The link to the next page of items
	NextLink *string `json:"nextLink,omitempty"`

	// REQUIRED; The items on this page
	Value []*AppServiceInfo `json:"value,omitempty"`
}

AppServiceListResponse - Response of a list App Services Operation.

type AutoUpdateSetting

type AutoUpdateSetting string

AutoUpdateSetting - Update settings of OneAgent.

const (
	AutoUpdateSettingDISABLED AutoUpdateSetting = "DISABLED"
	AutoUpdateSettingENABLED  AutoUpdateSetting = "ENABLED"
)

func PossibleAutoUpdateSettingValues

func PossibleAutoUpdateSettingValues() []AutoUpdateSetting

PossibleAutoUpdateSettingValues returns the possible values for the AutoUpdateSetting const type.

type AvailabilityState

type AvailabilityState string

AvailabilityState - The availability state of OneAgent.

const (
	AvailabilityStateCRASHED            AvailabilityState = "CRASHED"
	AvailabilityStateLOST               AvailabilityState = "LOST"
	AvailabilityStateMONITORED          AvailabilityState = "MONITORED"
	AvailabilityStatePREMONITORED       AvailabilityState = "PRE_MONITORED"
	AvailabilityStateSHUTDOWN           AvailabilityState = "SHUTDOWN"
	AvailabilityStateUNEXPECTEDSHUTDOWN AvailabilityState = "UNEXPECTED_SHUTDOWN"
	AvailabilityStateUNKNOWN            AvailabilityState = "UNKNOWN"
	AvailabilityStateUNMONITORED        AvailabilityState = "UNMONITORED"
)

func PossibleAvailabilityStateValues

func PossibleAvailabilityStateValues() []AvailabilityState

PossibleAvailabilityStateValues returns the possible values for the AvailabilityState const type.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type EnvironmentInfo

type EnvironmentInfo struct {
	// Id of the environment created
	EnvironmentID *string `json:"environmentId,omitempty"`

	// Ingestion key of the environment
	IngestionKey *string `json:"ingestionKey,omitempty"`

	// Landing URL for Dynatrace environment
	LandingURL *string `json:"landingURL,omitempty"`

	// Ingestion endpoint used for sending logs
	LogsIngestionEndpoint *string `json:"logsIngestionEndpoint,omitempty"`
}

EnvironmentInfo - Dynatrace Environment Information

type EnvironmentProperties

type EnvironmentProperties struct {
	// Dynatrace Account Information
	AccountInfo *AccountInfo `json:"accountInfo,omitempty"`

	// Dynatrace Environment Information
	EnvironmentInfo *EnvironmentInfo `json:"environmentInfo,omitempty"`

	// The details of a Dynatrace single sign-on.
	SingleSignOnProperties *SingleSignOnProperties `json:"singleSignOnProperties,omitempty"`

	// User id
	UserID *string `json:"userId,omitempty"`
}

EnvironmentProperties - Properties of the Dynatrace environment.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// READ-ONLY; The additional info.
	Info interface{} `json:"info,omitempty" azure:"ro"`

	// READ-ONLY; The additional info type.
	Type *string `json:"type,omitempty" azure:"ro"`
}

ErrorAdditionalInfo - The resource management error additional info.

type ErrorDetail

type ErrorDetail struct {
	// READ-ONLY; The error additional info.
	AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"`

	// READ-ONLY; The error code.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; The error details.
	Details []*ErrorDetail `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; The error target.
	Target *string `json:"target,omitempty" azure:"ro"`
}

ErrorDetail - The error detail.

type ErrorResponse

type ErrorResponse struct {
	// The error object.
	Error *ErrorDetail `json:"error,omitempty"`
}

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 FilteringTag

type FilteringTag struct {
	// Valid actions for a filtering tag. Exclusion takes priority over inclusion.
	Action *TagAction `json:"action,omitempty"`

	// The name (also known as the key) of the tag.
	Name *string `json:"name,omitempty"`

	// The value of the tag.
	Value *string `json:"value,omitempty"`
}

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

type IdentityProperties

type IdentityProperties struct {
	// REQUIRED; The type of managed identity assigned to this resource.
	Type *ManagedIdentityType `json:"type,omitempty"`

	// The identities assigned to this resource by the user.
	UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"`

	// READ-ONLY; The active directory identifier of this principal.
	PrincipalID *string `json:"principalId,omitempty" azure:"ro"`

	// READ-ONLY; The Active Directory tenant id of the principal.
	TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}

IdentityProperties - The properties of the managed service identities assigned to this resource.

func (IdentityProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type IdentityProperties.

type LiftrResourceCategories

type LiftrResourceCategories string

LiftrResourceCategories - Liftr resource category

const (
	LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs"
	LiftrResourceCategoriesUnknown     LiftrResourceCategories = "Unknown"
)

func PossibleLiftrResourceCategoriesValues

func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories

PossibleLiftrResourceCategoriesValues returns the possible values for the LiftrResourceCategories const type.

type LinkableEnvironmentListResponse

type LinkableEnvironmentListResponse struct {
	// Link to the next set of results, if any.
	NextLink *string `json:"nextLink,omitempty"`

	// List of environments for which user is an admin
	Value []*LinkableEnvironmentResponse `json:"value,omitempty"`
}

LinkableEnvironmentListResponse - Response for getting all the linkable environments

type LinkableEnvironmentRequest

type LinkableEnvironmentRequest struct {
	// Azure region in which we want to link the environment
	Region *string `json:"region,omitempty"`

	// Tenant Id of the user in which they want to link the environment
	TenantID *string `json:"tenantId,omitempty"`

	// user principal id of the user
	UserPrincipal *string `json:"userPrincipal,omitempty"`
}

LinkableEnvironmentRequest - Request for getting all the linkable environments for a user

type LinkableEnvironmentResponse

type LinkableEnvironmentResponse struct {
	// environment id for which user is an admin
	EnvironmentID *string `json:"environmentId,omitempty"`

	// Name of the environment
	EnvironmentName *string `json:"environmentName,omitempty"`

	// Billing plan information.
	PlanData *PlanData `json:"planData,omitempty"`
}

LinkableEnvironmentResponse - Response for getting all the linkable environments

type LogModule

type LogModule string

LogModule - Tells whether log modules are enabled or not

const (
	LogModuleDISABLED LogModule = "DISABLED"
	LogModuleENABLED  LogModule = "ENABLED"
)

func PossibleLogModuleValues

func PossibleLogModuleValues() []LogModule

PossibleLogModuleValues returns the possible values for the LogModule const type.

type LogRules

type LogRules struct {
	// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs 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"`

	// Flag specifying if AAD logs should be sent for the Monitor resource.
	SendAADLogs *SendAADLogsStatus `json:"sendAadLogs,omitempty"`

	// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
	SendActivityLogs *SendActivityLogsStatus `json:"sendActivityLogs,omitempty"`

	// Flag specifying if subscription logs should be sent for the Monitor resource.
	SendSubscriptionLogs *SendSubscriptionLogsStatus `json:"sendSubscriptionLogs,omitempty"`
}

LogRules - Set of rules for sending logs for the Monitor resource.

func (LogRules) MarshalJSON

func (l LogRules) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogRules.

type ManagedIdentityType

type ManagedIdentityType string

ManagedIdentityType - The kind of managed identity assigned to this resource.

const (
	ManagedIdentityTypeSystemAndUserAssigned ManagedIdentityType = "SystemAndUserAssigned"
	ManagedIdentityTypeSystemAssigned        ManagedIdentityType = "SystemAssigned"
	ManagedIdentityTypeUserAssigned          ManagedIdentityType = "UserAssigned"
)

func PossibleManagedIdentityTypeValues

func PossibleManagedIdentityTypeValues() []ManagedIdentityType

PossibleManagedIdentityTypeValues returns the possible values for the ManagedIdentityType const type.

type MarketplaceSubscriptionStatus

type MarketplaceSubscriptionStatus string

MarketplaceSubscriptionStatus - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.

const (
	MarketplaceSubscriptionStatusActive    MarketplaceSubscriptionStatus = "Active"
	MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended"
)

func PossibleMarketplaceSubscriptionStatusValues

func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus

PossibleMarketplaceSubscriptionStatusValues returns the possible values for the MarketplaceSubscriptionStatus const type.

type MetricRules

type MetricRules struct {
	// 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.

func (MetricRules) MarshalJSON

func (m MetricRules) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricRules.

type MonitorProperties

type MonitorProperties struct {
	// Properties of the Dynatrace environment.
	DynatraceEnvironmentProperties *EnvironmentProperties `json:"dynatraceEnvironmentProperties,omitempty"`

	// Marketplace subscription status.
	MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"`

	// Status of the monitor.
	MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty"`

	// Billing plan information.
	PlanData *PlanData `json:"planData,omitempty"`

	// User info.
	UserInfo *UserInfo `json:"userInfo,omitempty"`

	// READ-ONLY; Liftr Resource category.
	LiftrResourceCategory *LiftrResourceCategories `json:"liftrResourceCategory,omitempty" azure:"ro"`

	// READ-ONLY; The priority of the resource.
	LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty" azure:"ro"`

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

MonitorProperties - Properties specific to the monitor resource.

type MonitorResource

type MonitorResource struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// REQUIRED; The resource-specific properties for this resource.
	Properties *MonitorProperties `json:"properties,omitempty"`

	// The managed service identities assigned to this resource.
	Identity *IdentityProperties `json:"identity,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; System metadata for this resource.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

MonitorResource - Dynatrace Monitor Resource

func (MonitorResource) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MonitorResource.

type MonitorResourceListResult

type MonitorResourceListResult struct {
	// REQUIRED; The link to the next page of items
	NextLink *string `json:"nextLink,omitempty"`

	// REQUIRED; The items on this page
	Value []*MonitorResource `json:"value,omitempty"`
}

MonitorResourceListResult - The response of a MonitorResource list operation.

type MonitorResourceUpdate

type MonitorResourceUpdate struct {
	// Properties of the Dynatrace environment.
	DynatraceEnvironmentProperties *EnvironmentProperties `json:"dynatraceEnvironmentProperties,omitempty"`

	// Marketplace subscription status.
	MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"`

	// Status of the monitor.
	MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty"`

	// Billing plan information.
	PlanData *PlanData `json:"planData,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// User info.
	UserInfo *UserInfo `json:"userInfo,omitempty"`
}

MonitorResourceUpdate - The updatable properties of the MonitorResource.

func (MonitorResourceUpdate) MarshalJSON

func (m MonitorResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MonitorResourceUpdate.

type MonitoredResource

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

	// Reason for why the resource is sending logs (or why it is not sending).
	ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"`

	// Reason for why the resource is sending metrics (or why it is not sending).
	ReasonForMetricsStatus *string `json:"reasonForMetricsStatus,omitempty"`

	// Flag indicating if resource is sending logs to Dynatrace.
	SendingLogs *SendingLogsStatus `json:"sendingLogs,omitempty"`

	// Flag indicating if resource is sending metrics to Dynatrace.
	SendingMetrics *SendingMetricsStatus `json:"sendingMetrics,omitempty"`
}

MonitoredResource - Details of resource being monitored by Dynatrace monitor resource

type MonitoredResourceListResponse

type MonitoredResourceListResponse struct {
	// REQUIRED; The link to the next page of items
	NextLink *string `json:"nextLink,omitempty"`

	// REQUIRED; The items on this page
	Value []*MonitoredResource `json:"value,omitempty"`
}

MonitoredResourceListResponse - List of all the resources being monitored by Dynatrace monitor resource

type MonitoringStatus

type MonitoringStatus string

MonitoringStatus - Flag specifying if the resource monitoring is enabled or disabled.

const (
	MonitoringStatusDisabled MonitoringStatus = "Disabled"
	MonitoringStatusEnabled  MonitoringStatus = "Enabled"
)

func PossibleMonitoringStatusValues

func PossibleMonitoringStatusValues() []MonitoringStatus

PossibleMonitoringStatusValues returns the possible values for the MonitoringStatus const type.

type MonitoringTagRulesProperties

type MonitoringTagRulesProperties struct {
	// Set of rules for sending logs for the Monitor resource.
	LogRules *LogRules `json:"logRules,omitempty"`

	// Set of rules for sending metrics for the Monitor resource.
	MetricRules *MetricRules `json:"metricRules,omitempty"`

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

MonitoringTagRulesProperties - Properties for the Tag rules resource of a Monitor account.

type MonitoringType

type MonitoringType string

MonitoringType - The monitoring mode of OneAgent

const (
	MonitoringTypeCLOUDINFRASTRUCTURE MonitoringType = "CLOUD_INFRASTRUCTURE"
	MonitoringTypeFULLSTACK           MonitoringType = "FULL_STACK"
)

func PossibleMonitoringTypeValues

func PossibleMonitoringTypeValues() []MonitoringType

PossibleMonitoringTypeValues returns the possible values for the MonitoringType const type.

type MonitorsClient

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

MonitorsClient contains the methods for the Monitors group. Don't use this type directly, use NewMonitorsClient() instead.

func NewMonitorsClient

func NewMonitorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitorsClient, error)

NewMonitorsClient creates a new instance of MonitorsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*MonitorsClient) BeginCreateOrUpdate

func (client *MonitorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, resource MonitorResource, options *MonitorsClientBeginCreateOrUpdateOptions) (*runtime.Poller[MonitorsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a MonitorResource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name resource - Resource create parameters. options - MonitorsClientBeginCreateOrUpdateOptions contains the optional parameters for the MonitorsClient.BeginCreateOrUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"time"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreateOrUpdate(ctx,
		"myResourceGroup",
		"myMonitor",
		armdynatrace.MonitorResource{
			Location: to.Ptr("West US 2"),
			Tags: map[string]*string{
				"Environment": to.Ptr("Dev"),
			},
			Identity: &armdynatrace.IdentityProperties{
				Type: to.Ptr(armdynatrace.ManagedIdentityTypeSystemAssigned),
			},
			Properties: &armdynatrace.MonitorProperties{
				DynatraceEnvironmentProperties: &armdynatrace.EnvironmentProperties{
					AccountInfo:            &armdynatrace.AccountInfo{},
					EnvironmentInfo:        &armdynatrace.EnvironmentInfo{},
					SingleSignOnProperties: &armdynatrace.SingleSignOnProperties{},
				},
				LiftrResourceCategory:         to.Ptr(armdynatrace.LiftrResourceCategoriesUnknown),
				MarketplaceSubscriptionStatus: to.Ptr(armdynatrace.MarketplaceSubscriptionStatusActive),
				MonitoringStatus:              to.Ptr(armdynatrace.MonitoringStatusEnabled),
				PlanData: &armdynatrace.PlanData{
					BillingCycle:  to.Ptr("Monthly"),
					EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-30T15:14:33+02:00"); return t }()),
					PlanDetails:   to.Ptr("dynatraceapitestplan"),
					UsageType:     to.Ptr("Committed"),
				},
				ProvisioningState: to.Ptr(armdynatrace.ProvisioningStateAccepted),
				UserInfo: &armdynatrace.UserInfo{
					Country:      to.Ptr("westus2"),
					EmailAddress: to.Ptr("alice@microsoft.com"),
					FirstName:    to.Ptr("Alice"),
					LastName:     to.Ptr("Bobab"),
					PhoneNumber:  to.Ptr("123456"),
				},
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) BeginDelete

func (client *MonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientBeginDeleteOptions) (*runtime.Poller[MonitorsClientDeleteResponse], error)

BeginDelete - Delete a MonitorResource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"myResourceGroup",
		"myMonitor",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*MonitorsClient) Get

func (client *MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetOptions) (MonitorsClientGetResponse, error)

Get - Get a MonitorResource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"myResourceGroup",
		"myMonitor",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) GetAccountCredentials

func (client *MonitorsClient) GetAccountCredentials(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetAccountCredentialsOptions) (MonitorsClientGetAccountCredentialsResponse, error)

GetAccountCredentials - Gets the user account credentials for a Monitor If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientGetAccountCredentialsOptions contains the optional parameters for the MonitorsClient.GetAccountCredentials method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_GetAccountCredentials_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.GetAccountCredentials(ctx,
		"myResourceGroup",
		"myMonitor",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) GetSSODetails

func (client *MonitorsClient) GetSSODetails(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetSSODetailsOptions) (MonitorsClientGetSSODetailsResponse, error)

GetSSODetails - Gets the SSO configuration details from the partner. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientGetSSODetailsOptions contains the optional parameters for the MonitorsClient.GetSSODetails method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_GetSSODetails_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.GetSSODetails(ctx,
		"myResourceGroup",
		"myMonitor",
		&armdynatrace.MonitorsClientGetSSODetailsOptions{Request: &armdynatrace.SSODetailsRequest{
			UserPrincipal: to.Ptr("alice@microsoft.com"),
		},
		})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) GetVMHostPayload

func (client *MonitorsClient) GetVMHostPayload(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetVMHostPayloadOptions) (MonitorsClientGetVMHostPayloadResponse, error)

GetVMHostPayload - Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientGetVMHostPayloadOptions contains the optional parameters for the MonitorsClient.GetVMHostPayload method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_GetVMHostPayload_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.GetVMHostPayload(ctx,
		"myResourceGroup",
		"myMonitor",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) NewListAppServicesPager

func (client *MonitorsClient) NewListAppServicesPager(resourceGroupName string, monitorName string, options *MonitorsClientListAppServicesOptions) *runtime.Pager[MonitorsClientListAppServicesResponse]

NewListAppServicesPager - Gets list of App Services with Dynatrace PaaS OneAgent enabled If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientListAppServicesOptions contains the optional parameters for the MonitorsClient.ListAppServices method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_ListAppServices_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListAppServicesPager("myResourceGroup",
		"myMonitor",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) NewListByResourceGroupPager

func (client *MonitorsClient) NewListByResourceGroupPager(resourceGroupName string, options *MonitorsClientListByResourceGroupOptions) *runtime.Pager[MonitorsClientListByResourceGroupResponse]

NewListByResourceGroupPager - List MonitorResource resources by resource group If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_ListByResourceGroup_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByResourceGroupPager("myResourceGroup",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) NewListBySubscriptionIDPager

NewListBySubscriptionIDPager - List all MonitorResource by subscriptionId If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview options - MonitorsClientListBySubscriptionIDOptions contains the optional parameters for the MonitorsClient.ListBySubscriptionID method.

func (*MonitorsClient) NewListHostsPager

func (client *MonitorsClient) NewListHostsPager(resourceGroupName string, monitorName string, options *MonitorsClientListHostsOptions) *runtime.Pager[MonitorsClientListHostsResponse]

NewListHostsPager - List the compute resources currently being monitored by the Dynatrace resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientListHostsOptions contains the optional parameters for the MonitorsClient.ListHosts method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_ListHosts_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListHostsPager("myResourceGroup",
		"myMonitor",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) NewListLinkableEnvironmentsPager

func (client *MonitorsClient) NewListLinkableEnvironmentsPager(resourceGroupName string, monitorName string, request LinkableEnvironmentRequest, options *MonitorsClientListLinkableEnvironmentsOptions) *runtime.Pager[MonitorsClientListLinkableEnvironmentsResponse]

NewListLinkableEnvironmentsPager - Gets all the Dynatrace environments that a user can link a azure resource to If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name request - The details of the linkable environment request. options - MonitorsClientListLinkableEnvironmentsOptions contains the optional parameters for the MonitorsClient.ListLinkableEnvironments method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_ListLinkableEnvironments_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListLinkableEnvironmentsPager("myResourceGroup",
		"myMonitor",
		armdynatrace.LinkableEnvironmentRequest{
			Region:        to.Ptr("East US"),
			TenantID:      to.Ptr("00000000-0000-0000-0000-000000000000"),
			UserPrincipal: to.Ptr("alice@microsoft.com"),
		},
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) NewListMonitoredResourcesPager

func (client *MonitorsClient) NewListMonitoredResourcesPager(resourceGroupName string, monitorName string, options *MonitorsClientListMonitoredResourcesOptions) *runtime.Pager[MonitorsClientListMonitoredResourcesResponse]

NewListMonitoredResourcesPager - List the resources currently being monitored by the Dynatrace monitor resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - MonitorsClientListMonitoredResourcesOptions contains the optional parameters for the MonitorsClient.ListMonitoredResources method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_ListMonitoredResources_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListMonitoredResourcesPager("myResourceGroup",
		"myMonitor",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) Update

func (client *MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, resource MonitorResourceUpdate, options *MonitorsClientUpdateOptions) (MonitorsClientUpdateResponse, error)

Update - Update a MonitorResource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name resource - The resource properties to be updated. options - MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Monitors_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"time"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Update(ctx,
		"myResourceGroup",
		"myMonitor",
		armdynatrace.MonitorResourceUpdate{
			DynatraceEnvironmentProperties: &armdynatrace.EnvironmentProperties{
				AccountInfo:            &armdynatrace.AccountInfo{},
				EnvironmentInfo:        &armdynatrace.EnvironmentInfo{},
				SingleSignOnProperties: &armdynatrace.SingleSignOnProperties{},
			},
			MarketplaceSubscriptionStatus: to.Ptr(armdynatrace.MarketplaceSubscriptionStatusActive),
			MonitoringStatus:              to.Ptr(armdynatrace.MonitoringStatusEnabled),
			PlanData: &armdynatrace.PlanData{
				BillingCycle:  to.Ptr("Monthly"),
				EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-30T15:14:33+02:00"); return t }()),
				PlanDetails:   to.Ptr("dynatraceapitestplan"),
				UsageType:     to.Ptr("Committed"),
			},
			Tags: map[string]*string{
				"Environment": to.Ptr("Dev"),
			},
			UserInfo: &armdynatrace.UserInfo{
				Country:      to.Ptr("westus2"),
				EmailAddress: to.Ptr("alice@microsoft.com"),
				FirstName:    to.Ptr("Alice"),
				LastName:     to.Ptr("Bobab"),
				PhoneNumber:  to.Ptr("123456"),
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type MonitorsClientBeginCreateOrUpdateOptions

type MonitorsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

MonitorsClientBeginCreateOrUpdateOptions contains the optional parameters for the MonitorsClient.BeginCreateOrUpdate method.

type MonitorsClientBeginDeleteOptions

type MonitorsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.

type MonitorsClientCreateOrUpdateResponse

type MonitorsClientCreateOrUpdateResponse struct {
	MonitorResource
}

MonitorsClientCreateOrUpdateResponse contains the response from method MonitorsClient.CreateOrUpdate.

type MonitorsClientDeleteResponse

type MonitorsClientDeleteResponse struct {
}

MonitorsClientDeleteResponse contains the response from method MonitorsClient.Delete.

type MonitorsClientGetAccountCredentialsOptions

type MonitorsClientGetAccountCredentialsOptions struct {
}

MonitorsClientGetAccountCredentialsOptions contains the optional parameters for the MonitorsClient.GetAccountCredentials method.

type MonitorsClientGetAccountCredentialsResponse

type MonitorsClientGetAccountCredentialsResponse struct {
	AccountInfoSecure
}

MonitorsClientGetAccountCredentialsResponse contains the response from method MonitorsClient.GetAccountCredentials.

type MonitorsClientGetOptions

type MonitorsClientGetOptions struct {
}

MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.

type MonitorsClientGetResponse

type MonitorsClientGetResponse struct {
	MonitorResource
}

MonitorsClientGetResponse contains the response from method MonitorsClient.Get.

type MonitorsClientGetSSODetailsOptions

type MonitorsClientGetSSODetailsOptions struct {
	// The details of the get sso details request.
	Request *SSODetailsRequest
}

MonitorsClientGetSSODetailsOptions contains the optional parameters for the MonitorsClient.GetSSODetails method.

type MonitorsClientGetSSODetailsResponse

type MonitorsClientGetSSODetailsResponse struct {
	SSODetailsResponse
}

MonitorsClientGetSSODetailsResponse contains the response from method MonitorsClient.GetSSODetails.

type MonitorsClientGetVMHostPayloadOptions

type MonitorsClientGetVMHostPayloadOptions struct {
}

MonitorsClientGetVMHostPayloadOptions contains the optional parameters for the MonitorsClient.GetVMHostPayload method.

type MonitorsClientGetVMHostPayloadResponse

type MonitorsClientGetVMHostPayloadResponse struct {
	VMExtensionPayload
}

MonitorsClientGetVMHostPayloadResponse contains the response from method MonitorsClient.GetVMHostPayload.

type MonitorsClientListAppServicesOptions

type MonitorsClientListAppServicesOptions struct {
}

MonitorsClientListAppServicesOptions contains the optional parameters for the MonitorsClient.ListAppServices method.

type MonitorsClientListAppServicesResponse

type MonitorsClientListAppServicesResponse struct {
	AppServiceListResponse
}

MonitorsClientListAppServicesResponse contains the response from method MonitorsClient.ListAppServices.

type MonitorsClientListByResourceGroupOptions

type MonitorsClientListByResourceGroupOptions struct {
}

MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.

type MonitorsClientListByResourceGroupResponse

type MonitorsClientListByResourceGroupResponse struct {
	MonitorResourceListResult
}

MonitorsClientListByResourceGroupResponse contains the response from method MonitorsClient.ListByResourceGroup.

type MonitorsClientListBySubscriptionIDOptions

type MonitorsClientListBySubscriptionIDOptions struct {
}

MonitorsClientListBySubscriptionIDOptions contains the optional parameters for the MonitorsClient.ListBySubscriptionID method.

type MonitorsClientListBySubscriptionIDResponse

type MonitorsClientListBySubscriptionIDResponse struct {
	MonitorResourceListResult
}

MonitorsClientListBySubscriptionIDResponse contains the response from method MonitorsClient.ListBySubscriptionID.

type MonitorsClientListHostsOptions

type MonitorsClientListHostsOptions struct {
}

MonitorsClientListHostsOptions contains the optional parameters for the MonitorsClient.ListHosts method.

type MonitorsClientListHostsResponse

type MonitorsClientListHostsResponse struct {
	VMHostsListResponse
}

MonitorsClientListHostsResponse contains the response from method MonitorsClient.ListHosts.

type MonitorsClientListLinkableEnvironmentsOptions

type MonitorsClientListLinkableEnvironmentsOptions struct {
}

MonitorsClientListLinkableEnvironmentsOptions contains the optional parameters for the MonitorsClient.ListLinkableEnvironments method.

type MonitorsClientListLinkableEnvironmentsResponse

type MonitorsClientListLinkableEnvironmentsResponse struct {
	LinkableEnvironmentListResponse
}

MonitorsClientListLinkableEnvironmentsResponse contains the response from method MonitorsClient.ListLinkableEnvironments.

type MonitorsClientListMonitoredResourcesOptions

type MonitorsClientListMonitoredResourcesOptions struct {
}

MonitorsClientListMonitoredResourcesOptions contains the optional parameters for the MonitorsClient.ListMonitoredResources method.

type MonitorsClientListMonitoredResourcesResponse

type MonitorsClientListMonitoredResourcesResponse struct {
	MonitoredResourceListResponse
}

MonitorsClientListMonitoredResourcesResponse contains the response from method MonitorsClient.ListMonitoredResources.

type MonitorsClientUpdateOptions

type MonitorsClientUpdateOptions struct {
}

MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.

type MonitorsClientUpdateResponse

type MonitorsClientUpdateResponse struct {
	MonitorResource
}

MonitorsClientUpdateResponse contains the response from method MonitorsClient.Update.

type Operation

type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay `json:"display,omitempty"`

	// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType `json:"actionType,omitempty" azure:"ro"`

	// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane
	// operations.
	IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"`

	// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
	// "Microsoft.Compute/virtualMachines/capture/action"
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
	// value is "user,system"
	Origin *Origin `json:"origin,omitempty" azure:"ro"`
}

Operation - Details of a REST API operation, returned from the Resource Provider Operations API

type OperationDisplay

type OperationDisplay struct {
	// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string `json:"description,omitempty" azure:"ro"`

	// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
	// Machine", "Restart Virtual Machine".
	Operation *string `json:"operation,omitempty" azure:"ro"`

	// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
	// Compute".
	Provider *string `json:"provider,omitempty" azure:"ro"`

	// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
	// Schedule Collections".
	Resource *string `json:"resource,omitempty" azure:"ro"`
}

OperationDisplay - Localized display information for this particular operation.

type OperationListResult

type OperationListResult struct {
	// READ-ONLY; URL to get the next set of operation list results (if there are any).
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of operations supported by the resource provider
	Value []*Operation `json:"value,omitempty" azure:"ro"`
}

OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

type OperationsClient

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

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - List the operations for Dynatrace.Observability If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/Operations_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewOperationsClient(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.List.

type Origin

type Origin string

Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

const (
	OriginSystem     Origin = "system"
	OriginUser       Origin = "user"
	OriginUserSystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns the possible values for the Origin const type.

type PlanData

type PlanData struct {
	// different billing cycles like MONTHLY/WEEKLY. this could be enum
	BillingCycle *string `json:"billingCycle,omitempty"`

	// date when plan was applied
	EffectiveDate *time.Time `json:"effectiveDate,omitempty"`

	// plan id as published by Dynatrace
	PlanDetails *string `json:"planDetails,omitempty"`

	// different usage type like PAYG/COMMITTED. this could be enum
	UsageType *string `json:"usageType,omitempty"`
}

PlanData - Billing plan information.

func (PlanData) MarshalJSON

func (p PlanData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PlanData.

func (*PlanData) UnmarshalJSON

func (p *PlanData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PlanData.

type ProvisioningState

type ProvisioningState string

ProvisioningState - Provisioning state of the monitoring resource

const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateCreating     ProvisioningState = "Creating"
	ProvisioningStateDeleted      ProvisioningState = "Deleted"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNotSpecified ProvisioningState = "NotSpecified"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Resource - Common fields that are returned in the response for all Azure Resource Manager resources

type SSODetailsRequest

type SSODetailsRequest struct {
	// user principal id of the user
	UserPrincipal *string `json:"userPrincipal,omitempty"`
}

SSODetailsRequest - Request for getting sso details for a user

type SSODetailsResponse

type SSODetailsResponse struct {
	// array of Aad(azure active directory) domains
	AADDomains []*string `json:"aadDomains,omitempty"`

	// Array of admin user emails.
	AdminUsers []*string `json:"adminUsers,omitempty"`

	// Whether the SSO is enabled for this resource or not.
	IsSsoEnabled *SSOStatus `json:"isSsoEnabled,omitempty"`

	// URL for Azure AD metadata
	MetadataURL *string `json:"metadataUrl,omitempty"`

	// The login URL specific to this Dynatrace Environment
	SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"`
}

SSODetailsResponse - SSO details from the Dynatrace partner

type SSOStatus

type SSOStatus string

SSOStatus - Indicates whether SSO is enabled or not

const (
	SSOStatusDisabled SSOStatus = "Disabled"
	SSOStatusEnabled  SSOStatus = "Enabled"
)

func PossibleSSOStatusValues

func PossibleSSOStatusValues() []SSOStatus

PossibleSSOStatusValues returns the possible values for the SSOStatus const type.

type SendAADLogsStatus

type SendAADLogsStatus string

SendAADLogsStatus - Indicates whether AAD logs are being sent.

const (
	SendAADLogsStatusDisabled SendAADLogsStatus = "Disabled"
	SendAADLogsStatusEnabled  SendAADLogsStatus = "Enabled"
)

func PossibleSendAADLogsStatusValues

func PossibleSendAADLogsStatusValues() []SendAADLogsStatus

PossibleSendAADLogsStatusValues returns the possible values for the SendAADLogsStatus const type.

type SendActivityLogsStatus

type SendActivityLogsStatus string

SendActivityLogsStatus - Indicates whether activity logs are being sent.

const (
	SendActivityLogsStatusDisabled SendActivityLogsStatus = "Disabled"
	SendActivityLogsStatusEnabled  SendActivityLogsStatus = "Enabled"
)

func PossibleSendActivityLogsStatusValues

func PossibleSendActivityLogsStatusValues() []SendActivityLogsStatus

PossibleSendActivityLogsStatusValues returns the possible values for the SendActivityLogsStatus const type.

type SendSubscriptionLogsStatus

type SendSubscriptionLogsStatus string

SendSubscriptionLogsStatus - Indicates whether subscription logs are being sent.

const (
	SendSubscriptionLogsStatusDisabled SendSubscriptionLogsStatus = "Disabled"
	SendSubscriptionLogsStatusEnabled  SendSubscriptionLogsStatus = "Enabled"
)

func PossibleSendSubscriptionLogsStatusValues

func PossibleSendSubscriptionLogsStatusValues() []SendSubscriptionLogsStatus

PossibleSendSubscriptionLogsStatusValues returns the possible values for the SendSubscriptionLogsStatus const type.

type SendingLogsStatus

type SendingLogsStatus string

SendingLogsStatus - Indicates whether logs are being sent.

const (
	SendingLogsStatusDisabled SendingLogsStatus = "Disabled"
	SendingLogsStatusEnabled  SendingLogsStatus = "Enabled"
)

func PossibleSendingLogsStatusValues

func PossibleSendingLogsStatusValues() []SendingLogsStatus

PossibleSendingLogsStatusValues returns the possible values for the SendingLogsStatus const type.

type SendingMetricsStatus

type SendingMetricsStatus string

SendingMetricsStatus - Indicates whether metrics are being sent.

const (
	SendingMetricsStatusDisabled SendingMetricsStatus = "Disabled"
	SendingMetricsStatusEnabled  SendingMetricsStatus = "Enabled"
)

func PossibleSendingMetricsStatusValues

func PossibleSendingMetricsStatusValues() []SendingMetricsStatus

PossibleSendingMetricsStatusValues returns the possible values for the SendingMetricsStatus const type.

type SingleSignOnClient

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

SingleSignOnClient contains the methods for the SingleSignOn group. Don't use this type directly, use NewSingleSignOnClient() instead.

func NewSingleSignOnClient

func NewSingleSignOnClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SingleSignOnClient, error)

NewSingleSignOnClient creates a new instance of SingleSignOnClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*SingleSignOnClient) BeginCreateOrUpdate

func (client *SingleSignOnClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, resource SingleSignOnResource, options *SingleSignOnClientBeginCreateOrUpdateOptions) (*runtime.Poller[SingleSignOnClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a DynatraceSingleSignOnResource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name configurationName - Single Sign On Configuration Name resource - Resource create parameters. options - SingleSignOnClientBeginCreateOrUpdateOptions contains the optional parameters for the SingleSignOnClient.BeginCreateOrUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/SingleSignOn_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewSingleSignOnClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreateOrUpdate(ctx,
		"myResourceGroup",
		"myMonitor",
		"default",
		armdynatrace.SingleSignOnResource{
			Properties: &armdynatrace.SingleSignOnProperties{
				AADDomains: []*string{
					to.Ptr("mpliftrdt20210811outlook.onmicrosoft.com")},
				EnterpriseAppID:   to.Ptr("00000000-0000-0000-0000-000000000000"),
				ProvisioningState: to.Ptr(armdynatrace.ProvisioningStateAccepted),
				SingleSignOnState: to.Ptr(armdynatrace.SingleSignOnStatesEnable),
				SingleSignOnURL:   to.Ptr("https://www.dynatrace.io"),
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SingleSignOnClient) Get

func (client *SingleSignOnClient) Get(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, options *SingleSignOnClientGetOptions) (SingleSignOnClientGetResponse, error)

Get - Get a DynatraceSingleSignOnResource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name configurationName - Single Sign On Configuration Name options - SingleSignOnClientGetOptions contains the optional parameters for the SingleSignOnClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/SingleSignOn_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewSingleSignOnClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"myResourceGroup",
		"myMonitor",
		"default",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SingleSignOnClient) NewListPager

func (client *SingleSignOnClient) NewListPager(resourceGroupName string, monitorName string, options *SingleSignOnClientListOptions) *runtime.Pager[SingleSignOnClientListResponse]

NewListPager - List all DynatraceSingleSignOnResource by monitorName If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - SingleSignOnClientListOptions contains the optional parameters for the SingleSignOnClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/SingleSignOn_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewSingleSignOnClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("myResourceGroup",
		"myMonitor",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type SingleSignOnClientBeginCreateOrUpdateOptions

type SingleSignOnClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SingleSignOnClientBeginCreateOrUpdateOptions contains the optional parameters for the SingleSignOnClient.BeginCreateOrUpdate method.

type SingleSignOnClientCreateOrUpdateResponse

type SingleSignOnClientCreateOrUpdateResponse struct {
	SingleSignOnResource
}

SingleSignOnClientCreateOrUpdateResponse contains the response from method SingleSignOnClient.CreateOrUpdate.

type SingleSignOnClientGetOptions

type SingleSignOnClientGetOptions struct {
}

SingleSignOnClientGetOptions contains the optional parameters for the SingleSignOnClient.Get method.

type SingleSignOnClientGetResponse

type SingleSignOnClientGetResponse struct {
	SingleSignOnResource
}

SingleSignOnClientGetResponse contains the response from method SingleSignOnClient.Get.

type SingleSignOnClientListOptions

type SingleSignOnClientListOptions struct {
}

SingleSignOnClientListOptions contains the optional parameters for the SingleSignOnClient.List method.

type SingleSignOnClientListResponse

type SingleSignOnClientListResponse struct {
	SingleSignOnResourceListResult
}

SingleSignOnClientListResponse contains the response from method SingleSignOnClient.List.

type SingleSignOnProperties

type SingleSignOnProperties struct {
	// array of Aad(azure active directory) domains
	AADDomains []*string `json:"aadDomains,omitempty"`

	// Version of the Dynatrace agent installed on the VM.
	EnterpriseAppID *string `json:"enterpriseAppId,omitempty"`

	// State of Single Sign On
	SingleSignOnState *SingleSignOnStates `json:"singleSignOnState,omitempty"`

	// The login URL specific to this Dynatrace Environment
	SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"`

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

SingleSignOnProperties - The details of a Dynatrace single sign-on.

func (SingleSignOnProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SingleSignOnProperties.

type SingleSignOnResource

type SingleSignOnResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *SingleSignOnProperties `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; System metadata for this resource.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

SingleSignOnResource - Single sign-on configurations for a given monitor resource.

type SingleSignOnResourceListResult

type SingleSignOnResourceListResult struct {
	// REQUIRED; The link to the next page of items
	NextLink *string `json:"nextLink,omitempty"`

	// REQUIRED; The items on this page
	Value []*SingleSignOnResource `json:"value,omitempty"`
}

SingleSignOnResourceListResult - The response of a DynatraceSingleSignOnResource list operation.

type SingleSignOnStates

type SingleSignOnStates string

SingleSignOnStates - Various states of the SSO resource

const (
	SingleSignOnStatesDisable  SingleSignOnStates = "Disable"
	SingleSignOnStatesEnable   SingleSignOnStates = "Enable"
	SingleSignOnStatesExisting SingleSignOnStates = "Existing"
	SingleSignOnStatesInitial  SingleSignOnStates = "Initial"
)

func PossibleSingleSignOnStatesValues

func PossibleSingleSignOnStatesValues() []SingleSignOnStates

PossibleSingleSignOnStatesValues returns the possible values for the SingleSignOnStates const type.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`

	// The type of identity that created the resource.
	CreatedByType *CreatedByType `json:"createdByType,omitempty"`

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`

	// The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type TagAction

type TagAction string

TagAction - Valid actions for a filtering tag. Exclusion takes priority over inclusion.

const (
	TagActionExclude TagAction = "Exclude"
	TagActionInclude TagAction = "Include"
)

func PossibleTagActionValues

func PossibleTagActionValues() []TagAction

PossibleTagActionValues returns the possible values for the TagAction const type.

type TagRule

type TagRule struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *MonitoringTagRulesProperties `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; System metadata for this resource.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

TagRule - Tag rules for a monitor resource

type TagRuleListResult

type TagRuleListResult struct {
	// REQUIRED; The link to the next page of items
	NextLink *string `json:"nextLink,omitempty"`

	// REQUIRED; The items on this page
	Value []*TagRule `json:"value,omitempty"`
}

TagRuleListResult - The response of a TagRule list operation.

type TagRuleUpdate

type TagRuleUpdate struct {
	// Set of rules for sending logs for the Monitor resource.
	LogRules *LogRules `json:"logRules,omitempty"`

	// Set of rules for sending metrics for the Monitor resource.
	MetricRules *MetricRules `json:"metricRules,omitempty"`
}

TagRuleUpdate - The updatable properties of the TagRule.

func (TagRuleUpdate) MarshalJSON

func (t TagRuleUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TagRuleUpdate.

type TagRulesClient

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

TagRulesClient contains the methods for the TagRules group. Don't use this type directly, use NewTagRulesClient() instead.

func NewTagRulesClient

func NewTagRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TagRulesClient, error)

NewTagRulesClient creates a new instance of TagRulesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*TagRulesClient) BeginCreateOrUpdate

func (client *TagRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, resource TagRule, options *TagRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[TagRulesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a TagRule If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name ruleSetName - Monitor resource name resource - Resource create parameters. options - TagRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the TagRulesClient.BeginCreateOrUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/TagRules_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreateOrUpdate(ctx,
		"myResourceGroup",
		"myMonitor",
		"default",
		armdynatrace.TagRule{
			Properties: &armdynatrace.MonitoringTagRulesProperties{
				LogRules: &armdynatrace.LogRules{
					FilteringTags: []*armdynatrace.FilteringTag{
						{
							Name:   to.Ptr("Environment"),
							Action: to.Ptr(armdynatrace.TagActionInclude),
							Value:  to.Ptr("Prod"),
						},
						{
							Name:   to.Ptr("Environment"),
							Action: to.Ptr(armdynatrace.TagActionExclude),
							Value:  to.Ptr("Dev"),
						}},
					SendAADLogs:          to.Ptr(armdynatrace.SendAADLogsStatusEnabled),
					SendActivityLogs:     to.Ptr(armdynatrace.SendActivityLogsStatusEnabled),
					SendSubscriptionLogs: to.Ptr(armdynatrace.SendSubscriptionLogsStatusEnabled),
				},
				MetricRules: &armdynatrace.MetricRules{
					FilteringTags: []*armdynatrace.FilteringTag{
						{
							Name:   to.Ptr("Environment"),
							Action: to.Ptr(armdynatrace.TagActionInclude),
							Value:  to.Ptr("Prod"),
						}},
				},
				ProvisioningState: to.Ptr(armdynatrace.ProvisioningStateAccepted),
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*TagRulesClient) BeginDelete

func (client *TagRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *TagRulesClientBeginDeleteOptions) (*runtime.Poller[TagRulesClientDeleteResponse], error)

BeginDelete - Delete a TagRule If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name ruleSetName - Monitor resource name options - TagRulesClientBeginDeleteOptions contains the optional parameters for the TagRulesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/TagRules_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"myResourceGroup",
		"myMonitor",
		"default",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*TagRulesClient) Get

func (client *TagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *TagRulesClientGetOptions) (TagRulesClientGetResponse, error)

Get - Get a TagRule If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name ruleSetName - Monitor resource name options - TagRulesClientGetOptions contains the optional parameters for the TagRulesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/TagRules_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"myResourceGroup",
		"myMonitor",
		"default",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*TagRulesClient) NewListPager

func (client *TagRulesClient) NewListPager(resourceGroupName string, monitorName string, options *TagRulesClientListOptions) *runtime.Pager[TagRulesClientListResponse]

NewListPager - List all TagRule by monitorName If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name options - TagRulesClientListOptions contains the optional parameters for the TagRulesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/TagRules_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("myResourceGroup",
		"myMonitor",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*TagRulesClient) Update

func (client *TagRulesClient) Update(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, resource TagRuleUpdate, options *TagRulesClientUpdateOptions) (TagRulesClientUpdateResponse, error)

Update - Update a TagRule If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-09-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Monitor resource name ruleSetName - Monitor resource name resource - The resource properties to be updated. options - TagRulesClientUpdateOptions contains the optional parameters for the TagRulesClient.Update method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dynatrace/resource-manager/Dynatrace.Observability/preview/2021-09-01-preview/examples/TagRules_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armdynatrace.NewTagRulesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Update(ctx,
		"myResourceGroup",
		"myMonitor",
		"default",
		armdynatrace.TagRuleUpdate{
			LogRules: &armdynatrace.LogRules{
				FilteringTags: []*armdynatrace.FilteringTag{
					{
						Name:   to.Ptr("Environment"),
						Action: to.Ptr(armdynatrace.TagActionInclude),
						Value:  to.Ptr("Prod"),
					},
					{
						Name:   to.Ptr("Environment"),
						Action: to.Ptr(armdynatrace.TagActionExclude),
						Value:  to.Ptr("Dev"),
					}},
				SendAADLogs:          to.Ptr(armdynatrace.SendAADLogsStatusEnabled),
				SendActivityLogs:     to.Ptr(armdynatrace.SendActivityLogsStatusEnabled),
				SendSubscriptionLogs: to.Ptr(armdynatrace.SendSubscriptionLogsStatusEnabled),
			},
			MetricRules: &armdynatrace.MetricRules{
				FilteringTags: []*armdynatrace.FilteringTag{
					{
						Name:   to.Ptr("Environment"),
						Action: to.Ptr(armdynatrace.TagActionInclude),
						Value:  to.Ptr("Prod"),
					}},
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type TagRulesClientBeginCreateOrUpdateOptions

type TagRulesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

TagRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the TagRulesClient.BeginCreateOrUpdate method.

type TagRulesClientBeginDeleteOptions

type TagRulesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

TagRulesClientBeginDeleteOptions contains the optional parameters for the TagRulesClient.BeginDelete method.

type TagRulesClientCreateOrUpdateResponse

type TagRulesClientCreateOrUpdateResponse struct {
	TagRule
}

TagRulesClientCreateOrUpdateResponse contains the response from method TagRulesClient.CreateOrUpdate.

type TagRulesClientDeleteResponse

type TagRulesClientDeleteResponse struct {
}

TagRulesClientDeleteResponse contains the response from method TagRulesClient.Delete.

type TagRulesClientGetOptions

type TagRulesClientGetOptions struct {
}

TagRulesClientGetOptions contains the optional parameters for the TagRulesClient.Get method.

type TagRulesClientGetResponse

type TagRulesClientGetResponse struct {
	TagRule
}

TagRulesClientGetResponse contains the response from method TagRulesClient.Get.

type TagRulesClientListOptions

type TagRulesClientListOptions struct {
}

TagRulesClientListOptions contains the optional parameters for the TagRulesClient.List method.

type TagRulesClientListResponse

type TagRulesClientListResponse struct {
	TagRuleListResult
}

TagRulesClientListResponse contains the response from method TagRulesClient.List.

type TagRulesClientUpdateOptions

type TagRulesClientUpdateOptions struct {
}

TagRulesClientUpdateOptions contains the optional parameters for the TagRulesClient.Update method.

type TagRulesClientUpdateResponse

type TagRulesClientUpdateResponse struct {
	TagRule
}

TagRulesClientUpdateResponse contains the response from method TagRulesClient.Update.

type TrackedResource

type TrackedResource struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (t TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TrackedResource.

type UpdateStatus

type UpdateStatus string

UpdateStatus - The current update status of OneAgent.

const (
	UpdateStatusINCOMPATIBLE     UpdateStatus = "INCOMPATIBLE"
	UpdateStatusOUTDATED         UpdateStatus = "OUTDATED"
	UpdateStatusSCHEDULED        UpdateStatus = "SCHEDULED"
	UpdateStatusSUPPRESSED       UpdateStatus = "SUPPRESSED"
	UpdateStatusUNKNOWN          UpdateStatus = "UNKNOWN"
	UpdateStatusUP2DATE          UpdateStatus = "UP2DATE"
	UpdateStatusUPDATEINPROGRESS UpdateStatus = "UPDATE_IN_PROGRESS"
	UpdateStatusUPDATEPENDING    UpdateStatus = "UPDATE_PENDING"
	UpdateStatusUPDATEPROBLEM    UpdateStatus = "UPDATE_PROBLEM"
)

func PossibleUpdateStatusValues

func PossibleUpdateStatusValues() []UpdateStatus

PossibleUpdateStatusValues returns the possible values for the UpdateStatus const type.

type UserAssignedIdentity

type UserAssignedIdentity struct {
	// REQUIRED; The active directory client identifier for this principal.
	ClientID *string `json:"clientId,omitempty"`

	// REQUIRED; The active directory identifier for this principal.
	PrincipalID *string `json:"principalId,omitempty"`
}

UserAssignedIdentity - A managed identity assigned by the user.

type UserInfo

type UserInfo struct {
	// Country of the user
	Country *string `json:"country,omitempty"`

	// Email of the user used by Dynatrace for contacting them if needed
	EmailAddress *string `json:"emailAddress,omitempty"`

	// First Name of the user
	FirstName *string `json:"firstName,omitempty"`

	// Last Name of the user
	LastName *string `json:"lastName,omitempty"`

	// Phone number of the user used by Dynatrace for contacting them if needed
	PhoneNumber *string `json:"phoneNumber,omitempty"`
}

UserInfo - User info.

type VMExtensionPayload

type VMExtensionPayload struct {
	// Id of the environment created
	EnvironmentID *string `json:"environmentId,omitempty"`

	// Ingestion key of the environment
	IngestionKey *string `json:"ingestionKey,omitempty"`
}

VMExtensionPayload - Response of payload to be passed while installing VM agent.

type VMHostsListResponse

type VMHostsListResponse struct {
	// REQUIRED; The link to the next page of items
	NextLink *string `json:"nextLink,omitempty"`

	// REQUIRED; The items on this page
	Value []*VMInfo `json:"value,omitempty"`
}

VMHostsListResponse - Response of a list VM Host Operation.

type VMInfo

type VMInfo struct {
	// Update settings of OneAgent.
	AutoUpdateSetting *AutoUpdateSetting `json:"autoUpdateSetting,omitempty"`

	// The availability state of OneAgent.
	AvailabilityState *AvailabilityState `json:"availabilityState,omitempty"`

	// The name of the host group
	HostGroup *string `json:"hostGroup,omitempty"`

	// The name of the host
	HostName *string `json:"hostName,omitempty"`

	// Tells whether log modules are enabled or not
	LogModule *LogModule `json:"logModule,omitempty"`

	// The monitoring mode of OneAgent
	MonitoringType *MonitoringType `json:"monitoringType,omitempty"`

	// Azure VM resource ID
	ResourceID *string `json:"resourceId,omitempty"`

	// The current update status of OneAgent.
	UpdateStatus *UpdateStatus `json:"updateStatus,omitempty"`

	// Version of the Dynatrace agent installed on the VM.
	Version *string `json:"version,omitempty"`
}

VMInfo - Details of VM Resource having Dynatrace OneAgent installed

Jump to

Keyboard shortcuts

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