Exemplo n.º 1
0
        public LoggingResultVM QueryLogReportTop(int?type, string field, string LogGroup)
        {
            Dictionary <string, string> dicWhere = null;

            if (!string.IsNullOrWhiteSpace(LogGroup))
            {
                dicWhere = new Dictionary <string, string>
                {
                    { "LogGroup", LogGroup }
                };
            }

            var vm = LoggingTo.StatsTop(type ?? 0, field, dicWhere);

            return(vm);
        }
Exemplo n.º 2
0
        public LoggingResultVM QueryLogReportTop(int?type, string field, string LogGroup)
        {
            var listWhere = new List <List <string> >();

            if (!string.IsNullOrWhiteSpace(LogGroup))
            {
                listWhere = new List <List <string> >
                {
                    new List <string> {
                        "LogGroup", "=", LogGroup
                    }
                };
            }

            var vm = LoggingTo.StatsTop(type ?? 0, field, listWhere);

            return(vm);
        }