Skip to main content
Problem Solver I
October 24, 2022
Solved

Issue Querying "metric-aggregates" Endpoint

  • October 24, 2022
  • 2 replies
  • 235 views

I am trying to hit the “metric-aggregates” endpoint to get and analyze my metric data over the prior few months. However, I keep receiving a 500 Servor Error Occurred, when trying to make the below request (in python). Is there anything else I’d need to add to my query to resolve this issue?

 

    This topic has been closed for replies.
    Best answer by rpaul12

    The issue was the interval: “hourly” - “hourly” is not supported, it was supposed to be “hour”.

     

    I would suggest adding a more descriptive error message - similar to the error messages that occur when the filter string is formatted incorrectly 

    2 replies

    rpaul12AuthorAnswer
    Problem Solver I
    October 25, 2022

    The issue was the interval: “hourly” - “hourly” is not supported, it was supposed to be “hour”.

     

    I would suggest adding a more descriptive error message - similar to the error messages that occur when the filter string is formatted incorrectly 

    Brian Turcotte
    Klaviyo Alum
    October 25, 2022

    Hi @rpaul12 and welcome to the Community!

     

    I will certainly share this error message enhancement request with our Product Team for further consideration - in the mean time, here is a link to a page in our developer portal about Query Metric Aggregates:

     

    Developer Portal - Query Metric Aggregates

     

    Thank you for using the Community!

     

    -Brian