1. 09 Apr, 2019 1 commit
  2. 01 Apr, 2019 1 commit
  3. 29 Mar, 2019 1 commit
  4. 12 Mar, 2019 1 commit
  5. 11 Mar, 2019 1 commit
  6. 05 Mar, 2019 1 commit
  7. 09 Jan, 2019 1 commit
    • Alessio Placitelli's avatar
      Implement the "timespan" metric type in glean · b9de35f8
      Alessio Placitelli authored
      The timespan metric allows to accumulate timespans and send
      them over with the given ping. Its API allows to specify the
      time resolution with which the data is sent out.
      Moreover, this changes the GenericScalarStorageEngine
      to enable overriding the getSnapshot function.
  8. 13 Dec, 2018 1 commit
    • travis79's avatar
      Bug 1508952 - Add StringList metric type · ae0c4e1c
      travis79 authored
      Add test coverage to deserializeSingleMetric() function
      Change type used by the GenericScalarStorageEngine to not nullible type
      Change deserializeSingleMetric() to explicitly check List contents
      Simplify List creation away from MutableList to List
      Add to deserialization test a way to check that Lists not of String is ignored
      Add string_list to default storage engines
      Fix detekt and ktlint issues
      Make all dictionary access use the same and not use .get()
      Add a test for testing set() before add() properly stores data
      Updated logger name in StringListsStorageEngine to correct name
      Clean up and format
      Fixing StringListsStorageEngine tests
      Fix ktlint and detekt errors
      Remove unecessary try/catch's
      Add square brackets to doc comments for proper linking
      Refactor StringListsStorageEngine.deserializeSingleMetric()
      Making the function more concise and adding comment to explain the case where the JSONArray() constructor may exception.
      Add case to StringListsStorageEngineTest to cover deserializing invalid list
      Update test to add coverage for serializeSingleMetric()
      Change double indents to single indents
      Improve serialization tests for all scalar storage engines
      Add to JSON test to test clearing of store
  9. 10 Dec, 2018 1 commit
  10. 05 Dec, 2018 1 commit
    • travis79's avatar
      Fixes Bugs 1497879, 1497892 - Add counter metric type to glean · fbcf6471
      travis79 authored
      Adds CountersStorageEngine and CounterMetricType to glean.  Updated StorageEngineManager, adding 'counter' to default storage engines.
      Changed CounterMetricType to read from storage engine
      Rather than using a local variable to track the current count, as this could get out of sync if app  pushed to background.  Also fixed some copypasta errors, changing "String" to "Counter".
      Changes to make use of combinator and async engine
      Changes per Alessio
      Updated String and UUID metric type classes to internal access
      Update message
      Increase code coverage