settings for metrics
This commit is contained in:
@@ -10,7 +10,7 @@ import { AssetEntity, AssetType } from '../entities';
|
||||
@Injectable()
|
||||
export class MetricsRepository implements IMetricsRepository {
|
||||
constructor(@InjectRepository(AssetEntity) private assetRepository: Repository<AssetEntity>) {}
|
||||
async sendMetrics(payload: MetricsDto): Promise<void> {
|
||||
async sendMetrics(payload: Partial<MetricsDto>): Promise<void> {
|
||||
await axios.post('IMMICH-DATA-DOMAIN', payload);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export class MetricsRepository implements IMetricsRepository {
|
||||
return os.cpus()[0].model;
|
||||
}
|
||||
|
||||
getMemoryCount() {
|
||||
getMemory() {
|
||||
return os.totalmem();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user