Class: Athenian::PullRequestMetricID
- Inherits:
-
Object
- Object
- Athenian::PullRequestMetricID
- Defined in:
- lib/athenian/models/pull_request_metric_id.rb
Constant Summary collapse
- WIP_TIME =
'pr-wip-time'.freeze
- WIP_TIME_BELOW_THRESHOLD_RATIO =
'pr-wip-time-below-threshold-ratio'.freeze
- WIP_COUNT =
'pr-wip-count'.freeze
- WIP_COUNT_Q =
'pr-wip-count-q'.freeze
- REVIEW_TIME =
'pr-review-time'.freeze
- REVIEW_COUNT =
'pr-review-count'.freeze
- REVIEW_COUNT_Q =
'pr-review-count-q'.freeze
- REVIEW_TIME_BELOW_THRESHOLD_RATIO =
'pr-review-time-below-threshold-ratio'.freeze
- MERGING_TIME =
'pr-merging-time'.freeze
- MERGING_TIME_BELOW_THRESHOLD_RATIO =
'pr-merging-time-below-threshold-ratio'.freeze
- MERGING_COUNT =
'pr-merging-count'.freeze
- MERGING_COUNT_Q =
'pr-merging-count-q'.freeze
- RELEASE_TIME =
'pr-release-time'.freeze
- RELEASE_COUNT =
'pr-release-count'.freeze
- RELEASE_COUNT_Q =
'pr-release-count-q'.freeze
- OPEN_TIME =
'pr-open-time'.freeze
- OPEN_COUNT =
'pr-open-count'.freeze
- OPEN_COUNT_Q =
'pr-open-count-q'.freeze
- OPEN_TIME_BELOW_THRESHOLD_RATIO =
'pr-open-time-below-threshold-ratio'.freeze
- LEAD_TIME =
'pr-lead-time'.freeze
- LEAD_TIME_BELOW_THRESHOLD_RATIO =
'pr-lead-time-below-threshold-ratio'.freeze
- LEAD_COUNT =
'pr-lead-count'.freeze
- LEAD_COUNT_Q =
'pr-lead-count-q'.freeze
- CYCLE_TIME =
'pr-cycle-time'.freeze
- CYCLE_TIME_BELOW_THRESHOLD_RATIO =
'pr-cycle-time-below-threshold-ratio'.freeze
- CYCLE_COUNT =
'pr-cycle-count'.freeze
- CYCLE_COUNT_Q =
'pr-cycle-count-q'.freeze
- LIVE_CYCLE_TIME =
'pr-live-cycle-time'.freeze
- LIVE_CYCLE_COUNT =
'pr-live-cycle-count'.freeze
- LIVE_CYCLE_COUNT_Q =
'pr-live-cycle-count-q'.freeze
- ALL_COUNT =
'pr-all-count'.freeze
- WAIT_FIRST_REVIEW_TIME =
'pr-wait-first-review-time'.freeze
- WAIT_FIRST_REVIEW_COUNT =
'pr-wait-first-review-count'.freeze
- WAIT_FIRST_REVIEW_COUNT_Q =
'pr-wait-first-review-count-q'.freeze
- WAIT_FIRST_REVIEW_TIME_BELOW_THRESHOLD_RATIO =
'pr-wait-first-review-time-below-threshold-ratio'.freeze
- DEPLOYMENT_TIME =
'pr-deployment-time'.freeze
- DEPLOYMENT_COUNT =
'pr-deployment-count'.freeze
- DEPLOYMENT_COUNT_Q =
'pr-deployment-count-q'.freeze
- LEAD_DEPLOYMENT_TIME =
'pr-lead-deployment-time'.freeze
- LEAD_DEPLOYMENT_COUNT =
'pr-lead-deployment-count'.freeze
- LEAD_DEPLOYMENT_COUNT_Q =
'pr-lead-deployment-count-q'.freeze
- CYCLE_DEPLOYMENT_TIME =
'pr-cycle-deployment-time'.freeze
- CYCLE_DEPLOYMENT_COUNT =
'pr-cycle-deployment-count'.freeze
- CYCLE_DEPLOYMENT_COUNT_Q =
'pr-cycle-deployment-count-q'.freeze
- CYCLE_DEPLOYMENT_TIME_BELOW_THRESHOLD_RATIO =
'pr-cycle-deployment-time-below-threshold-ratio'.freeze
- FLOW_RATIO =
'pr-flow-ratio'.freeze
- OPENED =
'pr-opened'.freeze
- REVIEWED =
'pr-reviewed'.freeze
- REVIEWED_CLOSED =
'pr-reviewed-closed'.freeze
- NOT_REVIEWED =
'pr-not-reviewed'.freeze
- REVIEWED_RATIO =
'pr-reviewed-ratio'.freeze
- MERGED =
'pr-merged'.freeze
- REJECTED =
'pr-rejected'.freeze
- CLOSED =
'pr-closed'.freeze
- DONE =
'pr-done'.freeze
- SIZE =
'pr-size'.freeze
- SIZE_BELOW_THRESHOLD_RATIO =
'pr-size-below-threshold-ratio'.freeze
- MEDIAN_SIZE =
'pr-median-size'.freeze
- WIP_PENDING_COUNT =
'pr-wip-pending-count'.freeze
- REVIEW_PENDING_COUNT =
'pr-review-pending-count'.freeze
- MERGING_PENDING_COUNT =
'pr-merging-pending-count'.freeze
- RELEASE_PENDING_COUNT =
'pr-release-pending-count'.freeze
- OPENED_MAPPED_TO_JIRA =
'pr-opened-mapped-to-jira'.freeze
- DONE_MAPPED_TO_JIRA =
'pr-done-mapped-to-jira'.freeze
- ALL_MAPPED_TO_JIRA =
'pr-all-mapped-to-jira'.freeze
- PARTICIPANTS_PER =
'pr-participants-per'.freeze
- REVIEW_COMMENTS_PER =
'pr-review-comments-per'.freeze
- REVIEW_COMMENTS_PER_ABOVE_THRESHOLD_RATIO =
'pr-review-comments-per-above-threshold-ratio'.freeze
- REVIEWS_PER =
'pr-reviews-per'.freeze
- COMMENTS_PER =
'pr-comments-per'.freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
.build_from_hash(value) ⇒ String
Builds the enum from string
93 94 95 |
# File 'lib/athenian/models/pull_request_metric_id.rb', line 93 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
100 101 102 103 |
# File 'lib/athenian/models/pull_request_metric_id.rb', line 100 def build_from_hash(value) return value if PullRequestMetricID.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #PullRequestMetricID" end |