/*
 * ProxMox VE API
 *
 * ProxMox VE API
 *
 * The version of the OpenAPI document: 2.0
 * Contact: support@lumaserv.com
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter;

namespace ProxmoxSharp.Model
{
    /// <summary>
    /// GetClusterMetricsExport200ResponseDataDataInner
    /// </summary>
    [DataContract(Name = "getClusterMetricsExport_200_response_data_data_inner")]
    public partial class GetClusterMetricsExport200ResponseDataDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterMetricsExport200ResponseDataDataInner" /> class.
        /// </summary>
        /// <param name="id">Unique identifier for this metric object, for instance &#39;node/&lt;nodename&gt;&#39; or &#39;qemu/&lt;vmid&gt;&#39;..</param>
        /// <param name="metric">Name of the metric..</param>
        /// <param name="timestamp">Time at which this metric was observed.</param>
        /// <param name="type">Type of the metric..</param>
        /// <param name="value">Metric value..</param>
        public GetClusterMetricsExport200ResponseDataDataInner(string id = default(string), string metric = default(string), Int64 timestamp = default(Int64), string type = default(string), decimal value = default(decimal))
        {
            this.Id = id;
            this.Metric = metric;
            this.Timestamp = timestamp;
            this.Type = type;
            this.Value = value;
        }

        /// <summary>
        /// Unique identifier for this metric object, for instance &#39;node/&lt;nodename&gt;&#39; or &#39;qemu/&lt;vmid&gt;&#39;.
        /// </summary>
        /// <value>Unique identifier for this metric object, for instance &#39;node/&lt;nodename&gt;&#39; or &#39;qemu/&lt;vmid&gt;&#39;.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public string Id { get; set; }

        /// <summary>
        /// Name of the metric.
        /// </summary>
        /// <value>Name of the metric.</value>
        [DataMember(Name = "metric", EmitDefaultValue = false)]
        public string Metric { get; set; }

        /// <summary>
        /// Time at which this metric was observed
        /// </summary>
        /// <value>Time at which this metric was observed</value>
        [DataMember(Name = "timestamp", EmitDefaultValue = false)]
        public Int64 Timestamp { get; set; }

        /// <summary>
        /// Type of the metric.
        /// </summary>
        /// <value>Type of the metric.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { get; set; }

        /// <summary>
        /// Metric value.
        /// </summary>
        /// <value>Metric value.</value>
        [DataMember(Name = "value", EmitDefaultValue = false)]
        public decimal Value { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class GetClusterMetricsExport200ResponseDataDataInner {\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Metric: ").Append(Metric).Append("\n");
            sb.Append("  Timestamp: ").Append(Timestamp).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Value: ").Append(Value).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
