def query_api(self, q, s, g, **kwargs):  # noqa: E501
        """Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity  # noqa: E501

        Long time spans and small granularities can take a long time to calculate  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.query_api(q, s, g, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str q: the query expression to execute (required)
        :param str s: the start time of the query window in epoch milliseconds (required)
        :param str g: the granularity of the points returned (required)
        :param str n: name used to identify the query
        :param str e: the end time of the query window in epoch milliseconds (null to use now)
        :param str p: the approximate maximum number of points to return (may not limit number of points exactly)
        :param bool i: whether series with only points that are outside of the query window will be returned (defaults to true)
        :param bool auto_events: whether events for sources included in the query will be automatically returned by the query
        :param str summarization: summarization strategy to use when bucketing points together
        :param bool list_mode: retrieve events more optimally displayed for a list
        :param bool strict: do not return points outside the query window [s;e), defaults to false
        :param bool include_obsolete_metrics: include metrics that have not been reporting recently, defaults to false
        :param bool sorted: sorts the output so that returned series are in order, defaults to false
        :param bool cached: whether the query cache is used, defaults to true
        :return: QueryResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.query_api_with_http_info(q, s, g, **kwargs)  # noqa: E501
        else:
            (data) = self.query_api_with_http_info(q, s, g, **kwargs)  # noqa: E501
            return data
def query_api ( self , q , s , g , ** kwargs ) : kwargs [ '_return_http_data_only' ] = True if kwargs . get ( 'async_req' ) : return self . query_api_with_http_info ( q , s , g , ** kwargs ) else : ( data ) = self . query_api_with_http_info ( q , s , g , ** kwargs ) return data
Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity  # noqa: E501

        Long time spans and small granularities can take a long time to calculate  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.query_api(q, s, g, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str q: the query expression to execute (required)
        :param str s: the start time of the query window in epoch milliseconds (required)
        :param str g: the granularity of the points returned (required)
        :param str n: name used to identify the query
        :param str e: the end time of the query window in epoch milliseconds (null to use now)
        :param str p: the approximate maximum number of points to return (may not limit number of points exactly)
        :param bool i: whether series with only points that are outside of the query window will be returned (defaults to true)
        :param bool auto_events: whether events for sources included in the query will be automatically returned by the query
        :param str summarization: summarization strategy to use when bucketing points together
        :param bool list_mode: retrieve events more optimally displayed for a list
        :param bool strict: do not return points outside the query window [s;e), defaults to false
        :param bool include_obsolete_metrics: include metrics that have not been reporting recently, defaults to false
        :param bool sorted: sorts the output so that returned series are in order, defaults to false
        :param bool cached: whether the query cache is used, defaults to true
        :return: QueryResult
                 If the method is called asynchronously,
                 returns the request thread.