template-for-typescript-projects
Preparing search index...
storage/AlertSchema
AlertModel
Variable AlertModel
Const
AlertModel
:
Model
<
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
,
{}
,
{}
,
{
id
:
string
}
,
Document
<
unknown
,
{}
,
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
,
{
id
:
string
}
,
{
_id
:
false
;
timestamps
:
false
;
versionKey
:
false
}
,
>
&
Omit
<
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
&
Required
<
{
_id
:
string
}
>
,
"id"
,
>
&
{
id
:
string
}
,
Schema
<
any
,
Model
<
any
,
any
,
any
,
any
,
any
,
any
,
any
>
,
{}
,
{}
,
{}
,
{}
,
{
_id
:
false
;
timestamps
:
false
;
versionKey
:
false
}
,
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
,
Document
<
unknown
,
{}
,
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
,
{
id
:
string
}
,
MergeType
<
DefaultSchemaOptions
,
{
_id
:
false
;
timestamps
:
false
;
versionKey
:
false
}
,
>
,
>
&
Omit
<
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
&
Required
<
{
_id
:
string
}
>
,
"id"
,
>
&
{
id
:
string
}
,
unknown
,
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
&
Required
<
{
_id
:
string
}
>
&
{
__v
:
number
}
,
>
,
{
_id
:
string
;
createdAt
:
NativeDate
;
details
?:
|
{
detectedValue
:
number
;
limitValue
:
number
;
periodType
?:
string
|
null
;
thresholdId
:
string
;
thresholdName
:
string
;
thresholdType
:
string
;
utilityType
:
string
;
}
|
null
;
failReason
?:
string
|
null
;
readAt
?:
NativeDate
|
null
;
sentAt
?:
NativeDate
|
null
;
status
:
AlertStatus
;
}
&
Required
<
{
_id
:
string
}
>
&
{
__v
:
number
}
,
>
= ...
Mongoose model for alerts collection.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
template-for-typescript-projects
Loading...
Mongoose model for alerts collection.