Module Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults vararg body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad TryExcept body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Str NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args defaults body Global identifier Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Global identifier identifier If NameLoad body Return NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore ListLoad If NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad If NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad If NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Num Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore BinOpAdd NameLoad Num Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Dict Str Str Str Str ListLoad ListLoad ListLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str body If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Global identifier Assign NameStore Dict Str Str Str Str Str ListLoad ListLoad ListLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str body If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Dict Str Str Str Str Str ListLoad ListLoad ListLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str body If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Dict Str Str Str Str Str Str ListLoad ListLoad ListLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str body If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Global identifier Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A web N/A ConfigParser N/A io N/A json ceilometerclient client N/A logging N/A urllib N/A urllib2 urlparse urlparse wsgilog WsgiLog N/A N/A N/A web config debug False N/A logfile ceilometer_proxy_server.log N/A level N/A logging INFO N/A logger N/A N/A logging getLogger ceilometer_proxy_server N/A N/A N/A logger setLevel level N/A handler N/A N/A N/A logging handlers RotatingFileHandler logfile maxBytes 1000000 backupCount 1 N/A N/A N/A logger addHandler handler FileLog N/A WsgiLog N/A __init__ N/A N/A self application N/A N/A N/A N/A N/A WsgiLog __init__ self application logformat %(message)s tofile True toprint True prnlevel level file logfile backups 1 N/A __call__ N/A N/A self environ start_response N/A N/A hstart_response N/A N/A status response_headers N/A args N/A N/A out N/A start_response status response_headers args N/A N/A N/A logline N/A N/A N/A N/A N/A N/A N/A environ N/A SERVER_PROTOCOL N/A environ N/A REQUEST_METHOD N/A environ N/A REQUEST_URI  -  status N/A N/A N/A err N/A N/A logline N/A Could not log <%s> due to err <%s> N/A N/A str environ err N/A N/A N/A logger info logline N/A out N/A N/A N/A N/A N/A super FileLog self __call__ environ hstart_response N/A N/A N/A urls N/A ^/v2/meters$ meter_list ^/v2/meters/(?P<meter_name>[A-Za-z0-9_:.\-]+)/statistics$ statistics_list ^/v2/samples$ sample_list ^/v2/resources$ resource_list ^/v2/subscribe$ pubsub_handler N/A app N/A N/A web application urls N/A globals N/A config None N/A ceilometer_client None parse_ceilometer_proxy_config N/A N/A N/A N/A N/A config N/A config N/A N/A ConfigParser RawConfigParser allow_no_value True N/A N/A N/A config read ceilometer_proxy_config N/A ceilometerclient N/A N/A N/A N/A N/A config ceilometer_client N/A ceilometer_client N/A N/A ceilometer_client N/A N/A config N/A N/A N/A parse_ceilometer_proxy_config N/A keystone N/A N/A N/A keystone N/A os_username N/A N/A config get default admin_user N/A N/A keystone N/A os_password N/A N/A config get default admin_password N/A N/A keystone N/A os_auth_url N/A N/A config get default auth_url N/A N/A keystone N/A os_tenant_name N/A N/A config get default admin_tenant N/A ceilometer_client N/A N/A client get_client 2 keystone N/A N/A N/A logger info ceilometer get_client is successful N/A ceilometer_client N/A make_query N/A N/A user_id tenant_id resource_id user_ids tenant_ids resource_ids N/A None None None None None None N/A N/A Returns query built from given parameters.

    This query can be then used for querying resources, meters and
    statistics.

    :Parameters:
      - `user_id`: user_id, has a priority over list of ids
      - `tenant_id`: tenant_id, has a priority over list of ids
      - `resource_id`: resource_id, has a priority over list of ids
      - `user_ids`: list of user_ids
      - `tenant_ids`: list of tenant_ids
      - `resource_ids`: list of resource_ids
     N/A user_ids N/A user_ids N/A N/A tenant_ids N/A tenant_ids N/A N/A resource_ids N/A resource_ids N/A N/A query N/A N/A user_id N/A N/A user_ids N/A user_id N/A u_id user_ids N/A N/A N/A N/A query append N/A field op value user_id eq u_id N/A tenant_id N/A N/A tenant_ids N/A tenant_id N/A t_id tenant_ids N/A N/A N/A N/A query append N/A field op value project_id eq t_id N/A resource_id N/A N/A resource_ids N/A resource_id N/A r_id resource_ids N/A N/A N/A N/A query append N/A field op value resource_id eq r_id N/A query N/A filter_query_params N/A N/A query_params N/A N/A N/A new_query N/A N/A i 0 N/A user_specified_tenants N/A N/A field N/A query_params N/A q.field N/A N/A N/A N/A field project_id N/A field project N/A N/A query N/A N/A N/A query N/A field field N/A N/A N/A N/A query_params N/A q.op N/A i N/A N/A N/A query N/A op N/A N/A query_params N/A q.op N/A i N/A N/A query N/A value N/A N/A query_params N/A q.value N/A i N/A N/A N/A new_query append query N/A N/A N/A N/A user_specified_tenants append N/A N/A query_params N/A q.value N/A i N/A i N/A i 1 N/A N/A new_query user_specified_tenants N/A meter_list N/A N/A GET N/A N/A self N/A N/A N/A config N/A keyword_args N/A q.field q.op q.type q.value N/A N/A N/A N/A N/A query_params N/A N/A web input keyword_args N/A N/A new_query user_specified_tenants N/A filter_query_params query_params N/A client N/A ceilometerclient N/A meters N/A N/A N/A k v N/A N/A config items allowed_tenants N/A N/A N/A user_specified_tenants N/A k user_specified_tenants N/A N/A N/A final_query N/A N/A N/A N/A final_query extend new_query N/A query N/A make_query tenant_id k N/A N/A N/A final_query extend query N/A N/A N/A logger debug final query=%s final_query N/A results N/A N/A N/A client meters list q final_query N/A N/A N/A meters extend results N/A N/A N/A json dumps N/A N/A ob _info N/A ob meters N/A N/A statistics_list N/A N/A GET N/A N/A self meter_name N/A N/A N/A config N/A keyword_args N/A q.field q.op q.type q.value period N/A N/A N/A N/A None N/A query_params N/A N/A web input keyword_args N/A N/A new_query user_specified_tenants N/A filter_query_params query_params N/A client N/A ceilometerclient N/A period N/A query_params period N/A statistics N/A N/A N/A k v N/A N/A config items allowed_tenants N/A N/A N/A user_specified_tenants N/A k user_specified_tenants N/A N/A N/A final_query N/A N/A N/A N/A final_query extend new_query N/A query N/A make_query tenant_id k N/A N/A N/A final_query extend query N/A N/A N/A logger debug final query=%s final_query N/A results N/A N/A N/A client statistics list meter_name meter_name q final_query period period N/A N/A N/A statistics extend results N/A N/A N/A json dumps N/A N/A ob _info N/A ob statistics N/A N/A sample_list N/A N/A GET N/A N/A self N/A N/A N/A config N/A keyword_args N/A q.field q.op q.type q.value limit N/A N/A N/A N/A None N/A query_params N/A N/A web input keyword_args N/A N/A new_query user_specified_tenants N/A filter_query_params query_params N/A client N/A ceilometerclient N/A limit N/A query_params limit N/A samples N/A N/A N/A k v N/A N/A config items allowed_tenants N/A N/A N/A user_specified_tenants N/A k user_specified_tenants N/A N/A N/A final_query N/A N/A N/A N/A final_query extend new_query N/A query N/A make_query tenant_id k N/A N/A N/A final_query extend query N/A N/A N/A logger debug final query=%s final_query N/A results N/A N/A N/A client new_samples list q final_query limit limit N/A N/A N/A samples extend results N/A N/A N/A json dumps N/A N/A ob _info N/A ob samples N/A N/A resource_list N/A N/A GET N/A N/A self N/A N/A N/A config N/A keyword_args N/A q.field q.op q.type q.value limit links N/A N/A N/A N/A None None N/A query_params N/A N/A web input keyword_args N/A N/A new_query user_specified_tenants N/A filter_query_params query_params N/A client N/A ceilometerclient N/A limit N/A query_params limit N/A links N/A query_params links N/A resources N/A N/A N/A k v N/A N/A config items allowed_tenants N/A N/A N/A user_specified_tenants N/A k user_specified_tenants N/A N/A N/A final_query N/A N/A N/A N/A final_query extend new_query N/A query N/A make_query tenant_id k N/A N/A N/A final_query extend query N/A N/A N/A logger debug final query=%s final_query N/A results N/A N/A N/A client resources list q final_query limit limit links links N/A N/A N/A resources extend results N/A N/A N/A json dumps N/A N/A ob _info N/A ob resources N/A N/A pubsub_handler N/A N/A POST N/A N/A self N/A N/A N/A config N/A N/A parse_ceilometer_proxy_config N/A ceilometer_pub_sub_url N/A N/A config get default ceilometer_pub_sub_url N/A url N/A urlparse ceilometer_pub_sub_url N/A N/A N/A N/A url scheme N/A N/A url netloc N/A N/A N/A Exception Ceilometer PUB/SUB URL not set N/A ceilometer_pub_sub_url N/A N/A N/A N/A url scheme :// N/A url netloc /subscribe N/A data_str N/A unicode N/A N/A web data iso-8859-1 N/A post_data N/A N/A json loads data_str N/A final_query N/A N/A N/A k v N/A N/A config items allowed_tenants N/A N/A query N/A make_query tenant_id k N/A N/A N/A final_query extend query N/A N/A final_query N/A N/A N/A Exception Not allowed to subscribe to any meters N/A N/A post_data N/A query final_query N/A put_request N/A N/A urllib2 Request ceilometer_pub_sub_url N/A N/A json dumps post_data N/A N/A put_request get_method N/A N/A N/A N/A SUB N/A N/A N/A put_request add_header Content-Type application/json N/A response N/A N/A urllib2 urlopen put_request N/A response_text N/A N/A response read N/A N/A N/A json dumps response_text N/A DELETE N/A N/A self N/A N/A N/A ceilometer_pub_sub_url N/A N/A config get default ceilometer_pub_sub_url N/A url N/A urlparse ceilometer_pub_sub_url N/A N/A N/A N/A url scheme N/A N/A url netloc N/A N/A N/A Exception Ceilometer PUB/SUB URL not set N/A ceilometer_pub_sub_url N/A N/A N/A N/A url scheme :// N/A url netloc /unsubscribe N/A data_str N/A N/A web data N/A put_request N/A N/A urllib2 Request ceilometer_pub_sub_url data_str N/A N/A put_request get_method N/A N/A N/A N/A UNSUB N/A N/A N/A put_request add_header Content-Type application/json N/A response N/A N/A urllib2 urlopen put_request N/A response_text N/A N/A response read N/A N/A N/A json dumps response_text N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A app run FileLog