All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
GetCounters | GET /counters | Gets the current counters for this NiFi |
UpdateCounter | PUT /counters/{id} | Updates the specified counter. This will reset the counter value to 0 |
CountersEntity GetCounters (bool? nodewise = null, string clusterNodeId = null)
Gets the current counters for this NiFi
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetCountersExample
{
public void main()
{
var apiInstance = new CountersApi();
var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional)
try
{
// Gets the current counters for this NiFi
CountersEntity result = apiInstance.GetCounters(nodewise, clusterNodeId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CountersApi.GetCounters: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
nodewise | bool? | 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] |
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CounterEntity UpdateCounter (string id)
Updates the specified counter. This will reset the counter value to 0
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class UpdateCounterExample
{
public void main()
{
var apiInstance = new CountersApi();
var id = id_example; // string | The id of the counter.
try
{
// Updates the specified counter. This will reset the counter value to 0
CounterEntity result = apiInstance.UpdateCounter(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CountersApi.UpdateCounter: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the counter. |
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]