DiagnosisSummary¶
-
class
oci.cluster_health.models.DiagnosisSummary(**kwargs)¶ Bases:
objectDiagnosis summary of a host and tenancy.
Attributes
HEALTH_HEALTHYA constant which can be used with the health property of a DiagnosisSummary. HEALTH_UNHEALTHYA constant which can be used with the health property of a DiagnosisSummary. TEST_TYPE_ACTIVEA constant which can be used with the test_type property of a DiagnosisSummary. TEST_TYPE_PASSIVEA constant which can be used with the test_type property of a DiagnosisSummary. failed_testsGets the failed_tests of this DiagnosisSummary. healthGets the health of this DiagnosisSummary. health_check_keyGets the health_check_key of this DiagnosisSummary. host_idGets the host_id of this DiagnosisSummary. instance_idGets the instance_id of this DiagnosisSummary. test_type[Required] Gets the test_type of this DiagnosisSummary. time_generatedGets the time_generated of this DiagnosisSummary. time_test_ranGets the time_test_ran of this DiagnosisSummary. Methods
__init__(**kwargs)Initializes a new DiagnosisSummary object with values from keyword arguments. -
HEALTH_HEALTHY= 'HEALTHY'¶ A constant which can be used with the health property of a DiagnosisSummary. This constant has a value of “HEALTHY”
-
HEALTH_UNHEALTHY= 'UNHEALTHY'¶ A constant which can be used with the health property of a DiagnosisSummary. This constant has a value of “UNHEALTHY”
-
TEST_TYPE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the test_type property of a DiagnosisSummary. This constant has a value of “ACTIVE”
-
TEST_TYPE_PASSIVE= 'PASSIVE'¶ A constant which can be used with the test_type property of a DiagnosisSummary. This constant has a value of “PASSIVE”
-
__init__(**kwargs)¶ Initializes a new DiagnosisSummary 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 DiagnosisSummary.
- instance_id (str) – The value to assign to the instance_id property of this DiagnosisSummary.
- health_check_key (str) – The value to assign to the health_check_key property of this DiagnosisSummary.
- time_test_ran (datetime) – The value to assign to the time_test_ran property of this DiagnosisSummary.
- time_generated (datetime) – The value to assign to the time_generated property of this DiagnosisSummary.
- failed_tests (list[oci.cluster_health.models.FailedTest]) – The value to assign to the failed_tests property of this DiagnosisSummary.
- health (str) – The value to assign to the health property of this DiagnosisSummary. Allowed values for this property are: “HEALTHY”, “UNHEALTHY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- test_type (str) – The value to assign to the test_type property of this DiagnosisSummary. 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’.
-
failed_tests¶ Gets the failed_tests of this DiagnosisSummary. Each summary contains no more than 50 failed tests
Returns: The failed_tests of this DiagnosisSummary. Return type: list[oci.cluster_health.models.FailedTest]
-
health¶ Gets the health of this DiagnosisSummary. if the host is healthy
Allowed values for this property are: “HEALTHY”, “UNHEALTHY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The health of this DiagnosisSummary. Return type: str
-
health_check_key¶ Gets the health_check_key of this DiagnosisSummary. Identifier of the health check that produced this diagnosis summary.
Returns: The health_check_key of this DiagnosisSummary. Return type: str
-
host_id¶ Gets the host_id of this DiagnosisSummary. id of the host
Returns: The host_id of this DiagnosisSummary. Return type: str
-
instance_id¶ Gets the instance_id of this DiagnosisSummary. OCID of the instance associated with this summary.
Returns: The instance_id of this DiagnosisSummary. Return type: str
-
test_type¶ [Required] Gets the test_type of this DiagnosisSummary. Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE).
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 DiagnosisSummary. Return type: str
-
time_generated¶ Gets the time_generated of this DiagnosisSummary. time the recommendation report was generated
Returns: The time_generated of this DiagnosisSummary. Return type: datetime
-
time_test_ran¶ Gets the time_test_ran of this DiagnosisSummary. time the test was run
Returns: The time_test_ran of this DiagnosisSummary. Return type: datetime
-