public GetMetricsHistoryResponseDto GetMetricsHistory(GetMetricsHistoryRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.GetMetricsHistoryRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.GetMetricsHistory(coreRequest); var response = GetApiResponse <GetMetricsHistoryResponseDto>(coreResponse); response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData); return(response); }
public GetMetricsHistoryResponse GetMetricsHistory(Guid componentId, GetMetricsHistoryFilter filter) { var dataDto = DataConverter.GetMetricsHistoryRequestDtoData(componentId, filter); var request = new GetMetricsHistoryRequestDto() { Data = dataDto, Token = GetAccessTokenDto() }; var responseDto = DtoService.GetMetricsHistory(request); var response = CreateResponse <GetMetricsHistoryResponse>(responseDto); response.InternalData = DataConverter.GetMetricInfoList(responseDto.Data); return(response); }
public GetMetricsHistoryResponseDto GetMetricsHistory(GetMetricsHistoryRequestDto request) { return(ExecuteAction <GetMetricsHistoryResponseDto>("GetMetricsHistory", request)); }