Support doesn't deal too much with custom agent creation utilizing the Python cartridge. Our field team which monitors the Foglight
Communities might be a good place to post questions.
The Python cartridge documentation provides an example agent which references the sample frequency. Extract the Python documentation from the Cartridge | Components Download dashboard.
C:\tmp\python\docs\example_agent.html
frequencies = foglight.asp.get_collector_frequencies()
# Default collection frequency, in case we are not able to figure it out
collector_seconds = 300
# Find this script in the list of collection frequencies.
# The keys might be slightly different depending on whether or not
# the script is run by the Agent Manager or Script Harness
for k in frequencies.keys():
if k.endswith("example-agent.py"):
collector_seconds = frequencies[k]
break