Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SampleV1V2 ¶
type SampleV1V2 struct { Name string Description string Tags map[string]string Scenario ScenarioV1V2 ScrapeInterval time.Duration `yaml:"scrapeInterval"` }
SampleV1V2 represent sample scenarios
func LoadSampleV1V2Config ¶
func LoadSampleV1V2Config(data []byte) (*SampleV1V2, error)
LoadSampleV1V2Config loads from byte array.
func LoadSampleV1V2ConfigFromFile ¶
func LoadSampleV1V2ConfigFromFile(path string) (*SampleV1V2, error)
LoadSampleV1V2ConfigFromFile loads from file.
func (*SampleV1V2) Migrate ¶
func (s *SampleV1V2) Migrate() *config.SampleConfig
Migrate converts a v1-v2 sample to a v3 sample
type ScenarioV1V2 ¶
type ScenarioV1V2 struct { Kind string Steps []StepV1V2 StepsDefinitions map[string]StepDefinitionV1V2 }
ScenarioV1V2 definition
type StepDefinitionV1V2 ¶
type StepDefinitionV1V2 struct { Name string Description string Params []StepParamV1V2 }
StepDefinitionV1V2 definition
type StepParamV1V2 ¶
StepParamV1V2 returns the value of a step parameter
Click to show internal directories.
Click to hide internal directories.