Class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/policysimulator_v1beta1/classes.rb,
lib/google/apis/policysimulator_v1beta1/representations.rb,
lib/google/apis/policysimulator_v1beta1/representations.rb

Overview

Summary statistics about the replayed log entries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary

Returns a new instance of GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary.



757
758
759
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 757

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#difference_countFixnum

The number of replayed log entries with a difference between baseline and simulated policies. Corresponds to the JSON property differenceCount

Returns:

  • (Fixnum)


715
716
717
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 715

def difference_count
  @difference_count
end

#error_countFixnum

The number of log entries that could not be replayed. Corresponds to the JSON property errorCount

Returns:

  • (Fixnum)


720
721
722
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 720

def error_count
  @error_count
end

#log_countFixnum

The total number of log entries replayed. Corresponds to the JSON property logCount

Returns:

  • (Fixnum)


725
726
727
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 725

def log_count
  @log_count
end

#newest_dateGoogle::Apis::PolicysimulatorV1beta1::GoogleTypeDate

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property newestDate



737
738
739
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 737

def newest_date
  @newest_date
end

#oldest_dateGoogle::Apis::PolicysimulatorV1beta1::GoogleTypeDate

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property oldestDate



749
750
751
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 749

def oldest_date
  @oldest_date
end

#unchanged_countFixnum

The number of replayed log entries with no difference between baseline and simulated policies. Corresponds to the JSON property unchangedCount

Returns:

  • (Fixnum)


755
756
757
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 755

def unchanged_count
  @unchanged_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



762
763
764
765
766
767
768
769
# File 'lib/google/apis/policysimulator_v1beta1/classes.rb', line 762

def update!(**args)
  @difference_count = args[:difference_count] if args.key?(:difference_count)
  @error_count = args[:error_count] if args.key?(:error_count)
  @log_count = args[:log_count] if args.key?(:log_count)
  @newest_date = args[:newest_date] if args.key?(:newest_date)
  @oldest_date = args[:oldest_date] if args.key?(:oldest_date)
  @unchanged_count = args[:unchanged_count] if args.key?(:unchanged_count)
end