Class: Google::Apis::SecuritycenterV1::Attack

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

Overview

Information about DDoS attack volume and classification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attack

Returns a new instance of Attack.



369
370
371
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 369

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

Instance Attribute Details

#classificationString

Type of attack, for example, 'SYN-flood', 'NTP-udp', or 'CHARGEN-udp'. Corresponds to the JSON property classification

Returns:

  • (String)


357
358
359
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 357

def classification
  @classification
end

#volume_bpsFixnum

Total BPS (bytes per second) volume of attack. Corresponds to the JSON property volumeBps

Returns:

  • (Fixnum)


362
363
364
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 362

def volume_bps
  @volume_bps
end

#volume_ppsFixnum

Total PPS (packets per second) volume of attack. Corresponds to the JSON property volumePps

Returns:

  • (Fixnum)


367
368
369
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 367

def volume_pps
  @volume_pps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



374
375
376
377
378
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 374

def update!(**args)
  @classification = args[:classification] if args.key?(:classification)
  @volume_bps = args[:volume_bps] if args.key?(:volume_bps)
  @volume_pps = args[:volume_pps] if args.key?(:volume_pps)
end