mirror of
https://github.com/apache/nifi.git
synced 2025-02-13 13:35:20 +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("Authorization", createAuthorization);
|
||||||
request.addHeader("x-ms-date", nowRfc1123);
|
request.addHeader("x-ms-date", nowRfc1123);
|
||||||
request.setEntity(new StringEntity(rawJson));
|
request.setEntity(new StringEntity(rawJson));
|
||||||
request.setEntity(new StringEntity(rawJson));
|
|
||||||
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
||||||
postRequest(httpClient, request);
|
postRequest(httpClient, request);
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@ public class AzureLogAnalyticsReportingTask extends AbstractAzureLogAnalyticsRep
|
|||||||
@Override
|
@Override
|
||||||
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
|
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
|
||||||
final List<PropertyDescriptor> properties = new ArrayList<>();
|
final List<PropertyDescriptor> properties = new ArrayList<>();
|
||||||
|
properties.add(SEND_JVM_METRICS);
|
||||||
properties.add(LOG_ANALYTICS_WORKSPACE_ID);
|
properties.add(LOG_ANALYTICS_WORKSPACE_ID);
|
||||||
properties.add(LOG_ANALYTICS_CUSTOM_LOG_NAME);
|
properties.add(LOG_ANALYTICS_CUSTOM_LOG_NAME);
|
||||||
properties.add(LOG_ANALYTICS_WORKSPACE_KEY);
|
properties.add(LOG_ANALYTICS_WORKSPACE_KEY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user