Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶ added in v0.1.19
type IamContext ¶
func CreateIamContext ¶
func CreateIamContext(keyId string, serviceAccountId string, keyFileName string) IamContext
type IamContextImpl ¶ added in v0.1.19
type IamContextImpl struct {
// contains filtered or unexported fields
}
func (*IamContextImpl) IamToken ¶ added in v0.1.20
func (this *IamContextImpl) IamToken() (iam string, err error)
type Metric ¶
type Metric struct { Name string `json:"name"` Labels map[string]string `json:"labels,omitempty"` MetricType string `json:"type"` Timestamp string `json:"ts,omitempty"` Value float64 `json:"value"` Timeseries []Point `json:"timeseries,omitempty"` }
func CreateMetric ¶
func CreateSimpleMetric ¶
func CreateSimpleMetric(name string, metricType MetricType, value float64) Metric
type MetricType ¶
type MetricType string
const ( DGAUGE MetricType = "DGAUGE" IGAUGE MetricType = "IGAUGE" COUNTER MetricType = "COUNTER" RATE MetricType = "RATE" )
type Payload ¶
type YandexMonitoringClient ¶
type YandexMonitoringClient interface {
Write(timestamp time.Time, labels map[string]string, metrics []Metric) (result int64, err error)
}
func MakeYandexMonitoringClientImpl ¶
func MakeYandexMonitoringClientImpl(baseUrl string, folderId string, iamContext IamContext) YandexMonitoringClient
Click to show internal directories.
Click to hide internal directories.