Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IamContext ¶
type IamContext struct {
// contains filtered or unexported fields
}
func CreateIamContext ¶
func CreateIamContext(keyId string, serviceAccountId string, keyFileName string) IamContext
func (*IamContext) SignedToken ¶
func (this *IamContext) SignedToken() (signed string, err error)
Формирование JWT.
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.