ResourceUsageRestClient class

Base class that should be used (derived from) to make requests to VSS REST apis

Extends

Constructors

ResourceUsageRestClient(IVssRestClientOptions)

Properties

RESOURCE_AREA_ID

Methods

getLimits()
getProjectLimit(string)

Gets the Project Level limits and Usage for a project.

Constructor Details

ResourceUsageRestClient(IVssRestClientOptions)

new ResourceUsageRestClient(options: IVssRestClientOptions)

Parameters

Property Details

RESOURCE_AREA_ID

public static RESOURCE_AREA_ID: "240a9b11-3dc7-4aa0-b3fe-2b7dc8a4e7ea" = "240a9b11-3dc7-4aa0-b3fe-2b7dc8a4e7ea"

Property Value

"240a9b11-3dc7-4aa0-b3fe-2b7dc8a4e7ea"

Method Details

getLimits()

function getLimits(): Promise<{[key: string]: ResourceUsage.Usage}>

Returns

Promise<{[key: string]: Usage}>

getProjectLimit(string)

Gets the Project Level limits and Usage for a project.

function getProjectLimit(project: string): Promise<{[key: string]: ResourceUsage.Usage}>

Parameters

project

string

Project ID or project name

Returns

Promise<{[key: string]: Usage}>