Class: Google::Apis::ContaineranalysisV1alpha1::SeverityCount

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

Overview

The number of occurrences created for a specific severity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SeverityCount

Returns a new instance of SeverityCount.



5219
5220
5221
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5219

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

Instance Attribute Details

#countFixnum

The number of occurrences with the severity. Corresponds to the JSON property count

Returns:

  • (Fixnum)


5212
5213
5214
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5212

def count
  @count
end

#severityString

The severity of the occurrences. Corresponds to the JSON property severity

Returns:

  • (String)


5217
5218
5219
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5217

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5224
5225
5226
5227
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5224

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @severity = args[:severity] if args.key?(:severity)
end