示例#1
0
 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();
 }
示例#2
0
 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();
 }
示例#3
0
 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();
 }
示例#4
0
 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();
 }