This file is indexed.

/etc/heat/templates/AWS_CloudWatch_Alarm.yaml is in heat-common 1:6.0.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
HeatTemplateFormatVersion: '2012-12-12'
Description: AWS::CloudWatch::Alarm using Ceilometer.
Parameters:
  AlarmDescription:
    Type: String
    Default: An alarm
  EvaluationPeriods:
    Type: String
  MetricName:
    Type: String
  Namespace:
    Type: String
    Default: system/linux
  Period:
    Type: String
  ComparisonOperator:
    Type: String
    AllowedValues: [GreaterThanOrEqualToThreshold, GreaterThanThreshold,
                    LessThanThreshold, LessThanOrEqualToThreshold]
  Statistic:
    Type: String
    AllowedValues: [SampleCount, Average, Sum, Minimum, Maximum]
  Threshold:
    Type: String
  Units:
    Type: String
    AllowedValues: [Seconds, Microseconds, Milliseconds, Bytes, Kilobytes,
                    Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
                    Gigabits, Terabits, Percent, Count, Bytes/Second,
                    Kilobytes/Second, Megabytes/Second, Gigabytes/Second,
                    Terabytes/Second, Bits/Second, Kilobits/Second,
                    Megabits/Second, Gigabits/Second, Terabits/Second,
                    Count/Second, None]
    Default: None
  AlarmActions:
   Type: CommaDelimitedList
   Default: ''
  OKActions:
   Type: CommaDelimitedList
   Default: ''
  InsufficientDataActions:
   Type: CommaDelimitedList
   Default: ''
  Dimensions:
   Type: CommaDelimitedList
   Default: ''

Mappings:
  ComparisonOperatorMap:
    LessThanOrEqualToThreshold: {Ceilometer: le}
    LessThanThreshold: {Ceilometer: lt}
    GreaterThanThreshold: {Ceilometer: gt}
    GreaterThanOrEqualToThreshold: {Ceilometer: ge}
  StatisticMap:
    SampleCount: {Ceilometer: count}
    Average: {Ceilometer: avg}
    Sum: {Ceilometer: sum}
    Minimum: {Ceilometer: min}
    Maximum: {Ceilometer: max}

Resources:
  __alarm__:
    Type: OS::Ceilometer::Alarm
    Properties:
      description:
        Ref: AlarmDescription
      meter_name:
        Ref: MetricName
      period:
        Ref: Period
      evaluation_periods:
        Ref: EvaluationPeriods
      repeat_actions: true
      threshold:
        Ref: Threshold
      alarm_actions:
        Ref: AlarmActions
      ok_actions:
        Ref: OKActions
      insufficient_data_actions:
        Ref: InsufficientDataActions
      statistic:
        "Fn::FindInMap": [StatisticMap, {Ref: Statistic}, Ceilometer]
      comparison_operator:
        "Fn::FindInMap": [ComparisonOperatorMap, {Ref: ComparisonOperator}, Ceilometer]
      matching_metadata:
        "Fn::MemberListToMap": [Name, Value, {Ref: Dimensions}]