Class: Conversant::V3::Services::CDN::Monitoring
- Inherits:
-
Object
- Object
- Conversant::V3::Services::CDN::Monitoring
- Defined in:
- lib/conversant/v3/services/cdn/monitoring.rb
Overview
Monitoring service for CDN performance tracking
Provides real-time monitoring data and performance metrics for CDN infrastructure and service health.
Instance Attribute Summary collapse
-
#parent ⇒ CDN
readonly
The parent CDN service instance.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Monitoring
constructor
Initialize monitoring service.
-
#spots(payload) ⇒ Array
Get monitoring spot data.
Constructor Details
#initialize(parent) ⇒ Monitoring
Initialize monitoring service
33 34 35 |
# File 'lib/conversant/v3/services/cdn/monitoring.rb', line 33 def initialize(parent) @parent = parent end |
Instance Attribute Details
#parent ⇒ CDN (readonly)
Returns the parent CDN service instance.
28 29 30 |
# File 'lib/conversant/v3/services/cdn/monitoring.rb', line 28 def parent @parent end |
Instance Method Details
#spots(payload) ⇒ Array
Get monitoring spot data
55 56 57 58 59 60 |
# File 'lib/conversant/v3/services/cdn/monitoring.rb', line 55 def spots(payload) JSON.parse(@parent.send(:call, 'POST', '/api/monitoring', payload))&.[]('spots') || [] rescue StandardError => e @parent.send(:logger).error "#{@parent.send(:identifier)}.METHOD:#{__method__}.EXCEPTION:#{e.}" [] end |