public override void SerializeData(ITelemetrySerializer serializer, IJsonWriter writer)
 {
     writer.WriteProperty("ver", this.Data.ver);
     writer.WriteProperty("name", this.Data.name);
     writer.WriteProperty("measurements", this.Data.measurements);
     writer.WriteProperty("properties", this.Data.properties);
 }
Beispiel #2
0
 public override void SerializeData(ITelemetrySerializer serializer, IJsonWriter writer)
 {
     writer.WriteProperty("ver", this.Data.ver);
     writer.WriteProperty("id", this.Data.id);
     writer.WriteProperty("source", this.Data.source);
     writer.WriteProperty("name", this.Data.name);
     writer.WriteProperty("duration", this.Duration);
     writer.WriteProperty("success", this.Data.success);
     writer.WriteProperty("responseCode", this.Data.responseCode);
     writer.WriteProperty("url", this.Data.url);
     writer.WriteProperty("measurements", this.Data.measurements);
     writer.WriteProperty("properties", this.Data.properties);
 }
 public override void SerializeData(ITelemetrySerializer serializer, IJsonWriter writer)
 {
     writer.WriteProperty("ver", this.Data.ver);
     writer.WriteProperty("message", this.Message);
     if (this.Data.severityLevel.HasValue)
     {
         writer.WriteProperty("severityLevel", this.Data.severityLevel.Value.ToString());
     }
     if (this.Data.properties != null && this.Data.properties.Count > 0)
     {
         writer.WriteProperty("properties", this.Data.properties);
     }
 }
        public override void SerializeData(ITelemetrySerializer serializer, IJsonWriter writer)
        {
            writer.WriteProperty("ver", this.Data.ver);
            writer.WriteProperty("name", this.Data.name);
            writer.WriteProperty("id", this.Data.id);
            writer.WriteProperty("data", this.Data.data);
            writer.WriteProperty("duration", this.Data.duration);
            writer.WriteProperty("resultCode", this.Data.resultCode);
            writer.WriteProperty("success", this.Data.success);
            writer.WriteProperty("type", this.Data.type);
            writer.WriteProperty("target", this.Data.target);

            writer.WriteProperty("properties", this.Data.properties);
            writer.WriteProperty("measurements", this.Data.measurements);
        }
        public override void SerializeData(ITelemetrySerializer serializer, IJsonWriter writer)
        {
            writer.WriteProperty("ver", this.Data.ver);
            writer.WriteProperty("problemId", this.Data.problemId);
            writer.WriteProperty("properties", this.Data.properties);
            writer.WriteProperty("measurements", this.Data.measurements);
            writer.WritePropertyName("exceptions");
            {
                writer.WriteStartArray();

                serializer.SerializeExceptions(this.Data.exceptions, writer);

                writer.WriteEndArray();
            }

            if (this.Data.severityLevel.HasValue)
            {
                writer.WriteProperty("severityLevel", this.Data.severityLevel.Value.ToString());
            }
        }
 public TelemetryProcessor(ITelemetrySerializer <DroneState> serializer)
 {
     this.serializer = serializer;
 }
Beispiel #7
0
 public abstract void SerializeData(ITelemetrySerializer serializer, IJsonWriter writer);
Beispiel #8
0
 public AITelemetryTransmitter(ITelemetrySerializer serializer, IEventLogger eventLogger) : base(serializer, eventLogger)
 {
     this.EndpointAddress = new Uri(AIConstants.TelemetryServiceEndpoint);
 }
Beispiel #9
0
 public void Dispose()
 {
     this.Serializer = null;
     _eventLogger    = null;
     GC.SuppressFinalize(this);
 }
Beispiel #10
0
 public TelemetryTransmitter(ITelemetrySerializer serializer, IEventLogger eventLogger)
 {
     _eventLogger    = eventLogger;
     this.Serializer = serializer;
 }