// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace k8s.Models
{
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// EventSeries contain information on series of events, i.e. thing that
    /// was/is happening continuously for some time. How often to update the
    /// EventSeries is up to the event reporters. The default event reporter in
    /// "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this
    /// struct is updated on heartbeats and can guide customized reporter
    /// implementations.
    /// </summary>
    public partial class Eventsv1EventSeries
    {
        /// <summary>
        /// Initializes a new instance of the Eventsv1EventSeries class.
        /// </summary>
        public Eventsv1EventSeries()
        {
            CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the Eventsv1EventSeries class.
        /// </summary>
        /// <param name="count">count is the number of occurrences in this
        /// series up to the last heartbeat time.</param>
        /// <param name="lastObservedTime">lastObservedTime is the time when
        /// last Event from the series was seen before last heartbeat.</param>
        public Eventsv1EventSeries(int count, System.DateTime lastObservedTime)
        {
            Count = count;
            LastObservedTime = lastObservedTime;
            CustomInit();
        }

        /// <summary>
        /// An initialization method that performs custom operations like setting defaults
        /// </summary>
        partial void CustomInit();

        /// <summary>
        /// Gets or sets count is the number of occurrences in this series up
        /// to the last heartbeat time.
        /// </summary>
        [JsonProperty(PropertyName = "count")]
        public int Count { get; set; }

        /// <summary>
        /// Gets or sets lastObservedTime is the time when last Event from the
        /// series was seen before last heartbeat.
        /// </summary>
        [JsonProperty(PropertyName = "lastObservedTime")]
        public System.DateTime LastObservedTime { get; set; }

        /// <summary>
        /// Validate the object.
        /// </summary>
        /// <exception cref="Microsoft.Rest.ValidationException">
        /// Thrown if validation fails
        /// </exception>
        public virtual void Validate()
        {
            //Nothing to validate
        }
    }
}
