Skip to content

Commit 113b244

Browse files
committed
chore: wip
1 parent 384808e commit 113b244

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-4
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
import { Command } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetAverageCommandTime',
6+
description: 'Gets the average command time of your application.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Command.averageDuration()
11+
},
12+
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Command } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetCommandCount',
6+
description: 'Gets the total number of commands.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Command.count()
11+
},
12+
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Command } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetCommandSuccessRate',
6+
description: 'Gets the command success rate of your application.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Command.successRate()
11+
},
12+
})

app/Actions/Dashboard/GetCommands.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Command } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetCommands',
6+
description: 'Gets your application commands.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Command.all()
11+
},
12+
})
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Action } from '@stacksjs/actions'
2-
// import { Library } from '@stacksjs/orm'
2+
// import { Request } from '@stacksjs/orm'
33

44
export default new Action({
5-
name: 'GetAverageReleaseTime',
6-
description: 'Gets the average release time of your library.',
5+
name: 'GetRequestSuccessRate',
6+
description: 'Gets the request success rate of your application.',
77
apiResponse: true,
88

99
async handle() {
10-
// return Library.averageReleaseTime()
10+
// return Request.successRate()
1111
},
1212
})

0 commit comments

Comments
 (0)