using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace IO.Swagger.Model { /// /// /// [DataContract] public class MetricsModel { /// /// Gets or Sets Labels /// [DataMember(Name="labels", EmitDefaultValue=false)] [JsonProperty(PropertyName = "labels")] public List Labels { get; set; } /// /// Gets or Sets Datasets /// [DataMember(Name="datasets", EmitDefaultValue=false)] [JsonProperty(PropertyName = "datasets")] public List Datasets { get; set; } /// /// Gets or Sets Timestamps /// [DataMember(Name="timestamps", EmitDefaultValue=false)] [JsonProperty(PropertyName = "timestamps")] public List Timestamps { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class MetricsModel {\n"); sb.Append(" Labels: ").Append(Labels).Append("\n"); sb.Append(" Datasets: ").Append(Datasets).Append("\n"); sb.Append(" Timestamps: ").Append(Timestamps).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }