The Assimilation Project  based on Assimilation version
cma.bestpractices.BestPracticesCMA Class Reference
Inheritance diagram for cma.bestpractices.BestPracticesCMA:
Collaboration diagram for cma.bestpractices.BestPracticesCMA:

Public Member Functions

def __init__ (self, config, packetio, store, log, debug)
def fetch_rules (self, drone, _unusedsrcaddr, discovertype)
- Public Member Functions inherited from cma.bestpractices.BestPractices
def __init__ (self, config, packetio, store, log, debug)
def url (self, drone, ruleid, ruleobj, html=True, port=5000)
def processpkt (self, drone, srcaddr, jsonobj, discoverychanged)
def basic_rule_score_algorithm (self, _drone, rule, status)
def log_rule_results (self, results, drone, _srcaddr, discoveryobj, discovertype, rulesobj)
def compute_scores (self, drone, rulesobj, statuses)
def compute_score_updates (self, discovery_json, drone, rulesobj, newstats, oldstats)
def fetch_rules (self, _drone, _unusedsrcaddr, _discovertype)

Static Public Member Functions

def configcallback (config, changedname, _unusedargs)
- Static Public Member Functions inherited from cma.bestpractices.BestPractices
def register (pkttypes)
def register_sensitivity (bpcls, pkttype)
def load_json (store, json, bp_class, rulesetname, basedon=None)
def load_from_file (store, filename, bp_class, rulesetname, basedon=None)
def load_directory (store, directoryname, rulesetname, basedon=None)
def gen_bp_rules_by_ruleset (store, rulesetname)
def send_rule_event (oldstat, newstat, drone, ruleid, ruleobj, url)
def evaluate (_unused_drone, _unusedsrcaddr, wholejsonobj, ruleobj, description)

Static Public Attributes

string application = 'os'
string discovery_name = 'JSON_proc_sys'
- Static Public Attributes inherited from cma.bestpractices.BestPractices
 prio = DiscoveryListener.PRI_OPTION
list wantedpackets = []
dictionary eval_objects = {}
dictionary eval_classes = {}
dictionary evaled_classes = {}
 application = None
 discovery_name = None
string application = 'os'
string BASEURL = ''

Detailed Description

Definition at line 429 of file

Constructor & Destructor Documentation

def cma.bestpractices.BestPracticesCMA.__init__ (   self,

Definition at line 434 of file

Member Function Documentation

def cma.bestpractices.BestPracticesCMA.configcallback (   config,
Function called when configuration is updated.
We use it to make sure all we get callbacks for all
our discovery types.
this might be overkill, but it's not expensive ;-).
And, it doesn't do anything useful at the moment...

Definition at line 447 of file

def cma.bestpractices.BestPracticesCMA.fetch_rules (   self,
Evaluate our rules given the current/changed data.
Note that fetch_rules is separate from rule evaluation to
simplify testing.
In our case, we ask our Drone to provide us with the merged rule
sets for the current kind of incoming packet.

Definition at line 437 of file

Field Documentation

string cma.bestpractices.BestPracticesCMA.application = 'os'

Definition at line 431 of file

string cma.bestpractices.BestPracticesCMA.discovery_name = 'JSON_proc_sys'

Definition at line 432 of file

The documentation for this class was generated from the following file: