pub struct CopilotUsageMetrics {
pub day: String,
pub total_suggestions_count: Option<i32>,
pub total_acceptances_count: Option<i32>,
pub total_lines_suggested: Option<i32>,
pub total_lines_accepted: Option<i32>,
pub total_active_users: Option<i32>,
pub total_chat_acceptances: Option<i32>,
pub total_chat_turns: Option<i32>,
pub total_active_chat_users: Option<i32>,
pub breakdown: Option<Vec<CopilotUsageMetricsBreakdownInner>>,
}
Expand description
CopilotUsageMetrics : Summary of Copilot usage.
Fields§
§day: String
The date for which the usage metrics are reported, in YYYY-MM-DD
format.
total_suggestions_count: Option<i32>
The total number of Copilot code completion suggestions shown to users.
total_acceptances_count: Option<i32>
The total number of Copilot code completion suggestions accepted by users.
total_lines_suggested: Option<i32>
The total number of lines of code completions suggested by Copilot.
total_lines_accepted: Option<i32>
The total number of lines of code completions accepted by users.
total_active_users: Option<i32>
The total number of users who were shown Copilot code completion suggestions during the day specified.
total_chat_acceptances: Option<i32>
The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).
total_chat_turns: Option<i32>
The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.
total_active_chat_users: Option<i32>
The total number of users who interacted with Copilot Chat in the IDE during the day specified.
breakdown: Option<Vec<CopilotUsageMetricsBreakdownInner>>
Breakdown of Copilot code completions usage by language and editor
Implementations§
Source§impl CopilotUsageMetrics
impl CopilotUsageMetrics
Sourcepub fn new(
day: String,
breakdown: Option<Vec<CopilotUsageMetricsBreakdownInner>>,
) -> CopilotUsageMetrics
pub fn new( day: String, breakdown: Option<Vec<CopilotUsageMetricsBreakdownInner>>, ) -> CopilotUsageMetrics
Summary of Copilot usage.
Trait Implementations§
Source§impl Clone for CopilotUsageMetrics
impl Clone for CopilotUsageMetrics
Source§fn clone(&self) -> CopilotUsageMetrics
fn clone(&self) -> CopilotUsageMetrics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more