import { Metrics } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { MonitorClient } from "../monitorClient" ; import { AzureMetricsDocument , MetricsCreateOptionalParams , MetricsCreateResponse } from "../models" ; /** Class containing Metrics operations. */ export class MetricsImpl implements Metrics { private readonly client : MonitorClient ; param client constructor ( client ) { this . client = client ; } param contentType param contentLength param authorization param subscriptionId param resourceGroupName param resourceProvider param resourceTypeName param resourceName param body param options create ( contentType , contentLength , authorization , subscriptionId , resourceGroupName , resourceProvider , resourceTypeName , resourceName , body , options ? ) { return this . client . sendOperationRequest ( { contentType , contentLength , authorization , subscriptionId , resourceGroupName , resourceProvider , resourceTypeName , resourceName , body , options } , createOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const createOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . AzureMetricsResult } , default : { bodyMapper : Mappers . AzureMetricsResult } } , requestBody : Parameters . body , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . resourceProvider , Parameters . resourceTypeName , Parameters . resourceName ] , headerParameters : [ Parameters . accept , Parameters . contentType , Parameters . contentLength , Parameters . authorization ] , mediaType : "json" , serializer } ;