Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDuration ¶
ParseDuration parses a duration string and scales it to the value expected by the Instana API.
func ToInstanaTS ¶
ToInstanaTS converts a datetime string to an instana Dynamic Focus Query timestamp.
func ToTabular ¶
func ToTabular(hist PercentageHeatmap) [][]string
Types ¶
type InfraQuery ¶
type InfraQuery interface {
ListMetrics(queryString string, pluginType string, metrics []string, rollup int64, windowSize int64, to int64) ([]openapi.MetricItem, error)
ListSnapshots(queryString string, pluginType string, windowSize int64) ([]openapi.SnapshotItem, error)
}
InfraQuery is a common interface for infrastructure queries.
type InfraQueryAPI ¶
type InfraQueryAPI struct {
// contains filtered or unexported fields
}
InfraQueryAPI is a concrete implementation fo the InfraQuery interface using the openapi client.
func (*InfraQueryAPI) ListMetrics ¶
func (api *InfraQueryAPI) ListMetrics(queryString string, pluginType string, metrics []string, rollup int64, windowSize int64, to int64) ([]openapi.MetricItem, error)
ListMetrics returns the list of metrics matching the supplied query parameters.
func (*InfraQueryAPI) ListSnapshots ¶
func (api *InfraQueryAPI) ListSnapshots(queryString string, pluginType string, windowSize int64) ([]openapi.SnapshotItem, error)
ListSnapshots returns the list of snapshots matching the supplied query parameters.
type PercentageHeatmap ¶
func ToPercentageHeatmap ¶
func ToPercentageHeatmap(items []openapi.MetricItem, metric string) PercentageHeatmap
Click to show internal directories.
Click to hide internal directories.