def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.next_cursor = Util.convert_unicode_to_str(header["x-log-cursor"])
     self.log_count = int(header["x-log-count"])
     self.loggroup_list = LogGroupList()
     self._parse_loggroup_list(resp)
     self.loggroup_list_json = None
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.next_cursor = Util.convert_unicode_to_str(header["x-log-cursor"])
     self.log_count = int(header["x-log-count"])
     self.loggroup_list = LogGroupList()
     self._parse_loggroup_list(resp)
     self.loggroup_list_json = None
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = int(resp["count"])
     self.total = int(resp["total"])
     self.acl_list = []
     for acl in resp["acls"]:
         acl_config = AclConfig(None, None)
         acl_config.from_json(acl)
         self.acl_list.append(acl_config)
Beispiel #4
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = int(resp["count"])
     self.total = int(resp["total"])
     self.acl_list = []
     for acl in resp["acls"] : 
         acl_config = AclConfig(None, None)
         acl_config.from_json(acl)
         self.acl_list.append(acl_config)
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.progress = header['x-log-progress']
     self.count = 0 #header['x-log-count']
     self.histograms = []
     
     for data in resp : 
         status = Histogram(data['from'], data['to'], data['count'], data['progress'])
         self.histograms.append(status)
         self.count += data['count']
Beispiel #6
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     #self.count = header['x-log-count']
     self.progress = header['x-log-progress']
     self.logs = []
     for data in resp:
         contents = {}
         for key in data.iterkeys():
             if key!='__time__' and key!='__source__':
                 contents[key.encode('utf-8')] = data[key].encode('utf-8')
         self.logs.append(QueriedLog(data['__time__'], data['__source__'], contents))
    def __init__(self, resp, header):
        LogResponse.__init__(self, header)
        self.progress = header['x-log-progress']
        self.count = 0  #header['x-log-count']
        self.histograms = []

        for data in resp:
            status = Histogram(data['from'], data['to'], data['count'],
                               data['progress'])
            self.histograms.append(status)
            self.count += data['count']
Beispiel #8
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     #self.count = header['x-log-count']
     self.progress = header['x-log-progress']
     self.logs = []
     for data in resp:
         contents = {}
         for key in data.iterkeys():
             if key != '__time__' and key != '__source__':
                 contents[key.encode('utf-8')] = data[key].encode('utf-8')
         self.logs.append(
             QueriedLog(data['__time__'], data['__source__'], contents))
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.logstore_name = Util.convert_unicode_to_str(resp["logstoreName"])
     self.ttl = int(resp["ttl"])
     self.shard_count = int(resp["shardCount"])
Beispiel #10
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.shards = Util.convert_unicode_to_str(resp)
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = resp['count']
     self.logstores = resp['logstores']
Beispiel #12
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.cursor = Util.convert_unicode_to_str(resp["cursor"])
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.logstore_name = Util.convert_unicode_to_str(resp["logstoreName"])
     self.ttl = int(resp["ttl"])
     self.shard_count = int(resp["shardCount"])
Beispiel #14
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.cursor = Util.convert_unicode_to_str(resp["cursor"])
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = header['x-log-count']
     self.nextToken = header['x-log-nexttoken'] 
     self.topics = resp
Beispiel #16
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.shards = Util.convert_unicode_to_str(resp)
 def __init__(self, header):
     LogResponse.__init__(self, header)
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = int(resp["count"])
     self.logstores = Util.convert_unicode_to_str(resp["logstores"])
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = int(resp["count"])
     self.logstores = Util.convert_unicode_to_str(resp["logstores"])
Beispiel #20
0
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.count = resp['count']
     self.logstores = resp['logstores']
Beispiel #21
0
 def __init__(self, header):
     LogResponse.__init__(self, header)
 def __init__(self, resp, header):
     LogResponse.__init__(self, header)
     self.cursor_time = resp['cursor_time']