Class: Google::Apis::WebsecurityscannerV1::FindingTypeStats

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

Overview

A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FindingTypeStats

Returns a new instance of FindingTypeStats.



284
285
286
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 284

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

Instance Attribute Details

#finding_countFixnum

Output only. The count of findings belonging to this finding type. Corresponds to the JSON property findingCount

Returns:

  • (Fixnum)


277
278
279
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 277

def finding_count
  @finding_count
end

#finding_typeString

Output only. The finding type associated with the stats. Corresponds to the JSON property findingType

Returns:

  • (String)


282
283
284
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 282

def finding_type
  @finding_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



289
290
291
292
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 289

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