Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 924621ee authored by tsaichristine's avatar tsaichristine
Browse files

Add comment for TimeUnit::ONE_MINUTE guardrail

All metric types (except EventMetric) guardrail bucket size using the function TimeUnitToBucketSizeInMillisGuardrailed, which returns a bucket size of 5 minutes for any buckets with a size > 1 second and < 5 minutes iff uid is not shell or root.

Test: bit statsd_test:*
Change-Id: I6350a07978217c795565cd096134e3df56ecf163
parent 851b4767
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ enum Position {

enum TimeUnit {
  TIME_UNIT_UNSPECIFIED = 0;
  ONE_MINUTE = 1;
  ONE_MINUTE = 1;  // WILL BE GUARDRAILED TO 5 MINS UNLESS UID = SHELL OR ROOT
  FIVE_MINUTES = 2;
  TEN_MINUTES = 3;
  THIRTY_MINUTES = 4;