@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 and Description |
---|
Commits |
LinesAdded |
LinesDeleted |
PullRequestApproved |
PullRequestComments |
PullRequestCreated |
PullRequestDeclined |
PullRequestMerged |
PullRequestReviewDurationInDays |
PullRequestReviewed |
PullRequestReviewStartDurationInDays |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this
version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static MetricName |
create(String key) |
String |
getValue() |
static MetricName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricName Commits
public static final MetricName LinesAdded
public static final MetricName LinesDeleted
public static final MetricName PullRequestCreated
public static final MetricName PullRequestMerged
public static final MetricName PullRequestDeclined
public static final MetricName PullRequestReviewStartDurationInDays
public static final MetricName PullRequestReviewDurationInDays
public static final MetricName PullRequestApproved
public static final MetricName PullRequestReviewed
public static final MetricName PullRequestComments
public static final MetricName UnknownEnumValue
public static MetricName[] values()
for (MetricName c : MetricName.values()) System.out.println(c);
public static MetricName valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MetricName create(String key)
Copyright © 2016–2024. All rights reserved.