/// <summary>
 /// 查询日志投递任务状态。
 /// </summary>
 /// <param name="client">client实例。</param>
 /// <param name="logstoreName">日志库名称,同一 Project 下唯一。</param>
 /// <param name="shipperName">日志投递规则名称,同一 Logstore 下唯一。</param>
 /// <param name="from">日志投递任务创建时间区间。</param>
 /// <param name="to">日志投递任务创建时间区间。</param>
 /// <param name="status">默认为空,表示返回所有状态的任务,目前支持 success/fail/running 等状态。</param>
 /// <param name="offset">返回指定时间区间内投递任务的起始数目,默认值为 0。</param>
 /// <param name="size">返回指定时间区间内投递任务的数目,默认值为 100,最大为 500。</param>
 /// <param name="project">项目名,此参数将覆盖 client 中默认设置。</param>
 /// <returns>异步响应结果。</returns>
 /// <seealso cref="ILogServiceClient.GetShipperStatusAsync"/>
 public static Task <IResponse <GetShipperResult> > GetShipperStatusAsync(this ILogServiceClient client,
                                                                          String logstoreName, String shipperName, DateTimeOffset from, DateTimeOffset to,
                                                                          String status = null, Int32 offset = GetShipperRequest.DefaultOffset, Int32 size = GetShipperRequest.DefaultSize, String project = null)
 => client.GetShipperStatusAsync(new GetShipperRequest(logstoreName, shipperName, (Int32)from.ToUnixTimeSeconds(), (Int32)to.ToUnixTimeSeconds())
 {
     Status      = status,
     Offset      = offset,
     Size        = size,
     ProjectName = project
 });