Class: PerformanceMonitoring::PrometheusPanelGroup

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/performance_monitoring/prometheus_panel_group.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#groupObject

Returns the value of attribute group


7
8
9
# File 'app/models/performance_monitoring/prometheus_panel_group.rb', line 7

def group
  @group
end

#panelsObject

Returns the value of attribute panels


7
8
9
# File 'app/models/performance_monitoring/prometheus_panel_group.rb', line 7

def panels
  @panels
end

#priorityObject

Returns the value of attribute priority


7
8
9
# File 'app/models/performance_monitoring/prometheus_panel_group.rb', line 7

def priority
  @priority
end

Class Method Details

.from_json(json_content) ⇒ Object


13
14
15
# File 'app/models/performance_monitoring/prometheus_panel_group.rb', line 13

def from_json(json_content)
  build_from_hash(json_content).tap(&:validate!)
end