Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputConfig ¶
type InputConfig struct { // StartTime when set, represents the beginning of the metric time range // This defaults to EndTime - Duration when duration is set. StartTime *time.Time `json:"startTime,omitempty"` // EndTime when set, represents end of the metric time range // This defaults to the current time EndTime *time.Time `json:"endTime,omitempty"` // Duration represents how long to go back from EndTime when creating the metric time range // This is mutually exclusive with the StartTime value. Only one of these // two values can be set. Duration *Duration `json:"duration,omitempty"` PrometheusURL string `json:"prometheusURL"` PrometheusUserName string `json:"prometheusUserName"` PrometheusPassword string `json:"prometheusPassword"` PrometheusBearerToken string `json:"prometheusBearerToken"` PrometheusVerifyTLS bool `json:"prometheusVerifyTLS"` ThresholdExpectations map[ResultType]InputThreshold `json:"thresholdExpectations,omitempty"` }
func ReadInputFile ¶
func ReadInputFile(filePath string) (*InputConfig, error)
func (*InputConfig) GetDuration ¶
func (i *InputConfig) GetDuration() time.Duration
type InputThreshold ¶
type InputThreshold struct {
Value float64 `json:"value"`
}
type Result ¶
type Result struct {
Values map[ResultType]ResultValue
}
func (*Result) DumpToFile ¶
func (*Result) DumpToStdout ¶
type ResultType ¶
type ResultType string
const ( ResultTypeVMICreationToRunningP99 ResultType = "vmiCreationToRunningSecondsP99" ResultTypeVMICreationToRunningP95 ResultType = "vmiCreationToRunningSecondsP95" ResultTypeVMICreationToRunningP50 ResultType = "vmiCreationToRunningSecondsP50" )
type ResultValue ¶
type ResultValue struct { Value float64 `json:"value"` ThresholdResult *ThresholdResult `json:"thresholdResult,omitempty"` }
type ThresholdResult ¶
Click to show internal directories.
Click to hide internal directories.