def cluster_application_statistics(self, state_list=None,<EOL>application_type_list=None):
path = '<STR_LIT>'<EOL>states = '<STR_LIT:U+002C>'.join(state_list) if state_list is not None else None<EOL>if application_type_list is not None:<EOL><INDENT>application_types = '<STR_LIT:U+002C>'.join(application_type_list)<EOL><DEDENT>else:<EOL><INDENT>application_types = None<EOL><DEDENT>loc_args = (<EOL>('<STR_LIT>', states),<EOL>('<STR_LIT>', application_types))<EOL>params = self.construct_parameters(loc_args)<EOL>return self.request(path, **params)<EOL>
With the Application Statistics API, you can obtain a collection of
triples, each of which contains the application type, the application
state and the number of applications of this type and this state in
ResourceManager context.

This method work in Hadoop > 2.0.0

:param list state_list: states of the applications, specified as a
    comma-separated list. If states is not provided, the API will
    enumerate all application states and return the counts of them.
:param list application_type_list: types of the applications,
    specified as a comma-separated list. If application_types is not
    provided, the API will count the applications of any application
    type. In this case, the response shows * to indicate any
    application type. Note that we only support at most one
    applicationType temporarily. Otherwise, users will expect
    an BadRequestException.
:returns: API response object with JSON data
:rtype: :py:class:`yarn_api_client.base.Response`