fix(custom): Azure API fix Loganalytics request (#2842)

This commit is contained in:
Thibault S 2021-06-03 08:59:34 +02:00 committed by GitHub
parent 6d2dcb80f0
commit de5c9ec642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -632,6 +632,7 @@ sub azure_get_log_analytics_set_url {
my $encoded_timespan = $uri->encode($options{timespan});
my $url = $self->{management_endpoint} . '/v1/workspaces/' . $options{workspace_id} . '/query?query=' . $encoded_query;
$url .= '&timespan=' . $encoded_timespan if (defined($encoded_timespan));
$url .= '?api-version=' . $self->{api_version};
return $url;
}