metadata

package
v1.56.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnitDisplayFormats = struct {
	Binary  UnitDisplayFormat
	Decimal UnitDisplayFormat
}{
	"binary",
	"decimal",
}
View Source
var ValueTypes = struct {
	Error   ValueType
	Score   ValueType
	Unknown ValueType
}{
	"error",
	"score",
	"unknown",
}

Functions

This section is empty.

Types

type Dimension

type Dimension struct {
	DisplayName *string `json:"displayName,omitempty"` // Display name
	Key         string  `json:"key"`                   // Dimension key
}

func (*Dimension) MarshalHCL

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

func (*Dimension) Schema

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

func (*Dimension) UnmarshalHCL

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

type Dimensions

type Dimensions []*Dimension

func (Dimensions) MarshalHCL

func (me Dimensions) MarshalHCL(properties hcl.Properties) error

func (*Dimensions) Schema

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

func (*Dimensions) UnmarshalHCL

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

type MetricProperties

type MetricProperties struct {
	ImpactRelevant    *bool     `json:"impactRelevant,omitempty"`    // Whether (true or false) the metric is relevant to a problem's impact.\n\nAn impact-relevant metric is highly dependent on other metrics and changes because an underlying root-cause metric has changed.
	Latency           *int      `json:"latency,omitempty"`           // The latency of the metric, in minutes. \n\n The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace. \n\nThe allowed value range is from 1 to 60 minutes.
	MaxValue          *float64  `json:"maxValue,omitempty"`          // The maximum allowed value of the metric.
	MinValue          *float64  `json:"minValue,omitempty"`          // The minimum allowed value of the metric.
	RootCauseRelevant *bool     `json:"rootCauseRelevant,omitempty"` // Whether (true or false) the metric is related to a root cause of a problem.\n\nA root-cause relevant metric represents a strong indicator for a faulty component.
	ValueType         ValueType `json:"valueType"`                   // Possible Values: `Error`, `Score`, `Unknown`
}

func (*MetricProperties) MarshalHCL

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

func (*MetricProperties) Schema

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

func (*MetricProperties) UnmarshalHCL

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

type Settings

type Settings struct {
	Description       *string            `json:"description,omitempty"`       // Description
	Dimensions        Dimensions         `json:"dimensions,omitempty"`        // Define metadata per metric dimension.
	DisplayName       *string            `json:"displayName,omitempty"`       // Display name
	MetricProperties  *MetricProperties  `json:"metricProperties,omitempty"`  // Metric properties
	MetricID          string             `json:"-" scope:"metricId"`          // The scope of this setting (metric)
	SourceEntityType  *string            `json:"sourceEntityType,omitempty"`  // Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
	Tags              []string           `json:"tags,omitempty"`              // Tags
	Unit              string             `json:"unit"`                        // Unit
	UnitDisplayFormat *UnitDisplayFormat `json:"unitDisplayFormat,omitempty"` // The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:\n\nBinary: 1 MiB = 1024 KiB = 1,048,576 bytes\n\nDecimal: 1 MB = 1000 kB = 1,000,000 bytes\n\nIf not set, the decimal system is used.
}

func (*Settings) MarshalHCL

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

func (*Settings) Schema

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

func (*Settings) UnmarshalHCL

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

type UnitDisplayFormat

type UnitDisplayFormat string

type ValueType

type ValueType string

Jump to

Keyboard shortcuts

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