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)
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)
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))
def __init__(self, header): SLSResponse.__init__(self, header)
def __init__(self, resp, header): SLSResponse.__init__(self, header) self.count = resp['count'] self.logstores = resp['logstores']
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