monasca-api  4.0.0
About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Ussuri" series (maintained release).
  Fossies Dox: monasca-api-4.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

helpers.py File Reference

Go to the source code of this file.

Namespaces

 monasca_api.v2.reference.helpers
 

Functions

def monasca_api.v2.reference.helpers.from_json (req)
 
def monasca_api.v2.reference.helpers.to_json (data)
 
def monasca_api.v2.reference.helpers.validate_json_content_type (req)
 
def monasca_api.v2.reference.helpers.validate_authorization (http_request, authorized_rules_list)
 
def monasca_api.v2.reference.helpers.validate_payload_size (content_length)
 
def monasca_api.v2.reference.helpers.get_x_tenant_or_tenant_id (http_request, delegate_authorized_rules_list)
 
def monasca_api.v2.reference.helpers.get_query_param (req, param_name, required=False, default_val=None)
 
def monasca_api.v2.reference.helpers.get_query_name (req, name_required=False)
 
def monasca_api.v2.reference.helpers.get_query_dimensions (req, param_key='dimensions')
 
def monasca_api.v2.reference.helpers.get_query_starttime_timestamp (req, required=True)
 
def monasca_api.v2.reference.helpers.get_query_endtime_timestamp (req, required=True)
 
def monasca_api.v2.reference.helpers.validate_start_end_timestamps (start_timestamp, end_timestamp=None)
 
def monasca_api.v2.reference.helpers._convert_time_string (date_time_string)
 
def monasca_api.v2.reference.helpers.get_query_statistics (req)
 
def monasca_api.v2.reference.helpers.get_query_period (req)
 
def monasca_api.v2.reference.helpers.get_query_group_by (req)
 
def monasca_api.v2.reference.helpers.validate_query_name (name)
 
def monasca_api.v2.reference.helpers.validate_query_dimensions (dimensions)
 
def monasca_api.v2.reference.helpers.paginate (resource, uri, limit)
 
def monasca_api.v2.reference.helpers.paginate_with_no_id (dictionary_list, uri, offset, limit)
 
def monasca_api.v2.reference.helpers._truncate_with_offset (resource, value_list, offset)
 
def monasca_api.v2.reference.helpers.paginate_alarming (resource, uri, limit)
 
def monasca_api.v2.reference.helpers.paginate_dimension_values (dimvals, uri, offset, limit)
 
def monasca_api.v2.reference.helpers._truncate_dimension_values (values, limit, offset)
 
def monasca_api.v2.reference.helpers.paginate_measurements (measurements, uri, limit)
 
def monasca_api.v2.reference.helpers._get_old_query_params (parsed_uri)
 
def monasca_api.v2.reference.helpers._get_old_query_params_except_offset (new_query_params, parsed_uri)
 
def monasca_api.v2.reference.helpers.paginate_statistics (statistics, uri, limit)
 
def monasca_api.v2.reference.helpers.create_alarms_count_next_link (uri, offset, limit)
 
def monasca_api.v2.reference.helpers.build_base_uri (parsed_uri)
 
def monasca_api.v2.reference.helpers.get_link (uri, resource_id, rel='self')
 
def monasca_api.v2.reference.helpers.add_links_to_resource (resource, uri, rel='self')
 
def monasca_api.v2.reference.helpers.add_links_to_resource_list (resourcelist, uri)
 
def monasca_api.v2.reference.helpers.raise_not_found_exception (resource_name, resource_id, tenant_id)
 
def monasca_api.v2.reference.helpers.str_2_bool (s)
 

Variables

 monasca_api.v2.reference.helpers.LOG = log.getLogger(__name__)
 
 monasca_api.v2.reference.helpers.CONF = conf.CONF