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);
        }
示例#2
0
        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);
        }
示例#3
0
 public GetMetricsHistoryResponseDto GetMetricsHistory(GetMetricsHistoryRequestDto request)
 {
     return(ExecuteAction <GetMetricsHistoryResponseDto>("GetMetricsHistory", request));
 }