Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions plugins/MicrosoftCopilot/v1/configValidation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"steps": [
{
"displayName": "Licence access",
"dataStream": {
"name": "validationLicences"
},
"required": true,
"success": "Successfully read licences.",
"error": "Cannot read licences. Check the tenant ID, client ID and secret, and grant the 'LicenseAssignment.Read.All' application permission in Microsoft Entra ID."
},
{
"displayName": "Usage report access",
"dataStream": {
"name": "validationUsageReports"
},
"required": false,
"success": "Successfully read Microsoft 365 Copilot usage reports.",
"error": "Cannot read Microsoft 365 Copilot usage reports. Grant the 'Reports.Read.All' application permission in Microsoft Entra ID."
},
{
"displayName": "Copilot Studio access",
"dataStream": {
"name": "validationPowerPlatform"
},
"required": false,
"success": "Successfully read Copilot Studio credit capacity.",
"error": "Cannot read Copilot Studio credit capacity. Register the app as a Power Platform management app, as described in the setup guide."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"displayName": "Agent is owned by Copilot User",
"source": {
"types": "Agent"
},
"target": {
"types": "User"
},
"conditions": [
{
"sourceProperty": "ownerIds",
"operator": "equals",
"targetProperty": "entraObjectId"
}
],
"labels": {
"forward": "is owned by",
"reverse": "owns"
}
}
23 changes: 23 additions & 0 deletions plugins/MicrosoftCopilot/v1/custom_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"name": "User",
"sourceType": "User",
"icon": "user",
"singular": "Copilot User",
"plural": "Copilot Users"
},
{
"name": "Environment",
"sourceType": "Environment",
"icon": "layer-group",
"singular": "Environment",
"plural": "Environments"
},
{
"name": "Agent",
"sourceType": "Agent",
"icon": "robot",
"singular": "Agent",
"plural": "Agents"
}
]
38 changes: 38 additions & 0 deletions plugins/MicrosoftCopilot/v1/dataStreams/adoptionSummary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "adoptionSummary",
"displayName": "Copilot Adoption",
"description": "Enabled and active Copilot users by app over the chosen period",
"tags": ["Adoption", "Usage"],
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"endpointPath": "beta/copilot/reports/getMicrosoft365CopilotUserCountSummary(period='{{period || 'D28'}}')",
"postRequestScript": "adoptionSummary.js"
},
"matches": "none",
"timeframes": false,
"ui": [
{
"type": "radio",
"name": "period",
"label": "Period",
"defaultValue": "D28",
"options": [
{ "value": "D7", "label": "7 days" },
{ "value": "D28", "label": "28 days" },
{ "value": "D90", "label": "90 days" },
{ "value": "D180", "label": "180 days" }
]
}
],
"metadata": [
{ "name": "app", "displayName": "App", "shape": "string", "role": "label" },
{ "name": "enabledUsers", "displayName": "Enabled users", "shape": "number" },
{ "name": "activeUsers", "displayName": "Active users", "shape": "number" },
{ "name": "activeRate", "displayName": "Active rate", "shape": ["percent", { "decimalPlaces": 1 }] },
{ "name": "totalPrompts", "displayName": "Total prompts", "shape": "number" },
{ "name": "averagePrompts", "displayName": "Average prompts per user", "shape": ["number", { "decimalPlaces": 1 }] },
{ "name": "periodDays", "displayName": "Period (days)", "shape": "number" },
{ "name": "reportRefreshDate", "displayName": "Report refresh date", "shape": "date" }
]
}
72 changes: 72 additions & 0 deletions plugins/MicrosoftCopilot/v1/dataStreams/adoptionTrend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"name": "adoptionTrend",
"displayName": "Copilot Adoption Trend",
"description": "Daily enabled and active Copilot users by app",
"tags": [
"Adoption",
"Usage"
],
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"endpointPath": "beta/copilot/reports/getMicrosoft365CopilotUserCountTrend(period='{{period || 'D28'}}')",
"postRequestScript": "adoptionTrend.js"
},
"matches": "none",
"timeframes": false,
"ui": [
{
"type": "radio",
"name": "period",
"label": "Period",
"defaultValue": "D28",
"options": [
{
"value": "D7",
"label": "7 days"
},
{
"value": "D28",
"label": "28 days"
},
{
"value": "D90",
"label": "90 days"
},
{
"value": "D180",
"label": "180 days"
}
]
}
],
"metadata": [
{
"name": "reportDate",
"displayName": "Date",
"shape": "date",
"role": "timestamp"
},
{
"name": "app",
"displayName": "App",
"shape": "string",
"role": "label"
},
{
"name": "enabledUsers",
"displayName": "Enabled users",
"shape": "number"
},
{
"name": "activeUsers",
"displayName": "Active users",
"shape": "number"
},
{
"name": "promptsSubmitted",
"displayName": "Prompts submitted",
"shape": "number"
}
]
}
103 changes: 103 additions & 0 deletions plugins/MicrosoftCopilot/v1/dataStreams/agentDetails.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"name": "agentDetails",
"displayName": "Agent Usage",
"description": "Active users, sessions, run time and exceptions over the last 30 days, last use and sharing for an agent in the Microsoft Agent 365 registry (needs Microsoft Agent 365)",
"tags": [
"Agents",
"Adoption"
],
"baseDataSourceName": "httpRequestScopedSingle",
"config": {
"httpMethod": "get",
"endpointPath": "v1.0/copilot/admin/catalog/packages/{{object.rawId}}",
"postRequestScript": "agentDetails.js"
},
"matches": {
"sourceType": {
"type": "oneOf",
"values": [
"Agent"
]
}
},
"timeframes": false,
"metadata": [
{
"name": "displayName",
"displayName": "Agent",
"shape": "string",
"role": "label"
},
{
"name": "activeUsers",
"displayName": "Active users (30 days)",
"shape": "number"
},
{
"name": "totalSessions",
"displayName": "Sessions (30 days)",
"shape": "number"
},
{
"name": "totalRunTimeInHours",
"displayName": "Run time, hours (30 days)",
"shape": [
"number",
{
"decimalPlaces": 1
}
]
},
{
"name": "lastUsedDateTime",
"displayName": "Last used",
"shape": "date"
},
{
"name": "daysSinceUsed",
"displayName": "Days since used",
"shape": "number"
},
{
"name": "exceptions",
"displayName": "Exceptions (30 days)",
"shape": "number"
},
{
"name": "sensitivity",
"displayName": "Sensitivity",
"shape": "string"
},
{
"name": "categories",
"displayName": "Categories",
"shape": [
"array",
{
"itemShape": "string"
}
]
},
{
"name": "sharedWithCount",
"displayName": "Shared with (users and groups)",
"shape": "number"
},
{
"name": "allowedCount",
"displayName": "Allowed users and groups",
"shape": "number"
},
{
"name": "longDescription",
"displayName": "Description",
"shape": "string"
},
{
"name": "id",
"displayName": "Package ID",
"shape": "string",
"visible": false
}
]
}
Loading
Loading