Enum MetricName

  • All Implemented Interfaces:
    BmcEnum, Serializable, Comparable<MetricName>

    @Generated(value="OracleSDKGenerator",
               comments="API Version: 20210630")
    public enum MetricName
    extends Enum<MetricName>
    implements BmcEnum
    The metric type: COMMITS - Represents the number of commits.

    LINES_ADDED - Represents the number of lines of code added. LINES_DELETED - Represents the number of lines of code deleted. PULL_REQUEST_CREATED - Represents the number of pull requests which is in created/ open state. PULL_REQUEST_MERGED - Represents the number of pull requests which is in merging/ merged state. PULL_REQUEST_DECLINED - Represents the number of pull requests which is in declined state. PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS - Represents the time from when a pull request is created to the first comment on the pull request. PULL_REQUEST_REVIEW_DURATION_IN_DAYS - Represents the time from the first comment on the pull request to when the pull request is merged or closed. PULL_REQUEST_APPROVED - Represents the number of pull requests which is approved by the user when the pull request is merged. PULL_REQUEST_REVIEWED - Represents the number of pull requests which has been commented on. PULL_REQUEST_COMMENTS - Represents the total number of comments given across different pull requests.

    • Enum Constant Detail

      • LinesAdded

        public static final MetricName LinesAdded
      • LinesDeleted

        public static final MetricName LinesDeleted
      • PullRequestCreated

        public static final MetricName PullRequestCreated
      • PullRequestMerged

        public static final MetricName PullRequestMerged
      • PullRequestDeclined

        public static final MetricName PullRequestDeclined
      • PullRequestReviewStartDurationInDays

        public static final MetricName PullRequestReviewStartDurationInDays
      • PullRequestReviewDurationInDays

        public static final MetricName PullRequestReviewDurationInDays
      • PullRequestApproved

        public static final MetricName PullRequestApproved
      • PullRequestReviewed

        public static final MetricName PullRequestReviewed
      • PullRequestComments

        public static final MetricName PullRequestComments
      • UnknownEnumValue

        public static final MetricName UnknownEnumValue
        This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
    • Method Detail

      • values

        public static MetricName[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MetricName c : MetricName.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MetricName valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null