Add a sampling method to pull gauge when condition changes to true.

Test: statsd test

BUG: b/79490890
Change-Id: I82ed6681151f8a217e74bd0d855f817b4fa0619c
2 files changed