(self, url, acs_url, tags, group)
return self.apps_response
The dictionary containing the apps is cached during collection and reset
        at every `check()` call.
The dictionary containing the apps is cached during collection and reset
        at every `check()` call.
The dictionary containing the apps is cached during collection and reset at every check () call .
def get_apps_json(self, url, acs_url, tags, group):
        """
        The dictionary containing the apps is cached during collection and reset
        at every `check()` call.
        """
        if self.apps_response is not None:
            return self.apps_response

        # Marathon apps
        if group is None:
            # embed=apps.counts is not a required parameter but will be in the future:
            # http://mesosphere.github.io/marathon/1.4/docs/rest-api.html#get-v2apps
            marathon_path = urljoin(url, "v2/apps?embed=apps.counts")
        else:
            marathon_path = urljoin(
                url, "v2/groups/{}?embed=group.groups".format(group) + "&embed=group.apps&embed=group.apps.counts"
            )

        self.apps_response = self.get_json(marathon_path, acs_url, tags)
        return self.apps_response
def get_apps_json ( self , url , acs_url , tags , group ) : if self . apps_response is not None : return self . apps_response # Marathon apps if group is None : # embed=apps.counts is not a required parameter but will be in the future: # http://mesosphere.github.io/marathon/1.4/docs/rest-api.html#get-v2apps marathon_path = urljoin ( url , "v2/apps?embed=apps.counts" ) else : marathon_path = urljoin ( url , "v2/groups/{}?embed=group.groups" . format ( group ) + "&embed=group.apps&embed=group.apps.counts" ) self . apps_response = self . get_json ( marathon_path , acs_url , tags ) return self . apps_response