-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.py
More file actions
32 lines (27 loc) · 1.14 KB
/
config.example.py
File metadata and controls
32 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# API Endpoints
CRIBL_HEC_ENDPOINT = "YOUR_CRIBL_HEC_ENDPOINT" # Example: "https://your-cribl-instance:8088/services/collector"
PULSEPOINT_API = "https://web.pulsepoint.org/DB/giba.php" # PulsePoint API endpoint
# Agency Configuration
AGENCIES = [
{
"id": "YOUR_AGENCY_ID", # Example: "EMS1234"
"name": "YOUR_AGENCY_NAME", # Example: "County EMS"
"cribl_token": "YOUR_CRIBL_TOKEN" # Example: "Cribl xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
]
# Timing Configuration
MAX_RETRIES = 3
RETRY_DELAY = 5 # seconds
POST_DELAY = 5 # seconds between posts
REQUEST_TIMEOUT = 30 # seconds
# Logging Configuration
LOG_FILE = "pulsepoint.log"
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
LOG_LEVEL = "INFO"
# Debug Configuration
ENABLE_DEBUG_LOGGING = False # Set to True to enable detailed debug logging
DEBUG_LOG_FORMAT = "%(asctime)s - %(levelname)s - [%(filename)s:%(lineno)d] - %(message)s" # More detailed format
# Metrics Configuration
METRICS_ENABLED = True # Enable/disable metrics collection
METRICS_LOG_FILE = "pulsepoint_metrics.log" # Separate file for metrics
METRICS_FORMAT = "%(asctime)s - %(message)s"