Class LogAnalyticsWarning


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200601")
    public final class LogAnalyticsWarning
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    LogAnalyticsWarning
    Note: Objects should always be created or deserialized using the LogAnalyticsWarning.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 the LogAnalyticsWarning.Builder, which maintain a set of all explicitly set fields called LogAnalyticsWarning.Builder.__explicitlySet__. The hashCode() and equals(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).

    • Constructor Detail

      • LogAnalyticsWarning

        @Deprecated
        @ConstructorProperties({"agentId","hostName","ruleDisplayName","sourceName","compartmentId","sourceDisplayName","entityName","timeCollected","warningId","timeOfInitialWarning","isActive","isSuppressed","timeOfLatestWarning","warningLevel","warningMessage","patternId","patternText","ruleId","sourceId","suppressedBy","entityId","entityType","entityTypeDisplayName","typeDisplayName","typeName","severity"})
        public LogAnalyticsWarning​(String agentId,
                                   String hostName,
                                   String ruleDisplayName,
                                   String sourceName,
                                   String compartmentId,
                                   String sourceDisplayName,
                                   String entityName,
                                   Date timeCollected,
                                   String warningId,
                                   Date timeOfInitialWarning,
                                   Boolean isActive,
                                   Boolean isSuppressed,
                                   Date timeOfLatestWarning,
                                   String warningLevel,
                                   String warningMessage,
                                   String patternId,
                                   String patternText,
                                   String ruleId,
                                   String sourceId,
                                   String suppressedBy,
                                   String entityId,
                                   String entityType,
                                   String entityTypeDisplayName,
                                   String typeDisplayName,
                                   String typeName,
                                   Integer severity)
        Deprecated.
    • Method Detail

      • getAgentId

        public String getAgentId()
        The unique identifier of the agent associated with the warning
        Returns:
        the value
      • getHostName

        public String getHostName()
        The host containing the agent associated with the warning
        Returns:
        the value
      • getRuleDisplayName

        public String getRuleDisplayName()
        The display name of the rule which triggered the warning
        Returns:
        the value
      • getSourceName

        public String getSourceName()
        The name of the source associated with the warning
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The entity compartment ID.
        Returns:
        the value
      • getSourceDisplayName

        public String getSourceDisplayName()
        The display name of the source associated with the warning
        Returns:
        the value
      • getEntityName

        public String getEntityName()
        The name of the entity associated with the warning
        Returns:
        the value
      • getTimeCollected

        public Date getTimeCollected()
        The time at which the warning was most recently collected
        Returns:
        the value
      • getWarningId

        public String getWarningId()
        The unique identifier of the warning
        Returns:
        the value
      • getTimeOfInitialWarning

        public Date getTimeOfInitialWarning()
        The date at which the warning was initially triggered
        Returns:
        the value
      • getIsActive

        public Boolean getIsActive()
        A flag indicating if the warning is currently active
        Returns:
        the value
      • getIsSuppressed

        public Boolean getIsSuppressed()
        A flag indicating if the warning is currently suppressed
        Returns:
        the value
      • getTimeOfLatestWarning

        public Date getTimeOfLatestWarning()
        The most recent date on which the warning was triggered
        Returns:
        the value
      • getWarningLevel

        public String getWarningLevel()
        The warning level - either pattern, rule, or source.
        Returns:
        the value
      • getWarningMessage

        public String getWarningMessage()
        A description of the warning intended for the consumer of the warning.

        It will usually detail the cause of the warning, may suggest a remedy, and can contain any other relevant information the consumer might find useful

        Returns:
        the value
      • getPatternId

        public String getPatternId()
        The unique identifier of the warning pattern
        Returns:
        the value
      • getPatternText

        public String getPatternText()
        The text of the pattern used by the warning
        Returns:
        the value
      • getRuleId

        public String getRuleId()
        The unique identifier of the rule associated with the warning
        Returns:
        the value
      • getSourceId

        public String getSourceId()
        The unique identifier of the source associated with the warning
        Returns:
        the value
      • getSuppressedBy

        public String getSuppressedBy()
        The user who suppressed the warning, or empty if the warning is not suppressed
        Returns:
        the value
      • getEntityId

        public String getEntityId()
        The unique identifier of the entity associated with the warning
        Returns:
        the value
      • getEntityType

        public String getEntityType()
        The type of the entity associated with the warning
        Returns:
        the value
      • getEntityTypeDisplayName

        public String getEntityTypeDisplayName()
        The display name of the entity type associated with the warning
        Returns:
        the value
      • getTypeDisplayName

        public String getTypeDisplayName()
        The display name of the warning type
        Returns:
        the value
      • getTypeName

        public String getTypeName()
        The internal name of the warning
        Returns:
        the value
      • getSeverity

        public Integer getSeverity()
        The warning severity
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.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:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel