@centreon/ui 24.8.2 → 24.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/package.json +14 -17
  2. package/src/Graph/BarChart/BarChart.cypress.spec.tsx +38 -79
  3. package/src/Graph/BarChart/BarChart.tsx +4 -4
  4. package/src/Graph/BarChart/BarGroup.tsx +81 -92
  5. package/src/Graph/BarChart/BarStack.tsx +21 -13
  6. package/src/Graph/BarChart/ResponsiveBarChart.tsx +26 -50
  7. package/src/Graph/BarChart/Tooltip/BarChartTooltip.tsx +1 -1
  8. package/src/Graph/BarChart/useBarStack.ts +1 -1
  9. package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Point.tsx +1 -1
  10. package/src/Graph/Chart/BasicComponents/Lines/StackedLines/useStackedLines.ts +67 -0
  11. package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/ThresholdWithPatternLines.tsx +4 -7
  12. package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/index.tsx +6 -9
  13. package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/models.ts +1 -2
  14. package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/useScaleThreshold.ts +8 -20
  15. package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/index.tsx +64 -43
  16. package/src/Graph/{LineChart/LineChart.cypress.spec.tsx → Chart/Chart.cypress.spec.tsx} +272 -23
  17. package/src/Graph/{LineChart/index.stories.tsx → Chart/Chart.stories.tsx} +217 -24
  18. package/src/Graph/{LineChart/LineChart.styles.ts → Chart/Chart.styles.ts} +1 -1
  19. package/src/Graph/{LineChart/LineChart.tsx → Chart/Chart.tsx} +84 -100
  20. package/src/Graph/{LineChart → Chart}/InteractiveComponents/AnchorPoint/RegularAnchorPoint.tsx +5 -1
  21. package/src/Graph/{LineChart → Chart}/InteractiveComponents/AnchorPoint/StackedAnchorPoint.tsx +6 -1
  22. package/src/Graph/Chart/InteractiveComponents/GraphValueTooltip/GraphValueTooltip.tsx +61 -0
  23. package/src/Graph/{LineChart/InteractiveComponents/GraphValueTooltip/GraphValueTooltip.tsx → Chart/InteractiveComponents/GraphValueTooltip/GraphValueTooltipContent.tsx} +2 -2
  24. package/src/Graph/{LineChart → Chart}/InteractiveComponents/index.tsx +11 -15
  25. package/src/Graph/{LineChart → Chart}/Legend/Legend.styles.ts +1 -7
  26. package/src/Graph/{LineChart → Chart}/Legend/LegendHeader.tsx +9 -5
  27. package/src/Graph/{LineChart → Chart}/Legend/index.tsx +2 -1
  28. package/src/Graph/Chart/graphAtoms.ts +6 -0
  29. package/src/Graph/{LineChart → Chart}/index.tsx +10 -7
  30. package/src/Graph/{LineChart → Chart}/models.ts +8 -3
  31. package/src/Graph/common/Axes/AxisStyles.ts +11 -0
  32. package/src/Graph/common/Axes/UnitLabel.tsx +41 -10
  33. package/src/Graph/common/Axes/index.tsx +18 -12
  34. package/src/Graph/common/Axes/models.ts +4 -2
  35. package/src/Graph/common/Axes/useAxisY.ts +22 -12
  36. package/src/Graph/common/BaseChart/BaseChart.tsx +2 -2
  37. package/src/Graph/common/BaseChart/ChartSvgWrapper.tsx +8 -5
  38. package/src/Graph/common/BaseChart/useComputeBaseChartDimensions.ts +1 -1
  39. package/src/Graph/common/Grids/index.tsx +2 -2
  40. package/src/Graph/common/Thresholds/ThresholdLine.tsx +1 -1
  41. package/src/Graph/common/Thresholds/Thresholds.tsx +10 -15
  42. package/src/Graph/common/timeSeries/index.ts +109 -131
  43. package/src/Graph/common/timeSeries/models.ts +4 -5
  44. package/src/Graph/index.ts +4 -4
  45. package/src/Graph/mockedData/lastDayWithLotOfUnits.json +1668 -0
  46. package/src/Graph/mockedData/pingService.json +46 -1
  47. package/src/Graph/mockedData/pingServiceLinesBars.json +253 -0
  48. package/src/Graph/mockedData/pingServiceLinesBarsMixed.json +253 -0
  49. package/src/Graph/mockedData/pingServiceLinesBarsStacked.json +253 -0
  50. package/src/Graph/mockedData/pingServiceMixedStacked.json +46 -1
  51. package/src/Graph/mockedData/pingServiceStacked.json +46 -1
  52. package/src/Typography/EllipsisTypography.tsx +5 -2
  53. package/src/components/Form/AccessRights/AccessRights.cypress.spec.tsx +16 -24
  54. package/src/components/Form/AccessRights/AccessRights.stories.tsx +5 -5
  55. package/src/components/Form/AccessRights/AccessRights.tsx +3 -3
  56. package/src/components/Form/index.ts +2 -2
  57. package/src/utils/index.ts +2 -2
  58. package/src/Graph/BarChart/SingleBar.tsx +0 -62
  59. package/src/Graph/BarChart/useSingleBar.ts +0 -199
  60. package/src/Graph/LineChart/BasicComponents/Lines/StackedLines/useStackedLines.ts +0 -39
  61. package/src/Graph/LineChart/graphAtoms.ts +0 -3
  62. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/RegularLines/index.tsx +0 -0
  63. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/RegularLines/useRegularLines.ts +0 -0
  64. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/StackedLines/index.tsx +0 -0
  65. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/BasicThreshold.tsx +0 -0
  66. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/Circle.tsx +0 -0
  67. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/ThresholdWithVariation.tsx +0 -0
  68. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/helpers/index.ts +0 -0
  69. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/Threshold/useCoordinateCircle.ts +0 -0
  70. /package/src/Graph/{LineChart → Chart}/BasicComponents/Lines/models.ts +0 -0
  71. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/AnchorPoint/GuidingLines.tsx +0 -0
  72. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/AnchorPoint/index.tsx +0 -0
  73. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/AnchorPoint/models.ts +0 -0
  74. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/AnchorPoint/useTickGraph.ts +0 -0
  75. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/Annotation/Area.tsx +0 -0
  76. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/Annotation/Line.tsx +0 -0
  77. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/Annotation/index.tsx +0 -0
  78. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/Area/Downtime.tsx +0 -0
  79. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/EventAnnotations.tsx +0 -0
  80. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/Line/Acknowledgement.tsx +0 -0
  81. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/Line/Comments.tsx +0 -0
  82. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/annotationsAtoms.ts +0 -0
  83. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/index.tsx +0 -0
  84. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/models.ts +0 -0
  85. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Annotations/useAnnotation.ts +0 -0
  86. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Bar.tsx +0 -0
  87. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/GraphValueTooltip/useGraphValueTooltip.ts +0 -0
  88. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/GraphValueTooltip/useGraphValueTooltipStyles.ts +0 -0
  89. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/TimeShiftZones/TimeShiftIcon.tsx +0 -0
  90. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/TimeShiftZones/TimeShiftZone.tsx +0 -0
  91. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/TimeShiftZones/index.tsx +0 -0
  92. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/TimeShiftZones/models.ts +0 -0
  93. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/TimeShiftZones/useTimeShiftZones.ts +0 -0
  94. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Tooltip/index.tsx +0 -0
  95. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Tooltip/models.ts +0 -0
  96. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/Tooltip/useGraphTooltip.ts +0 -0
  97. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/ZoomPreview/index.tsx +0 -0
  98. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/ZoomPreview/models.ts +0 -0
  99. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/ZoomPreview/useZoomPreview.ts +0 -0
  100. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/ZoomPreview/zoomPreviewAtoms.ts +0 -0
  101. /package/src/Graph/{LineChart → Chart}/InteractiveComponents/interactionWithGraphAtoms.ts +0 -0
  102. /package/src/Graph/{LineChart → Chart}/Legend/LegendContent.tsx +0 -0
  103. /package/src/Graph/{LineChart → Chart}/Legend/models.ts +0 -0
  104. /package/src/Graph/{LineChart → Chart}/Legend/useLegend.ts +0 -0
  105. /package/src/Graph/{LineChart → Chart}/LoadingSkeleton.tsx +0 -0
  106. /package/src/Graph/{LineChart → Chart}/common/index.ts +0 -0
  107. /package/src/Graph/{LineChart → Chart}/helpers/doc.ts +0 -0
  108. /package/src/Graph/{LineChart → Chart}/helpers/index.ts +0 -0
  109. /package/src/Graph/{LineChart → Chart}/translatedLabels.ts +0 -0
  110. /package/src/Graph/{LineChart/useLineChartData.ts → Chart/useChartData.ts} +0 -0
  111. /package/src/Graph/{LineChart/useLineChartIntersection.ts → Chart/useChartIntersection.ts} +0 -0
