locations

package
v1.56.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudPlatforms = struct {
	Alibaba        CloudPlatform
	AmaconEC2      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 LocationTypes = struct {
	Public  LocationType
	Private LocationType
	Cluster LocationType
}{
	LocationType("PUBLIC"),
	LocationType("PRIVATE"),
	LocationType("CLUSTER"),
}
View Source
var Stages = struct {
	Beta       Stage
	ComingSoon Stage
	GA         Stage
}{
	Stage("BETA"),
	Stage("COMING_SOON"),
	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 LocationType

type LocationType string

type Stage

type Stage string

type Status

type Status string

type SyntheticLocation

type SyntheticLocation struct {
	ID            string         `json:"entityId"`      // The Dynatrace entity ID of the location
	Name          string         `json:"name"`          // The name of the location
	Type          LocationType   `json:"type"`          // The type of the location
	Status        *Status        `json:"status"`        // 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
	CloudPlatform *CloudPlatform `json:"cloudPlatform"` // The cloud provider where the location is hosted. \n\n Only applicable to `PUBLIC` locations
	IPs           []string       `json:"ips"`           // The list of IP addresses assigned to the location. \n\n Only applicable to `PUBLIC` locations
	Stage         *Stage         `json:"stage"`         // The release stage of the location
}

func (*SyntheticLocation) MarshalHCL

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

func (*SyntheticLocation) Schema

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

func (*SyntheticLocation) UnmarshalHCL

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

type SyntheticLocations

type SyntheticLocations struct {
	Locations []*SyntheticLocation `json:"locations"` // A list of synthetic locations
}

SyntheticLocations is a list of synthetic locations

func (*SyntheticLocations) MarshalHCL

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

func (*SyntheticLocations) Schema

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

Jump to

Keyboard shortcuts

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