fields

package
v1.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name             = "name"
	Arn              = "arn"
	Description      = "description"
	Id               = "id"
	CreationDate     = "creation_date"
	LastUpdate       = "last_update"
	Status           = "status"
	StatusError      = "error"
	StatusState      = "state"
	ModelId          = "model_id"
	Properties       = "properties"
	Hierarchies      = "hierarchies"
	Time             = "time"
	Quality          = "quality"
	CompositeModels  = "composite_models"
	AnomalyScore     = "anomaly_score"
	PredictionReason = "prediction_reason"
)

Variables

This section is empty.

Functions

func AggregationField

func AggregationField(length int, name string) *data.Field

func AnomalyScoreField added in v1.18.0

func AnomalyScoreField(length int) *data.Field

func ArnField

func ArnField(length int) *data.Field

func CompositeModelsField added in v1.1.0

func CompositeModelsField(length int) *data.Field

func CreationDateField

func CreationDateField(length int) *data.Field

func DescriptionField

func DescriptionField(length int) *data.Field

Description fields are optional

func DiagnosticField added in v1.18.0

func DiagnosticField(length int, assetId string) *data.Field

func FieldTypeForPropertyValue

func FieldTypeForPropertyValue(property *iotsitewise.DescribeAssetPropertyOutput) data.FieldType

func HierarchiesField

func HierarchiesField(length int) *data.Field

func IdField

func IdField(length int) *data.Field

func LastUpdateField

func LastUpdateField(length int) *data.Field

func ModelIdField

func ModelIdField(length int) *data.Field

func NameField

func NameField(length int) *data.Field

func NewFieldWithName

func NewFieldWithName(name string, fieldType data.FieldType, length int) *data.Field

func PredictionReasonField added in v1.18.0

func PredictionReasonField(length int) *data.Field

func PropertiesField

func PropertiesField(length int) *data.Field

func PropertyValueField

func PropertyValueField(property *iotsitewise.DescribeAssetPropertyOutput, length int) *data.Field

func PropertyValueFieldForQuery added in v1.2.3

func PropertyValueFieldForQuery(query models.AssetPropertyValueQuery, property *iotsitewise.DescribeAssetPropertyOutput, length int) *data.Field

func PropertyValueFieldNamed added in v1.2.3

func PropertyValueFieldNamed(name string, property *iotsitewise.DescribeAssetPropertyOutput, length int) *data.Field

func QualityField

func QualityField(length int) *data.Field

func StatusErrorField

func StatusErrorField(length int) *data.Field

func StatusStateField

func StatusStateField(length int) *data.Field

func TimeField

func TimeField(length int) *data.Field

func ToGrafanaUnit

func ToGrafanaUnit(unit *string) string

Map values from ???:

https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list#unit

to

https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/valueFormats/categories.ts#L24

Types

This section is empty.

Jump to

Keyboard shortcuts

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