Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData

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

Overview

Common model for database resource health signal data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData

Returns a new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.



2598
2599
2600
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2598

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

Instance Attribute Details

#additional_metadata ⇒ Hash<String,Object>

Any other additional metadata Corresponds to the JSON property additionalMetadata

Returns:

  • (Hash<String,Object>)


2522
2523
2524
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2522

def 
  @additional_metadata
end

#compliance ⇒ Array<Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainCompliance>

Industry standards associated with this signal; if this signal is an issue, that could be a violation of the associated industry standard(s). For example, AUTO_BACKUP_DISABLED signal is associated with CIS GCP 1.1, CIS GCP 1.2, CIS GCP 1.3, NIST 800-53 and ISO-27001 compliance standards. If a database resource does not have automated backup enable, it will violate these following industry standards. Corresponds to the JSON property compliance



2532
2533
2534
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2532

def compliance
  @compliance
end

#description ⇒ String

Description associated with signal Corresponds to the JSON property description

Returns:

  • (String)


2537
2538
2539
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2537

def description
  @description
end

#event_time ⇒ String

Required. The last time at which the event described by this signal took place Corresponds to the JSON property eventTime

Returns:

  • (String)


2542
2543
2544
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2542

def event_time
  @event_time
end

#external_uri ⇒ String

The external-uri of the signal, using which more information about this signal can be obtained. In GCP, this will take user to SCC page to get more details about signals. Corresponds to the JSON property externalUri

Returns:

  • (String)


2549
2550
2551
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2549

def external_uri
  @external_uri
end

#name ⇒ String

Required. The name of the signal, ex: PUBLIC_SQL_INSTANCE, SQL_LOG_ERROR_VERBOSITY etc. Corresponds to the JSON property name

Returns:

  • (String)


2555
2556
2557
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2555

def name
  @name
end

#provider ⇒ String

Cloud provider name. Ex: GCP/AWS/Azure/OnPrem/SelfManaged Corresponds to the JSON property provider

Returns:

  • (String)


2560
2561
2562
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2560

def provider
  @provider
end

#resource_container ⇒ String

Closest parent container of this resource. In GCP, 'container' refers to a Cloud Resource Manager project. It must be resource name of a Cloud Resource Manager project with the format of "provider//", such as "projects/123". For GCP provided resources, number should be project number. Corresponds to the JSON property resourceContainer

Returns:

  • (String)


2568
2569
2570
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2568

def resource_container
  @resource_container
end

#resource_name ⇒ String

Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel Corresponds to the JSON property resourceName

Returns:

  • (String)


2574
2575
2576
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2574

def resource_name
  @resource_name
end

#signal_class ⇒ String

Required. The class of the signal, such as if it's a THREAT or VULNERABILITY. Corresponds to the JSON property signalClass

Returns:

  • (String)


2579
2580
2581
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2579

def signal_class
  @signal_class
end

#signal_id ⇒ String

Required. Unique identifier for the signal. This is an unique id which would be mainatined by partner to identify a signal. Corresponds to the JSON property signalId

Returns:

  • (String)


2585
2586
2587
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2585

def signal_id
  @signal_id
end

#signal_type ⇒ String

Required. Type of signal, for example, AVAILABLE_IN_MULTIPLE_ZONES, LOGGING_MOST_ERRORS, etc. Corresponds to the JSON property signalType

Returns:

  • (String)


2591
2592
2593
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2591

def signal_type
  @signal_type
end

#state ⇒ String

Corresponds to the JSON property state

Returns:

  • (String)


2596
2597
2598
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2596

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2603

def update!(**args)
  @additional_metadata = args[:additional_metadata] if args.key?(:additional_metadata)
  @compliance = args[:compliance] if args.key?(:compliance)
  @description = args[:description] if args.key?(:description)
  @event_time = args[:event_time] if args.key?(:event_time)
  @external_uri = args[:external_uri] if args.key?(:external_uri)
  @name = args[:name] if args.key?(:name)
  @provider = args[:provider] if args.key?(:provider)
  @resource_container = args[:resource_container] if args.key?(:resource_container)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @signal_class = args[:signal_class] if args.key?(:signal_class)
  @signal_id = args[:signal_id] if args.key?(:signal_id)
  @signal_type = args[:signal_type] if args.key?(:signal_type)
  @state = args[:state] if args.key?(:state)
end