Module: ThreeScale::Backend::Metric::KeyHelpers
- Included in:
- ThreeScale::Backend::Metric, ThreeScale::Backend::Metric
- Defined in:
- lib/3scale/backend/metric.rb
Instance Method Summary collapse
- #id_key(service_id, name) ⇒ Object
- #id_set_key(service_id) ⇒ Object
- #key(service_id, id, attribute) ⇒ Object
Instance Method Details
#id_key(service_id, name) ⇒ Object
11 12 13 |
# File 'lib/3scale/backend/metric.rb', line 11 def id_key(service_id, name) encode_key("metric/service_id:#{service_id}/name:#{name}/id") end |
#id_set_key(service_id) ⇒ Object
15 16 17 |
# File 'lib/3scale/backend/metric.rb', line 15 def id_set_key(service_id) encode_key("metrics/service_id:#{service_id}/ids") end |
#key(service_id, id, attribute) ⇒ Object
7 8 9 |
# File 'lib/3scale/backend/metric.rb', line 7 def key(service_id, id, attribute) encode_key("metric/service_id:#{service_id}/id:#{id}/#{attribute}") end |