Ad Widget

Collapse

API Question, Trend.GET Timestamps..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • artrune
    Junior Member
    • Aug 2020
    • 16

    #1

    API Question, Trend.GET Timestamps..

    Been looking on the API docs but haven't been able to get an answer, I'm wondering what the timestamp means in the response, example:

    Code:
            {
                "itemid": "31606",
                "clock": "1598544000", (Which is [B]GMT[/B]: Thursday, 27 August 2020 4:00:00 PM)
                "num": "60",
                "value_avg": "0.20580491666666664"
            }
    I'm wondering if it means that the value was calculated from 4 PM to 5PM or if it was calculated from 3PM to 4PM (With non scientific experiments it seems that it is calculated from 4PM to 5PM)
    Any clues?
    Thanks!
  • isaqueprofeta
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2020
    • 154

    #2
    Good question, on my view I think that as a trend it tends to look to the past, so my answer should be from 3PM till 4PM.

    To be sure I'll mark dimir here to get a reality of this.

    Comment


    • artrune
      artrune commented
      Editing a comment
      Thanks for tagging him, that's the behavior I would expect but I'm not sure that's the one I'm getting.
  • artrune
    Junior Member
    • Aug 2020
    • 16

    #3
    Anyone has anyother insight in this?
    Thanks!

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #4
      Timestamp 04:00:00 means the values were calculated for the period 04:00:00-04:59:59.

      I have updated documentation describing Trigger object: https://www.zabbix.com/documentation...e/trend/object

      Please see if that makes more sense now.

      Comment

      • artrune
        Junior Member
        • Aug 2020
        • 16

        #5
        Thanks a lot for your answer and for updating the docs!

        Comment

        • isaqueprofeta
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Aug 2020
          • 154

          #6
          Originally posted by dimir
          Timestamp 04:00:00 means the values were calculated for the period 04:00:00-04:59:59.

          I have updated documentation describing Trigger object: https://www.zabbix.com/documentation...e/trend/object

          Please see if that makes more sense now.
          Ty very much for this!

          Comment

          Working...