public GetMetricResponse GetMetric(Guid componentId, string metricName) { var dataDto = new GetMetricRequestDtoData() { ComponentId = componentId, Name = metricName }; var request = new GetMetricRequestDto() { Data = dataDto, Token = GetAccessTokenDto() }; var responseDto = DtoService.GetMetric(request); var response = CreateResponse <GetMetricResponse>(responseDto); response.InternalData = DataConverter.GetMetricInfo(responseDto.Data); return(response); }