Chore: Remove redis backed reporting (#669)

This commit is contained in:
Subin T P
2020-05-02 16:04:52 +05:30
committed by GitHub
parent ddbc612f0b
commit 7e62000e1b
13 changed files with 2 additions and 322 deletions

View File

@@ -1,18 +0,0 @@
# frozen_string_literal: true
module Constants::Report
ACCOUNT_METRICS = [:conversations_count,
:incoming_messages_count,
:outgoing_messages_count,
:avg_first_response_time,
:avg_resolution_time,
:resolutions_count].freeze
AVG_ACCOUNT_METRICS = [:avg_first_response_time, :avg_resolution_time].freeze
AGENT_METRICS = [:avg_first_response_time,
:avg_resolution_time,
:resolutions_count].freeze
AVG_AGENT_METRICS = [:avg_first_response_time, :avg_resolution_time].freeze
end

View File

@@ -1,33 +0,0 @@
# frozen_string_literal: true
module CustomExceptions::Report
class InvalidIdentity < CustomExceptions::Base
def message
'Invalid type'
end
end
class IdentityNotFound < CustomExceptions::Base
def message
'Type with the specified id not found'
end
end
class MetricNotFound < CustomExceptions::Base
def message
'Metric for the specified type not found'
end
end
class InvalidStartTime < CustomExceptions::Base
def message
'Invalid start_time'
end
end
class InvalidEndTime < CustomExceptions::Base
def message
'Invalid end_time'
end
end
end