Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeSystemDiagnosticsSnapshotDTO" /> 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 System Diagnostics snapshot from the node..</param>
 public NodeSystemDiagnosticsSnapshotDTO(string nodeId = default(string), string address = default(string), int?apiPort = default(int?), SystemDiagnosticsSnapshotDTO snapshot = default(SystemDiagnosticsSnapshotDTO))
 {
     this.NodeId   = nodeId;
     this.Address  = address;
     this.ApiPort  = apiPort;
     this.Snapshot = snapshot;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemDiagnosticsDTO" /> class.
 /// </summary>
 /// <param name="aggregateSnapshot">A systems diagnostic 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 systems diagnostics 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 SystemDiagnosticsDTO(SystemDiagnosticsSnapshotDTO aggregateSnapshot = default(SystemDiagnosticsSnapshotDTO), List <NodeSystemDiagnosticsSnapshotDTO> nodeSnapshots = default(List <NodeSystemDiagnosticsSnapshotDTO>))
 {
     this.AggregateSnapshot = aggregateSnapshot;
     this.NodeSnapshots     = nodeSnapshots;
 }