/// <summary> /// Initializes a new instance of the <see cref="NodePortStatusSnapshotDTO" /> 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="statusSnapshot">The port status snapshot from the node..</param> public NodePortStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int?apiPort = default(int?), PortStatusSnapshotDTO statusSnapshot = default(PortStatusSnapshotDTO)) { this.NodeId = nodeId; this.Address = address; this.ApiPort = apiPort; this.StatusSnapshot = statusSnapshot; }
/// <summary> /// Initializes a new instance of the <see cref="PortStatusDTO" /> class. /// </summary> /// <param name="id">The id of the port..</param> /// <param name="groupId">The id of the parent process group of the port..</param> /// <param name="name">The name of the port..</param> /// <param name="transmitting">Whether the port has incoming or outgoing connections to a remote NiFi..</param> /// <param name="runStatus">The run status of the port..</param> /// <param name="statsLastRefreshed">The time the status for the process group was last refreshed..</param> /// <param name="aggregateSnapshot">A status snapshot that represents the aggregate stats 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 status 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 PortStatusDTO(string id = default(string), string groupId = default(string), string name = default(string), bool?transmitting = default(bool?), RunStatusEnum?runStatus = default(RunStatusEnum?), string statsLastRefreshed = default(string), PortStatusSnapshotDTO aggregateSnapshot = default(PortStatusSnapshotDTO), List <NodePortStatusSnapshotDTO> nodeSnapshots = default(List <NodePortStatusSnapshotDTO>)) { this.Id = id; this.GroupId = groupId; this.Name = name; this.Transmitting = transmitting; this.RunStatus = runStatus; this.StatsLastRefreshed = statsLastRefreshed; this.AggregateSnapshot = aggregateSnapshot; this.NodeSnapshots = nodeSnapshots; }
/// <summary> /// Initializes a new instance of the <see cref="PortStatusSnapshotEntity" /> class. /// </summary> /// <param name="id">The id of the port..</param> /// <param name="portStatusSnapshot">portStatusSnapshot.</param> public PortStatusSnapshotEntity(string id = default(string), PortStatusSnapshotDTO portStatusSnapshot = default(PortStatusSnapshotDTO)) { this.Id = id; this.PortStatusSnapshot = portStatusSnapshot; }