degagne / yarn-resource-manager-api
There is no license information available for the latest version (v1.0) of this package.
PHP Yarn Resource Manager REST API library
v1.0
2017-10-30 13:45 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-11-15 08:11:09 UTC
README
Add yarn-resource-manager-api package to your composer.json file.
{
"require": {
"degagne/yarn-resource-manager-api": "~1.0"
}
}
or run
composer require degagne/yarn-resource-manager-api
Basic Usage
require_once(__DIR__ . '/vendor/autoload.php'); use YarnResourceManager\ResourceManager; $parameters = [ 'user' => 'jdoe', 'limit' => 10, 'states' => 'KILLED,FAILED,FINISHED', 'startedTimeBegin' => '2017-10-10 02:23:12', 'applicationTypes' => 'TEZ,SPARK' ]; $rm = new ResourceManager('api_url', 'port', 'format'); $rm->applications($parameters);