1321 lines
47 KiB
TypeScript
1321 lines
47 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `ServerNodeHistory` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model ServerNodeHistory
|
|
*
|
|
*/
|
|
export type ServerNodeHistoryModel = runtime.Types.Result.DefaultSelection<Prisma.$ServerNodeHistoryPayload>
|
|
|
|
export type AggregateServerNodeHistory = {
|
|
_count: ServerNodeHistoryCountAggregateOutputType | null
|
|
_avg: ServerNodeHistoryAvgAggregateOutputType | null
|
|
_sum: ServerNodeHistorySumAggregateOutputType | null
|
|
_min: ServerNodeHistoryMinAggregateOutputType | null
|
|
_max: ServerNodeHistoryMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ServerNodeHistoryAvgAggregateOutputType = {
|
|
id: number | null
|
|
cpu: number | null
|
|
ram: number | null
|
|
load: number | null
|
|
disk: number | null
|
|
netIn: number | null
|
|
netOut: number | null
|
|
process: number | null
|
|
connections: number | null
|
|
}
|
|
|
|
export type ServerNodeHistorySumAggregateOutputType = {
|
|
id: number | null
|
|
cpu: number | null
|
|
ram: bigint | null
|
|
load: number | null
|
|
disk: bigint | null
|
|
netIn: bigint | null
|
|
netOut: bigint | null
|
|
process: number | null
|
|
connections: number | null
|
|
}
|
|
|
|
export type ServerNodeHistoryMinAggregateOutputType = {
|
|
id: number | null
|
|
uuid: string | null
|
|
period: Date | null
|
|
cpu: number | null
|
|
ram: bigint | null
|
|
load: number | null
|
|
disk: bigint | null
|
|
netIn: bigint | null
|
|
netOut: bigint | null
|
|
process: number | null
|
|
connections: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type ServerNodeHistoryMaxAggregateOutputType = {
|
|
id: number | null
|
|
uuid: string | null
|
|
period: Date | null
|
|
cpu: number | null
|
|
ram: bigint | null
|
|
load: number | null
|
|
disk: bigint | null
|
|
netIn: bigint | null
|
|
netOut: bigint | null
|
|
process: number | null
|
|
connections: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type ServerNodeHistoryCountAggregateOutputType = {
|
|
id: number
|
|
uuid: number
|
|
period: number
|
|
cpu: number
|
|
ram: number
|
|
load: number
|
|
disk: number
|
|
netIn: number
|
|
netOut: number
|
|
process: number
|
|
connections: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ServerNodeHistoryAvgAggregateInputType = {
|
|
id?: true
|
|
cpu?: true
|
|
ram?: true
|
|
load?: true
|
|
disk?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
process?: true
|
|
connections?: true
|
|
}
|
|
|
|
export type ServerNodeHistorySumAggregateInputType = {
|
|
id?: true
|
|
cpu?: true
|
|
ram?: true
|
|
load?: true
|
|
disk?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
process?: true
|
|
connections?: true
|
|
}
|
|
|
|
export type ServerNodeHistoryMinAggregateInputType = {
|
|
id?: true
|
|
uuid?: true
|
|
period?: true
|
|
cpu?: true
|
|
ram?: true
|
|
load?: true
|
|
disk?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
process?: true
|
|
connections?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type ServerNodeHistoryMaxAggregateInputType = {
|
|
id?: true
|
|
uuid?: true
|
|
period?: true
|
|
cpu?: true
|
|
ram?: true
|
|
load?: true
|
|
disk?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
process?: true
|
|
connections?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type ServerNodeHistoryCountAggregateInputType = {
|
|
id?: true
|
|
uuid?: true
|
|
period?: true
|
|
cpu?: true
|
|
ram?: true
|
|
load?: true
|
|
disk?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
process?: true
|
|
connections?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ServerNodeHistoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ServerNodeHistory to aggregate.
|
|
*/
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodeHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodeHistories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ServerNodeHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ServerNodeHistories
|
|
**/
|
|
_count?: true | ServerNodeHistoryCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ServerNodeHistoryAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ServerNodeHistorySumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ServerNodeHistoryMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ServerNodeHistoryMaxAggregateInputType
|
|
}
|
|
|
|
export type GetServerNodeHistoryAggregateType<T extends ServerNodeHistoryAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateServerNodeHistory]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateServerNodeHistory[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateServerNodeHistory[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ServerNodeHistoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
orderBy?: Prisma.ServerNodeHistoryOrderByWithAggregationInput | Prisma.ServerNodeHistoryOrderByWithAggregationInput[]
|
|
by: Prisma.ServerNodeHistoryScalarFieldEnum[] | Prisma.ServerNodeHistoryScalarFieldEnum
|
|
having?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ServerNodeHistoryCountAggregateInputType | true
|
|
_avg?: ServerNodeHistoryAvgAggregateInputType
|
|
_sum?: ServerNodeHistorySumAggregateInputType
|
|
_min?: ServerNodeHistoryMinAggregateInputType
|
|
_max?: ServerNodeHistoryMaxAggregateInputType
|
|
}
|
|
|
|
export type ServerNodeHistoryGroupByOutputType = {
|
|
id: number
|
|
uuid: string
|
|
period: Date
|
|
cpu: number
|
|
ram: bigint
|
|
load: number
|
|
disk: bigint
|
|
netIn: bigint
|
|
netOut: bigint
|
|
process: number
|
|
connections: number
|
|
createdAt: Date
|
|
_count: ServerNodeHistoryCountAggregateOutputType | null
|
|
_avg: ServerNodeHistoryAvgAggregateOutputType | null
|
|
_sum: ServerNodeHistorySumAggregateOutputType | null
|
|
_min: ServerNodeHistoryMinAggregateOutputType | null
|
|
_max: ServerNodeHistoryMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetServerNodeHistoryGroupByPayload<T extends ServerNodeHistoryGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ServerNodeHistoryGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ServerNodeHistoryGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ServerNodeHistoryGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ServerNodeHistoryGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ServerNodeHistoryWhereInput = {
|
|
AND?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[]
|
|
OR?: Prisma.ServerNodeHistoryWhereInput[]
|
|
NOT?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[]
|
|
id?: Prisma.IntFilter<"ServerNodeHistory"> | number
|
|
uuid?: Prisma.StringFilter<"ServerNodeHistory"> | string
|
|
period?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string
|
|
cpu?: Prisma.FloatFilter<"ServerNodeHistory"> | number
|
|
ram?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
load?: Prisma.FloatFilter<"ServerNodeHistory"> | number
|
|
disk?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
netIn?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
netOut?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
process?: Prisma.IntFilter<"ServerNodeHistory"> | number
|
|
connections?: Prisma.IntFilter<"ServerNodeHistory"> | number
|
|
createdAt?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
period?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
_relevance?: Prisma.ServerNodeHistoryOrderByRelevanceInput
|
|
}
|
|
|
|
export type ServerNodeHistoryWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
uuid_period?: Prisma.ServerNodeHistoryUuidPeriodCompoundUniqueInput
|
|
AND?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[]
|
|
OR?: Prisma.ServerNodeHistoryWhereInput[]
|
|
NOT?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[]
|
|
uuid?: Prisma.StringFilter<"ServerNodeHistory"> | string
|
|
period?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string
|
|
cpu?: Prisma.FloatFilter<"ServerNodeHistory"> | number
|
|
ram?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
load?: Prisma.FloatFilter<"ServerNodeHistory"> | number
|
|
disk?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
netIn?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
netOut?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number
|
|
process?: Prisma.IntFilter<"ServerNodeHistory"> | number
|
|
connections?: Prisma.IntFilter<"ServerNodeHistory"> | number
|
|
createdAt?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string
|
|
}, "id" | "uuid_period">
|
|
|
|
export type ServerNodeHistoryOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
period?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
_count?: Prisma.ServerNodeHistoryCountOrderByAggregateInput
|
|
_avg?: Prisma.ServerNodeHistoryAvgOrderByAggregateInput
|
|
_max?: Prisma.ServerNodeHistoryMaxOrderByAggregateInput
|
|
_min?: Prisma.ServerNodeHistoryMinOrderByAggregateInput
|
|
_sum?: Prisma.ServerNodeHistorySumOrderByAggregateInput
|
|
}
|
|
|
|
export type ServerNodeHistoryScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput | Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput | Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"ServerNodeHistory"> | number
|
|
uuid?: Prisma.StringWithAggregatesFilter<"ServerNodeHistory"> | string
|
|
period?: Prisma.DateTimeWithAggregatesFilter<"ServerNodeHistory"> | Date | string
|
|
cpu?: Prisma.FloatWithAggregatesFilter<"ServerNodeHistory"> | number
|
|
ram?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number
|
|
load?: Prisma.FloatWithAggregatesFilter<"ServerNodeHistory"> | number
|
|
disk?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number
|
|
netIn?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number
|
|
netOut?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number
|
|
process?: Prisma.IntWithAggregatesFilter<"ServerNodeHistory"> | number
|
|
connections?: Prisma.IntWithAggregatesFilter<"ServerNodeHistory"> | number
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ServerNodeHistory"> | Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryCreateInput = {
|
|
uuid: string
|
|
period: Date | string
|
|
cpu?: number
|
|
ram?: bigint | number
|
|
load?: number
|
|
disk?: bigint | number
|
|
netIn?: bigint | number
|
|
netOut?: bigint | number
|
|
process?: number
|
|
connections?: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryUncheckedCreateInput = {
|
|
id?: number
|
|
uuid: string
|
|
period: Date | string
|
|
cpu?: number
|
|
ram?: bigint | number
|
|
load?: number
|
|
disk?: bigint | number
|
|
netIn?: bigint | number
|
|
netOut?: bigint | number
|
|
process?: number
|
|
connections?: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryUpdateInput = {
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
cpu?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
cpu?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryCreateManyInput = {
|
|
id?: number
|
|
uuid: string
|
|
period: Date | string
|
|
cpu?: number
|
|
ram?: bigint | number
|
|
load?: number
|
|
disk?: bigint | number
|
|
netIn?: bigint | number
|
|
netOut?: bigint | number
|
|
process?: number
|
|
connections?: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryUpdateManyMutationInput = {
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
cpu?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
cpu?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryOrderByRelevanceInput = {
|
|
fields: Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum | Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type ServerNodeHistoryUuidPeriodCompoundUniqueInput = {
|
|
uuid: string
|
|
period: Date | string
|
|
}
|
|
|
|
export type ServerNodeHistoryCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
period?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeHistoryAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeHistoryMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
period?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeHistoryMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
period?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeHistorySumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
cpu?: Prisma.SortOrder
|
|
ram?: Prisma.SortOrder
|
|
load?: Prisma.SortOrder
|
|
disk?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type ServerNodeHistorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
uuid?: boolean
|
|
period?: boolean
|
|
cpu?: boolean
|
|
ram?: boolean
|
|
load?: boolean
|
|
disk?: boolean
|
|
netIn?: boolean
|
|
netOut?: boolean
|
|
process?: boolean
|
|
connections?: boolean
|
|
createdAt?: boolean
|
|
}, ExtArgs["result"]["serverNodeHistory"]>
|
|
|
|
|
|
|
|
export type ServerNodeHistorySelectScalar = {
|
|
id?: boolean
|
|
uuid?: boolean
|
|
period?: boolean
|
|
cpu?: boolean
|
|
ram?: boolean
|
|
load?: boolean
|
|
disk?: boolean
|
|
netIn?: boolean
|
|
netOut?: boolean
|
|
process?: boolean
|
|
connections?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type ServerNodeHistoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "period" | "cpu" | "ram" | "load" | "disk" | "netIn" | "netOut" | "process" | "connections" | "createdAt", ExtArgs["result"]["serverNodeHistory"]>
|
|
|
|
export type $ServerNodeHistoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "ServerNodeHistory"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
uuid: string
|
|
period: Date
|
|
cpu: number
|
|
ram: bigint
|
|
load: number
|
|
disk: bigint
|
|
netIn: bigint
|
|
netOut: bigint
|
|
process: number
|
|
connections: number
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["serverNodeHistory"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ServerNodeHistoryGetPayload<S extends boolean | null | undefined | ServerNodeHistoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload, S>
|
|
|
|
export type ServerNodeHistoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ServerNodeHistoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ServerNodeHistoryCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ServerNodeHistory'], meta: { name: 'ServerNodeHistory' } }
|
|
/**
|
|
* Find zero or one ServerNodeHistory that matches the filter.
|
|
* @param {ServerNodeHistoryFindUniqueArgs} args - Arguments to find a ServerNodeHistory
|
|
* @example
|
|
* // Get one ServerNodeHistory
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ServerNodeHistoryFindUniqueArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one ServerNodeHistory that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ServerNodeHistoryFindUniqueOrThrowArgs} args - Arguments to find a ServerNodeHistory
|
|
* @example
|
|
* // Get one ServerNodeHistory
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ServerNodeHistoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ServerNodeHistory that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryFindFirstArgs} args - Arguments to find a ServerNodeHistory
|
|
* @example
|
|
* // Get one ServerNodeHistory
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ServerNodeHistoryFindFirstArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ServerNodeHistory that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryFindFirstOrThrowArgs} args - Arguments to find a ServerNodeHistory
|
|
* @example
|
|
* // Get one ServerNodeHistory
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ServerNodeHistoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more ServerNodeHistories that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ServerNodeHistories
|
|
* const serverNodeHistories = await prisma.serverNodeHistory.findMany()
|
|
*
|
|
* // Get first 10 ServerNodeHistories
|
|
* const serverNodeHistories = await prisma.serverNodeHistory.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ServerNodeHistoryFindManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a ServerNodeHistory.
|
|
* @param {ServerNodeHistoryCreateArgs} args - Arguments to create a ServerNodeHistory.
|
|
* @example
|
|
* // Create one ServerNodeHistory
|
|
* const ServerNodeHistory = await prisma.serverNodeHistory.create({
|
|
* data: {
|
|
* // ... data to create a ServerNodeHistory
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ServerNodeHistoryCreateArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryCreateArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many ServerNodeHistories.
|
|
* @param {ServerNodeHistoryCreateManyArgs} args - Arguments to create many ServerNodeHistories.
|
|
* @example
|
|
* // Create many ServerNodeHistories
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ServerNodeHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a ServerNodeHistory.
|
|
* @param {ServerNodeHistoryDeleteArgs} args - Arguments to delete one ServerNodeHistory.
|
|
* @example
|
|
* // Delete one ServerNodeHistory
|
|
* const ServerNodeHistory = await prisma.serverNodeHistory.delete({
|
|
* where: {
|
|
* // ... filter to delete one ServerNodeHistory
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ServerNodeHistoryDeleteArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryDeleteArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one ServerNodeHistory.
|
|
* @param {ServerNodeHistoryUpdateArgs} args - Arguments to update one ServerNodeHistory.
|
|
* @example
|
|
* // Update one ServerNodeHistory
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ServerNodeHistoryUpdateArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more ServerNodeHistories.
|
|
* @param {ServerNodeHistoryDeleteManyArgs} args - Arguments to filter ServerNodeHistories to delete.
|
|
* @example
|
|
* // Delete a few ServerNodeHistories
|
|
* const { count } = await prisma.serverNodeHistory.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ServerNodeHistoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ServerNodeHistories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ServerNodeHistories
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ServerNodeHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ServerNodeHistory.
|
|
* @param {ServerNodeHistoryUpsertArgs} args - Arguments to update or create a ServerNodeHistory.
|
|
* @example
|
|
* // Update or create a ServerNodeHistory
|
|
* const serverNodeHistory = await prisma.serverNodeHistory.upsert({
|
|
* create: {
|
|
* // ... data to create a ServerNodeHistory
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ServerNodeHistory we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ServerNodeHistoryUpsertArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpsertArgs<ExtArgs>>): Prisma.Prisma__ServerNodeHistoryClient<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of ServerNodeHistories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryCountArgs} args - Arguments to filter ServerNodeHistories to count.
|
|
* @example
|
|
* // Count the number of ServerNodeHistories
|
|
* const count = await prisma.serverNodeHistory.count({
|
|
* where: {
|
|
* // ... the filter for the ServerNodeHistories we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ServerNodeHistoryCountArgs>(
|
|
args?: Prisma.Subset<T, ServerNodeHistoryCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ServerNodeHistoryCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ServerNodeHistory.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ServerNodeHistoryAggregateArgs>(args: Prisma.Subset<T, ServerNodeHistoryAggregateArgs>): Prisma.PrismaPromise<GetServerNodeHistoryAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ServerNodeHistory.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeHistoryGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ServerNodeHistoryGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ServerNodeHistoryGroupByArgs['orderBy'] }
|
|
: { orderBy?: ServerNodeHistoryGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, ServerNodeHistoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetServerNodeHistoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ServerNodeHistory model
|
|
*/
|
|
readonly fields: ServerNodeHistoryFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ServerNodeHistory.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ServerNodeHistoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ServerNodeHistory model
|
|
*/
|
|
export interface ServerNodeHistoryFieldRefs {
|
|
readonly id: Prisma.FieldRef<"ServerNodeHistory", 'Int'>
|
|
readonly uuid: Prisma.FieldRef<"ServerNodeHistory", 'String'>
|
|
readonly period: Prisma.FieldRef<"ServerNodeHistory", 'DateTime'>
|
|
readonly cpu: Prisma.FieldRef<"ServerNodeHistory", 'Float'>
|
|
readonly ram: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'>
|
|
readonly load: Prisma.FieldRef<"ServerNodeHistory", 'Float'>
|
|
readonly disk: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'>
|
|
readonly netIn: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'>
|
|
readonly netOut: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'>
|
|
readonly process: Prisma.FieldRef<"ServerNodeHistory", 'Int'>
|
|
readonly connections: Prisma.FieldRef<"ServerNodeHistory", 'Int'>
|
|
readonly createdAt: Prisma.FieldRef<"ServerNodeHistory", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ServerNodeHistory findUnique
|
|
*/
|
|
export type ServerNodeHistoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNodeHistory to fetch.
|
|
*/
|
|
where: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory findUniqueOrThrow
|
|
*/
|
|
export type ServerNodeHistoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNodeHistory to fetch.
|
|
*/
|
|
where: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory findFirst
|
|
*/
|
|
export type ServerNodeHistoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNodeHistory to fetch.
|
|
*/
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodeHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ServerNodeHistories.
|
|
*/
|
|
cursor?: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodeHistories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ServerNodeHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ServerNodeHistories.
|
|
*/
|
|
distinct?: Prisma.ServerNodeHistoryScalarFieldEnum | Prisma.ServerNodeHistoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory findFirstOrThrow
|
|
*/
|
|
export type ServerNodeHistoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNodeHistory to fetch.
|
|
*/
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodeHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ServerNodeHistories.
|
|
*/
|
|
cursor?: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodeHistories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ServerNodeHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ServerNodeHistories.
|
|
*/
|
|
distinct?: Prisma.ServerNodeHistoryScalarFieldEnum | Prisma.ServerNodeHistoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory findMany
|
|
*/
|
|
export type ServerNodeHistoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNodeHistories to fetch.
|
|
*/
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodeHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ServerNodeHistories.
|
|
*/
|
|
cursor?: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodeHistories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ServerNodeHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ServerNodeHistories.
|
|
*/
|
|
distinct?: Prisma.ServerNodeHistoryScalarFieldEnum | Prisma.ServerNodeHistoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory create
|
|
*/
|
|
export type ServerNodeHistoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ServerNodeHistory.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ServerNodeHistoryCreateInput, Prisma.ServerNodeHistoryUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory createMany
|
|
*/
|
|
export type ServerNodeHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ServerNodeHistories.
|
|
*/
|
|
data: Prisma.ServerNodeHistoryCreateManyInput | Prisma.ServerNodeHistoryCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory update
|
|
*/
|
|
export type ServerNodeHistoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ServerNodeHistory.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ServerNodeHistoryUpdateInput, Prisma.ServerNodeHistoryUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ServerNodeHistory to update.
|
|
*/
|
|
where: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory updateMany
|
|
*/
|
|
export type ServerNodeHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ServerNodeHistories.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ServerNodeHistoryUpdateManyMutationInput, Prisma.ServerNodeHistoryUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ServerNodeHistories to update
|
|
*/
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
/**
|
|
* Limit how many ServerNodeHistories to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory upsert
|
|
*/
|
|
export type ServerNodeHistoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ServerNodeHistory to update in case it exists.
|
|
*/
|
|
where: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
/**
|
|
* In case the ServerNodeHistory found by the `where` argument doesn't exist, create a new ServerNodeHistory with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ServerNodeHistoryCreateInput, Prisma.ServerNodeHistoryUncheckedCreateInput>
|
|
/**
|
|
* In case the ServerNodeHistory was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ServerNodeHistoryUpdateInput, Prisma.ServerNodeHistoryUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory delete
|
|
*/
|
|
export type ServerNodeHistoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which ServerNodeHistory to delete.
|
|
*/
|
|
where: Prisma.ServerNodeHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory deleteMany
|
|
*/
|
|
export type ServerNodeHistoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ServerNodeHistories to delete
|
|
*/
|
|
where?: Prisma.ServerNodeHistoryWhereInput
|
|
/**
|
|
* Limit how many ServerNodeHistories to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ServerNodeHistory without action
|
|
*/
|
|
export type ServerNodeHistoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNodeHistory
|
|
*/
|
|
select?: Prisma.ServerNodeHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNodeHistory
|
|
*/
|
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
|
}
|