示例#1
0
        /// <summary>
        /// Gets aggregate logs for account.
        /// </summary>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <param name="aggregatorType"></param>
        /// <param name="limit"></param>
        /// <param name="logType"></param>
        /// <param name="operatorId"></param>
        /// <param name="startKey"></param>
        /// <param name="client">REST client.</param>
        /// <returns></returns>
        public static AccountLogsAggregate GetLogsAggregate(DateTime startTime,
                                                            DateTime endTime,
                                                            AggregatorTypeEnum aggregatorType,
                                                            int?limit            = null,
                                                            string logType       = null,
                                                            int?operatorId       = null,
                                                            string startKey      = null,
                                                            IVcRestClient client = null)
        {
            AccountLogsAggregateQueryParams queryParams = new AccountLogsAggregateQueryParams(startTime, endTime, aggregatorType)
            {
                Limit      = limit,
                LogType    = logType,
                OperatorId = operatorId,
                StartKey   = startKey
            };

            return(GetLogsAggregate(queryParams, client));
        }
示例#2
0
 /// <summary>
 /// Gets aggregate logs for the specified account.
 /// </summary>
 /// <param name="queryParams">Query parameters.</param>
 /// <param name="client">REST client.</param>
 /// <returns></returns>
 private static AccountLogsAggregate GetLogsAggregate(AccountLogsAggregateQueryParams queryParams, IVcRestClient client = null)
 {
     return(GetSingle <AccountLogsAggregate>(BuildGetLogsAggregateUrl(VcClient.AccountId), queryParams, includeRoot: true, client: client));
 }