void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("feedbackType"); writer.WriteStringValue(FeedbackKind.ToString()); writer.WritePropertyName("metricId"); writer.WriteStringValue(MetricId); writer.WritePropertyName("dimensionFilter"); writer.WriteObjectValue(DimensionFilter); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("startTime"); writer.WriteStringValue(StartsOn, "O"); writer.WritePropertyName("endTime"); writer.WriteStringValue(EndsOn, "O"); writer.WritePropertyName("value"); writer.WriteObjectValue(ValueInternal); writer.WritePropertyName("feedbackType"); writer.WriteStringValue(FeedbackKind.ToString()); writer.WritePropertyName("metricId"); writer.WriteStringValue(MetricId); writer.WritePropertyName("dimensionFilter"); writer.WriteObjectValue(DimensionFilter); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("startTime"); writer.WriteStringValue(StartsOn, "O"); writer.WritePropertyName("endTime"); writer.WriteStringValue(EndsOn, "O"); writer.WritePropertyName("value"); writer.WriteObjectValue(ValueInternal); if (Optional.IsDefined(DetectionConfigurationId)) { if (DetectionConfigurationId != null) { writer.WritePropertyName("anomalyDetectionConfigurationId"); writer.WriteStringValue(DetectionConfigurationId); } else { writer.WriteNull("anomalyDetectionConfigurationId"); } } if (Optional.IsDefined(DetectionConfigurationSnapshot)) { if (DetectionConfigurationSnapshot != null) { writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); writer.WriteObjectValue(DetectionConfigurationSnapshot); } else { writer.WriteNull("anomalyDetectionConfigurationSnapshot"); } } writer.WritePropertyName("feedbackType"); writer.WriteStringValue(FeedbackKind.ToString()); writer.WritePropertyName("metricId"); writer.WriteStringValue(MetricId); writer.WritePropertyName("dimensionFilter"); writer.WriteObjectValue(DimensionFilter); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); if (Optional.IsDefined(StartsOn)) { if (StartsOn != null) { writer.WritePropertyName("startTime"); writer.WriteStringValue(StartsOn.Value, "O"); } else { writer.WriteNull("startTime"); } } if (Optional.IsDefined(EndsOn)) { if (EndsOn != null) { writer.WritePropertyName("endTime"); writer.WriteStringValue(EndsOn.Value, "O"); } else { writer.WriteNull("endTime"); } } writer.WritePropertyName("value"); writer.WriteObjectValue(ValueInternal); writer.WritePropertyName("feedbackType"); writer.WriteStringValue(FeedbackKind.ToString()); writer.WritePropertyName("metricId"); writer.WriteStringValue(MetricId); writer.WritePropertyName("dimensionFilter"); writer.WriteObjectValue(DimensionFilter); writer.WriteEndObject(); }