File tree Expand file tree Collapse file tree 5 files changed +52
-4
lines changed Expand file tree Collapse file tree 5 files changed +52
-4
lines changed Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change 1
1
import { Action } from '@stacksjs/actions'
2
- // import { Library } from '@stacksjs/orm'
2
+ // import { Request } from '@stacksjs/orm'
3
3
4
4
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 .' ,
7
7
apiResponse : true ,
8
8
9
9
async handle ( ) {
10
- // return Library.averageReleaseTime ()
10
+ // return Request.successRate ()
11
11
} ,
12
12
} )
You can’t perform that action at this time.
0 commit comments