Merge pull request #10 from alerta/fix-to-date-param
Alerta API v4 now supports to-date param
This commit is contained in:
commit
32e0dc31df
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ function getOnCallNotifications($on_call_name, $provider_global_config, $provide
|
|||
parse_str($search, $parameters);
|
||||
|
||||
$parameters['from-date'] = str_replace("+00:00", ".000Z", date('c', $start));
|
||||
// $parameters['to-date'] = str_replace("+00:00", ".000Z", date('c', $end)); // FIXME - not supported by API
|
||||
$parameters['to-date'] = str_replace("+00:00", ".000Z", date('c', $end));
|
||||
|
||||
$notifications = array();
|
||||
$results = doAlertaAPICall('/alerts', $parameters, $base_url, $apikey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue