mirror of
https://github.com/apache/nifi.git
synced 2025-02-09 11:35:05 +00:00
NIFI-7042: This closes #3996.Azure Reporting Tasking throwing NullReferenceException
Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
parent
3ef62dd118
commit
f8057d0c2f
@ -139,7 +139,6 @@ public abstract class AbstractAzureLogAnalyticsReportingTask extends AbstractRep
|
||||
request.addHeader("Authorization", createAuthorization);
|
||||
request.addHeader("x-ms-date", nowRfc1123);
|
||||
request.setEntity(new StringEntity(rawJson));
|
||||
request.setEntity(new StringEntity(rawJson));
|
||||
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
||||
postRequest(httpClient, request);
|
||||
}
|
||||
|
@ -62,6 +62,7 @@ public class AzureLogAnalyticsReportingTask extends AbstractAzureLogAnalyticsRep
|
||||
@Override
|
||||
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
|
||||
final List<PropertyDescriptor> properties = new ArrayList<>();
|
||||
properties.add(SEND_JVM_METRICS);
|
||||
properties.add(LOG_ANALYTICS_WORKSPACE_ID);
|
||||
properties.add(LOG_ANALYTICS_CUSTOM_LOG_NAME);
|
||||
properties.add(LOG_ANALYTICS_WORKSPACE_KEY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user