Class LogAnalyticsWarning.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • agentId

        public LogAnalyticsWarning.Builder agentId​(String agentId)
        The unique identifier of the agent associated with the warning
        Parameters:
        agentId - the value to set
        Returns:
        this builder
      • hostName

        public LogAnalyticsWarning.Builder hostName​(String hostName)
        The host containing the agent associated with the warning
        Parameters:
        hostName - the value to set
        Returns:
        this builder
      • ruleDisplayName

        public LogAnalyticsWarning.Builder ruleDisplayName​(String ruleDisplayName)
        The display name of the rule which triggered the warning
        Parameters:
        ruleDisplayName - the value to set
        Returns:
        this builder
      • sourceName

        public LogAnalyticsWarning.Builder sourceName​(String sourceName)
        The name of the source associated with the warning
        Parameters:
        sourceName - the value to set
        Returns:
        this builder
      • compartmentId

        public LogAnalyticsWarning.Builder compartmentId​(String compartmentId)
        The entity compartment ID.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • sourceDisplayName

        public LogAnalyticsWarning.Builder sourceDisplayName​(String sourceDisplayName)
        The display name of the source associated with the warning
        Parameters:
        sourceDisplayName - the value to set
        Returns:
        this builder
      • entityName

        public LogAnalyticsWarning.Builder entityName​(String entityName)
        The name of the entity associated with the warning
        Parameters:
        entityName - the value to set
        Returns:
        this builder
      • timeCollected

        public LogAnalyticsWarning.Builder timeCollected​(Date timeCollected)
        The time at which the warning was most recently collected
        Parameters:
        timeCollected - the value to set
        Returns:
        this builder
      • warningId

        public LogAnalyticsWarning.Builder warningId​(String warningId)
        The unique identifier of the warning
        Parameters:
        warningId - the value to set
        Returns:
        this builder
      • timeOfInitialWarning

        public LogAnalyticsWarning.Builder timeOfInitialWarning​(Date timeOfInitialWarning)
        The date at which the warning was initially triggered
        Parameters:
        timeOfInitialWarning - the value to set
        Returns:
        this builder
      • isActive

        public LogAnalyticsWarning.Builder isActive​(Boolean isActive)
        A flag indicating if the warning is currently active
        Parameters:
        isActive - the value to set
        Returns:
        this builder
      • isSuppressed

        public LogAnalyticsWarning.Builder isSuppressed​(Boolean isSuppressed)
        A flag indicating if the warning is currently suppressed
        Parameters:
        isSuppressed - the value to set
        Returns:
        this builder
      • timeOfLatestWarning

        public LogAnalyticsWarning.Builder timeOfLatestWarning​(Date timeOfLatestWarning)
        The most recent date on which the warning was triggered
        Parameters:
        timeOfLatestWarning - the value to set
        Returns:
        this builder
      • warningLevel

        public LogAnalyticsWarning.Builder warningLevel​(String warningLevel)
        The warning level - either pattern, rule, or source.
        Parameters:
        warningLevel - the value to set
        Returns:
        this builder
      • warningMessage

        public LogAnalyticsWarning.Builder warningMessage​(String warningMessage)
        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

        Parameters:
        warningMessage - the value to set
        Returns:
        this builder
      • patternId

        public LogAnalyticsWarning.Builder patternId​(String patternId)
        The unique identifier of the warning pattern
        Parameters:
        patternId - the value to set
        Returns:
        this builder
      • patternText

        public LogAnalyticsWarning.Builder patternText​(String patternText)
        The text of the pattern used by the warning
        Parameters:
        patternText - the value to set
        Returns:
        this builder
      • ruleId

        public LogAnalyticsWarning.Builder ruleId​(String ruleId)
        The unique identifier of the rule associated with the warning
        Parameters:
        ruleId - the value to set
        Returns:
        this builder
      • sourceId

        public LogAnalyticsWarning.Builder sourceId​(String sourceId)
        The unique identifier of the source associated with the warning
        Parameters:
        sourceId - the value to set
        Returns:
        this builder
      • suppressedBy

        public LogAnalyticsWarning.Builder suppressedBy​(String suppressedBy)
        The user who suppressed the warning, or empty if the warning is not suppressed
        Parameters:
        suppressedBy - the value to set
        Returns:
        this builder
      • entityId

        public LogAnalyticsWarning.Builder entityId​(String entityId)
        The unique identifier of the entity associated with the warning
        Parameters:
        entityId - the value to set
        Returns:
        this builder
      • entityType

        public LogAnalyticsWarning.Builder entityType​(String entityType)
        The type of the entity associated with the warning
        Parameters:
        entityType - the value to set
        Returns:
        this builder
      • entityTypeDisplayName

        public LogAnalyticsWarning.Builder entityTypeDisplayName​(String entityTypeDisplayName)
        The display name of the entity type associated with the warning
        Parameters:
        entityTypeDisplayName - the value to set
        Returns:
        this builder
      • typeDisplayName

        public LogAnalyticsWarning.Builder typeDisplayName​(String typeDisplayName)
        The display name of the warning type
        Parameters:
        typeDisplayName - the value to set
        Returns:
        this builder
      • typeName

        public LogAnalyticsWarning.Builder typeName​(String typeName)
        The internal name of the warning
        Parameters:
        typeName - the value to set
        Returns:
        this builder