module.alarms¶
Alarms module¶
type |
object |
||||
properties |
|||||
|
The id of the template to use for this file |
||||
type |
string |
||||
|
The variables and their values to be replaced from the template |
||||
type |
object |
||||
additionalProperties |
|||||
|
The variables files to use to replace the variables. The first file of the list will take precedence over the following one. Template variables take precedence over the contents of the files. |
||||
type |
array |
||||
items |
type |
string |
|||
|
If the value is set to true, manual editing of this file should be avoided, as the composer will override the value in the next generation. |
||||
type |
boolean |
||||
|
The configuration of the Rabbit MQ used for communication |
||||
|
The configuration of module’s logging |
||||
default |
moduleLogLevel |
INFO |
|||
externalLogLevel |
WARN |
||||
|
The execution parameter for the action |
||||
|
The configuration of the Mongo Database |
||||
|
The indexes to build on the Mongo Database for the live collection |
||||
type |
array |
||||
default |
name |
subId |
|||
index |
_id._id |
1 |
|||
sparse |
False |
||||
name |
subSerial |
||||
index |
_id.serial |
1 |
|||
sparse |
False |
||||
name |
acknowledged |
||||
index |
acknowledged |
1 |
|||
sparse |
False |
||||
name |
location |
||||
index |
location |
1 |
|||
sparse |
False |
||||
name |
lockedSeverity |
||||
index |
lockedSeverity |
1 |
|||
sparse |
True |
||||
name |
isSeverityLocked |
||||
index |
isSeverityLocked |
1 |
|||
sparse |
True |
||||
name |
serial |
||||
index |
serial |
1 |
|||
sparse |
False |
||||
name |
severity |
||||
index |
severity |
1 |
|||
sparse |
False |
||||
name |
source |
||||
index |
source |
1 |
|||
sparse |
False |
||||
name |
tags |
||||
index |
tags |
1 |
|||
sparse |
False |
||||
name |
timestamp |
||||
index |
timestamp |
1 |
|||
sparse |
False |
||||
items |
|||||
|
The indexes to build on the Mongo Database for the deduplicated collection |
||||
type |
array |
||||
default |
name |
acknowledged |
|||
index |
acknowledged |
1 |
|||
sparse |
False |
||||
name |
count |
||||
index |
count |
1 |
|||
sparse |
False |
||||
name |
firstTimestamp |
||||
index |
firstTimestamp |
1 |
|||
sparse |
False |
||||
name |
isSeverityLocked |
||||
index |
isSeverityLocked |
1 |
|||
sparse |
False |
||||
name |
lastTimestamp |
||||
index |
lastTimestamp |
1 |
|||
sparse |
False |
||||
name |
location |
||||
index |
location |
1 |
|||
sparse |
False |
||||
name |
origSeverity |
||||
index |
origSeverity |
1 |
|||
sparse |
False |
||||
name |
severity |
||||
index |
severity |
1 |
|||
sparse |
False |
||||
name |
source |
||||
index |
source |
1 |
|||
sparse |
False |
||||
name |
tags |
||||
index |
tags |
1 |
|||
sparse |
False |
||||
name |
hideUntil |
||||
index |
hideUntil |
1 |
|||
sparse |
False |
||||
name |
forceHide |
||||
index |
forceHide |
1 |
|||
sparse |
False |
||||
items |
|||||
|
The indexes to build on the Mongo Database for the history collection |
||||
type |
array |
||||
default |
name |
subId |
|||
index |
_id._id |
1 |
|||
sparse |
False |
||||
name |
subSerial |
||||
index |
_id.serial |
1 |
|||
sparse |
False |
||||
name |
acknowledged |
||||
index |
acknowledged |
1 |
|||
sparse |
False |
||||
name |
location |
||||
index |
location |
1 |
|||
sparse |
False |
||||
name |
lockedSeverity |
||||
index |
lockedSeverity |
1 |
|||
sparse |
True |
||||
name |
isSeverityLocked |
||||
index |
isSeverityLocked |
1 |
|||
sparse |
True |
||||
name |
serial |
||||
index |
serial |
1 |
|||
sparse |
False |
||||
name |
severity |
||||
index |
severity |
1 |
|||
sparse |
False |
||||
name |
source |
||||
index |
source |
1 |
|||
sparse |
False |
||||
name |
tags |
||||
index |
tags |
1 |
|||
sparse |
False |
||||
name |
timestamp |
||||
index |
timestamp |
1 |
|||
sparse |
False |
||||
items |
|||||
|
The configuration of the deduplication |
||||
default |
deduplicationFields |
fieldName |
summary |
||
groupingPolicy |
accumulatorType |
LAST |
|||
expression |
$summary |
||||
fieldName |
source |
||||
groupingPolicy |
accumulatorType |
LAST |
|||
expression |
$source |
||||
fieldName |
location |
||||
groupingPolicy |
accumulatorType |
LAST |
|||
expression |
$location |
||||
fieldName |
firstTimestamp |
||||
groupingPolicy |
accumulatorType |
FIRST |
|||
expression |
$timestamp |
||||
fieldName |
lastTimestamp |
||||
groupingPolicy |
accumulatorType |
LAST |
|||
expression |
$timestamp |
||||
fieldName |
additionalData |
||||
groupingPolicy |
accumulatorType |
LAST |
|||
expression |
$additionalData |
||||
maximumConcurrent |
25 |
||||
maximumSerial |
10 |
||||
retryDelay |
value |
5 |
|||
unit |
SECONDS |
||||
|
The archive configuration |
||||
default |
historyAge |
value |
90 |
||
unit |
DAYS |
||||
bucketSize |
value |
90 |
|||
unit |
DAYS |
||||
bucketAge |
value |
730 |
|||
unit |
DAYS |
||||
archiveFolder |
/osp/run/archive |
||||
|
The failure configuration |
||||
default |
timeToLive |
value |
7 |
||
unit |
DAYS |
||||
|
Allow the module to use the JVM truststore |
||||
type |
boolean |
||||
default |
False |
||||
additionalProperties |
False |
MessagingConfigurationEntity¶
type |
object |
|
properties |
||
|
The ID of the client, must be different for each module instance. |
|
type |
string |
|
|
The host of the rabbit MQ provider |
|
type |
string |
|
|
The size of the buffer to use when the broker is disconnected (default: 60000). |
|
type |
integer |
|
minimum |
1 |
|
default |
60000 |
|
|
Flag to indicate to store the message (The path /osp/messages must be mount to a volume). |
|
type |
boolean |
|
default |
False |
|
additionalProperties |
False |
LoggingConfigurationEntity¶
type |
object |
|
properties |
||
|
The log level for module’s behavior logging |
|
type |
string |
|
enum |
TRACE, DEBUG, INFO, WARN, ERROR |
|
default |
INFO |
|
|
The log level for module’s internal script behavior logging (if not set the moduleLogLevel will be used) |
|
type |
string |
|
enum |
TRACE, DEBUG, INFO, WARN, ERROR |
|
|
The log level for external libraries logging |
|
type |
string |
|
enum |
TRACE, DEBUG, INFO, WARN, ERROR |
|
default |
WARN |
|
additionalProperties |
False |
ThreadExecutionConfigurationEntity¶
type |
object |
|
properties |
||
|
The number of thread available for script execution. Each script use one thread during his execution, this value is a tradeoff between memory usage and number of concurrent execution. |
|
type |
integer |
|
additionalProperties |
False |
MongoConfigurationEntity¶
type |
object |
|
properties |
||
|
The hostname of the mongodb configuration. (For example: mongodb://<host-1>,…,<host-x>/?replicaSet=<replSet-id>) |
|
type |
string |
|
|
The name of the database to use |
|
type |
string |
|
default |
alarms |
|
additionalProperties |
False |
IndexConfigurationEntity¶
type |
object |
|
properties |
||
|
The name of the index |
|
type |
string |
|
|
The Mongo expression used for indexing. See https://docs.mongodb.com/manual/indexes/ for more information. |
|
|
Create the indexes only the document when the field exist |
|
type |
boolean |
|
default |
False |
|
|
Partial filter expression used to filter the elements that are affected by this index |
|
additionalProperties |
False |
DeduplicationConfiguration¶
type |
object |
|||
properties |
||||
|
The fields to generate on the deduplicated alarms. Be aware that apart from the default field only the one created on the additionalData will be available on the script. |
|||
type |
array |
|||
default |
fieldName |
summary |
||
groupingPolicy |
accumulatorType |
LAST |
||
expression |
$summary |
|||
fieldName |
source |
|||
groupingPolicy |
accumulatorType |
LAST |
||
expression |
$source |
|||
fieldName |
location |
|||
groupingPolicy |
accumulatorType |
LAST |
||
expression |
$location |
|||
fieldName |
firstTimestamp |
|||
groupingPolicy |
accumulatorType |
FIRST |
||
expression |
$timestamp |
|||
fieldName |
lastTimestamp |
|||
groupingPolicy |
accumulatorType |
LAST |
||
expression |
$timestamp |
|||
fieldName |
additionalData |
|||
groupingPolicy |
accumulatorType |
LAST |
||
expression |
$additionalData |
|||
items |
||||
|
The maximum number of deduplication running concurrently |
|||
type |
integer |
|||
default |
25 |
|||
|
The maximum number of serial deduplicated at the same time (aka per run) |
|||
type |
integer |
|||
default |
10 |
|||
|
The delay between retry after a deduplication failure |
|||
default |
value |
5 |
||
unit |
SECONDS |
|||
additionalProperties |
False |
DeduplicationField¶
type |
object |
|
properties |
||
|
The name of the field |
|
type |
string |
|
|
The policy to generate the field with the mongo accumulators (See https://docs.mongodb.com/manual/reference/operator/aggregation/group/#std-label-accumulators-group) |
|
|
The processing to apply to the field to extract a value (See https://docs.mongodb.com/manual/reference/operator/aggregation/) |
|
additionalProperties |
False |
GroupingPolicy¶
type |
object |
|
properties |
||
|
The accumulator to use |
|
type |
string |
|
enum |
SUM, AVG, FIRST, LAST, MAX, MIN, PUSH, ADD_TO_SET, STD_DEV_POP, STD_DEV_SAMP, MERGE_OBJECTS |
|
|
The expression for the accumulator |
|
additionalProperties |
False |
DurationConfigurationEntity¶
type |
object |
|
properties |
||
|
The amount of time expressed with the unit |
|
type |
integer |
|
|
The unit of time expressed with the value |
|
type |
string |
|
enum |
NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS |
|
additionalProperties |
False |
ArchiveConfiguration¶
type |
object |
||
properties |
|||
|
The age of the history alarm before there are moved to the archive. |
||
default |
value |
90 |
|
unit |
DAYS |
||
|
Each archive collection will store the alarm of the period define here. For example a value of 3 month will create 4 collection per year. |
||
default |
value |
90 |
|
unit |
DAYS |
||
|
The age of a bucket before it is removed. |
||
default |
value |
730 |
|
unit |
DAYS |
||
|
The path where to create the exported archive. |
||
type |
string |
||
default |
/osp/run/archive |
||
additionalProperties |
False |
FailureConfiguration¶
type |
object |
||
properties |
|||
|
The maximum age of the failed alarm before there are removed. |
||
default |
value |
7 |
|
unit |
DAYS |
||
additionalProperties |
False |
AboveSecondDurationConfigurationEntity¶
type |
object |
|
properties |
||
|
The amount of time expressed with the unit |
|
type |
integer |
|
|
The unit of time expressed with the value |
|
type |
string |
|
enum |
SECONDS, MINUTES, HOURS, DAYS |
|
additionalProperties |
False |