/// <summary> /// Initializes a new instance of the <see cref="ProcessorStatusDTO" /> class. /// </summary> /// <param name="groupId">The unique ID of the process group that the Processor belongs to.</param> /// <param name="id">The unique ID of the Processor.</param> /// <param name="name">The name of the Processor.</param> /// <param name="type">The type of the Processor.</param> /// <param name="runStatus">The run status of the Processor.</param> /// <param name="statsLastRefreshed">The timestamp of when the stats were 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 ProcessorStatusDTO(string groupId = default(string), string id = default(string), string name = default(string), string type = default(string), RunStatusEnum?runStatus = default(RunStatusEnum?), string statsLastRefreshed = default(string), ProcessorStatusSnapshotDTO aggregateSnapshot = default(ProcessorStatusSnapshotDTO), List <NodeProcessorStatusSnapshotDTO> nodeSnapshots = default(List <NodeProcessorStatusSnapshotDTO>)) { this.GroupId = groupId; this.Id = id; this.Name = name; this.Type = type; this.RunStatus = runStatus; this.StatsLastRefreshed = statsLastRefreshed; this.AggregateSnapshot = aggregateSnapshot; this.NodeSnapshots = nodeSnapshots; }
/// <summary> /// Initializes a new instance of the <see cref="NodeProcessorStatusSnapshotDTO" /> 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 processor status snapshot from the node..</param> public NodeProcessorStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int?apiPort = default(int?), ProcessorStatusSnapshotDTO statusSnapshot = default(ProcessorStatusSnapshotDTO)) { this.NodeId = nodeId; this.Address = address; this.ApiPort = apiPort; this.StatusSnapshot = statusSnapshot; }
/// <summary> /// Initializes a new instance of the <see cref="ProcessorStatusSnapshotEntity" /> class. /// </summary> /// <param name="id">The id of the processor..</param> /// <param name="processorStatusSnapshot">processorStatusSnapshot.</param> public ProcessorStatusSnapshotEntity(string id = default(string), ProcessorStatusSnapshotDTO processorStatusSnapshot = default(ProcessorStatusSnapshotDTO)) { this.Id = id; this.ProcessorStatusSnapshot = processorStatusSnapshot; }