Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { ID string `json:"id"` ShellyName string `json:"shelly_name"` Name string `json:"name"` }
Device struct
type Metric ¶
type Metric struct { ShellyType string `json:"type"` ResultKey string `json:"resultKey"` FqName string `json:"fqName"` Help string `json:"help"` Labels []string `json:"labels"` MetricResult []map[string]interface{} PromType prometheus.ValueType PromDesc *prometheus.Desc PromResult []*PrometheusResult }
Metric struct
type MetricsFile ¶
type MetricsFile struct { Metrics []*Metric `json:"metrics"` Products []*Products `json:"products"` Account *Account `json:"account"` }
MetricsFile struct
type Products ¶
type Products struct { Type string `json:"type"` Devices []*Device `json:"devices"` Export map[string]string `json:"export"` }
Products struct
type PrometheusResult ¶
type PrometheusResult struct { PromDesc *prometheus.Desc PromValueType prometheus.ValueType Value float64 LabelValues []string }
PrometheusResult struct
Click to show internal directories.
Click to hide internal directories.