Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WeightedBackends

A Weighted Backend balances traffic among the referenced backends. Traffic is assigned proportionally to each based on its weight. The percentage of traffic is calculated by dividing a backend's weight by the sum of all weights.

Hierarchy

  • WeightedBackends

Index

Constructors

Methods

Constructors

constructor

  • Do not construct this object directly, use the weightedBackends property of an Ngrok client object instead.

    Parameters

    • httpClient: Wretcher

    Returns WeightedBackends

Methods

create

delete

  • delete(id: any): Promise<void>
  • Delete a Weighted backend by ID.

    Parameters

    • id: any

    Returns Promise<void>

get

list

  • List all Weighted backends on this account

    Parameters

    • Optional beforeId: string
    • Optional limit: string

    Returns Promise<WeightedBackend[]>

update

Generated using TypeDoc