# 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::Network::Mgmt::V2019_11_01
  module Models
    #
    # Describes the threshold for declaring a test successful.
    #
    class ConnectionMonitorSuccessThreshold

      include MsRestAzure

      # @return [Integer] The maximum percentage of failed checks permitted for
      # a test to evaluate as successful.
      attr_accessor :checks_failed_percent

      # @return [Integer] The maximum round-trip time in milliseconds permitted
      # for a test to evaluate as successful.
      attr_accessor :round_trip_time_ms


      #
      # Mapper for ConnectionMonitorSuccessThreshold class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConnectionMonitorSuccessThreshold',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorSuccessThreshold',
            model_properties: {
              checks_failed_percent: {
                client_side_validation: true,
                required: false,
                serialized_name: 'checksFailedPercent',
                type: {
                  name: 'Number'
                }
              },
              round_trip_time_ms: {
                client_side_validation: true,
                required: false,
                serialized_name: 'roundTripTimeMs',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
