Class LegacyMonitorData.LegacyJobInfoItemModel

  • Enclosing class:
    LegacyMonitorData

    @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public static class LegacyMonitorData.LegacyJobInfoItemModel
    extends Object
    For Jelly display only Holds information of the job and builds that would fail in Production mode.
    • Constructor Detail

      • LegacyJobInfoItemModel

        public LegacyJobInfoItemModel​(@NonNull
                                      LegacyMonitorData.JobInfoModel jobTo,
                                      @NonNull
                                      String username,
                                      @NonNull
                                      Date lastBuildDate,
                                      int numOfBuild)
        ctor.
        Parameters:
        jobTo - the information of the destination job.
        username - the user name the destination job ran as.
        lastBuildDate - the build timestamp.
        numOfBuild - the number of builds that would fail in Production mode.
    • Method Detail

      • getUsername

        @NonNull
        public String getUsername()
        Returns:
        the user name the destination job ran as.
      • getLastBuildDate

        @NonNull
        public Date getLastBuildDate()
        Returns:
        the build timestamp.
      • getNumOfBuild

        public int getNumOfBuild()
        Returns:
        the number of builds that would fail in Production mode.