Interface JobMessage


public interface JobMessage
A message logged against a job, optionally associated with subject entity such as a project, repository or pull request.
Since:
5.13
  • Method Details

    • getCreatedDate

      @Nonnull Instant getCreatedDate()
      Returns:
      when the message was created
    • getId

      long getId()
      Returns:
      the job message's ID
    • getJob

      @Nonnull Job getJob()
      Returns:
      the job this message relates to
    • getSeverity

      @Nonnull JobMessageSeverity getSeverity()
      Returns:
      the severity of the message
    • getSubject

      @Nonnull Optional<String> getSubject()
      Returns:
      an identifier or description of the subject the message relates to, or Optional.empty() if it's a job-level message
    • getText

      @Nonnull String getText()
      Returns:
      the string details of the message