mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-28 04:25:14 +01:00
22 lines
789 B
TypeScript
22 lines
789 B
TypeScript
/*
|
|
AUTOGENERATED FILE
|
|
Do not manually edit
|
|
Run "npm run generateARMClients" to regenerate
|
|
*/
|
|
|
|
import { armRequest } from "../../request";
|
|
import * as Types from "./types";
|
|
import { config } from "../../../../Config";
|
|
const apiVersion = "2020-04-01";
|
|
|
|
/* Retrieves the metrics determined by the given filter for the given database account and region. */
|
|
export async function listMetrics(
|
|
subscriptionId: string,
|
|
resourceGroupName: string,
|
|
accountName: string,
|
|
region: string
|
|
): Promise<Types.MetricListResult> {
|
|
const path = `/subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/${accountName}/region/${region}/metrics`;
|
|
return armRequest({ host: config.ARM_ENDPOINT, path, method: "GET", apiVersion });
|
|
}
|