예제 #1
0
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.progress = resp['progress']
     self.count = resp['count']
     self.histograms = []
     for data in resp['histograms'] :
         status = Histogram(data['from'], data['to'], data['count'], data['progress'])
         self.histograms.append(status)
예제 #2
0
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.progress = resp['progress']
     self.count = resp['count']
     self.histograms = []
     for data in resp['histograms']:
         status = Histogram(data['from'], data['to'], data['count'],
                            data['progress'])
         self.histograms.append(status)
예제 #3
0
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.count = resp['count']
     self.progress = resp['progress']
     self.logs = []
     for data in resp['logs']:
         contents = {}
         for key in data.iterkeys():
             if key!='__time__' and key!='__source__':
                 contents[key] = data[key]
         self.logs.append(QueriedLog(data['__time__'], data['__source__'], contents))
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.count = resp['count']
     self.progress = resp['progress']
     self.logs = []
     for data in resp['logs']:
         contents = {}
         for key in data.iterkeys():
             if key != '__time__' and key != '__source__':
                 contents[key] = data[key]
         self.logs.append(
             QueriedLog(data['__time__'], data['__source__'], contents))
예제 #5
0
 def __init__(self, header):
     SLSResponse.__init__(self, header)
예제 #6
0
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.count = resp['count']
     self.logstores = resp['logstores']
예제 #7
0
 def __init__(self, header):
     SLSResponse.__init__(self, header)
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.count = resp['count']
     self.topics = resp['topics']
     self.nextToken = resp['next_token'] if 'next_token' in resp else None
예제 #9
0
 def __init__(self, resp, header):
     SLSResponse.__init__(self, header)
     self.count = resp['count']
     self.logstores = resp['logstores']