/// <summary> /// Adds a point to the specified metric from the Cachet API. /// </summary> /// <param name="Metric">The metric.</param> /// <param name="PointValue">The value of the point being added.</param> /// <param name="Timestamp">The timestamp of the point being added.</param> public async Task <MetricPointResponse> AddMetricPointAsync(MetricObject Metric, int PointValue, DateTime?Timestamp = null) { return(await this.AddMetricPointAsync(Metric.Id, PointValue, Timestamp)); }
/// <summary> /// Deletes the specified metric from the Cachet API asynchronously. /// </summary> /// <param name="Metric">The metric.</param> public async Task <bool> DeleteMetricAsync(MetricObject Metric) { return(await this.DeleteMetricAsync(Metric.Id)); }
/// <summary> /// Adds a point to the specified metric from the Cachet API. /// </summary> /// <param name="Metric">The metric.</param> /// <param name="PointValue">The value of the point being added.</param> /// <param name="Timestamp">The timestamp of the point being added.</param> public MetricPointResponse AddMetricPoint(MetricObject Metric, int PointValue, DateTime?Timestamp = null) { return(this.AddMetricPoint(Metric.Id, PointValue, Timestamp)); }
/// <summary> /// Deletes the specified metric from the Cachet API. /// </summary> /// <param name="Metric">The metric.</param> public bool DeleteMetric(MetricObject Metric) { return(this.DeleteMetric(Metric.Id)); }