コード例 #1
0
 class Meta:
     identifier = GlobalId("address")
     alert_conditions = [
         alert_conditions.ValueCondition("status",
                                         warn_states=["FAILED"],
                                         error_states=["BADLY_FAILED"],
                                         message="Controller failure"),
         alert_conditions.UpperBoundCondition(
             "temperature",
             warn_bound=85,
             error_bound=95,
             message="High temperature warning",
             id="temp_high"),
         alert_conditions.LowerBoundCondition(
             "temperature",
             warn_bound=0,
             message="Low temperature warning",
             id="temp_low"),
         alert_conditions.ValueCondition("multi_status",
                                         warn_states=["FAIL1"],
                                         message="Failure 1",
                                         id="multi_status_failure1"),
         alert_conditions.ValueCondition("multi_status",
                                         warn_states=["FAIL2"],
                                         message="Failure 2",
                                         id="multi_status_failure2"),
         alert_conditions.ValueCondition("multi_status",
                                         warn_states=["FAIL1", "FAIL2"],
                                         message="Failure 1 or 2",
                                         id="multi_status_failure12"),
     ]
コード例 #2
0
 class Meta:
     identifier = GlobalId('address')
     alert_conditions = [
         alert_conditions.ValueCondition('status',
                                         warn_states=['FAILED'],
                                         error_states=['BADLY_FAILED'],
                                         message="Controller failure"),
         alert_conditions.UpperBoundCondition(
             'temperature',
             warn_bound=85,
             error_bound=95,
             message="High temperature warning",
             id='temp_high'),
         alert_conditions.LowerBoundCondition(
             'temperature',
             warn_bound=0,
             message="Low temperature warning",
             id='temp_low'),
         alert_conditions.ValueCondition('multi_status',
                                         warn_states=['FAIL1'],
                                         message="Failure 1",
                                         id='multi_status_failure1'),
         alert_conditions.ValueCondition('multi_status',
                                         warn_states=['FAIL2'],
                                         message="Failure 2",
                                         id='multi_status_failure2'),
         alert_conditions.ValueCondition('multi_status',
                                         warn_states=['FAIL1', 'FAIL2'],
                                         message="Failure 1 or 2",
                                         id='multi_status_failure12'),
     ]
コード例 #3
0
 class Meta:
     identifier = GlobalId('address')
     alert_conditions = [
         alert_conditions.ValueCondition('status',
            warn_states = ['FAILED'], message = "Controller failure"),
         alert_conditions.UpperBoundCondition('temperature',
             warn_bound = 85, message = "High temperature warning"),
         alert_conditions.LowerBoundCondition('temperature',
             warn_bound = 0, message = "Low temperature warning"),
         alert_conditions.ValueCondition('multi_status',
             warn_states = ['FAIL1'], message = "Failure 1"),
         alert_conditions.ValueCondition('multi_status',
             warn_states = ['FAIL2'], message = "Failure 2"),
         alert_conditions.ValueCondition('status',
             warn_states = ['FAIL1', 'FAIL2'], message = "Failure 1 or 2"),
     ]
コード例 #4
0
 class Meta:
     identifier = GlobalId('serial')
     relations = [
         relations.Provide(
             provide_to=('linux', 'ScsiDevice'),
             attributes=['serial']),
     ]
     charts = [
         {
             'title': "Bandwidth",
             'series': ['read_bytes_sec', 'write_bytes_sec']
         },
         {
             'title': "Ops",
             'series': ['read_ops_sec', 'write_ops_sec']
         },
         {
             'title': "Latency distribution",
             'series': ['write_latency_hist']
         }
     ]
コード例 #5
0
 class Meta:
     identifier = GlobalId("serial")
     relations = [relations.Provide(provide_to=("linux", "ScsiDevice"), attributes=["serial"])]
コード例 #6
0
 class Meta:
     identifier = GlobalId("name")
     label = "Alpha"
コード例 #7
0
 class Meta:
     identifier = GlobalId("container", "number")
コード例 #8
0
 class Meta:
     identifier = GlobalId("host_id", "plugin_name")
コード例 #9
0
 class Meta:
     identifier = GlobalId("uuid")
     icon = "lvm_vg"
     label = "Volume group"
コード例 #10
0
 class Meta:
     identifier = GlobalId('container', 'number')
コード例 #11
0
 class Meta:
     identifier = GlobalId('host_id', 'plugin_name')
コード例 #12
0
 class Meta:
     identifier = GlobalId('uuid', 'vg')
     icon = 'lvm_lv'
     label = 'Logical volume'
コード例 #13
0
 class Meta:
     identifier = GlobalId('uuid')
     icon = 'lvm_vg'
     label = 'Volume group'
コード例 #14
0
 class Meta:
     identifier = GlobalId('name')
     label = "Alpha"
     charts = [{'title': 'IO', 'series': ['read', 'write']}]
コード例 #15
0
 class Meta:
     identifier = GlobalId('name', 'name_scope')
コード例 #16
0
 class Meta:
     identifier = GlobalId('wwid')
コード例 #17
0
 class Meta:
     identifier = GlobalId('uuid')
コード例 #18
0
 class Meta:
     identifier = GlobalId("uuid", "vg")
     icon = "lvm_lv"
     label = "Logical volume"
コード例 #19
0
 class Meta:
     identifier = GlobalId("address")
コード例 #20
0
 class Meta:
     identifier = GlobalId("serial")
     label = "SCSI device"
コード例 #21
0
 class Meta:
     identifier = GlobalId('name')
コード例 #22
0
 class Meta:
     identifier = GlobalId("uuid")
コード例 #23
0
 class Meta:
     identifier = GlobalId('address')
コード例 #24
0
 class Meta:
     identifier = GlobalId("address1", "address2")
コード例 #25
0
 class Meta:
     identifier = GlobalId("name")
     label = "Alpha"
     charts = [{"title": "IO", "series": ["read", "write"]}]
コード例 #26
0
 class Meta:
     identifier = GlobalId("name", "name_scope")
コード例 #27
0
 class Meta:
     identifier = GlobalId('address1', 'address2')
コード例 #28
0
 class Meta:
     identifier = GlobalId("name")
コード例 #29
0
 class Meta:
     identifier = GlobalId('serial')
     relations = [relations.Provide(provide_to=('linux', 'ScsiDevice'), attributes=['serial'])]