Class DiagnosisSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.clusterhealth.model.DiagnosisSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20260331") public final class DiagnosisSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDiagnosis summary of a host and tenancy.
Note: Objects should always be created or deserialized using theDiagnosisSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theDiagnosisSummary.Builder, which maintain a set of all explicitly set fields calledDiagnosisSummary.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiagnosisSummary.Builderstatic classDiagnosisSummary.Healthif the host is healthystatic classDiagnosisSummary.TestTypeType of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE).
-
Constructor Summary
Constructors Constructor Description DiagnosisSummary(String hostId, String instanceId, String healthCheckKey, Date timeTestRan, Date timeGenerated, List<FailedTest> failedTests, DiagnosisSummary.Health health, DiagnosisSummary.TestType testType)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiagnosisSummary.Builderbuilder()Create a new builder.booleanequals(Object o)List<FailedTest>getFailedTests()Each summary contains no more than 50 failed testsDiagnosisSummary.HealthgetHealth()if the host is healthyStringgetHealthCheckKey()Identifier of the health check that produced this diagnosis summary.StringgetHostId()id of the hostStringgetInstanceId()OCID of the instance associated with this summary.DiagnosisSummary.TestTypegetTestType()Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE).DategetTimeGenerated()time the recommendation report was generatedDategetTimeTestRan()time the test was runinthashCode()DiagnosisSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
DiagnosisSummary
@Deprecated @ConstructorProperties({"hostId","instanceId","healthCheckKey","timeTestRan","timeGenerated","failedTests","health","testType"}) public DiagnosisSummary(String hostId, String instanceId, String healthCheckKey, Date timeTestRan, Date timeGenerated, List<FailedTest> failedTests, DiagnosisSummary.Health health, DiagnosisSummary.TestType testType)
Deprecated.
-
-
Method Detail
-
builder
public static DiagnosisSummary.Builder builder()
Create a new builder.
-
toBuilder
public DiagnosisSummary.Builder toBuilder()
-
getHostId
public String getHostId()
id of the host- Returns:
- the value
-
getInstanceId
public String getInstanceId()
OCID of the instance associated with this summary.- Returns:
- the value
-
getHealthCheckKey
public String getHealthCheckKey()
Identifier of the health check that produced this diagnosis summary.- Returns:
- the value
-
getTimeTestRan
public Date getTimeTestRan()
time the test was run- Returns:
- the value
-
getTimeGenerated
public Date getTimeGenerated()
time the recommendation report was generated- Returns:
- the value
-
getFailedTests
public List<FailedTest> getFailedTests()
Each summary contains no more than 50 failed tests- Returns:
- the value
-
getHealth
public DiagnosisSummary.Health getHealth()
if the host is healthy- Returns:
- the value
-
getTestType
public DiagnosisSummary.TestType getTestType()
Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE).- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-