Documentation
¶
Index ¶
- Constants
- func BuildCobraCommandWithDatadogMiddlewares(cmd cmds.Command, options ...cli.CobraParserOption) (*cobra.Command, error)
- func GetCobraCommandDatadogMiddlewares(parsedCommandLayers *layers.ParsedLayers, cmd *cobra.Command, args []string) ([]middlewares.Middleware, error)
- func GetDatadogMiddlewares(parsedCommandLayers *layers.ParsedLayers) ([]middlewares.Middleware, error)
- func NewDatadogParameterLayer() (layers.ParameterLayer, error)
- type DatadogSettings
Constants ¶
View Source
const DatadogSlug = "datadog"
Variables ¶
This section is empty.
Functions ¶
func GetCobraCommandDatadogMiddlewares ¶
func GetCobraCommandDatadogMiddlewares( parsedCommandLayers *layers.ParsedLayers, cmd *cobra.Command, args []string, ) ([]middlewares.Middleware, error)
func GetDatadogMiddlewares ¶
func GetDatadogMiddlewares( parsedCommandLayers *layers.ParsedLayers, ) ([]middlewares.Middleware, error)
GetDatadogMiddlewares returns the common middleware chain used by datadog commands
func NewDatadogParameterLayer ¶
func NewDatadogParameterLayer() (layers.ParameterLayer, error)
NewDatadogParameterLayer creates a parameter layer for Datadog authentication
Types ¶
type DatadogSettings ¶
type DatadogSettings struct {
APIKey string `glazed.parameter:"api-key"`
AppKey string `glazed.parameter:"app-key"`
Site string `glazed.parameter:"site"`
RawHTTP bool `glazed.parameter:"raw-http-debug"`
}
DatadogSettings represents Datadog configuration parameters
func (*DatadogSettings) Validate ¶
func (d *DatadogSettings) Validate() error
Validate checks if the Datadog settings are valid
Click to show internal directories.
Click to hide internal directories.