The agent collects at intervals that are calculated based on the time of day. If you set a 24 hour interval the agent will collect the metric at 00:00:00 GMT each day. I don't recommend manipulating the collection intervals programatically as it could result in a missed collection if there's a failure somewhere.