Exemplo n.º 1
0
 public SgetProjectDataPointTask(SgetProjectDataPointTaskInfo info, long?pollIntervall, SgetCloudReportingCondition cloudCondition, SgetCloudViewMetadata viewMetaData, string description)
 {
     Description    = description;
     ViewMetaData   = viewMetaData;
     Info           = info;
     PollIntervall  = pollIntervall ?? (10 * 1000);
     CloudCondition = cloudCondition;
 }
Exemplo n.º 2
0
 private DatapointTaskMetadata GetSgetCloudViewMetadata(SgetCloudViewMetadata data)
 {
     return(new SgetDatapointTaskMetadata(data.Min ?? 0, data.Max ?? 100, data.WarningThreshold ?? 80, data.ErrorThreshold ?? 90, data.IsInverseThresholdEvaluation, data.Tags.FirstOrDefault()));
 }