コード例 #1
0
 public override SendMetricResponse SendMetric(SendMetricData data)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     return(Client.ApiService.SendMetric(Info.Id, data));
 }
コード例 #2
0
        public SendMetricResponse SendMetric(string name, double?value)
        {
            var data = new SendMetricData()
            {
                Name  = name,
                Value = value
            };

            return(SendMetric(data));
        }
コード例 #3
0
        public SendMetricResponse SendMetric(string name, double?value, TimeSpan actualInterval)
        {
            var data = new SendMetricData()
            {
                Name           = name,
                Value          = value,
                ActualInterval = actualInterval
            };

            return(SendMetric(data));
        }
コード例 #4
0
ファイル: ApiService.cs プロジェクト: crazyants/ZidiumServer
        public SendMetricResponse SendMetric(Guid componentId, SendMetricData data)
        {
            var dataDto = DataConverter.GetSendMetricRequestDtoData(componentId, data);
            var request = new SendMetricRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.SendMetric(request);
            var response    = CreateResponse <SendMetricResponse>(responseDto);

            response.InternalData = DataConverter.GetMetricInfo(responseDto.Data);
            return(response);
        }
コード例 #5
0
 public SendMetricResponse SendMetric(Guid componentId, SendMetricData data)
 {
     return(Execute("SendMetric", () => ApiServiceInternal.SendMetric(componentId, data)));
 }
コード例 #6
0
 public SendMetricResponse SendMetric(SendMetricData data)
 {
     return(ResponseHelper.GetOfflineResponse <SendMetricResponse>());
 }
コード例 #7
0
        public override SendMetricResponse SendMetric(SendMetricData data)
        {
            var control = ControlActivator.GetControl();

            return(control.SendMetric(data));
        }
コード例 #8
0
 public SendMetricResponse SendMetric(Guid componentId, SendMetricData data)
 {
     return(GetResponse <SendMetricResponse>());
 }
コード例 #9
0
 public abstract SendMetricResponse SendMetric(SendMetricData data);