exporter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformanceKeysString

func PerformanceKeysString() string

Types

type ApiResponse

type ApiResponse struct {
	Body Body `json:"body"`
}

func (ApiResponse) Mappings

func (api ApiResponse) Mappings() map[string]string

func (ApiResponse) Metrics

func (api ApiResponse) Metrics() []Metrics

type Body

type Body struct {
	PerformanceKeys PerformanceKeys
	EndTime         string
	StartTime       string
	DBInstanceId    string
	Engine          string
}

type Config

type Config struct {
	InstanceId      string `yaml:"instance_id"`
	AccessKeyId     string `yaml:"access_key_id"`
	AccessKeySecret string `yaml:"access_key_secret"`
}

type Metrics

type Metrics struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type MetricsResponse

type MetricsResponse struct {
	// contains filtered or unexported fields
}

func FetchLastMinuteDBInstancePerformance

func FetchLastMinuteDBInstancePerformance(config Config) (response *MetricsResponse, err error)

func (*MetricsResponse) Html

func (mp *MetricsResponse) Html() string

func (*MetricsResponse) Json

func (mp *MetricsResponse) Json() string

func (*MetricsResponse) Raw

func (mp *MetricsResponse) Raw() []Metrics

type PerformanceKeyItem

type PerformanceKeyItem struct {
	Key         string
	Unit        string
	Values      PerformanceValue
	ValueFormat string
}

type PerformanceKeys

type PerformanceKeys struct {
	PerformanceKey []PerformanceKeyItem
}

type PerformanceValue

type PerformanceValue struct {
	PerformanceValue []PerformanceValueItem
}

type PerformanceValueItem

type PerformanceValueItem struct {
	Value string
	Date  string
}

Jump to

Keyboard shortcuts

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