# 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::CDN::Mgmt::V2020_09_01
  module Models
    #
    # Waf Metrics Response
    #
    class WafMetricsResponse

      include MsRestAzure

      # @return [DateTime]
      attr_accessor :date_time_begin

      # @return [DateTime]
      attr_accessor :date_time_end

      # @return [Enum] Possible values include: 'PT5M', 'PT1H', 'P1D'
      attr_accessor :granularity

      # @return [Array<WafMetricsResponseSeriesItem>]
      attr_accessor :series


      #
      # Mapper for WafMetricsResponse class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WafMetricsResponse',
          type: {
            name: 'Composite',
            class_name: 'WafMetricsResponse',
            model_properties: {
              date_time_begin: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dateTimeBegin',
                type: {
                  name: 'DateTime'
                }
              },
              date_time_end: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dateTimeEnd',
                type: {
                  name: 'DateTime'
                }
              },
              granularity: {
                client_side_validation: true,
                required: false,
                serialized_name: 'granularity',
                type: {
                  name: 'String'
                }
              },
              series: {
                client_side_validation: true,
                required: false,
                serialized_name: 'series',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'WafMetricsResponseSeriesItemElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'WafMetricsResponseSeriesItem'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
