Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

enh(charts): add new methods in graph backend #8170

Merged
merged 44 commits into from
Jan 24, 2020
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a72706e
enh(metrics): add method to get custom metrics
garnier-quentin Nov 18, 2019
4be6dec
enh(chart): remove dimension method result
garnier-quentin Nov 18, 2019
bef99f0
enh(chart): add minimum_value and maximum_value
garnier-quentin Nov 18, 2019
df4bd28
feat(api): add endpoint to get widget preferences (json format)
kduret Nov 19, 2019
a801ec9
enh(chart): add acks
garnier-quentin Nov 19, 2019
4ce52d1
fix(chart): downtimes sql request
garnier-quentin Nov 19, 2019
07d5286
enh(chart): change metrics get parameters format
garnier-quentin Nov 19, 2019
3b5d470
enh(chart): add getLastMetricsData method
garnier-quentin Nov 19, 2019
a3dfa92
fix(chart): options
garnier-quentin Nov 20, 2019
65e3764
fix metrics getter in select2
kduret Nov 21, 2019
6f6a609
enh(chart): manage min/max for invert ds
garnier-quentin Nov 22, 2019
4a031da
retrieve proper zindex for select2
kduret Nov 22, 2019
a61133a
enh(chart): manage min/max for invert ds
garnier-quentin Nov 22, 2019
b90b0f9
enh(chart): manage min/max for invert ds
garnier-quentin Nov 22, 2019
9b475db
Merge branch 'master' into MON-4397-chart
garnier-quentin Dec 3, 2019
2cb2ff8
Update centreon_metric.class.php
kduret Dec 20, 2019
5cbceb7
Merge branch 'master' into MON-4397-chart
kduret Dec 20, 2019
9364857
improve style
kduret Dec 20, 2019
4840049
add prepared statements
kduret Dec 20, 2019
17ef350
fix status webservice
kduret Dec 20, 2019
b86b238
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
faed08c
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
3cd8c71
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
0a585e0
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
a4a1c97
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
fc99d5b
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
05af149
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
c0681ae
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
82ed074
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
be0aeb7
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
ad25b18
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
390714d
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
b64ec2b
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
7038c2b
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
b1b3c74
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
e01b94f
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
5a66f07
Update www/api/class/centreon_metric.class.php
sc979 Jan 2, 2020
843f869
Update www/class/centreonGraphNg.class.php
sc979 Jan 2, 2020
291b79e
Update www/api/class/centreon_home_customview.class.php
sc979 Jan 2, 2020
0dd8aeb
Update www/api/class/centreon_home_customview.class.php
sc979 Jan 2, 2020
83345ff
Update www/api/class/centreon_home_customview.class.php
sc979 Jan 2, 2020
8403062
code review solves
garnier-quentin Jan 14, 2020
19b18b7
Merge branch 'master' into MON-4397-chart
kduret Jan 20, 2020
416b16d
check sql result properly
kduret Jan 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 0 additions & 152 deletions www/api/class/centreon_customview.class.php

This file was deleted.

21 changes: 21 additions & 0 deletions www/api/class/centreon_home_customview.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,27 @@ public function getPreferences()
return $tpl->fetch("widgetParam.html");
}

/**
* Get preferences by widget id
*
* @return array The widget preferences
* @throws \Exception When missing argument
*/
public function getPreferencesByWidgetId()
{
global $centreon;

if (!isset($this->arguments['widgetId'])) {
throw new \Exception('Missing argument : widgetId');
}
$widgetId = $this->arguments['widgetId'];
$widgetObj = new CentreonWidget($centreon, $this->pearDB);

$preferences = $widgetObj->getWidgetPreferences($widgetId);
sc979 marked this conversation as resolved.
Show resolved Hide resolved

sc979 marked this conversation as resolved.
Show resolved Hide resolved
return $preferences;
sc979 marked this conversation as resolved.
Show resolved Hide resolved
}

/**
* Authorize to access to the action
*
Expand Down
Loading