Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionStatusDTO" /> class.
 /// </summary>
 /// <param name="id">The ID of the connection.</param>
 /// <param name="groupId">The ID of the Process Group that the connection belongs to.</param>
 /// <param name="name">The name of the connection.</param>
 /// <param name="statsLastRefreshed">The timestamp of when the stats were last refreshed.</param>
 /// <param name="sourceId">The ID of the source component.</param>
 /// <param name="sourceName">The name of the source component.</param>
 /// <param name="destinationId">The ID of the destination component.</param>
 /// <param name="destinationName">The name of the destination component.</param>
 /// <param name="aggregateSnapshot">The status snapshot that represents the aggregate stats of the cluster.</param>
 /// <param name="nodeSnapshots">A list of status snapshots for each node.</param>
 public ConnectionStatusDTO(string id = default(string), string groupId = default(string), string name = default(string), string statsLastRefreshed = default(string), string sourceId = default(string), string sourceName = default(string), string destinationId = default(string), string destinationName = default(string), ConnectionStatusSnapshotDTO aggregateSnapshot = default(ConnectionStatusSnapshotDTO), List <NodeConnectionStatusSnapshotDTO> nodeSnapshots = default(List <NodeConnectionStatusSnapshotDTO>))
 {
     this.Id                 = id;
     this.GroupId            = groupId;
     this.Name               = name;
     this.StatsLastRefreshed = statsLastRefreshed;
     this.SourceId           = sourceId;
     this.SourceName         = sourceName;
     this.DestinationId      = destinationId;
     this.DestinationName    = destinationName;
     this.AggregateSnapshot  = aggregateSnapshot;
     this.NodeSnapshots      = nodeSnapshots;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeConnectionStatusSnapshotDTO" /> 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 connection status snapshot from the node..</param>
 public NodeConnectionStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int?apiPort = default(int?), ConnectionStatusSnapshotDTO statusSnapshot = default(ConnectionStatusSnapshotDTO))
 {
     this.NodeId         = nodeId;
     this.Address        = address;
     this.ApiPort        = apiPort;
     this.StatusSnapshot = statusSnapshot;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionStatusSnapshotEntity" /> class.
 /// </summary>
 /// <param name="id">The id of the connection..</param>
 /// <param name="connectionStatusSnapshot">connectionStatusSnapshot.</param>
 public ConnectionStatusSnapshotEntity(string id = default(string), ConnectionStatusSnapshotDTO connectionStatusSnapshot = default(ConnectionStatusSnapshotDTO))
 {
     this.Id = id;
     this.ConnectionStatusSnapshot = connectionStatusSnapshot;
 }