import { Controller, Get, UseGuards } from '@nestjs/common';
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
import { SuperAdminJwtAuthGuard } from '../../common/guards/super-admin-jwt-auth.guard';
import { MetricsService } from './metrics.service';

@ApiTags('Operations')
@ApiBearerAuth()
@UseGuards(SuperAdminJwtAuthGuard)
@Controller('internal/metrics')
export class MetricsController {
  constructor(private readonly metrics: MetricsService) {}

  @Get()
  getMetrics() {
    return this.metrics.snapshot();
  }
}
