Kaspersky Machine Learning for Anomaly Detection
Settings and an example of JSON file that describes presets
JSON file that describes presets is created by a qualified technical specialist of the Customer, a Kaspersky employee or a certified integrator. The file that describes presets is uploaded by the user in the Presets section.
JSON file defines information about presets under presets
, which itself contains the following settings:
name
: preset name.Code
is the preset ID in the Kaspersky MLAD database. An ID is assigned automatically when the file is uploaded.Sort
is a sequential display number of the preset under Presets.tags
: a list of IDs for the tags included in the preseticon
: preset icon namecss_class
: the name of the CSS class for preset icon displayis_display_on_time_slice
determines whether the preset should be displayed under Time slice. If this is set totrue
, the preset is displayed under Time slice.evaluations
: describes the graph in the Time slice section by using the following settings:axis_x_name
: x-axis label.evaluations
: describes the expression used to calculate tag values for graph display by using the following:name
: the name of the expression used to calculate tag values for graph display.yAxis
: y-axis label.expression
is an expression used to calculate the tag valuesexpression_color
: preset graph color. Chart color is set with the help of RGB codes by using the following settings:a
: alpha opacity setting You can specify a value in the range of0
to1
.b
: blue channel coordinate You can specify a value in the range of0
to255
.g
: green channel coordinate You can specify a value in the range of0
to255
.r
: red channel coordinate You can specify a value in the range of0
to255
.
Graphic_areas
is a group of settings that describe the graphic areas within the preset.Name
is the name of the graphic area.Description
is the description of the graphic area.Sort
is a sequential display number of the graphic area in the preset under Presets, History, and Monitoring.Display_max
is an upper limit for displaying tags associated with the graphic area. Ifis_scale_mode_auto
istrue
, setdisplay_max
tonull
.Display_min
is a lower boundary for displaying tags associated with the graphics area. Ifis_scale_mode_auto
istrue
, setdisplay_min
tonull
.Additional_thresholds
is a group of settings that describe additional threshold lines.Id
is the ID of the additional threshold line. An ID is assigned automatically when the file is uploaded.value
: threshold value.Color
is a color of the graph that will be displayed for the additional threshold line. Chart color is set with the help of RGB codes by using the following settings:a
: alpha opacity setting You can specify a value in the range of0
to1
.r
: red channel coordinate You can specify a value in the range of0
to255
.g
: green channel coordinate You can specify a value in the range of0
to255
.b
: blue channel coordinate You can specify a value in the range of0
to255
.
Scale_mode
is the axis scaling mode. You can specify one of the following values for thescale_mode
setting:single_axis
: uses one Y-axis to display tag data on the graph.cast
: scales data along the Y-axis for each tag individually, irrespective of data from other tags in the graphic area.
Is_scale_mode_auto
is a setting that defines the method of graph scaling in single axis mode. When this is set totrue
, the tag graph is automatically scaled based on the minimum and maximum data values of all tags in the graphic area.tag_id_list
: a list of tag IDs that are included in the graphic area.Graphic_area_id
is the ID of the graphic area. An ID is assigned automatically when the file is uploaded.Preset_id
is the ID of the preset the graphic area belongs to. An ID is assigned automatically when the file is uploaded.
Below is an example of a JSON file containing descriptions of presets.
{
"presets": [
{
"name": "Product",
"code": null,
"sort": 0,
"tags": [
51,
52,
53,
49,
50
],
"icon": "logout-signout",
"css_class": null,
"is_display_on_time_slice": false,
"evaluations": {
"axis_x_name": "",
"evaluations": []
},
"graphic_areas": [
{
"name": "F_product",
"description": "Content of F agent in final product",
"sort": 0,
"display_max": null,
"display_min": null,
"additional_thresholds": [],
"scale_mode": "single_axis",
"is_scale_mode_auto": true,
"tag_id_list": [
51
],
"graphic_area_id": null,
"preset_id": null
},
...
],
},
...
{
"name": "Cooler",
"code": null,
"sort": 0,
"tags": [
64
],
"icon": "graph",
"css_class": null,
"is_display_on_time_slice": false,
"evaluations": {
"axis_x_name": "",
"evaluations": []
},
"graphic_areas": [
{
"name": "Condenser_cool_water_flow",
"description": "Cooled condenser water flow rate control",
"sort": 0,
"display_max": null,
"display_min": null,
"additional_thresholds": [],
"scale_mode": "single_axis",
"is_scale_mode_auto": true,
"tag_id_list": [
64
],
"graphic_area_id": null,
"preset_id": null
}
]
}
]
}
|