@@ -49,6 +49,51 @@
49
49
  "maximum_value": 0.0,
50
50
  "average_value": 0.0
51
51
  },
52
+ {
53
+ "metric_id": 10,
54
+ "metric": "Space used",
55
+ "metric_legend": "Space used",
56
+ "unit": "B",
57
+ "min": 0.0,
58
+ "max": 100.0,
59
+ "ds_data": {
60
+ "ds_color_line": "#654321",
61
+ "ds_color_area": "#654321",
62
+ "ds_filled": true,
63
+ "ds_invert": false,
64
+ "ds_legend": null,
65
+ "ds_stack": false,
66
+ "ds_order": 1,
67
+ "ds_transparency": 80.0,
68
+ "ds_color_line_mode": 0
69
+ },
70
+ "legend": "Space used",
71
+ "stack": 0,
72
+ "warning_high_threshold": 20.0,
73
+ "critical_high_threshold": 50.0,
74
+ "warning_low_threshold": 0.0,
75
+ "critical_low_threshold": 0.0,
76
+ "ds_order": 1,
77
+ "data": [
78
+ 7277.536221378278,
79
+ 1070.9229992641347,
80
+ 5417.157870751178,
81
+ 7650.368581547736,
82
+ 3062.1382654626154,
83
+ 6896.485403855089,
84
+ 6016.271762192416,
85
+ 592.4173666516415,
86
+ 9130.151161464735,
87
+ 2556.376532531991,
88
+ 8085.328518673757,
89
+ 6283.734720996918,
90
+ 5617.226479531896
91
+ ],
92
+ "last_value": 0.0,
93
+ "minimum_value": null,
94
+ "maximum_value": 0.0,
95
+ "average_value": 0.0
96
+ },
52
97
  {
53
98
  "metric_id": 1,
54
99
  "metric": "Centreon-Server: rta",
@@ -200,4 +245,4 @@
200
245
  "2024-06-19T11:45:00+02:00",
201
246
  "2024-06-19T11:50:00+02:00"
202
247
  ]
