All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
getSystemDiagnostics | GET /system-diagnostics | Gets the diagnostics for the system NiFi is running on |
SystemDiagnosticsEntity getSystemDiagnostics(nodewise, clusterNodeId)
Gets the diagnostics for the system NiFi is running on
// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.SystemDiagnosticsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");
SystemDiagnosticsApi apiInstance = new SystemDiagnosticsApi();
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
SystemDiagnosticsEntity result = apiInstance.getSystemDiagnostics(nodewise, clusterNodeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemDiagnosticsApi#getSystemDiagnostics");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
nodewise | Boolean | Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] |
clusterNodeId | String | The id of the node where to get the status. | [optional] |
- Content-Type: /
- Accept: application/json