Freeze Constant (#156)

This commit is contained in:
Nikhil Pathak
2019-10-19 10:59:56 +05:30
committed by Pranav Raj S
parent af20e61604
commit 7d4cac38a8
2 changed files with 12 additions and 15 deletions

View File

@@ -1,3 +1,3 @@
module Constants::RedisKeys module Constants::RedisKeys
ROUND_ROBIN_AGENTS = "ROUND_ROBIN_AGENTS:%{inbox_id}" ROUND_ROBIN_AGENTS = 'ROUND_ROBIN_AGENTS:%{inbox_id}'.freeze
end end

View File

@@ -6,16 +6,13 @@ module Constants::Report
:outgoing_messages_count, :outgoing_messages_count,
:avg_first_response_time, :avg_first_response_time,
:avg_resolution_time, :avg_resolution_time,
:resolutions_count :resolutions_count].freeze
]
AVG_ACCOUNT_METRICS = [:avg_first_response_time, :avg_resolution_time]
AVG_ACCOUNT_METRICS = [:avg_first_response_time, :avg_resolution_time].freeze
AGENT_METRICS = [:avg_first_response_time, AGENT_METRICS = [:avg_first_response_time,
:avg_resolution_time, :avg_resolution_time,
:resolutions_count :resolutions_count].freeze
]
AVG_AGENT_METRICS = [:avg_first_response_time, :avg_resolution_time] AVG_AGENT_METRICS = [:avg_first_response_time, :avg_resolution_time].freeze
end end