-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make telemetry an AppSec component service
- Loading branch information
Showing
5 changed files
with
84 additions
and
60 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
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 |
---|---|---|
@@ -1,26 +1,33 @@ | ||
module Datadog | ||
module AppSec | ||
class Component | ||
def self.build_appsec_component: (Datadog::Core::Configuration::Settings settings) -> Datadog::AppSec::Component? | ||
@processor: Processor? | ||
|
||
@telemetry: Core::Telemetry::Component | ||
|
||
@mutex: ::Mutex | ||
|
||
def self.build_appsec_component: (Core::Configuration::Settings settings, Core::Telemetry::Component telemetry) -> Component? | ||
|
||
private | ||
|
||
def self.create_processor: () -> Datadog::AppSec::Processor? | ||
def self.incompatible_ffi_version?: () -> bool | ||
|
||
def self.create_processor: (Core::Configuration::Settings settings, Core::Telemetry::Component telemetry) -> Processor? | ||
|
||
public | ||
|
||
attr_reader processor: Processor? | ||
|
||
attr_reader processor: Datadog::AppSec::Processor? | ||
attr_reader mutex: Thread::Mutex | ||
attr_reader telemetry: Core::Telemetry::Component | ||
|
||
def initialize: (processor: Datadog::AppSec::Processor?) -> void | ||
def initialize: (Processor processor, Core::Telemetry::Component telemetry) -> void | ||
|
||
def self.reconfigure: ( | ||
ruleset: ::Hash[untyped, untyped], | ||
actions: Array[Hash[String, untyped]], | ||
telemetry: Datadog::Core::Telemetry::Component | ||
) -> void | ||
def reconfigure: (ruleset: Processor::RuleMerger::rules, telemetry: Core::Telemetry::Component) -> void | ||
|
||
def self.reconfigure_lock: () { () -> void } -> void | ||
def reconfigure_lock: () { (?) -> void } -> void | ||
|
||
def shutdown!: () -> untyped | ||
def shutdown!: () -> void | ||
end | ||
end | ||
end |
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