File

src/models/entities/model.entity.ts

Index

Properties

Constructor

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

Properties

Optional authInfo
Type : any
Optional createdAt
Type : Date
Decorators :
@Exclude()
id
Type : number
Optional lastSeenAt
Type : Date
Optional lastSyncedAt
Type : Date
metricType
Type : string
Optional modelUrl
Type : string
name
Type : string
projectID
Type : number
provider
Type : string
slug
Type : string
Decorators :
@Exclude()
status
Type : string
Optional updatedAt
Type : Date
Decorators :
@Exclude()
import { Exclude } from "class-transformer";

export class Model {
  id: number;
  projectID: number;
  name: string;
  status: string;
  modelUrl?: string;
  authInfo?: any;
  provider: string;
  metricType: string;
  lastSeenAt?: Date;
  lastSyncedAt?: Date;

  @Exclude()
  slug: string;

  @Exclude()
  createdAt?: Date;

  @Exclude()
  updatedAt?: Date;

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

export enum ModelStatus {
  ACTIVE = "ACTIVE",
  DELETED = "DELETED",
}

export enum ModelProvider {
  OPENTELEMETRY = "OPENTELEMETRY",
  MLFLOW = "MLFLOW",
}

export enum MetricType {
  MODEL_PERFORMANCE = "MODEL_PERFORMANCE",
  BUSINESS = "BUSINESS",
}

results matching ""

    No results matching ""