# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Monitor::Mgmt::V2018_04_16
  module Models
    #
    # Defines how often to run the search and the time interval.
    #
    class Schedule

      include MsRestAzure

      # @return [Integer] frequency (in minutes) at which rule condition should
      # be evaluated.
      attr_accessor :frequency_in_minutes

      # @return [Integer] Time window for which data needs to be fetched for
      # query (should be greater than or equal to frequencyInMinutes).
      attr_accessor :time_window_in_minutes


      #
      # Mapper for Schedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Schedule',
          type: {
            name: 'Composite',
            class_name: 'Schedule',
            model_properties: {
              frequency_in_minutes: {
                client_side_validation: true,
                required: true,
                serialized_name: 'frequencyInMinutes',
                type: {
                  name: 'Number'
                }
              },
              time_window_in_minutes: {
                client_side_validation: true,
                required: true,
                serialized_name: 'timeWindowInMinutes',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
