log

package
v1.43.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricValueTypes = struct {
	FpColumnAvg        MetricValueType
	FpColumnCount      MetricValueType
	FpColumnMax        MetricValueType
	FpColumnMin        MetricValueType
	FpColumnSum        MetricValueType
	FpColumnTopXAvg    MetricValueType
	FpColumnTopXCount  MetricValueType
	FpColumnTopXMax    MetricValueType
	FpColumnTopXMin    MetricValueType
	FpColumnTopXSum    MetricValueType
	IntColumnAvg       MetricValueType
	IntColumnCount     MetricValueType
	IntColumnMax       MetricValueType
	IntColumnMin       MetricValueType
	IntColumnSum       MetricValueType
	IntColumnTopXAvg   MetricValueType
	IntColumnTopXCount MetricValueType
	IntColumnTopXMax   MetricValueType
	IntColumnTopXMin   MetricValueType
	IntColumnTopXSum   MetricValueType
	Occurrences        MetricValueType
}{
	"FP_COLUMN_AVG",
	"FP_COLUMN_COUNT",
	"FP_COLUMN_MAX",
	"FP_COLUMN_MIN",
	"FP_COLUMN_SUM",
	"FP_COLUMN_TOP_X_AVG",
	"FP_COLUMN_TOP_X_COUNT",
	"FP_COLUMN_TOP_X_MAX",
	"FP_COLUMN_TOP_X_MIN",
	"FP_COLUMN_TOP_X_SUM",
	"INT_COLUMN_AVG",
	"INT_COLUMN_COUNT",
	"INT_COLUMN_MAX",
	"INT_COLUMN_MIN",
	"INT_COLUMN_SUM",
	"INT_COLUMN_TOP_X_AVG",
	"INT_COLUMN_TOP_X_COUNT",
	"INT_COLUMN_TOP_X_MAX",
	"INT_COLUMN_TOP_X_MIN",
	"INT_COLUMN_TOP_X_SUM",
	"OCCURRENCES",
}
View Source
var OSTypes = struct {
	AIX     OSType
	DARWIN  OSType
	HPUX    OSType
	LINUX   OSType
	SOLARIS OSType
	WINDOWS OSType
	ZOS     OSType
}{
	"AIX",
	"DARWIN",
	"HPUX",
	"LINUX",
	"SOLARIS",
	"WINDOWS",
	"ZOS",
}
View Source
var Types = struct {
	Fixed    Type
	Wildcard Type
}{
	"FIXED",
	"WILDCARD",
}
View Source
var Units = struct {
	Ampere               Unit
	Billion              Unit
	Bit                  Unit
	BitPerHour           Unit
	BitPerMinute         Unit
	BitPerSecond         Unit
	Byte                 Unit
	BytePerHour          Unit
	BytePerMinute        Unit
	BytePerSecond        Unit
	Cores                Unit
	Count                Unit
	Day                  Unit
	DecibelMilliWatt     Unit
	GibiByte             Unit
	GibiBytePerHour      Unit
	GibiBytePerMinute    Unit
	GibiBytePerSecond    Unit
	Giga                 Unit
	GigaByte             Unit
	GigaBytePerHour      Unit
	GigaBytePerMinute    Unit
	GigaBytePerSecond    Unit
	Hertz                Unit
	Hour                 Unit
	KibiByte             Unit
	KibiBytePerHour      Unit
	KibiBytePerMinute    Unit
	KibiBytePerSecond    Unit
	Kilo                 Unit
	KiloByte             Unit
	KiloBytePerHour      Unit
	KiloBytePerMinute    Unit
	KiloBytePerSecond    Unit
	KiloMetrePerHour     Unit
	MebiByte             Unit
	MebiBytePerHour      Unit
	MebiBytePerMinute    Unit
	MebiBytePerSecond    Unit
	Mega                 Unit
	MegaByte             Unit
	MegaBytePerHour      Unit
	MegaBytePerMinute    Unit
	MegaBytePerSecond    Unit
	MetrePerHour         Unit
	MetrePerSecond       Unit
	MicroSecond          Unit
	Million              Unit
	MilliCores           Unit
	MilliSecond          Unit
	MilliSecondPerMinute Unit
	Minute               Unit
	Month                Unit
	MSU                  Unit
	NanoSecond           Unit
	NanoSecondPerMinute  Unit
	NotApplicable        Unit
	Percent              Unit
	PerHour              Unit
	PerMinute            Unit
	PerSecond            Unit
	Pixel                Unit
	Promille             Unit
	Ratio                Unit
	Second               Unit
	State                Unit
	Trillion             Unit
	Unspecified          Unit
	Volt                 Unit
	Watt                 Unit
	Week                 Unit
	Year                 Unit
}{
	"AMPERE",
	"BILLION",
	"BIT",
	"BIT_PER_HOUR",
	"BIT_PER_MINUTE",
	"BIT_PER_SECOND",
	"BYTE",
	"BYTE_PER_HOUR",
	"BYTE_PER_MINUTE",
	"BYTE_PER_SECOND",
	"CORES",
	"COUNT",
	"DAY",
	"DECIBEL_MILLI_WATT",
	"GIBI_BYTE",
	"GIBI_BYTE_PER_HOUR",
	"GIBI_BYTE_PER_MINUTE",
	"GIBI_BYTE_PER_SECOND",
	"GIGA",
	"GIGA_BYTE",
	"GIGA_BYTE_PER_HOUR",
	"GIGA_BYTE_PER_MINUTE",
	"GIGA_BYTE_PER_SECOND",
	"HERTZ",
	"HOUR",
	"KIBI_BYTE",
	"KIBI_BYTE_PER_HOUR",
	"KIBI_BYTE_PER_MINUTE",
	"KIBI_BYTE_PER_SECOND",
	"KILO",
	"KILO_BYTE",
	"KILO_BYTE_PER_HOUR",
	"KILO_BYTE_PER_MINUTE",
	"KILO_BYTE_PER_SECOND",
	"KILO_METRE_PER_HOUR",
	"MEBI_BYTE",
	"MEBI_BYTE_PER_HOUR",
	"MEBI_BYTE_PER_MINUTE",
	"MEBI_BYTE_PER_SECOND",
	"MEGA",
	"MEGA_BYTE",
	"MEGA_BYTE_PER_HOUR",
	"MEGA_BYTE_PER_MINUTE",
	"MEGA_BYTE_PER_SECOND",
	"METRE_PER_HOUR",
	"METRE_PER_SECOND",
	"MICRO_SECOND",
	"MILLION",
	"MILLI_CORES",
	"MILLI_SECOND",
	"MILLI_SECOND_PER_MINUTE",
	"MINUTE",
	"MONTH",
	"MSU",
	"NANO_SECOND",
	"NANO_SECOND_PER_MINUTE",
	"NOT_APPLICABLE",
	"PERCENT",
	"PER_HOUR",
	"PER_MINUTE",
	"PER_SECOND",
	"PIXEL",
	"PROMILLE",
	"RATIO",
	"SECOND",
	"STATE",
	"TRILLION",
	"UNSPECIFIED",
	"VOLT",
	"WATT",
	"WEEK",
	"YEAR",
}

