Class: Google::Apis::WebsecurityscannerV1alpha::FindingTypeStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/websecurityscanner_v1alpha/classes.rb,
lib/google/apis/websecurityscanner_v1alpha/representations.rb,
lib/google/apis/websecurityscanner_v1alpha/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

Constructor Details

#initialize(**args) ⇒ FindingTypeStats

Returns a new instance of FindingTypeStats.



258
259
260
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 258

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

Instance Attribute Details

#finding_countFixnum

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

Returns:

  • (Fixnum)


251
252
253
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 251

def finding_count
  @finding_count
end

#finding_typeString

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

Returns:

  • (String)


256
257
258
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 256

def finding_type
  @finding_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



263
264
265
266
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 263

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