-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add allowed emergency contact types validation
- Loading branch information
Showing
7 changed files
with
331 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ import ( | |
"time" | ||
|
||
"github.com/moira-alert/moira" | ||
"github.com/moira-alert/moira/datatypes" | ||
) | ||
|
||
// WebContact is container for web ui contact validation. | ||
|
@@ -43,12 +44,13 @@ type Config struct { | |
|
||
// WebConfig is container for web ui configuration parameters. | ||
type WebConfig struct { | ||
SupportEmail string `json:"supportEmail,omitempty" example:"[email protected]"` | ||
RemoteAllowed bool `json:"remoteAllowed" example:"true"` | ||
MetricSourceClusters []MetricSourceCluster `json:"metric_source_clusters"` | ||
Contacts []WebContact `json:"contacts"` | ||
FeatureFlags FeatureFlags `json:"featureFlags"` | ||
Sentry Sentry `json:"sentry"` | ||
SupportEmail string `json:"supportEmail,omitempty" example:"[email protected]"` | ||
RemoteAllowed bool `json:"remoteAllowed" example:"true"` | ||
MetricSourceClusters []MetricSourceCluster `json:"metric_source_clusters"` | ||
Contacts []WebContact `json:"contacts"` | ||
EmergencyContactTypes []datatypes.HeartbeatType `json:"emergency_contact_types"` | ||
FeatureFlags FeatureFlags `json:"featureFlags"` | ||
Sentry Sentry `json:"sentry"` | ||
} | ||
|
||
// MetricSourceCluster contains data about supported metric source cluster. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.