File

src/metrics/entities/metrics.entity.ts

Index

Properties

Constructor

constructor(partial: Partial<Metrics>)
Parameters :
Name Type Optional
partial Partial<Metrics> No

Properties

description
Type : string | null
id
Type : number
name
Type : string
projectId
Type : number
sourceId
Type : number
sourceType
Type : string
status
Type : string
timestamp
Type : Date
trend
Type : MetricTrend | null
trendValue
Type : number | null
type
Type : string
value
Type : number
export class Metrics {
  id: number;
  projectId: number;
  name: string;
  type: string;
  value: number;
  description: string | null;
  trend: MetricTrend | null;
  trendValue: number | null;
  timestamp: Date;
  sourceId: number;
  sourceType: string;
  status: string;

  constructor(partial: Partial<Metrics>) {
    Object.assign(this, partial);
  }
}

export enum MetricStatus {
  ACTIVE = "ACTIVE",
  DELETED = "DELETED",
  ARCHIVED = "ARCHIVED",
}

export enum MetricSources {
  MODEL = "MODEL",
}

export enum MetricTrend {
  INCREASE_POSITIVE = "INCREASE_POSITIVE",
  DECREASE_POSITIVE = "DECREASE_POSITIVE",
}

results matching ""

    No results matching ""