locations

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudPlatforms = struct {
	Alibaba        CloudPlatform
	AmazonEC2      CloudPlatform
	Azure          CloudPlatform
	DynatraceCloud CloudPlatform
	GoogleCloud    CloudPlatform
	Interoute      CloudPlatform
	Other          CloudPlatform
	Undefined      CloudPlatform
}{
	CloudPlatform("ALIBABA"),
	CloudPlatform("AMAZON_EC2"),
	CloudPlatform("AZURE"),
	CloudPlatform("DYNATRACE_CLOUD"),
	CloudPlatform("GOOGLE_CLOUD"),
	CloudPlatform("INTEROUTE"),
	CloudPlatform("OTHER"),
	CloudPlatform("UNDEFINED"),
}
View Source
var DeploymentTypes = struct {
	Kubernetes DeploymentType
	Standard   DeploymentType
}{
	DeploymentType("KUBERNETES"),
	DeploymentType("STANDARD"),
}
View Source
var LocationTypes = struct {
	Cluster LocationType
	Private LocationType
	Public  LocationType
}{
	LocationType("CLUSTER"),
	LocationType("PRIVATE"),
	LocationType("PUBLIC"),
}
View Source
var Stages = struct {
	Beta       Stage
	ComingSoon Stage
	Deleted    Stage
	GA         Stage
}{
	Stage("BETA"),
	Stage("COMING_SOON"),
	Stage("DELETED"),
	Stage("GA"),
}
View Source
var Statuses = struct {
	Disabled Status
	Enabled  Status
	Hidden   Status
}{
	Status("DISABLED"),
	Status("ENABLED"),
	Status("HIDDEN"),
}

Functions

This section is empty.

Types

type CloudPlatform

type CloudPlatform string

type DeploymentType

type DeploymentType string

func (DeploymentType) Ref

func (me DeploymentType) Ref() *DeploymentType

type LocationCollectionElement

type LocationCollectionElement struct {
	Name          string         `json:"name"`                    // The name of the location
	ID            *string        `json:"entityId"`                // The Dynatrace entity ID of the location
	Type          LocationType   `json:"type"`                    // The type of the location
	CloudPlatform *CloudPlatform `json:"cloudPlatform,omitempty"` // The cloud provider where the location is hosted. Only applicable to `PUBLIC` locations
	IPs           []string       `json:"ips,omitempty"`           // The list of IP addresses assigned to the location. Only applicable to `PUBLIC` locations
	Stage         *Stage         `json:"stage,omitempty"`         // The release stage of the location
}

LocationCollectionElement represents a synthetic location

type LocationCollectionElements

type LocationCollectionElements []LocationCollectionElement

type LocationType

type LocationType string

type PrivateSyntheticLocation

type PrivateSyntheticLocation struct {
	ID                               *string         `json:"entityId,omitempty"`                         // The Dynatrace entity ID of the location
	Type                             LocationType    `json:"type"`                                       // Needs to be `PRIVATE`
	Name                             string          `json:"name"`                                       // The name of the location
	CountryCode                      *string         `json:"countryCode,omitempty"`                      // The country code of the location. \n\n Use the alpha-2 code of the [ISO 3166-2 standard](https://dt-url.net/iso3166-2), (for example, `AT` for Austria or `PL` for Poland)
	RegionCode                       *string         `json:"regionCode,omitempty"`                       // The region code of the location. \n\n For the [USA](https://dt-url.net/iso3166us) or [Canada](https://dt-url.net/iso3166ca) use ISO 3166-2 state codes (without `US-` or `CA-` prefix), for example, `VA` for Virginia or `OR` for Oregon. \n\n For the rest of the world use [FIPS 10-4 codes](https://dt-url.net/fipscodes)
	City                             *string         `json:"city,omitempty"`                             // The city of the location
	Latitude                         float64         `json:"latitude"`                                   // The latitude of the location in `DDD.dddd` format
	Longitude                        float64         `json:"longitude"`                                  // The longitude of the location in `DDD.dddd` format
	Status                           *Status         `json:"status,omitempty"`                           // The status of the location: \n\n* `ENABLED`: The location is displayed as active in the UI. You can assign monitors to the location. \n* `DISABLED`: The location is displayed as inactive in the UI. You can't assign monitors to the location. Monitors already assigned to the location will stay there and will be executed from the location. \n* `HIDDEN`: The location is not displayed in the UI. You can't assign monitors to the location. You can only set location as `HIDDEN` when no monitor is assigned to it
	Nodes                            []string        `json:"nodes,omitempty"`                            // A list of synthetic nodes belonging to the location. \n\n You can retrieve the list of available nodes with the [GET all nodes](https://dt-url.net/miy3rpl) call
	AvailabilityLocationOutage       bool            `json:"availabilityLocationOutage,omitempty"`       // The alerting of location outage is enabled (`true`) or disabled (`false`)
	AvailabilityNodeOutage           bool            `json:"availabilityNodeOutage,omitempty"`           // The alerting of node outage is enabled (`true`) or disabled (`false`). \n\n If enabled, the outage of *any* node in the location triggers an alert
	LocationNodeOutageDelayInMinutes *int            `json:"locationNodeOutageDelayInMinutes,omitempty"` // Alert if the location or node outage lasts longer than *X* minutes. \n\n Only applicable when **availabilityLocationOutage** or **availabilityNodeOutage** is set to `true`
	AvailabilityNotificationsEnabled bool            `json:"availabilityNotificationsEnabled,omitempty"` // The notifications of location and node outage is enabled (`true`) or disabled (`false`)
	DeploymentType                   *DeploymentType `json:"deploymentType,omitempty"`                   // The deployment type of the location: \n\n* `STANDARD`: The location is deployed on Windows or Linux.\n* `KUBERNETES`: The location is deployed on Kubernetes
	AutoUpdateChromium               bool            `json:"autoUpdateChromium,omitempty"`               // Auto upgrade of Chromium is enabled (`true`) or disabled (`false`)
}

func (*PrivateSyntheticLocation) MarshalHCL

func (me *PrivateSyntheticLocation) MarshalHCL(properties hcl.Properties) error

func (*PrivateSyntheticLocation) Schema

func (me *PrivateSyntheticLocation) Schema() map[string]*schema.Schema

func (*PrivateSyntheticLocation) UnmarshalHCL

func (me *PrivateSyntheticLocation) UnmarshalHCL(decoder hcl.Decoder) error

type Stage

type Stage string

type Status

type Status string

type SyntheticLocations

type SyntheticLocations struct {
	Locations LocationCollectionElements `json:"locations"`
}

func (*SyntheticLocations) ToStubs

func (me *SyntheticLocations) ToStubs() api.Stubs

Jump to

Keyboard shortcuts

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