RepositoryAnalyticsDetails¶
-
class
oci.devops.models.
RepositoryAnalyticsDetails
(**kwargs)¶ Bases:
object
Details of the user configured settings for viewing the metrics.
Attributes
AGGREGATION_DURATION_DAILY
A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. AGGREGATION_DURATION_MONTHLY
A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. AGGREGATION_DURATION_WEEKLY
A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. AGGREGATION_DURATION_YEARLY
A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. GROUP_BY_AUTHOR
A constant which can be used with the group_by property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_COMMITS
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_LINES_ADDED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_LINES_DELETED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_APPROVED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_COMMENTS
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_CREATED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_DECLINED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_MERGED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_REVIEWED
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_REVIEW_DURATION_IN_DAYS
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. REPOSITORY_METRICS_PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS
A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. aggregation_duration
Gets the aggregation_duration of this RepositoryAnalyticsDetails. author_email
Gets the author_email of this RepositoryAnalyticsDetails. end_time
Gets the end_time of this RepositoryAnalyticsDetails. group_by
Gets the group_by of this RepositoryAnalyticsDetails. repository_metrics
[Required] Gets the repository_metrics of this RepositoryAnalyticsDetails. start_time
[Required] Gets the start_time of this RepositoryAnalyticsDetails. Methods
__init__
(**kwargs)Initializes a new RepositoryAnalyticsDetails object with values from keyword arguments. -
AGGREGATION_DURATION_DAILY
= 'DAILY'¶ A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. This constant has a value of “DAILY”
-
AGGREGATION_DURATION_MONTHLY
= 'MONTHLY'¶ A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. This constant has a value of “MONTHLY”
-
AGGREGATION_DURATION_WEEKLY
= 'WEEKLY'¶ A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. This constant has a value of “WEEKLY”
-
AGGREGATION_DURATION_YEARLY
= 'YEARLY'¶ A constant which can be used with the aggregation_duration property of a RepositoryAnalyticsDetails. This constant has a value of “YEARLY”
-
GROUP_BY_AUTHOR
= 'AUTHOR'¶ A constant which can be used with the group_by property of a RepositoryAnalyticsDetails. This constant has a value of “AUTHOR”
-
REPOSITORY_METRICS_COMMITS
= 'COMMITS'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “COMMITS”
-
REPOSITORY_METRICS_LINES_ADDED
= 'LINES_ADDED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “LINES_ADDED”
-
REPOSITORY_METRICS_LINES_DELETED
= 'LINES_DELETED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “LINES_DELETED”
-
REPOSITORY_METRICS_PULL_REQUEST_APPROVED
= 'PULL_REQUEST_APPROVED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_APPROVED”
-
REPOSITORY_METRICS_PULL_REQUEST_COMMENTS
= 'PULL_REQUEST_COMMENTS'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_COMMENTS”
-
REPOSITORY_METRICS_PULL_REQUEST_CREATED
= 'PULL_REQUEST_CREATED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_CREATED”
-
REPOSITORY_METRICS_PULL_REQUEST_DECLINED
= 'PULL_REQUEST_DECLINED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_DECLINED”
-
REPOSITORY_METRICS_PULL_REQUEST_MERGED
= 'PULL_REQUEST_MERGED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_MERGED”
-
REPOSITORY_METRICS_PULL_REQUEST_REVIEWED
= 'PULL_REQUEST_REVIEWED'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_REVIEWED”
-
REPOSITORY_METRICS_PULL_REQUEST_REVIEW_DURATION_IN_DAYS
= 'PULL_REQUEST_REVIEW_DURATION_IN_DAYS'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_REVIEW_DURATION_IN_DAYS”
-
REPOSITORY_METRICS_PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS
= 'PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS'¶ A constant which can be used with the repository_metrics property of a RepositoryAnalyticsDetails. This constant has a value of “PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS”
-
__init__
(**kwargs)¶ Initializes a new RepositoryAnalyticsDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - author_email (str) – The value to assign to the author_email property of this RepositoryAnalyticsDetails.
- repository_metrics (list[str]) – The value to assign to the repository_metrics property of this RepositoryAnalyticsDetails. Allowed values for items in this list are: “COMMITS”, “LINES_ADDED”, “LINES_DELETED”, “PULL_REQUEST_CREATED”, “PULL_REQUEST_MERGED”, “PULL_REQUEST_DECLINED”, “PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS”, “PULL_REQUEST_REVIEW_DURATION_IN_DAYS”, “PULL_REQUEST_APPROVED”, “PULL_REQUEST_REVIEWED”, “PULL_REQUEST_COMMENTS”
- aggregation_duration (str) – The value to assign to the aggregation_duration property of this RepositoryAnalyticsDetails. Allowed values for this property are: “DAILY”, “WEEKLY”, “MONTHLY”, “YEARLY”
- start_time (datetime) – The value to assign to the start_time property of this RepositoryAnalyticsDetails.
- end_time (datetime) – The value to assign to the end_time property of this RepositoryAnalyticsDetails.
- group_by (str) – The value to assign to the group_by property of this RepositoryAnalyticsDetails. Allowed values for this property are: “AUTHOR”
-
aggregation_duration
¶ Gets the aggregation_duration of this RepositoryAnalyticsDetails. Metrics aggregated for the defined period.
Allowed values for this property are: “DAILY”, “WEEKLY”, “MONTHLY”, “YEARLY”
Returns: The aggregation_duration of this RepositoryAnalyticsDetails. Return type: str
Gets the author_email of this RepositoryAnalyticsDetails. Email address of the author.
Returns: The author_email of this RepositoryAnalyticsDetails. Return type: str
-
end_time
¶ Gets the end_time of this RepositoryAnalyticsDetails. The end of the metric data query time range.
Returns: The end_time of this RepositoryAnalyticsDetails. Return type: datetime
-
group_by
¶ Gets the group_by of this RepositoryAnalyticsDetails. Attribute by which metric data has to be grouped
Allowed values for this property are: “AUTHOR”
Returns: The group_by of this RepositoryAnalyticsDetails. Return type: str
-
repository_metrics
¶ [Required] Gets the repository_metrics of this RepositoryAnalyticsDetails. The name of the metric to be filtered.
Allowed values for items in this list are: “COMMITS”, “LINES_ADDED”, “LINES_DELETED”, “PULL_REQUEST_CREATED”, “PULL_REQUEST_MERGED”, “PULL_REQUEST_DECLINED”, “PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS”, “PULL_REQUEST_REVIEW_DURATION_IN_DAYS”, “PULL_REQUEST_APPROVED”, “PULL_REQUEST_REVIEWED”, “PULL_REQUEST_COMMENTS”
Returns: The repository_metrics of this RepositoryAnalyticsDetails. Return type: list[str]
-
start_time
¶ [Required] Gets the start_time of this RepositoryAnalyticsDetails. The beginning of the metric data query time range.
Returns: The start_time of this RepositoryAnalyticsDetails. Return type: datetime
-