1a60ff845SJagpal Singh Gilldescription: >
2a60ff845SJagpal Singh Gill    Provides threshold functionality for Metrics and Sensors. Any object
3a60ff845SJagpal Singh Gill    implementing Threshold interface must implement a Value interface at
4a60ff845SJagpal Singh Gill    corresponding path.
5a60ff845SJagpal Singh Gill
6a60ff845SJagpal Singh Gillproperties:
7a60ff845SJagpal Singh Gill    - name: Value
8*d1a7e40fSPatrick Williams      type: dict[enum[self.Type],dict[enum[self.Bound],double]]
9a60ff845SJagpal Singh Gill      description: >
10a60ff845SJagpal Singh Gill          This indicates the threshold ranges applicable for the corresponding
11a60ff845SJagpal Singh Gill          Value interface. This property is experimental and may change based on
12*d1a7e40fSPatrick Williams          implementation. map{thresholdType,map{thresholdBound,thresholdValue}}
13a60ff845SJagpal Singh Gill      flags:
14a60ff845SJagpal Singh Gill          - readonly
15a60ff845SJagpal Singh Gill    - name: Asserted
16a60ff845SJagpal Singh Gill      type: set[struct[enum[self.Type],enum[self.Bound]]]
17a60ff845SJagpal Singh Gill      description: >
18a60ff845SJagpal Singh Gill          This indicates the set of asserted thresholds.
19a60ff845SJagpal Singh Gill          set{struct{thresholdType,thresholdBound}}
20a60ff845SJagpal Singh Gill      flags:
21a60ff845SJagpal Singh Gill          - readonly
22a60ff845SJagpal Singh Gill
23a60ff845SJagpal Singh Gillsignals:
24a60ff845SJagpal Singh Gill    - name: AssertionChanged
25a60ff845SJagpal Singh Gill      description: >
26a60ff845SJagpal Singh Gill          This indicates the assertion change for a threshold.
27a60ff845SJagpal Singh Gill      properties:
28a60ff845SJagpal Singh Gill          - name: ThresholdType
29a60ff845SJagpal Singh Gill            type: enum[self.Type]
30a60ff845SJagpal Singh Gill            description: >
31a60ff845SJagpal Singh Gill                This indicates the threshold type for the assertion.
32a60ff845SJagpal Singh Gill          - name: ThresholdBound
33a60ff845SJagpal Singh Gill            type: enum[self.Bound]
34a60ff845SJagpal Singh Gill            description: >
35a60ff845SJagpal Singh Gill                This indicates the threshold bound for the assertion.
36a60ff845SJagpal Singh Gill          - name: Status
37a60ff845SJagpal Singh Gill            type: boolean
38a60ff845SJagpal Singh Gill            description: >
39a60ff845SJagpal Singh Gill                This indicates whether the assertion has been asserted(true) or
40a60ff845SJagpal Singh Gill                deasserted(false).
41a60ff845SJagpal Singh Gill          - name: Value
42a60ff845SJagpal Singh Gill            type: double
43a60ff845SJagpal Singh Gill            description: >
44a60ff845SJagpal Singh Gill                The value that triggered the assertion change.
45a60ff845SJagpal Singh Gill
46a60ff845SJagpal Singh Gillenumerations:
47a60ff845SJagpal Singh Gill    - name: Type
48a60ff845SJagpal Singh Gill      description: >
49a60ff845SJagpal Singh Gill          This indicates the type of threshold.
50a60ff845SJagpal Singh Gill      values:
51a60ff845SJagpal Singh Gill          - name: Warning
52a60ff845SJagpal Singh Gill            description: >
53a60ff845SJagpal Singh Gill                Indicates the warning level.
54a60ff845SJagpal Singh Gill          - name: Critical
55a60ff845SJagpal Singh Gill            description: >
56a60ff845SJagpal Singh Gill                Indicates the critical level.
57a60ff845SJagpal Singh Gill          - name: PerformanceLoss
58a60ff845SJagpal Singh Gill            description: >
59a60ff845SJagpal Singh Gill                Indicates the performance loss level.
60a60ff845SJagpal Singh Gill          - name: SoftShutdown
61a60ff845SJagpal Singh Gill            description: >
62a60ff845SJagpal Singh Gill                Indicates the soft shutdown level.
63a60ff845SJagpal Singh Gill          - name: HardShutdown
64a60ff845SJagpal Singh Gill            description: >
65a60ff845SJagpal Singh Gill                Indicates the hard shutdown level.
66a60ff845SJagpal Singh Gill    - name: Bound
67a60ff845SJagpal Singh Gill      description: >
68a60ff845SJagpal Singh Gill          This indicates the threshold direction.
69a60ff845SJagpal Singh Gill      values:
70a60ff845SJagpal Singh Gill          - name: Upper
71a60ff845SJagpal Singh Gill            description: >
72a60ff845SJagpal Singh Gill                Indicates the upper bound of the threshold.
73a60ff845SJagpal Singh Gill          - name: Lower
74a60ff845SJagpal Singh Gill            description: >
75a60ff845SJagpal Singh Gill                Indicates the lower bound of the threshold.
76