github
53 of 335 new or added lines in 26 files covered. (15.82%)
27 existing lines in 7 files now uncovered.10384 of 21100 relevant lines covered (49.21%)
278.39 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
NEW
|
module NotificationEvent |
× |
NEW
|
class QualityAlarmFired < Base |
× |
5 |
# @!method destination [Routing::Destination]
|
|
NEW
|
parameter :destination, required: true |
× |
7 |
# @!method stat [Stats::TerminationQualityStat]
|
|
NEW
|
parameter :stat, required: true |
× |
9 |
|
|
NEW
|
private |
× |
11 |
|
|
NEW
|
def event_name |
× |
NEW
|
"#{destination.class}QualityAlarmFired"
|
× |
NEW
|
end
|
× |
15 |
|
|
NEW
|
def subject |
× |
NEW
|
"#{destination.class} with id #{destination.id} Quality alarm fired"
|
× |
NEW
|
end
|
× |
19 |
|
|
NEW
|
def message |
× |
NEW
|
"ACD Limit: #{destination.acd_limit}, ACD actual value: #{stat.acd}\n
|
× |
NEW
|
ASR Limit: #{destination.asr_limit}, ASR actual value: #{stat.asr}" |
× |
NEW
|
end
|
× |
24 |
|
|
NEW
|
def additional_contacts |
× |
NEW
|
destination.rateplan.contacts.preload(:smtp_connection)
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |