Exception: Datadog::Statsd::Schema::DuplicateMetricError

Inherits:
SchemaError
  • Object
show all
Defined in:
lib/datadog/statsd/schema/errors.rb

Overview

Raised when attempting to define a metric that already exists in the schema

Examples:

Schema definition error

namespace :web do
  metrics do
    counter :requests
    counter :requests  # This would raise DuplicateMetricError
  end
end

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from SchemaError

#metric, #namespace, #tag

Method Summary

Methods inherited from SchemaError

#initialize

Constructor Details

This class inherits a constructor from Datadog::Statsd::Schema::SchemaError