Documentation
¶
Overview ¶
Package datadog matches expected Datadog security signals.
Index ¶
- Constants
- type DatadogAlertFilter
- type DatadogAlertMatcher
- func (m *DatadogAlertMatcher) AlertName() string
- func (m *DatadogAlertMatcher) Cleanup(indicators []string, logger *logrus.Entry) error
- func (m *DatadogAlertMatcher) HasExpectedAlert(indicators []string, logger *logrus.Entry) (bool, error)
- func (m *DatadogAlertMatcher) MatcherName() string
- func (m *DatadogAlertMatcher) String() string
- type DatadogAlertMatcherBuilder
- type DatadogSecuritySignalsAPI
- type DatadogSecuritySignalsAPIImpl
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 ¶
This section is empty.
Types ¶
type DatadogAlertFilter ¶
type DatadogAlertMatcher ¶ added in v0.4.0
type DatadogAlertMatcher struct {
SignalsAPI DatadogSecuritySignalsAPI
AlertFilter *DatadogAlertFilter
}
func (*DatadogAlertMatcher) AlertName ¶ added in v0.4.0
func (m *DatadogAlertMatcher) AlertName() string
func (*DatadogAlertMatcher) Cleanup ¶ added in v0.4.0
func (m *DatadogAlertMatcher) Cleanup(indicators []string, logger *logrus.Entry) error
func (*DatadogAlertMatcher) HasExpectedAlert ¶ added in v0.4.0
func (*DatadogAlertMatcher) MatcherName ¶ added in v0.4.0
func (m *DatadogAlertMatcher) MatcherName() string
func (*DatadogAlertMatcher) String ¶ added in v0.4.0
func (m *DatadogAlertMatcher) String() string
type DatadogAlertMatcherBuilder ¶ added in v0.4.0
type DatadogAlertMatcherBuilder struct {
DatadogAlertMatcher
}
builder
func DatadogSecuritySignal ¶
func DatadogSecuritySignal(name string, envVars map[string]string) *DatadogAlertMatcherBuilder
DatadogSecuritySignal creates a new Datadog security signal matcher. envVars provides run-specific env vars; pass nil to read from process env (CLI path).
func (*DatadogAlertMatcherBuilder) Cleanup ¶ added in v0.4.0
func (m *DatadogAlertMatcherBuilder) Cleanup(indicators []string, logger *logrus.Entry) error
func (*DatadogAlertMatcherBuilder) HasExpectedAlert ¶ added in v0.4.0
func (*DatadogAlertMatcherBuilder) WithSeverity ¶ added in v0.4.0
func (m *DatadogAlertMatcherBuilder) WithSeverity(severity string) *DatadogAlertMatcherBuilder
type DatadogSecuritySignalsAPIImpl ¶
type DatadogSecuritySignalsAPIImpl struct {
// contains filtered or unexported fields
}
func (*DatadogSecuritySignalsAPIImpl) CloseSignal ¶
func (m *DatadogSecuritySignalsAPIImpl) CloseSignal(id string) error
func (*DatadogSecuritySignalsAPIImpl) SearchSignals ¶
func (m *DatadogSecuritySignalsAPIImpl) SearchSignals(query string) ([]datadogV2.SecurityMonitoringSignal, error)
Click to show internal directories.
Click to hide internal directories.