public override SendMetricResponse SendMetric(SendMetricData data) { if (data == null) { throw new ArgumentNullException("data"); } return(Client.ApiService.SendMetric(Info.Id, data)); }
public SendMetricResponse SendMetric(string name, double?value) { var data = new SendMetricData() { Name = name, Value = value }; return(SendMetric(data)); }
public SendMetricResponse SendMetric(string name, double?value, TimeSpan actualInterval) { var data = new SendMetricData() { Name = name, Value = value, ActualInterval = actualInterval }; return(SendMetric(data)); }
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); }
public SendMetricResponse SendMetric(Guid componentId, SendMetricData data) { return(Execute("SendMetric", () => ApiServiceInternal.SendMetric(componentId, data))); }
public SendMetricResponse SendMetric(SendMetricData data) { return(ResponseHelper.GetOfflineResponse <SendMetricResponse>()); }
public override SendMetricResponse SendMetric(SendMetricData data) { var control = ControlActivator.GetControl(); return(control.SendMetric(data)); }
public SendMetricResponse SendMetric(Guid componentId, SendMetricData data) { return(GetResponse <SendMetricResponse>()); }
public abstract SendMetricResponse SendMetric(SendMetricData data);