Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Golden files
  • Loading branch information
mtojek committed Sep 26, 2023
commit c48684cc6eb598a3294dd4b92bfd3eb9af6161d8
747 changes: 746 additions & 1 deletion coderd/insights_test.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"report": {
"start_time": "2023-08-01T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000002"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 32400
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note-to-self: At first I thought this looked off, comparing the template golden file for the same setup, but upon verifying with the data it looks good, there is indeed 9h of distinct usage. 👍🏻

}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"report": {
"start_time": "2023-08-15T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 3600
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"user_id": "cdb811f8-93c2-443a-8266-4d47b55f4094",
"username": "user3",
"avatar_url": "",
"seconds": 4200
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 30540
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"report": {
"start_time": "2023-08-15T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 3600
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"user_id": "cdb811f8-93c2-443a-8266-4d47b55f4094",
"username": "user3",
"avatar_url": "",
"seconds": 4200
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 30540
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"report": {
"start_time": "2023-08-15T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 3600
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 5340
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"report": {
"start_time": "2023-08-15T00:00:00-03:00",
"end_time": "2023-08-22T00:00:00-03:00",
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 3600
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"user_id": "cdb811f8-93c2-443a-8266-4d47b55f4094",
"username": "user3",
"avatar_url": "",
"seconds": 600
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 23280
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"report": {
"start_time": "2023-08-15T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000002"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 25200
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"report": {
"start_time": "2023-08-15T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"user_id": "cdb811f8-93c2-443a-8266-4d47b55f4094",
"username": "user3",
"avatar_url": "",
"seconds": 4200
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"report": {
"start_time": "2023-08-12T00:00:00Z",
"end_time": "2023-08-19T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 7200
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"user_id": "cdb811f8-93c2-443a-8266-4d47b55f4094",
"username": "user3",
"avatar_url": "",
"seconds": 4200
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 29820
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"report": {
"start_time": "2023-08-15T00:00:00Z",
"end_time": "2023-08-22T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 3600
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 5340
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"report": {
"start_time": "2023-08-14T00:00:00Z",
"end_time": "2023-08-21T00:00:00Z",
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
],
"users": [
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
],
"user_id": "31972c11-d06a-44e5-ace7-d95192eaa8d6",
"username": "user2",
"avatar_url": "",
"seconds": 7200
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
],
"user_id": "cdb811f8-93c2-443a-8266-4d47b55f4094",
"username": "user3",
"avatar_url": "",
"seconds": 4200
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
],
"user_id": "e114f18f-4e75-4533-bfe2-cb8acbad7563",
"username": "user1",
"avatar_url": "",
"seconds": 29820
}
]
}
}