Metadata

class oci.cluster_health.models.Metadata(**kwargs)

Bases: object

Metadata associated with the diagnosis recommendation report.

Attributes:

TEST_TYPE_ACTIVE

A constant which can be used with the test_type property of a Metadata.

TEST_TYPE_PASSIVE

A constant which can be used with the test_type property of a Metadata.

health_check_key

Gets the health_check_key of this Metadata.

host_id

Gets the host_id of this Metadata.

instance_id

Gets the instance_id of this Metadata.

shape

Gets the shape of this Metadata.

test_type

Gets the test_type of this Metadata.

Methods:

__init__(**kwargs)

Initializes a new Metadata object with values from keyword arguments.

TEST_TYPE_ACTIVE = 'ACTIVE'

A constant which can be used with the test_type property of a Metadata. This constant has a value of “ACTIVE”

TEST_TYPE_PASSIVE = 'PASSIVE'

A constant which can be used with the test_type property of a Metadata. This constant has a value of “PASSIVE”

__init__(**kwargs)

Initializes a new Metadata object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • host_id (str) – The value to assign to the host_id property of this Metadata.

  • health_check_key (str) – The value to assign to the health_check_key property of this Metadata.

  • instance_id (str) – The value to assign to the instance_id property of this Metadata.

  • shape (str) – The value to assign to the shape property of this Metadata.

  • test_type (str) – The value to assign to the test_type property of this Metadata. Allowed values for this property are: “PASSIVE”, “ACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property health_check_key

Gets the health_check_key of this Metadata. Identifier of the health check run.

Returns

The health_check_key of this Metadata.

Return type

str

property host_id

Gets the host_id of this Metadata. OCID of the host that ran the test.

Returns

The host_id of this Metadata.

Return type

str

property instance_id

Gets the instance_id of this Metadata. OCID of the instance related to the test.

Returns

The instance_id of this Metadata.

Return type

str

property shape

Gets the shape of this Metadata. Shape of the instance under test.

Returns

The shape of this Metadata.

Return type

str

property test_type

Gets the test_type of this Metadata. Test type provided by the diagnosis payload.

Allowed values for this property are: “PASSIVE”, “ACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The test_type of this Metadata.

Return type

str