Functions

This section is empty.

Types

type CalculatedLogMetric

type CalculatedLogMetric struct {
	Description         *string              `json:"description,omitempty"`         // Descriptor of a calculated log metric.
	MetricKey           string               `json:"metricKey"`                     // The unique key of the calculated log metric.
	Active              *bool                `json:"active,omitempty"`              // The metric is enabled (`true`) or disabled (`false`).
	DisplayName         string               `json:"displayName"`                   // The name of the metric, displayed in the UI.
	Unit                Unit                 `json:"unit"`                          // The unit of the metric. Possible values: [ AMPERE, BILLION, BIT, BIT_PER_HOUR, BIT_PER_MINUTE, BIT_PER_SECOND, BYTE, BYTE_PER_HOUR, BYTE_PER_MINUTE, BYTE_PER_SECOND, CORES, COUNT, DAY, DECIBEL_MILLI_WATT, GIBI_BYTE, GIBI_BYTE_PER_HOUR, GIBI_BYTE_PER_MINUTE, GIBI_BYTE_PER_SECOND, GIGA, GIGA_BYTE, GIGA_BYTE_PER_HOUR, GIGA_BYTE_PER_MINUTE, GIGA_BYTE_PER_SECOND, HERTZ, HOUR, KIBI_BYTE, KIBI_BYTE_PER_HOUR, KIBI_BYTE_PER_MINUTE, KIBI_BYTE_PER_SECOND, KILO, KILO_BYTE, KILO_BYTE_PER_HOUR, KILO_BYTE_PER_MINUTE, KILO_BYTE_PER_SECOND, KILO_METRE_PER_HOUR, MEBI_BYTE, MEBI_BYTE_PER_HOUR, MEBI_BYTE_PER_MINUTE, MEBI_BYTE_PER_SECOND, MEGA, MEGA_BYTE, MEGA_BYTE_PER_HOUR, MEGA_BYTE_PER_MINUTE, MEGA_BYTE_PER_SECOND, METRE_PER_HOUR, METRE_PER_SECOND, MICRO_SECOND, MILLION, MILLI_CORES, MILLI_SECOND, MILLI_SECOND_PER_MINUTE, MINUTE, MONTH, MSU, NANO_SECOND, NANO_SECOND_PER_MINUTE, NOT_APPLICABLE, PERCENT, PER_HOUR, PER_MINUTE, PER_SECOND, PIXEL, PROMILLE, RATIO, SECOND, STATE, TRILLION, UNSPECIFIED, VOLT, WATT, WEEK, YEAR ]
	UnitDisplayName     *string              `json:"unitDisplayName,omitempty"`     // The display name of the unit. Only applicable if the unit is set to UNSPECIFIED.
	SearchString        string               `json:"searchString"`                  // The pattern to look for in logs. Use the Dynatrace search query language to specify it. Quotes must be escaped. To return all results, leave the field blank.
	MetricValueType     MetricValueType      `json:"metricValueType"`               // The type of the metric data points calculation. For now the only allowed value is OCCURRENCES. Possible values: [ FP_COLUMN_AVG, FP_COLUMN_COUNT, FP_COLUMN_MAX, FP_COLUMN_MIN, FP_COLUMN_SUM, FP_COLUMN_TOP_X_AVG, FP_COLUMN_TOP_X_COUNT, FP_COLUMN_TOP_X_MAX, FP_COLUMN_TOP_X_MIN, FP_COLUMN_TOP_X_SUM, INT_COLUMN_AVG, INT_COLUMN_COUNT, INT_COLUMN_MAX, INT_COLUMN_MIN, INT_COLUMN_SUM, INT_COLUMN_TOP_X_AVG, INT_COLUMN_TOP_X_COUNT, INT_COLUMN_TOP_X_MAX, INT_COLUMN_TOP_X_MIN, INT_COLUMN_TOP_X_SUM, OCCURRENCES ]
	ColumnDefiningValue *ColumnDefiningValue `json:"columnDefiningValue,omitempty"` // Definition of numeric column.
	LogSourceFilters    LogSourceFilters     `json:"logSourceFilters"`              // A list of filters to define the logs to look into. If several filters are specified, the OR logic applies.
}

