Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpConfigManager

The default implementation of IConfigManager. Communicates across an HTTP boundary to a remote config server.

export
class

HttpConfigManager

Hierarchy

  • HttpConfigManager

Implements

Index

Constructors

constructor

Properties

Private configUrl

configUrl: string

Methods

deleteDashboard

  • deleteDashboard(path: string): Promise<void>

getAllDashboardNames

  • getAllDashboardNames(): Promise<keyof string[]>

getDashboard

  • getDashboard(path: string): Promise<ISerializedDashboard>

Protected issueRequest

  • issueRequest(endpoint: string, method?: string, body?: undefined | string): Promise<Response>
  • Parameters

    • endpoint: string
    • Default value method: string = "GET"
    • Optional body: undefined | string

    Returns Promise<Response>

newDashboard

  • newDashboard(path: string, object: ISerializedDashboard): Promise<void>

renameDashboard

  • renameDashboard(path: string, newName: string): Promise<void>

saveDashboard

  • saveDashboard(path: string, object: ISerializedDashboard): Promise<void>

Private throwIfNameInvalid

  • throwIfNameInvalid(name: string): void

Generated using TypeDoc