Ad Widget

Collapse

API Help - Filter value by greater, or less, than a different value

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • epau
    Junior Member
    • Jun 2024
    • 1

    #1

    API Help - Filter value by greater, or less, than a different value

    Hello,

    I'm using the Python API and doing a history.get with itemids as a parameter and then comparing the clock value to other variables I have in my Python script to create a new dicitionary with only history within that timeframe.
    I was wondering if it were possible to do something like this through the zabbix API alone, e.g through the filter parameter?

    Thanks
  • Answer selected by epau at 17-06-2024, 10:45.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    https://www.zabbix.com/documentation...ce/history/get
    time_from timestamp Return only values that have been received after or at the given time.
    time_till timestamp Return only values that have been received before or at the given time.
    ??

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      https://www.zabbix.com/documentation...ce/history/get
      time_from timestamp Return only values that have been received after or at the given time.
      time_till timestamp Return only values that have been received before or at the given time.
      ??

      Comment

      Working...