Constructors
constructor
- new Instance(region, cors_allowed, api_allowed, type, url, health?): Instance
Parameters
- region: string
- cors_allowed: boolean
- api_allowed: boolean
- type: InstanceTypes
- url: string
Optional
health: number
Properties
api_allowed
api_allowed: boolean
cors_allowed
cors_allowed: boolean
Optional
health
health?: number
region
region: string
type
url
url: string
Methods
fetchStats
- fetchStats(): Promise<InstanceStats>
Instance stats object.
Name
Instance
Description
Basic information about an instance.
Param: region
Region of the instance.
Param: cors_allowed
Is CORS allowed?
Param: api_allowed
Is API allowed?
Param: type
Type of the instance.
Param: url
URL of the instance.
Param: health
Instance uptime.