datadog

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const QueryAllOpenSignals = `@workflow.triage.state:open`
View Source
const QueryOpenSignalsByAlertNameAndSeverity = `@workflow.triage.state:open @workflow.rule.name:"%s" %s`
View Source
const QuerySeverity = `status:%s`

Variables

This section is empty.

Functions

func GetDDSite

func GetDDSite() string

Types

type DatadogAlertFilter

type DatadogAlertFilter struct {
	RuleName string `yaml:"rule-name"`
	Severity string
}

type DatadogAlertGeneratedAssertion

type DatadogAlertGeneratedAssertion struct {
	SignalsAPI  DatadogSecuritySignalsAPI
	AlertFilter *DatadogAlertFilter
}

func (*DatadogAlertGeneratedAssertion) Cleanup

func (m *DatadogAlertGeneratedAssertion) Cleanup(detonationUuid string) error

func (*DatadogAlertGeneratedAssertion) HasExpectedAlert

func (m *DatadogAlertGeneratedAssertion) HasExpectedAlert(detonationUuid string) (bool, error)

func (*DatadogAlertGeneratedAssertion) String

type DatadogAlertGeneratedAssertionBuilder

type DatadogAlertGeneratedAssertionBuilder struct {
	DatadogAlertGeneratedAssertion
}

builder

func DatadogSecuritySignal

func DatadogSecuritySignal(name string) *DatadogAlertGeneratedAssertionBuilder

func (*DatadogAlertGeneratedAssertionBuilder) Cleanup

func (m *DatadogAlertGeneratedAssertionBuilder) Cleanup(detonationUuid string) error

func (*DatadogAlertGeneratedAssertionBuilder) HasExpectedAlert

func (m *DatadogAlertGeneratedAssertionBuilder) HasExpectedAlert(detonationUuid string) (bool, error)

func (*DatadogAlertGeneratedAssertionBuilder) WithSeverity

type DatadogSecuritySignalsAPI

type DatadogSecuritySignalsAPI interface {
	SearchSignals(query string) ([]datadogV2.SecurityMonitoringSignal, error)
	CloseSignal(id string) error
}

type DatadogSecuritySignalsAPIImpl

type DatadogSecuritySignalsAPIImpl struct {
	// contains filtered or unexported fields
}

func (*DatadogSecuritySignalsAPIImpl) CloseSignal

func (m *DatadogSecuritySignalsAPIImpl) CloseSignal(id string) error

func (*DatadogSecuritySignalsAPIImpl) SearchSignals

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL