Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CountersDTO" /> class.
 /// </summary>
 /// <param name="aggregateSnapshot">A Counters snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance..</param>
 /// <param name="nodeSnapshots">A Counters snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null..</param>
 public CountersDTO(CountersSnapshotDTO aggregateSnapshot = default(CountersSnapshotDTO), List <NodeCountersSnapshotDTO> nodeSnapshots = default(List <NodeCountersSnapshotDTO>))
 {
     this.AggregateSnapshot = aggregateSnapshot;
     this.NodeSnapshots     = nodeSnapshots;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeCountersSnapshotDTO" /> class.
 /// </summary>
 /// <param name="nodeId">The unique ID that identifies the node.</param>
 /// <param name="address">The API address of the node.</param>
 /// <param name="apiPort">The API port used to communicate with the node.</param>
 /// <param name="snapshot">The counters from the node..</param>
 public NodeCountersSnapshotDTO(string nodeId = default(string), string address = default(string), int?apiPort = default(int?), CountersSnapshotDTO snapshot = default(CountersSnapshotDTO))
 {
     this.NodeId   = nodeId;
     this.Address  = address;
     this.ApiPort  = apiPort;
     this.Snapshot = snapshot;
 }