def __init__(self, resp, headers): LogResponse.__init__(self, headers) self.count = len(resp) self.resp = resp self.consumer_groups = [ ConsumerGroup(group[u'name'], group[u'timeout'], group[u'order']) for group in self.resp ]
def __init__(self, resp, header): LogResponse.__init__(self, header) self.count = resp['count'] self.total = resp['total'] self.machines = [] for machine_status in resp['machines'] : machine = MachineStatus(machine_status['ip'], machine_status['machine-uniqueid'], machine_status['userdefined-id'], machine_status['lastHeartbeatTime']) self.machines.append(machine)
def __init__(self, resp, header): LogResponse.__init__(self, header) self.status = resp['status'] self.description = resp['description'] self.projectName = resp['projectName'] self.region = resp['region'] self.owner = resp['owner'] self.createTime = resp['createTime'] self.lastModifyTime = resp['lastModifyTime']
def __init__(self, resp, header) : LogResponse.__init__(self, header) self.count = resp['count'] self.total = resp['total'] self.running_count = resp['statistics']['running'] self.success_count = resp['statistics']['success'] self.fail_count = resp['statistics']['fail'] self.tasks = [] for task_res in resp['tasks'] : task = ShipperTask(task_res['id'], task_res['taskStatus'] , task_res['taskMessage'], task_res['taskCreateTime'], task_res['taskLastDataReceiveTime'], task_res['taskFinishTime']) self.tasks.append(task)
def __init__(self, resp, header): LogResponse.__init__(self, header) self.create_time = resp['createTime'] self.last_modify_time = resp['lastModifyTime'] self.type = resp['targetType'] target_config = resp['targetConfiguration'] if self.type == 'odps': self.config = OdpsShipperConfig( target_config["odpsEndpoint"], target_config["odpsProject"], target_config["odpsTable"], target_config["fields"], target_config["partitionColumn"], target_config["partitionTimeFormat"], target_config["bufferInterval"]) elif self.type == 'oss': self.config = OssShipperConfig(target_config['ossBucket'], target_config['ossPrefix'], target_config['roleArn'], target_config['bufferInterval'], target_config['bufferSize'], target_config['compressType'])
def __init__(self, header): LogResponse.__init__(self, header)
def __init__(self, resp, headers): LogResponse.__init__(self, headers) self.shards = resp
def __init__(self, resp, header): LogResponse.__init__(self, header) self.count = int(resp["count"]) self.total = int(resp["total"]) self.machine_groups = Util.convert_unicode_to_str(resp["machinegroups"])
def __init__(self, resp, header): LogResponse.__init__(self, header) self.machine_group = MachineGroupDetail(None, None, None) self.machine_group.from_json(resp)
def __init__(self, resp, header): LogResponse.__init__(self, header) self.count = int(resp["count"]) self.count = int(resp["total"]) self.logtail_configs = Util.convert_unicode_to_str(resp["configs"])
def __init__(self, resp, headers): LogResponse.__init__(self, headers) self.count = len(resp) self.consumer_group_check_poins = resp
def __init__(self, resp, header): LogResponse.__init__(self, header) self.logtail_config = LogtailConfigHelper.generate_logtail_config(resp)
def __init__(self, resp, header): LogResponse.__init__(self, header) self.count = resp['count'] self.configs = resp['configs']
def __init__(self, resp, header): LogResponse.__init__(self, header) self.count = resp['count'] self.total = resp['total'] self.shipper_names = resp['shipper']
def __init__(self, resp, header): LogResponse.__init__(self, header) self.count = resp['count'] self.machine_groups = resp['machinegroups']
def __init__(self, resp, header): LogResponse.__init__(self, header) self.index_config = IndexConfig() self.index_config.from_json(resp)