Class DataStreamStats
Data stream stats.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class DataStreamStats : StreamStats
Properties
BytesReceived
Gets the number of bytes received.
Declaration
public long BytesReceived { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
BytesSent
Gets the number of bytes sent.
Declaration
public long BytesSent { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Channel
Gets the first channel's stats.
Declaration
public DataChannelStats Channel { get; }
Property Value
Type | Description |
---|---|
DataChannelStats |
Channels
Gets the channels' stats.
Declaration
public DataChannelStats[] Channels { get; }
Property Value
Type | Description |
---|---|
DataChannelStats[] |
DataChannel
Gets the first channel's stats.
Declaration
public DataChannelStats DataChannel { get; }
Property Value
Type | Description |
---|---|
DataChannelStats |
DataChannels
Gets the channels' stats.
Declaration
public DataChannelStats[] DataChannels { get; }
Property Value
Type | Description |
---|---|
DataChannelStats[] |
MessagesReceived
Gets the number of messages received.
Declaration
public long MessagesReceived { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
MessagesSent
Gets the number of messages sent.
Declaration
public long MessagesSent { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Derializes data stream stats from JSON.
Declaration
public static DataStreamStats FromJson(string dataStreamJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataStreamJson | The data stream's stats JSON. |
Returns
Type | Description |
---|---|
DataStreamStats |
FromJsonArray(String)
Derializes an array of data stream stats from JSON.
Declaration
public static DataStreamStats[] FromJsonArray(string dataStreamsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataStreamsJson | The data streams' stats JSON. |
Returns
Type | Description |
---|---|
DataStreamStats[] |
GetChannel(String)
Gets a channel by its identifier.
Declaration
public DataChannelStats GetChannel(string channelId)
Parameters
Type | Name | Description |
---|---|---|
System.String | channelId | The channel identifier. |
Returns
Type | Description |
---|---|
DataChannelStats |
GetDataChannel(String)
Gets a channel by its identifier.
Declaration
public DataChannelStats GetDataChannel(string dataChannelId)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataChannelId | The channel identifier. |
Returns
Type | Description |
---|---|
DataChannelStats |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(DataStreamStats)
Serializes data stream stats to JSON.
Declaration
public static string ToJson(DataStreamStats dataStream)
Parameters
Type | Name | Description |
---|---|---|
DataStreamStats | dataStream | The data stream's stats. |
Returns
Type | Description |
---|---|
System.String |
ToJsonArray(DataStreamStats[])
Serializes an array of data stream stats to JSON.
Declaration
public static string ToJsonArray(DataStreamStats[] dataStreams)
Parameters
Type | Name | Description |
---|---|---|
DataStreamStats[] | dataStreams | The data streams' stats. |
Returns
Type | Description |
---|---|
System.String |