Skip to content

Commit 702d8ba

Browse files
committed
Address Caley's feedback
1 parent c1d2b29 commit 702d8ba

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

alarm/nialarm.yml

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ definitions:
8181
$ref: '#/definitions/Operation'
8282
AlarmInstance:
8383
title: Alarm Instance
84-
description: An individual instance of an alarm. The lifecycle of an instance of an alarm begins the first
85-
time it is triggered and ends when it has been both acknowledged and cleared. The services enforces the
84+
description: An individual instance of an alarm. The lifecycle of an alarm instance begins the first
85+
time it is triggered and ends when it has been both acknowledged and cleared. The service enforces the
8686
invariant that there can be at most one *active*/true instance of an alarm with a given *alarmId*.
8787
type: object
8888
required:
@@ -100,10 +100,9 @@ definitions:
100100
type: string
101101
example: CRIO1.System.Health.DiskSpaceUsePercentage.Bdd9u!4aMd!$pYrf*CnaIZ2tbu$-Ct%?
102102
active:
103-
description: Whether or not the alarm instance is active. An active alarm is one that is considered to
104-
be still deserving of human or automated attention. Alarm instances always begin life with
105-
*active*/true. This field will be automatically set to false when the *clear* and
106-
*acknowledged* fields are set to true.
103+
description: Whether or not the alarm instance is active. An active alarm deserves human or automated
104+
attention. Alarm instances always begin life with *active*/true. This field will be automatically
105+
set to false when the *clear* and *acknowledged* fields are set to true.
107106
type: boolean
108107
clear:
109108
description: When set to true, the condition that triggered the alarm no longer matches the trigger
@@ -117,33 +116,33 @@ definitions:
117116
acknowledged:
118117
description: When set to true, the alarm has been acknowledged by an alarm handler, which is typically
119118
a human. Alarm instances always begin life with *acknowledged*/false. Acknowledging an alarm will
120-
not affect the *active* flag unless *clear* is also true. Once both *clear* and *acknowledged* are
119+
not affect the *active* flag unless *clear* is also true. When *clear* and *acknowledged* are
121120
true, the alarm will become inactive (*active*/false). This field is automatically reset to false
122121
when an alarm instance's *highestSeverityLevel* field increases.
123122
type: boolean
124123
acknowledgedAt:
125-
description: The time at which a given alarm instance was acknowledged. This field will be cleared
126-
when an alarm instance's *highestSeverityLevel* field increases.
124+
description: ISO-8601 formatted timestamp specifying when the alarm instance was acknowledged. This
125+
field will be cleared when an alarm instance's *highestSeverityLevel* field increases.
127126
type: string
128127
format: iso-date-time
129128
example: '2019-01-14T23:15:53.7270539Z'
130129
acknowledgedBy:
131-
description: Description of who acknowledged a given alarm instance. This field will be cleared when
132-
an alarm instance's *highestSeverityLevel* field increases.
130+
description: An identifier for who acknowledged a given alarm instance. This field will be cleared
131+
when an alarm instance's *highestSeverityLevel* field increases.
133132
type: string
134133
example: Daffy Duck
135134
occurredAt:
136-
description: The time at which a given alarm instance was created
135+
description: ISO-8601 formatted timestamp specifying when the alarm instance was created
137136
type: string
138137
format: iso-date-time
139138
example: '2019-01-14T23:15:53.7270539Z'
140139
updatedAt:
141-
description: The time at which a given alarm instance was last updated
140+
description: ISO-8601 formatted timestamp specifying when the alarm instance was last updated
142141
type: string
143142
format: iso-date-time
144143
example: '2019-01-14T23:15:53.7270539Z'
145144
createdBy:
146-
description: String identifying who or what created a given alarm instance. This is usually used to
145+
description: An identifier for who or what created a given alarm instance. This is usually used to
147146
identify the particular rule engine which requested that a given alarm instance be created.
148147
type: string
149148
example: TagRuleEngine
@@ -183,8 +182,8 @@ definitions:
183182
type: string
184183
example: Disk space on tester-1 is high. Disk usage was 95% when this alarm was created.
185184
keywords:
186-
description: Keywords associated with an alarm instance. Alarm instances can be tagged with keywords
187-
to make it easier to find them with queries.
185+
description: Words or phrases associated with an alarm instance. Alarm instances can be tagged
186+
with keywords to make it easier to find them with queries.
188187
type: array
189188
items:
190189
type: string
@@ -199,9 +198,9 @@ definitions:
199198
$ref: '#/definitions/AlarmNote'
200199
properties:
201200
description: Key-value-pair metadata associated with an alarm instance. Alarm instances can be tagged
202-
with properties so that they can be more easily found with queries. Additionally, alarm instance
203-
properties are used to expand message templates in the notification strategies associated with a
204-
given alarm instance.
201+
with properties to make it easier to find them with queries. Additionally, alarm instance properties
202+
are used to expand message templates in the notification strategies associated with a given alarm
203+
instance.
205204
type: object
206205
additionalProperties:
207206
type: string
@@ -213,7 +212,7 @@ definitions:
213212
example: Tag
214213
AlarmNote:
215214
title: Alarm Note
216-
description: Contains information about a particular alarm instance, such as a description of an
215+
description: Information about a particular alarm instance, such as a description of an
217216
investigation into an alarm's root cause.
218217
required:
219218
- note
@@ -224,7 +223,7 @@ definitions:
224223
type: string
225224
example: Temperature sensor was faulty
226225
createdAt:
227-
description: The time at which the note was created
226+
description: ISO-8601 formatted timestamp specifying when the note was created
228227
type: string
229228
format: iso-date-time
230229
example: '2019-01-14T23:15:53.7270539Z'
@@ -248,7 +247,7 @@ definitions:
248247
transitionType:
249248
$ref: '#/definitions/AlarmTransitionType'
250249
occurredAt:
251-
description: The time at which the transition occurred.
250+
description: ISO-8601 formatted timestamp specifying when the transition occurred
252251
type: string
253252
format: iso-date-time
254253
example: '2019-01-14T23:15:53.7270539Z'
@@ -280,8 +279,8 @@ definitions:
280279
type: string
281280
example: Disk usage on CRIO1 is 95% (lower than configured threshold of 90%)
282281
keywords:
283-
description: Keywords associated with a transition. Useful for attaching additional metadata to
284-
a given transition which could aid in an investigation into an alarm's root cause in the future.
282+
description: Words or phrases associated with a transition. Useful for attaching additional metadata
283+
to a given transition which could aid in an investigation into an alarm's root cause in the future.
285284
type: array
286285
items:
287286
type: string
@@ -377,7 +376,7 @@ definitions:
377376
channel:
378377
type: string
379378
description: Channel query. The service will return instances whose *channel* fields are equal to the
380-
query, taking case into account. Supports wildcard match checking uses glob-style wildcards.
379+
query, taking case into account. Supports wildcard match checking with glob-style wildcards.
381380
example: '*.System.Health.DiskSpaceUsePercentage'
382381
properties:
383382
type: object
@@ -411,9 +410,9 @@ definitions:
411410
items:
412411
$ref: '#/definitions/SubQuery'
413412
returnMostRecentlyOccurredOnly:
414-
description: For the instances matched by this query, only return the most recent instance for each
415-
*alarmId*. In this context, recency is based on when the alarm instance occurred, not when it was
416-
last updated.
413+
description: Whether or not the alarm service should group the instances matched by this query by
414+
*alarmId*, and then only return the most recent instance for each grouping. In this context,
415+
recency is based on when the alarm instance occurred, not when it was last updated.
417416
type: boolean
418417
orderBy:
419418
description: Whether or not results should be sorted in ascending or descending order relative to
@@ -587,8 +586,8 @@ paths:
587586
parameters:
588587
- in: body
589588
name: Request body
590-
description: Request body. For requests which do not result in a new alarm instance being created,
591-
all fields other than *alarmId* and *transition* are ignored.
589+
description: Container which holds data for the request. For requests which do not result in a
590+
new alarm instance being created, all fields other than *alarmId* and *transition* are ignored.
592591
schema:
593592
type: object
594593
title: CreateOrUpdateInstanceRequest
@@ -606,7 +605,7 @@ paths:
606605
transition:
607606
$ref: '#/definitions/AlarmTransition'
608607
createdBy:
609-
description: String identifying who or what created a given alarm instance. This is usually
608+
description: An identifier for who or what created a given alarm instance. This is usually
610609
used to identify the particular rule engine which requested that a given alarm be created.
611610
type: string
612611
example: TagRuleEngine
@@ -628,8 +627,8 @@ paths:
628627
type: string
629628
example: Disk space on tester-1 is high. Disk usage was 95% when this alarm was created.
630629
keywords:
631-
description: Keywords associated with an alarm instance. Alarm instances can be tagged with
632-
keywords to make it easier to find them with queries.
630+
description: Words or phrases associated with an alarm instance. Alarm instances can be
631+
tagged with keywords to make it easier to find them with queries.
633632
type: array
634633
items:
635634
type: string
@@ -638,9 +637,9 @@ paths:
638637
- keyword2
639638
properties:
640639
description: Key-value-pair metadata associated with an alarm instance. Alarm instances can be
641-
tagged with properties so that they can be more easily found with queries. Additionally,
642-
alarm instance properties are used to expand message templates in the notification
643-
strategies associated with a given alarm instance.
640+
tagged with properties to make it easier to find them with queries. Additionally, alarm
641+
instance properties are used to expand message templates in the notification strategies
642+
associated with a given alarm instance.
644643
type: object
645644
additionalProperties:
646645
type: string

0 commit comments

Comments
 (0)