Skip to content

Commit

Permalink
chore: refactored schema in batch_config
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-new-relic committed Aug 3, 2023
1 parent 91914eb commit 89ba8cb
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions internal/synthetics/batch_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,19 @@ type SecureCredential struct {
}

type MonitorConfig struct {
Overrides []SecureCredential `yaml:"secureCredential"`
Location string `yaml:"location"`
Overrides []SecureCredential `yaml:"secureCredential, omitempty"`
Location string `yaml:"location, omitempty"`
IsBlocking bool `yaml:"isBlocking"`
}

type Monitor struct {
GUID string `yaml:"guid"`
Config MonitorConfig `yaml:"config"`
}

type TagSearch struct {
Name string `yaml:"name"`
Value string `yaml:"value"`
Config MonitorConfig `yaml:"config, omitempty"`
}

type Configuration struct {
Monitors []Monitor `yaml:"monitors"`
TagSearch []TagSearch `yaml:"tagSearch"`
Config struct {
Monitors []Monitor `yaml:"monitors"`
Config struct {
Branch string `yaml:"branch"`
Commit string `yaml:"commit"`
Platform string `yaml:"platform"`
Expand Down

0 comments on commit 89ba8cb

Please sign in to comment.