fix velocloud edgeqoe

This commit is contained in:
Colin Gagnaire 2019-08-28 15:07:47 +02:00
parent dc6b442454
commit b842ec970e
2 changed files with 7 additions and 1 deletions

View File

@ -274,6 +274,8 @@ sub list_links {
$self->get_entreprise_id();
}
my $start_time = DateTime->now->subtract(seconds => $options{timeframe})->iso8601.'Z';
my $results = $self->request_api(
method => 'POST',
path => '/metrics/getEdgeLinkMetrics',
@ -281,6 +283,9 @@ sub list_links {
enterpriseId => $self->{entreprise_id},
edgeId => $options{edge_id},
metrics => [ 'bytesRx' ],
interval => {
start => $start_time
},
}
);

View File

@ -157,7 +157,8 @@ sub manage_selection {
$self->{edges}->{$edge->{name}}->{display} = $edge->{name};
my $links = $options{custom}->list_links(
edge_id => $edge->{id}
edge_id => $edge->{id},
timeframe => $self->{timeframe}
);
my $qoes = $options{custom}->get_links_qoe(