gaugeDelta method

void gaugeDelta (
  1. String name,
  2. int delta

Updates gauge specified by name by the value provided in delta.

The delta value can be negative or positive. Note: This implies you can't explicitly set a gauge to a negative number without first setting it to zero.


void gaugeDelta(String name, int delta) {
  var value = (delta < 0) ? '${delta}' : '+${delta}';
  _packets.add(_packet(_prefix, name, value, 'g'));