Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 2.23 KB

SystemDiagnosticsApi.md

File metadata and controls

64 lines (44 loc) · 2.23 KB

SystemDiagnosticsApi

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

getSystemDiagnostics

SystemDiagnosticsEntity getSystemDiagnostics(nodewise, clusterNodeId)

Gets the diagnostics for the system NiFi is running on

Example

// 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();
}

Parameters

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]

Return type

SystemDiagnosticsEntity

Authorization

auth

HTTP request headers

  • Content-Type: /
  • Accept: application/json