23 lines
863 B
Plaintext
23 lines
863 B
Plaintext
|
#!/usr/bin/env python3
|
||
|
# Copyright (C) 2024 Spearhead Systems SRL
|
||
|
|
||
|
def get_params(params):
|
||
|
return params["tenant"], params["client"], params["secret"]
|
||
|
|
||
|
def agent_azure_keyvault_metrics(params, hostname, ipaddress):
|
||
|
tenant, client, secret = get_params(params)
|
||
|
return ["keyvault", tenant, client, secret]
|
||
|
|
||
|
def agent_azure_firewall_metrics(params, hostname, ipaddress):
|
||
|
tenant, client, secret = get_params(params)
|
||
|
return ["firewall", tenant, client, secret]
|
||
|
|
||
|
def agent_azure_defender_alerts(params, hostname, ipaddress):
|
||
|
tenant, client, secret = get_params(params)
|
||
|
return ["defender", tenant, client, secret]
|
||
|
|
||
|
special_agent_info["azure_keyvault_metrics"] = agent_azure_keyvault_metrics
|
||
|
special_agent_info["azure_firewall_metrics"] = agent_azure_firewall_metrics
|
||
|
special_agent_info["azure_defender_alerts"] = agent_azure_defender_alerts
|
||
|
|