File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
apps/sim/app/api/tools/cloudwatch Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ import { createLogger } from '@sim/logger'
22import { type NextRequest , NextResponse } from 'next/server'
33import { z } from 'zod'
44import { checkSessionOrInternalAuth } from '@/lib/auth/hybrid'
5+ import { createCloudWatchLogsClient , describeLogStreams } from '@/app/api/tools/cloudwatch/utils'
56
67const logger = createLogger ( 'CloudWatchDescribeLogStreams' )
78
8- import { createCloudWatchLogsClient , describeLogStreams } from '@/app/api/tools/cloudwatch/utils'
9-
109const DescribeLogStreamsSchema = z . object ( {
1110 region : z . string ( ) . min ( 1 , 'AWS region is required' ) ,
1211 accessKeyId : z . string ( ) . min ( 1 , 'AWS access key ID is required' ) ,
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ import { createLogger } from '@sim/logger'
22import { type NextRequest , NextResponse } from 'next/server'
33import { z } from 'zod'
44import { checkInternalAuth } from '@/lib/auth/hybrid'
5+ import { createCloudWatchLogsClient , getLogEvents } from '@/app/api/tools/cloudwatch/utils'
56
67const logger = createLogger ( 'CloudWatchGetLogEvents' )
78
8- import { createCloudWatchLogsClient , getLogEvents } from '@/app/api/tools/cloudwatch/utils'
9-
109const GetLogEventsSchema = z . object ( {
1110 region : z . string ( ) . min ( 1 , 'AWS region is required' ) ,
1211 accessKeyId : z . string ( ) . min ( 1 , 'AWS access key ID is required' ) ,
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ import { createLogger } from '@sim/logger'
33import { type NextRequest , NextResponse } from 'next/server'
44import { z } from 'zod'
55import { checkInternalAuth } from '@/lib/auth/hybrid'
6+ import { createCloudWatchLogsClient , pollQueryResults } from '@/app/api/tools/cloudwatch/utils'
67
78const logger = createLogger ( 'CloudWatchQueryLogs' )
89
9- import { createCloudWatchLogsClient , pollQueryResults } from '@/app/api/tools/cloudwatch/utils'
10-
1110const QueryLogsSchema = z . object ( {
1211 region : z . string ( ) . min ( 1 , 'AWS region is required' ) ,
1312 accessKeyId : z . string ( ) . min ( 1 , 'AWS access key ID is required' ) ,
You can’t perform that action at this time.
0 commit comments