Documentation ¶
Index ¶
- func ReadMetric(PrometheusPath string, PrometheusQuery string) (model2.Value, error)
- func ScrapeMetrics(metric model.AutoscalingDefinitionMetric, testDuration time.Duration, ...) (scrapedMetricsChannel chan []MetricValidateResult, scrapeInterval chan bool)
- func TestSingleValueBounds(metric model.AutoscalingDefinitionMetric, value float64) (bool, bool)
- type MetricValidateResult
- type MetricValidateResultMap
- type ScrapeResultChannel
- type TestResult
- type TestResultsChannel
- type ValueScalar
- type ValueString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMetric ¶
func ScrapeMetrics ¶
func ScrapeMetrics(metric model.AutoscalingDefinitionMetric, testDuration time.Duration, scrapeDuration time.Duration) (scrapedMetricsChannel chan []MetricValidateResult, scrapeInterval chan bool)
func TestSingleValueBounds ¶
func TestSingleValueBounds(metric model.AutoscalingDefinitionMetric, value float64) (bool, bool)
Types ¶
type MetricValidateResult ¶
type MetricValidateResult struct { LowerBoundPassed bool UpperBoundPassed bool MetricName string IsMetricValid bool Value []model2.Value }
func ScrapeMetric ¶
func ScrapeMetric(metric model.AutoscalingDefinitionMetric) (MetricValidateResult, error)
func ValidateMetricBounds ¶
func ValidateMetricBounds(value model2.Value, metric model.AutoscalingDefinitionMetric) (MetricValidateResult, error)
public functions
type MetricValidateResultMap ¶
type MetricValidateResultMap struct { Name string ScrapedList []MetricValidateResult }
type ScrapeResultChannel ¶
type ScrapeResultChannel struct {
// contains filtered or unexported fields
}
func MakeScrape ¶
func MakeScrape(metric model.AutoscalingDefinitionMetric) (ScrapeResultChannel, error)
type TestResult ¶
type TestResultsChannel ¶
type TestResultsChannel struct { TestResultsChannel chan TestResult ScrapeInterval chan bool TestInterval chan bool }
func MakeTest ¶
func MakeTest(metric model.AutoscalingDefinitionMetric, scrapeResultChannel ScrapeResultChannel) (TestResultsChannel, error)
public functions
type ValueScalar ¶
Click to show internal directories.
Click to hide internal directories.