203
- }
248
+ }
@@ -0,0 +1,253 @@
1
+ {
2
+ "global": {
3
+ "base": 1000,
4
+ "title": "ping service"
5
+ },
6
+ "metrics": [
7
+ {
8
+ "metric_id": 2,
9
+ "metric": "centreon-server: pl",
10
+ "metric_legend": "centreon-server: pl",
11
+ "unit": "%",
12
+ "min": 0.0,
13
+ "max": 100.0,
14
+ "ds_data": {
15
+ "ds_color_line": "#f30b23",
16
+ "ds_color_area": "#f30b23",
17
+ "ds_filled": true,
18
+ "ds_invert": false,
19
+ "ds_legend": null,
20
+ "ds_stack": false,
21
+ "ds_order": 1,
22
+ "ds_transparency": 80.0,
23
+ "ds_color_line_mode": 0
24
+ },
25
+ "displayAs": "bar",
26
+ "legend": "centreon-server: packet loss",
27
+ "stack": 0,
28
+ "warning_high_threshold": 20.0,
29
+ "critical_high_threshold": 50.0,
30
+ "warning_low_threshold": 0.0,
31
+ "critical_low_threshold": 0.0,
32
+ "ds_order": 1,
33
+ "data": [
34
+ 0.0,
35
+ 0.0,
36
+ 0.0,
37
+ 0.0,
38
+ 0.0,
39
+ 0.0,
40
+ 0.0,
41
+ 0.0,
42
+ 0.0,
43
+ 10.0,
44
+ 20.0,
45
+ null,
46
+ null
47
+ ],
48
+ "last_value": 0.0,
49
+ "minimum_value": null,
50
+ "maximum_value": 0.0,
51
+ "average_value": 0.0
52
+ },
53
+ {
54
+ "metric_id": 10,
55
+ "metric": "space used",
56
+ "metric_legend": "space used",
57
+ "unit": "b",
58
+ "min": 0.0,
59
+ "max": 100.0,
60
+ "ds_data": {
61
+ "ds_color_line": "#654321",
62
+ "ds_color_area": "#654321",
63
+ "ds_filled": true,
64
+ "ds_invert": false,
65
+ "ds_legend": null,
66
+ "ds_stack": false,
67
+ "ds_order": 1,
68
+ "ds_transparency": 80.0,
69
+ "ds_color_line_mode": 0
70
+ },
71
+ "displayAs": "bar",
72
+ "legend": "space used",
73
+ "stack": 0,
74
+ "warning_high_threshold": 20.0,
75
+ "critical_high_threshold": 50.0,
76
+ "warning_low_threshold": 0.0,
77
+ "critical_low_threshold": 0.0,
78
+ "ds_order": 1,
79
+ "data": [
80
+ 7277.536221378278,
81
+ 1070.9229992641347,
82
+ 5417.157870751178,
83
+ 7650.368581547736,
84
+ 3062.1382654626154,
85
+ 6896.485403855089,
86
+ 6016.271762192416,
87
+ 592.4173666516415,
88
+ 9130.151161464735,
89
+ 2556.376532531991,
90
+ 8085.328518673757,
91
+ 6283.734720996918,
92
+ 5617.226479531896
93
+ ],
94
+ "last_value": 0.0,
95
+ "minimum_value": null,
96
+ "maximum_value": 0.0,
97
+ "average_value": 0.0
98
+ },
99
+ {
100
+ "metric_id": 1,
101
+ "metric": "centreon-server: rta",
102
+ "metric_legend": "centreon-server: rta",
103
+ "unit": "ms",
104
+ "min": 0.0,
105
+ "max": null,
106
+ "ds_data": {
107
+ "ds_color_line": "#29afee",
108
+ "ds_color_area": "#29afee",
109
+ "ds_filled": true,
110
+ "ds_invert": false,
111
+ "ds_legend": null,
112
+ "ds_stack": false,
113
+ "ds_order": 1,
114
+ "ds_transparency": 80.0,
115
+ "ds_color_line_mode": 0
116
+ },
117
+ "displayAs": "line",
118
+ "legend": "centreon-server: round-trip average time",
119
+ "stack": 0,
120
+ "warning_high_threshold": 200.0,
121
+ "critical_high_threshold": 400.0,
122
+ "warning_low_threshold": 0.0,
123
+ "critical_low_threshold": 0.0,
124
+ "ds_order": 1,
125
+ "data": [
126
+ 0.04508,
127
+ 0.0242,
128
+ 0.03592,
129
+ 0.01304,
130
+ 0.025,
131
+ 0.02748,
132
+ 0.05296,
133
+ 0.01864,
134
+ 0.02688,
135
+ 0.03676,
136
+ 0.03696,
137
+ null,
138
+ null
139
+ ],
140
+ "last_value": 0.04,
141
+ "minimum_value": null,
142
+ "maximum_value": null,
143
+ "average_value": 0.03
144
+ },
145
+ {
146
+ "metric_id": 3,
147
+ "metric": "centreon-server: rtmax",
148
+ "metric_legend": "centreon-server: rtmax",
149
+ "unit": "ms",
150
+ "min": null,
151
+ "max": null,
152
+ "ds_data": {
153
+ "ds_color_line": "#525256",
154
+ "ds_color_area": "#525256",
155
+ "ds_filled": false,
156
+ "ds_invert": false,
157
+ "ds_legend": null,
158
+ "ds_stack": false,
159
+ "ds_order": 2,
160
+ "ds_transparency": 80.0,
161
+ "ds_color_line_mode": 0
162
+ },
163
+ "displayAs": "line",
164
+ "legend": "centreon-server: round-trip maximum time",
165
+ "stack": 0,
166
+ "warning_high_threshold": null,
167
+ "critical_high_threshold": null,
168
+ "warning_low_threshold": null,
169
+ "critical_low_threshold": null,
170
+ "ds_order": 2,
171
+ "data": [
172
+ 0.11372,
173
+ 0.05604,
174
+ 0.08556,
175
+ 0.02548,
176
+ 0.05352,
177
+ 0.05336,
178
+ 0.109,
179
+ 0.04112,
180
+ 0.05504,
181
+ 0.06812,
182
+ 0.08644,
183
+ null,
184
+ null
185
+ ],
186
+ "last_value": 0.09,
187
+ "minimum_value": null,
188
+ "maximum_value": 0.11,
189
+ "average_value": null
190
+ },
191
+ {
192
+ "metric_id": 4,
193
+ "metric": "centreon-server: rtmin",
194
+ "metric_legend": "centreon-server: rtmin",
195
+ "unit": "ms",
196
+ "min": null,
197
+ "max": null,
198
+ "ds_data": {
199
+ "ds_color_line": "#191777",
200
+ "ds_color_area": "#191777",
201
+ "ds_filled": false,
202
+ "ds_invert": false,
203
+ "ds_legend": null,
204
+ "ds_stack": false,
205
+ "ds_order": 2,
206
+ "ds_transparency": 80.0,
207
+ "ds_color_line_mode": 0
208
+ },
209
+ "displayAs": "line",
210
+ "legend": "centreon-server: round-trip minimum time",
211
+ "stack": 0,
212
+ "warning_high_threshold": null,
213
+ "critical_high_threshold": null,
214
+ "warning_low_threshold": null,
215
+ "critical_low_threshold": null,
216
+ "ds_order": 2,
217
+ "data": [
218
+ 0.00984,
219
+ 0.008,
220
+ 0.00784,
221
+ 0.00624,
222
+ 0.00932,
223
+ 0.01348,
224
+ 0.01796,
225
+ 0.0064,
226
+ 0.01148,
227
+ 0.01644,
228
+ 0.01168,
229
+ null,
230
+ null
231
+ ],
232
+ "last_value": 0.01,
233
+ "minimum_value": 0.01,
234
+ "maximum_value": null,
235
+ "average_value": null
236
+ }
237
+ ],
238
+ "times": [
239
+ "2024-06-19t10:50:00+02:00",
240
+ "2024-06-19t10:55:00+02:00",
241
+ "2024-06-19t11:00:00+02:00",
242
+ "2024-06-19t11:05:00+02:00",
243
+ "2024-06-19t11:10:00+02:00",
244
+ "2024-06-19t11:15:00+02:00",
245
+ "2024-06-19t11:20:00+02:00",
246
+ "2024-06-19t11:25:00+02:00",
247
+ "2024-06-19t11:30:00+02:00",
248
+ "2024-06-19t11:35:00+02:00",
249
+ "2024-06-19t11:40:00+02:00",
250
+ "2024-06-19t11:45:00+02:00",
251
+ "2024-06-19t11:50:00+02:00"
252
+ ]
253
+ }
@@ -0,0 +1,253 @@
1
+ {
2
+ "global": {
3
+ "base": 1000,
4
+ "title": "Ping service"
5
+ },
6
+ "metrics": [
7
+ {
8
+ "metric_id": 2,
9
+ "metric": "Centreon-Server: pl",
10
+ "metric_legend": "Centreon-Server: pl",
11
+ "unit": "%",
12
+ "min": 0.0,
13
+ "max": 100.0,
14
+ "ds_data": {
15
+ "ds_color_line": "#F30B23",
16
+ "ds_color_area": "#F30B23",
17
+ "ds_filled": true,
18
+ "ds_invert": false,
19
+ "ds_legend": null,
20
+ "ds_stack": false,
21
+ "ds_order": 1,
22
+ "ds_transparency": 80.0,
23
+ "ds_color_line_mode": 0
24
+ },
25
+ "displayAs": "bar",
26
+ "legend": "Centreon-Server: Packet Loss",
27
+ "stack": 0,
28
+ "warning_high_threshold": 20.0,
29
+ "critical_high_threshold": 50.0,
30
+ "warning_low_threshold": 0.0,
31
+ "critical_low_threshold": 0.0,
32
+ "ds_order": 1,
33
+ "data": [
34
+ 0.0,
35
+ 0.0,
36
+ 0.0,
37
+ 0.0,
38
+ 0.0,
39
+ 0.0,
40
+ 0.0,
41
+ 0.0,
42
+ 0.0,
43
+ 10.0,
44
+ 20.0,
45
+ null,
46
+ null
47
+ ],
48
+ "last_value": 0.0,
49
+ "minimum_value": null,
50
+ "maximum_value": 0.0,
51
+ "average_value": 0.0
52
+ },
53
+ {
54
+ "metric_id": 10,
55
+ "metric": "Space used",
56
+ "metric_legend": "Space used",
57
+ "unit": "B",
58
+ "min": 0.0,
59
+ "max": 100.0,
60
+ "ds_data": {
61
+ "ds_color_line": "#654321",
62
+ "ds_color_area": "#654321",
63
+ "ds_filled": true,
64
+ "ds_invert": false,
65
+ "ds_legend": null,
66
+ "ds_stack": false,
67
+ "ds_order": 1,
68
+ "ds_transparency": 80.0,
69
+ "ds_color_line_mode": 0
70
+ },
71
+ "displayAs": "bar",
72
+ "legend": "Space used",
73
+ "stack": 0,
74
+ "warning_high_threshold": 20.0,
75
+ "critical_high_threshold": 50.0,
76
+ "warning_low_threshold": 0.0,
77
+ "critical_low_threshold": 0.0,
78
+ "ds_order": 1,
79
+ "data": [
80
+ 7277.536221378278,
81
+ 1070.9229992641347,
82
+ 5417.157870751178,
83
+ 7650.368581547736,
84
+ 3062.1382654626154,
85
+ 6896.485403855089,
86
+ 6016.271762192416,
87
+ 592.4173666516415,
88
+ 9130.151161464735,
89
+ 2556.376532531991,
90
+ 8085.328518673757,
91
+ 6283.734720996918,
92
+ 5617.226479531896
93
+ ],
94
+ "last_value": 0.0,
95
+ "minimum_value": null,
96
+ "maximum_value": 0.0,
97
+ "average_value": 0.0
98
+ },
99
+ {
100
+ "metric_id": 1,
101
+ "metric": "Centreon-Server: rta",
102
+ "metric_legend": "Centreon-Server: rta",
103
+ "unit": "ms",
104
+ "min": 0.0,
105
+ "max": null,
106
+ "ds_data": {
107
+ "ds_color_line": "#29AFEE",
108
+ "ds_color_area": "#29AFEE",
109
+ "ds_filled": true,
110
+ "ds_invert": false,
111
+ "ds_legend": null,
112
+ "ds_stack": true,
113
+ "ds_order": 1,
114
+ "ds_transparency": 80.0,
115
+ "ds_color_line_mode": 0
116
+ },
117
+ "displayAs": "line",
118
+ "legend": "Centreon-Server: Round-Trip Average Time",
119
+ "stack": 0,
120
+ "warning_high_threshold": 200.0,
121
+ "critical_high_threshold": 400.0,
122
+ "warning_low_threshold": 0.0,
123
+ "critical_low_threshold": 0.0,
124
+ "ds_order": 1,
125
+ "data": [
126
+ 0.04508,
127
+ 0.0242,
128
+ 0.03592,
129
+ 0.01304,
130
+ 0.025,
131
+ 0.02748,
132
+ 0.05296,
133
+ 0.01864,
134
+ 0.02688,
135
+ 0.03676,
136
+ 0.03696,
137
+ null,
138
+ null
139
+ ],
140
+ "last_value": 0.04,
141
+ "minimum_value": null,
142
+ "maximum_value": null,
143
+ "average_value": 0.03
144
+ },
145
+ {
146
+ "metric_id": 3,
147
+ "metric": "Centreon-Server: rtmax",
148
+ "metric_legend": "Centreon-Server: rtmax",
149
+ "unit": "ms",
150
+ "min": null,
151
+ "max": null,
152
+ "ds_data": {
153
+ "ds_color_line": "#525256",
154
+ "ds_color_area": "#525256",
155
+ "ds_filled": false,
156
+ "ds_invert": true,
157
+ "ds_legend": null,
158
+ "ds_stack": true,
159
+ "ds_order": 2,
160
+ "ds_transparency": 80.0,
161
+ "ds_color_line_mode": 0
162
+ },
163
+ "displayAs": "line",
164
+ "legend": "Centreon-Server: Round-Trip Maximum Time",
165
+ "stack": 0,
166
+ "warning_high_threshold": null,
167
+ "critical_high_threshold": null,
168
+ "warning_low_threshold": null,
169
+ "critical_low_threshold": null,
170
+ "ds_order": 2,
171
+ "data": [
172
+ 0.11372,
173
+ 0.05604,
174
+ 0.08556,
175
+ 0.02548,
176
+ 0.05352,
177
+ 0.05336,
178
+ 0.109,
179
+ 0.04112,
180
+ 0.05504,
181
+ 0.06812,
182
+ 0.08644,
183
+ null,
184
+ null
185
+ ],
186
+ "last_value": 0.09,
187
+ "minimum_value": null,
188
+ "maximum_value": 0.11,
189
+ "average_value": null
190
+ },
191
+ {
192
+ "metric_id": 4,
193
+ "metric": "Centreon-Server: rtmin",
194
+ "metric_legend": "Centreon-Server: rtmin",
195
+ "unit": "ms",
196
+ "min": null,
197
+ "max": null,
198
+ "ds_data": {
199
+ "ds_color_line": "#191777",
200
+ "ds_color_area": "#191777",
201
+ "ds_filled": false,
202
+ "ds_invert": false,
203
+ "ds_legend": null,
204
+ "ds_stack": true,
205
+ "ds_order": 2,
206
+ "ds_transparency": 80.0,
207
+ "ds_color_line_mode": 0
208
+ },
209
+ "displayAs": "line",
210
+ "legend": "Centreon-Server: Round-Trip Minimum Time",
211
+ "stack": 0,
212
+ "warning_high_threshold": null,
213
+ "critical_high_threshold": null,
214
+ "warning_low_threshold": null,
215
+ "critical_low_threshold": null,
216
+ "ds_order": 2,
217
+ "data": [
218
+ 0.00984,
219
+ 0.008,
220
+ 0.00784,
221
+ 0.00624,
222
+ 0.00932,
223
+ 0.01348,
224
+ 0.01796,
225
+ 0.0064,
226
+ 0.01148,
227
+ 0.01644,
228
+ 0.01168,
229
+ null,
230
+ null
231
+ ],
232
+ "last_value": 0.01,
233
+ "minimum_value": 0.01,
234
+ "maximum_value": null,
235
+ "average_value": null
236
+ }
237
+ ],
238
+ "times": [
239
+ "2024-06-19T10:50:00+02:00",
240
+ "2024-06-19T10:55:00+02:00",
241
+ "2024-06-19T11:00:00+02:00",
242
+ "2024-06-19T11:05:00+02:00",
243
+ "2024-06-19T11:10:00+02:00",
244
+ "2024-06-19T11:15:00+02:00",
245
+ "2024-06-19T11:20:00+02:00",
246
+ "2024-06-19T11:25:00+02:00",
247
+ "2024-06-19T11:30:00+02:00",
248
+ "2024-06-19T11:35:00+02:00",
249
+ "2024-06-19T11:40:00+02:00",
250
+ "2024-06-19T11:45:00+02:00",
251
+ "2024-06-19T11:50:00+02:00"
252
+ ]
253
+ }