示例#1
0
文件: collector.py 项目: Yelp/occam
def _discover_list(server_name, server_location, collection):
    client = RazorClient(server_location['hostname'], server_location['port'])
    item_getter = getattr(client, collection)
    items = item_getter()
    collection_key = make_key(server_name, collection)
    put_json_data(collection_key, items)
    return items
示例#2
0
文件: collector.py 项目: Yelp/occam
def _put_collection_item(server_name, collection, item, value):
    key = make_key(server_name, collection, item)
    put_json_data(key, value)
示例#3
0
文件: collector.py 项目: Yelp/occam
def _put_collection_list(server_name, collection, value):
    key = make_key(server_name, collection)
    put_json_data(key, value)