TotalMetricsModel.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Text;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Runtime.Serialization;
  6. using Newtonsoft.Json;
  7. namespace IO.Swagger.Model {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. [DataContract]
  12. public class TotalMetricsModel {
  13. /// <summary>
  14. /// Gets or Sets ReceiveTotal
  15. /// </summary>
  16. [DataMember(Name="receive_total", EmitDefaultValue=false)]
  17. [JsonProperty(PropertyName = "receive_total")]
  18. public MetricsModel ReceiveTotal { get; set; }
  19. /// <summary>
  20. /// Gets or Sets TransmitTotal
  21. /// </summary>
  22. [DataMember(Name="transmit_total", EmitDefaultValue=false)]
  23. [JsonProperty(PropertyName = "transmit_total")]
  24. public MetricsModel TransmitTotal { get; set; }
  25. /// <summary>
  26. /// Gets or Sets DiskReadTotal
  27. /// </summary>
  28. [DataMember(Name="disk_read_total", EmitDefaultValue=false)]
  29. [JsonProperty(PropertyName = "disk_read_total")]
  30. public MetricsModel DiskReadTotal { get; set; }
  31. /// <summary>
  32. /// Gets or Sets DiskWriteTotal
  33. /// </summary>
  34. [DataMember(Name="disk_write_total", EmitDefaultValue=false)]
  35. [JsonProperty(PropertyName = "disk_write_total")]
  36. public MetricsModel DiskWriteTotal { get; set; }
  37. /// <summary>
  38. /// Get the string presentation of the object
  39. /// </summary>
  40. /// <returns>String presentation of the object</returns>
  41. public override string ToString() {
  42. StringBuilder sb = new StringBuilder();
  43. sb.Append("class TotalMetricsModel {\n");
  44. sb.Append(" ReceiveTotal: ").Append(ReceiveTotal).Append("\n");
  45. sb.Append(" TransmitTotal: ").Append(TransmitTotal).Append("\n");
  46. sb.Append(" DiskReadTotal: ").Append(DiskReadTotal).Append("\n");
  47. sb.Append(" DiskWriteTotal: ").Append(DiskWriteTotal).Append("\n");
  48. sb.Append("}\n");
  49. return sb.ToString();
  50. }
  51. /// <summary>
  52. /// Get the JSON string presentation of the object
  53. /// </summary>
  54. /// <returns>JSON string presentation of the object</returns>
  55. public string ToJson() {
  56. return JsonConvert.SerializeObject(this, Formatting.Indented);
  57. }
  58. }
  59. }