public Task <Response <bool> > Update(Metric metric) { var culture = CultureInfo.InvariantCulture; metric.StatusPageId = client.GetStatusPageId(metric.StatusPageId); return(client.PostAsync <Response <bool> >("metric/update", new { metric_id = metric.MetricId, statuspage_id = metric.StatusPageId, day_avg = metric.DayAverage.ToString(culture), day_start = metric.DayStart.ToUnixTimestamp().ToString(culture), day_dates = metric.DayDates.Select(d => d.ToFormatString()).ToArray(), day_values = metric.DayValues.Select(d => d.ToString(culture)).ToArray(), week_avg = metric.WeekAverage.ToString(culture), week_start = metric.WeekStart.ToUnixTimestamp().ToString(culture), week_dates = metric.WeekDates.Select(d => d.ToFormatString()).ToArray(), week_values = metric.WeekValues.Select(d => d.ToString(culture)).ToArray(), month_avg = metric.MonthAverage.ToString(culture), month_start = metric.MonthStart.ToUnixTimestamp().ToString(culture), month_dates = metric.MonthDates.Select(d => d.ToFormatString()).ToArray(), month_values = metric.MonthValues.Select(d => d.ToString(culture)).ToArray() })); }
public Task <Response <MaintenanceList> > GetList(string statusPageId = null) { return(client.GetAsync <Response <MaintenanceList> >( "maintenance/list/" + client.GetStatusPageId(statusPageId))); }
public Task <Response <Incidents> > GetListAsync(string statusPageId = null) { return(client.GetAsync <Response <Incidents> >( "incident/list/" + client.GetStatusPageId(statusPageId))); }
public Task <Response <ComponentSummary[]> > GetSummary(string statusPageId = null) { return(client.GetAsync <Response <ComponentSummary[]> >( "stats/summary/" + client.GetStatusPageId(statusPageId))); }
public Task <Response <Subscriptions> > GetListAsync(string statusPageId = null) { return(client.GetAsync <Response <Subscriptions> >( "subscriber/list/" + client.GetStatusPageId(statusPageId))); }
public Task <Response <ComponentWithContainer[]> > GetListAsync(string statusPageId = null) { return(client.GetAsync <Response <ComponentWithContainer[]> >( "component/list/" + client.GetStatusPageId(statusPageId))); }