1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add more settings helpers to widgets

This commit is contained in:
Sean Smith
2019-07-03 19:24:17 -04:00
parent 7413ffabb1
commit c1eb75de1a
5 changed files with 12 additions and 12 deletions

View File

@@ -12,9 +12,9 @@ const defaultTitle = "DataDog"
type Settings struct {
common *cfg.Common
apiKey string
applicationKey string
tags []interface{}
apiKey string `help:"Your Datadog API key."`
applicationKey string `help:"Your Datadog Application key."`
tags []interface{} `help:"Array of tags you want to query monitors by."`
}
func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings {