public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("message", this.message); serializationWriter.WriteProperty("severityLevel", this.severityLevel.HasValue ? this.severityLevel.Value.ToString() : null); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("level", this.level); serializationWriter.WriteProperty("method", this.method); serializationWriter.WriteProperty("assembly", this.assembly); serializationWriter.WriteProperty("fileName", this.fileName); serializationWriter.WriteProperty("line", this.line); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
public static void WriteTelemetryContext(ISerializationWriter json, TelemetryContext context) { if (context != null) { json.WriteProperty("iKey", context.InstrumentationKey); if (context.Flags != 0) { json.WriteProperty("flags", context.Flags); } json.WriteProperty("tags", context.SanitizedTags); } }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("id", this.id); serializationWriter.WriteProperty("source", this.source); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("duration", Utils.ValidateDuration(this.duration)); serializationWriter.WriteProperty("success", this.success); serializationWriter.WriteProperty("responseCode", this.responseCode); serializationWriter.WriteProperty("url", this.url); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("id", this.id); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("duration", this.duration); serializationWriter.WriteProperty("success", this.success); serializationWriter.WriteProperty("runLocation", this.runLocation); serializationWriter.WriteProperty("message", this.message); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
/// <inheritdoc/> public override void SerializeData(ISerializationWriter serializationWriter) { // To ensure that all changes to telemetry are reflected in serialization, // the underlying field is set to null, which forces it to be re-created. this.internalDataPrivate = null; serializationWriter.WriteProperty(this.InternalData); }
public static void WriteEnvelopeProperties(this ITelemetry telemetry, ISerializationWriter json) { json.WriteProperty("time", telemetry.Timestamp.UtcDateTime.ToString("o", CultureInfo.InvariantCulture)); var samplingSupportingTelemetry = telemetry as ISupportSampling; if (samplingSupportingTelemetry != null && samplingSupportingTelemetry.SamplingPercentage.HasValue && (samplingSupportingTelemetry.SamplingPercentage.Value > 0.0 + 1.0E-12) && (samplingSupportingTelemetry.SamplingPercentage.Value < 100.0 - 1.0E-12)) { json.WriteProperty("sampleRate", samplingSupportingTelemetry.SamplingPercentage.Value); } json.WriteProperty("seq", telemetry.Sequence); WriteTelemetryContext(json, telemetry.Context); }
/// <inheritdoc/> public void SerializeData(ISerializationWriter serializationWriter) { if (serializationWriter == null) { throw new ArgumentNullException(nameof(serializationWriter)); } serializationWriter.WriteProperty(this.Data); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ns", this.ns); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("kind", this.kind.ToString()); serializationWriter.WriteProperty("value", this.value); serializationWriter.WriteProperty("count", this.count.HasValue ? this.count : 1); serializationWriter.WriteProperty("min", this.min); serializationWriter.WriteProperty("max", this.max); serializationWriter.WriteProperty("stdDev", this.stdDev); }
/// <inheritdoc/> public override void SerializeData(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("id", this.Id); serializationWriter.WriteProperty("source", this.Source); serializationWriter.WriteProperty("name", this.Name); serializationWriter.WriteProperty("duration", this.Duration); serializationWriter.WriteProperty("success", this.Success); serializationWriter.WriteProperty("responseCode", this.ResponseCode); if (this.Url != null) { serializationWriter.WriteProperty("url", this.Url.ToString()); } serializationWriter.WriteProperty("properties", this.Properties); serializationWriter.WriteProperty("measurements", this.Metrics); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("id", this.id); serializationWriter.WriteProperty("outerId", this.outerId); serializationWriter.WriteProperty("typeName", this.typeName); serializationWriter.WriteProperty("message", this.message); serializationWriter.WriteProperty("hasFullStack", this.hasFullStack); serializationWriter.WriteProperty("stack", this.stack); serializationWriter.WriteProperty("parsedStack", this.parsedStack.ToList <ISerializableWithWriter>()); }
public new void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("url", this.url); serializationWriter.WriteProperty("duration", Utils.ValidateDuration(this.duration)); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("problemId", this.problemId); serializationWriter.WriteProperty("exceptions", this.exceptions.ToList <ISerializableWithWriter>()); serializationWriter.WriteProperty("severityLevel", this.severityLevel.TranslateSeverityLevel().HasValue ? this.severityLevel.TranslateSeverityLevel().Value.ToString() : null); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("MyStringField", MyStringField); serializationWriter.WriteProperty("MyIntField", MyIntField); serializationWriter.WriteProperty("MyDoubleField", MyDoubleField); serializationWriter.WriteProperty("MyBoolField", MyBoolField); serializationWriter.WriteProperty("MyTimeSpanField", MyTimeSpanField); serializationWriter.WriteProperty("MyDateTimeOffsetField", MyDateTimeOffsetField); serializationWriter.WriteProperty("MySubExtensionField", MySubExtensionField); serializationWriter.WriteProperty("MyStringListField", MyStringListField); serializationWriter.WriteProperty("MyExtensionListField", MyExtensionListField.ToList <ISerializableWithWriter>()); serializationWriter.WriteProperty("MyStringDictionaryField", MyStringDictionaryField); serializationWriter.WriteProperty("MyDoubleDictionaryField", MyDoubleDictionaryField); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("id", this.id); serializationWriter.WriteProperty("data", this.data); serializationWriter.WriteProperty("duration", Utils.ValidateDuration(this.duration)); serializationWriter.WriteProperty("resultCode", this.resultCode); serializationWriter.WriteProperty("success", this.success); serializationWriter.WriteProperty("type", this.type); serializationWriter.WriteProperty("target", this.target); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
/// <inheritdoc/> public void SerializeData(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty(this.Data); }
public new void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("name", this.name); serializationWriter.WriteProperty("url", this.url); serializationWriter.WriteProperty("duration", Utils.ValidateDuration(this.duration)); serializationWriter.WriteProperty("domProcessing", Utils.ValidateDuration(this.domProcessing)); serializationWriter.WriteProperty("perfTotal", Utils.ValidateDuration(this.perfTotal)); serializationWriter.WriteProperty("networkConnect", Utils.ValidateDuration(this.networkConnect)); serializationWriter.WriteProperty("sentRequest", Utils.ValidateDuration(this.sentRequest)); serializationWriter.WriteProperty("receivedResponse", Utils.ValidateDuration(this.receivedResponse)); serializationWriter.WriteProperty("properties", this.properties); serializationWriter.WriteProperty("measurements", this.measurements); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("Field3", Field3); serializationWriter.WriteProperty("Field4", Field4); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("Field1", Field1); serializationWriter.WriteProperty("Field2", Field2); serializationWriter.WriteProperty("MySubSubExtension", MySubSubExtension); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("ver", this.ver); serializationWriter.WriteProperty("metrics", this.metrics.ToList <ISerializableWithWriter>()); serializationWriter.WriteProperty("properties", this.properties); }
public void Serialize(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty("myIntField", myIntField); serializationWriter.WriteProperty("myStringField", myStringField); }
/// <inheritdoc/> public override void SerializeData(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty(this.InternalData); }