CalculatedLogMetric Descriptor of a calculated log metric.

func (*CalculatedLogMetric) MarshalHCL

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

func (*CalculatedLogMetric) Schema

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

func (*CalculatedLogMetric) UnmarshalHCL

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

type ColumnDefiningValue

type ColumnDefiningValue struct {
	Name string `json:"name"` // The name of the column definiton
	Type string `json:"type"` // Defines the actual set of fields depending on the value. See one of the following objects: `CUSTOM` or `JSON`
}

ColumnDefiningValue of a calculated log metric.

func (*ColumnDefiningValue) MarshalHCL

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

func (*ColumnDefiningValue) Schema

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

func (*ColumnDefiningValue) UnmarshalHCL

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

type LogSourceFilter

type LogSourceFilter struct {
	PathDefinitions PathDefinitions `json:"pathDefinitions,omitempty"` // A list of filtering criteria for log path. If several criteria are specified, the OR logic applies.
	SourceEntities  *[]string       `json:"sourceEntities,omitempty"`  // A list of Dynatrace entities, where the log can originate from. Specify Dynatrace entity IDs here. Allowed types of entities are PROCESS_GROUP and PROCESS_GROUP_INSTANCE. You can't mix entity types. If several entities are specified, the OR logic applies. This field is mutually exclusive with the osTypes field.
	HostFilters     *[]string       `json:"hostFilters,omitempty"`     // A list of hosts, where the log can originate from. Specify Dynatrace entity IDs here.
	OSTypes         *[]OSType       `json:"osTypes,omitempty"`         // A list of operating system types, where the log can originate from. If set, only OS logs are included in the result. If several OS are specified, the OR logic applies. This field is mutually exclusive with the sourceEntities field.
}

LogSourceFilters Parameters of a filter of a calculated log metric.

func (*LogSourceFilter) MarshalHCL

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

func (*LogSourceFilter) Schema

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

func (*LogSourceFilter) UnmarshalHCL

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

type LogSourceFilters

type LogSourceFilters []*LogSourceFilter

func (LogSourceFilters) MarshalHCL

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

func (*LogSourceFilters) Schema

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

func (*LogSourceFilters) UnmarshalHCL

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

type MetricValueType

type MetricValueType string

type OSType

type OSType string

type PathDefinition

type PathDefinition struct {
	Definition string `json:"definition"` // The path to the required log path. If the type is set to WILDCARD, it may contain wildcard characters (*).
	Type       Type   `json:"type"`       // The type of the log path definition: fixed or an expression with wildcards.
}

PathDefinitions Parameters of a filter of a calculated log metric.

func (*PathDefinition) MarshalHCL

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

func (*PathDefinition) Schema

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

func (*PathDefinition) UnmarshalHCL

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

type PathDefinitions

type PathDefinitions []*PathDefinition

func (PathDefinitions) MarshalHCL

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

func (*PathDefinitions) Schema

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

func (*PathDefinitions) UnmarshalHCL

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

type Type

type Type string

type Unit

type Unit string

Jump to

Keyboard shortcuts

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