Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IdParameter is special. it is not allowed to be set via the config, // but needs to work as normal parameter otherwise (e.g. it can be referenced). IdParameter = "id" // NameParameter is special in that it needs to exist for a config. NameParameter = "name" // ScopeParameter is special. It is the set scope as a parameter. // A user must not set it as a parameter in the config. // It is only a parameter iff the config is a settings-config. ScopeParameter = "scope" // SkipParameter is special in that config should be deployed or not SkipParameter = "skip" )
Variables ¶
View Source
var DefaultParameterParsers = map[string]parameter.ParameterSerDe{ refParam.ReferenceParameterType: refParam.ReferenceParameterSerde, valueParam.ValueParameterType: valueParam.ValueParameterSerde, envParam.EnvironmentVariableParameterType: envParam.EnvironmentVariableParameterSerde, compoundParam.CompoundParameterType: compoundParam.CompoundParameterSerde, listParam.ListParameterType: listParam.ListParameterSerde, }
DefaultParameterParsers map defining a set of default parsers which can be used to load configurations
View Source
var ReservedParameterNames = []string{IdParameter, NameParameter, ScopeParameter, SkipParameter}
ReservedParameterNames holds all parameter names that may not be specified by a user in a config.
Functions ¶
This section is empty.
Types ¶
type AutomationResource ¶
type AutomationResource string
AutomationResource defines which resource is an AutomationType
const ( Workflow AutomationResource = "workflow" BusinessCalendar AutomationResource = "business-calendar" SchedulingRule AutomationResource = "scheduling-rule" )
type AutomationType ¶
type AutomationType struct { // Resource identifies which Automation resource is used in this config. // Currently, this can be Workflow, BusinessCalendar, or SchedulingRule. Resource AutomationResource }
AutomationType represents any Dynatrace Platform automation-resource
func (AutomationType) ID ¶
func (AutomationType) ID() TypeId
type BucketType ¶ added in v2.7.0
type BucketType struct{}
func (BucketType) ID ¶ added in v2.7.0
func (BucketType) ID() TypeId
type ClassicApiType ¶
type ClassicApiType struct {
Api string
}
func (ClassicApiType) ID ¶
func (ClassicApiType) ID() TypeId
type Config ¶
type Config struct { // template used to render the request send to the dynatrace api Template template.Template // coordinates which specify the location of this configuration Coordinate coordinate.Coordinate // group this config belongs to Group string // name of the environment this configuration is for Environment string // Type holds information of the underlying config type (classic, settings, entities) Type Type // map of all parameters which will be resolved and are then available // in the template Parameters Parameters // Skip flag indicates if the deployment of this configuration should be skipped. It is resolved during project loading. Skip bool // SkipForConversion is only used for converting v1-configs to v2-configs. // It is required as the object itself does only store the resolved 'skip' value, not the actual parameter. SkipForConversion parameter.Parameter // OriginObjectId is the DT object ID of the object when it was downloaded from an environment OriginObjectId string }
Config struct defining a configuration which can be deployed.
func (*Config) References ¶
func (c *Config) References() []coordinate.Coordinate
type EntityType ¶
type EntityType struct {
EntitiesType string
}
func (EntityType) ID ¶
func (EntityType) ID() TypeId
type Parameters ¶
Parameters defines a map of name to parameter
type SettingsType ¶
type SettingsType struct {
SchemaId, SchemaVersion string
}
func (SettingsType) ID ¶
func (SettingsType) ID() TypeId
Click to show internal directories.
Click to hide internal directories.