Edit

Share via


ReportingRestClient class

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

Extends

Constructors

ReportingRestClient(IVssRestClientOptions)

Methods

getAlertSummaryForOrg(FilterCriteria)

Get Alert summary by severity for the org

getCombinedAlertsForOrg(CombinedAlertFilterCriteria, number, string)

Get Combined Alerts for the org

getEnablementSummaryForOrg(EnablementFilterCriteria)

Get Enablement summary for the org

getUXComputedFilters()

Constructor Details

ReportingRestClient(IVssRestClientOptions)

new ReportingRestClient(options: IVssRestClientOptions)

Parameters

Method Details

getAlertSummaryForOrg(FilterCriteria)

Get Alert summary by severity for the org

function getAlertSummaryForOrg(criteria?: FilterCriteria): Promise<OrgAlertSummary>

Parameters

criteria
FilterCriteria

Options to limit the summaries returned

Returns

Promise<OrgAlertSummary>

getCombinedAlertsForOrg(CombinedAlertFilterCriteria, number, string)

Get Combined Alerts for the org

function getCombinedAlertsForOrg(criteria?: CombinedAlertFilterCriteria, top?: number, continuationToken?: string): Promise<PagedList<DashboardAlert>>

Parameters

criteria
CombinedAlertFilterCriteria

Options to filter the combined alerts returned

top

number

The maximum number of alerts to return

continuationToken

string

If there are more alerts than can be returned, a continuation token is placed in the "x-ms-continuationtoken" header. Use that token here to get the next page of alerts

Returns

getEnablementSummaryForOrg(EnablementFilterCriteria)

Get Enablement summary for the org

function getEnablementSummaryForOrg(criteria?: EnablementFilterCriteria): Promise<OrgEnablementSummary>

Parameters

criteria
EnablementFilterCriteria

Options to limit the summaries returned

Returns

getUXComputedFilters()

function getUXComputedFilters(): Promise<ReportingUXComputedFilters>

Returns