monasca-api  4.0.0
About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Ussuri" series (maintained release).
  Fossies Dox: monasca-api-4.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition Class Reference
Inheritance diagram for monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition:
[legend]
Collaboration diagram for monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition:
[legend]

Public Member Functions

def __init__ (self, row=None, sub_expr=None)
 
def expression (self)
 
def __hash__ (self)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def same_key_fields (self, other)
 

Public Attributes

 id
 
 alarm_definition_id
 
 metric_name
 
 dimensions_str
 
 dimensions
 
 function
 
 operator
 
 period
 
 periods
 
 threshold
 
 deterministic
 

Private Member Functions

def _init_dimensions (self, dimensions_str)
 

Detailed Description

Holds sub alarm definition

Used for comparing sub alarm definitions for equality.

Definition at line 18 of file sub_alarm_definition.py.

Constructor & Destructor Documentation

◆ __init__()

def monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.__init__ (   self,
  row = None,
  sub_expr = None 
)
Initialize

:param row: Database row
:param sub_expr: Result from expression parser
:return:

Definition at line 24 of file sub_alarm_definition.py.

Member Function Documentation

◆ __eq__()

def monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.__eq__ (   self,
  other 
)

◆ __hash__()

def monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.__hash__ (   self)

◆ __repr__()

def monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.__repr__ (   self)

Definition at line 123 of file sub_alarm_definition.py.

References monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.alarm_definition_id, monasca.api.domain.model.alarmdefinition.AlarmDefinition.deterministic, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.deterministic, monasca.api.app.command.CreateMetricCommand.dimensions, monasca.api.domain.exception.MultipleMetricsException.dimensions, monasca.api.domain.model.measurement.Measurements.dimensions, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.dimensions, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.function, monasca.api.domain.model.dimension.DimensionBase.id, monasca.api.domain.model.metric.MetricName.id, monasca.api.infrastructure.persistence.mysql.AlarmMySqlRepoImpl.SubAlarm.id, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.id, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.metric_name, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.operator, monasca.api.app.command.CreateNotificationMethodCommand.period, monasca.api.app.command.PatchNotificationMethodCommand.period, monasca.api.app.command.UpdateNotificationMethodCommand.period, monasca.api.domain.model.notificationmethod.NotificationMethod.period, monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.period, and monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.periods.

◆ _init_dimensions()

def monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition._init_dimensions (   self,
  dimensions_str 
)
private

Definition at line 68 of file sub_alarm_definition.py.

◆ expression()

◆ same_key_fields()

Member Data Documentation

◆ alarm_definition_id

◆ deterministic

◆ dimensions

◆ dimensions_str

monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.dimensions_str

◆ function

◆ id

monasca_api.common.repositories.model.sub_alarm_definition.SubAlarmDefinition.id

◆ metric_name

◆ operator

◆ period

◆ periods

◆ threshold


The documentation for this class was generated from the following file: