Class: Google::Apis::ContaineranalysisV1alpha1::SeverityCount
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::SeverityCount
- Defined in:
- generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
The number of occurrences created for a specific severity.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The number of occurrences with the severity.
-
#severity ⇒ String
The severity of the occurrences.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SeverityCount
constructor
A new instance of SeverityCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SeverityCount
Returns a new instance of SeverityCount
2379 2380 2381 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The number of occurrences with the severity.
Corresponds to the JSON property count
2372 2373 2374 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2372 def count @count end |
#severity ⇒ String
The severity of the occurrences.
Corresponds to the JSON property severity
2377 2378 2379 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2377 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2384 2385 2386 2387 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2384 def update!(**args) @count = args[:count] if args.key?(:count) @severity = args[:severity] if args.key?(:severity) end |