• This topic has 0 replies, 1 voice, and was last updated May 6, 2021 by Milos B.

Collection time for Resource Reports

  • Hi,
    Does anyone know how the specific time is determined when the daily samples are collected for the Resource Report that can be obtained through the ‘resources’ API? The frequency is set to daily or hourly in the ‘Site Settings’, but I cannot find anything about how the specific time is selected and if it ever changes.

    We are retrieving this report for the last 24 hour period (e.g., v1/reports/resources?startTime=2021-05-04T11:45:53Z&endTime=2021-05-05T11:45:53Z), expecting to get just one set of samples, corresponding to the total resources. We have discovered that when the timing of the API call nearly coincides with the sample collection time you can end up getting two sampling reports, resulting in twice the resources reported (each VM has two samples).

    We could add logic to check the SamplingTime and make sure we are only getting one collection cycle of the report, but we should not need this logic if we can schedule the API call sufficiently apart from the sample collection time.

    Cheers,
    Milos

You must be logged in to create new topics. Click here to login