csle_common.consumer_threads package
Submodules
csle_common.consumer_threads.aggregated_host_metrics_thread module
- class csle_common.consumer_threads.aggregated_host_metrics_thread.AggregatedHostMetricsThread(host_metrics: HostMetrics, machines: List[EmulationDefenderMachineObservationState], sleep_time: int)[source]
Bases:
Thread
Thread that polls the Kafka log to get the latest status of the docker statistics for a specific host
csle_common.consumer_threads.aggregated_ossec_ids_log_consumer_thread module
- class csle_common.consumer_threads.aggregated_ossec_ids_log_consumer_thread.AggregatedOSSECIdsLogConsumerThread(kafka_server_ip: str, kafka_port: int, ossec_ids_alert_counters: OSSECIdsAlertCounters, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the OSSEC IDS log to get the latest metrics
csle_common.consumer_threads.aggregated_snort_ids_log_consumer_thread module
- class csle_common.consumer_threads.aggregated_snort_ids_log_consumer_thread.AggregatedSnortIdsLogConsumerThread(kafka_server_ip: str, kafka_port: int, snort_ids_alert_counters: SnortIdsAlertCounters, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the Snort IDS log to get the latest metrics
csle_common.consumer_threads.aggregated_snort_ids_rule_log_consumer_thread module
- class csle_common.consumer_threads.aggregated_snort_ids_rule_log_consumer_thread.AggregatedSnortIdsRuleLogConsumerThread(kafka_server_ip: str, kafka_port: int, snort_ids_rule_counters: SnortIdsRuleCounters, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the Snort IDS log to get the latest rule-based metrics
csle_common.consumer_threads.attacker_actions_consumer_thread module
- class csle_common.consumer_threads.attacker_actions_consumer_thread.AttackerActionsConsumerThread(kafka_server_ip: str, kafka_port: int, attacker_actions: List[EmulationAttackerAction], auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls Kafka to get the latest attacker actions
csle_common.consumer_threads.avg_host_metrics_thread module
- class csle_common.consumer_threads.avg_host_metrics_thread.AvgHostMetricsThread(host_metrics: HostMetrics, machines: List[EmulationDefenderMachineObservationState], sleep_time: int)[source]
Bases:
Thread
Thread that polls the Kafka log to get the latest status of the docker statistics for a specific host
csle_common.consumer_threads.client_population_consumer_thread module
- class csle_common.consumer_threads.client_population_consumer_thread.ClientPopulationConsumerThread(kafka_server_ip: str, kafka_port: int, client_population_metrics: ClientPopulationMetrics, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the Kafka log to get the latest status of the client population
csle_common.consumer_threads.defender_actions_consumer_thread module
- class csle_common.consumer_threads.defender_actions_consumer_thread.DefenderActionsConsumerThread(kafka_server_ip: str, kafka_port: int, defender_actions: List[EmulationDefenderAction], auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the kafka to get the latest defender actions
csle_common.consumer_threads.docker_host_stats_consumer_thread module
- class csle_common.consumer_threads.docker_host_stats_consumer_thread.DockerHostStatsConsumerThread(kafka_server_ip: str, kafka_port: int, docker_stats: DockerStats, host_ip: str, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the Kafka log to get the latest status of the docker statistics for a specific host
csle_common.consumer_threads.docker_stats_consumer_thread module
csle_common.consumer_threads.host_metrics_consumer_thread module
csle_common.consumer_threads.ossec_ids_log_consumer_thread module
- class csle_common.consumer_threads.ossec_ids_log_consumer_thread.OSSECIdsLogConsumerThread(host_ip: str, kafka_server_ip: str, kafka_port: int, ossec_ids_alert_counters: OSSECIdsAlertCounters, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the OSSEC IDS log to get the latest metrics
csle_common.consumer_threads.snort_ids_log_consumer_thread module
- class csle_common.consumer_threads.snort_ids_log_consumer_thread.SnortIdsLogConsumerThread(host_ip: str, kafka_server_ip: str, kafka_port: int, snort_ids_alert_counters: SnortIdsIPAlertCounters, auto_offset_reset: str = 'latest')[source]
Bases:
Thread
Thread that polls the Snort IDS log to get the latest metrics