src/telemetry/metrics/reliability.js
function ReliabilityMetric () {
  if (!(this instanceof ReliabilityMetric)) {
    return new ReliabilityMetric()
  }

  Metric.call(this)

  this.key = 'reliability'
  this.default = [0, 0] // [success,error]
  this.hooks = [{
    trigger: 'before',
    event: 'receive',
    handler: this._recordResponseType
  }]
}
function ReliabilityMetric () {
  if (!(this instanceof ReliabilityMetric)) {
    return new ReliabilityMetric()
  }

  Metric.call(this)

  this.key = 'reliability'
  this.default = [0, 0] // [success,error]
  this.hooks = [{
    trigger: 'before',
    event: 'receive',
    handler: this._recordResponseType
  }]
}
Defines a metric that measures reliability by success/error responses
@constructor