Skip to content

Instantly share code, notes, and snippets.

@itaifrenkel
Created December 20, 2012 01:19
Show Gist options
  • Save itaifrenkel/4342251 to your computer and use it in GitHub Desktop.
Save itaifrenkel/4342251 to your computer and use it in GitHub Desktop.
servicegrid2 media types for restful task API
{
"timestamp" : "1355983011",
"ipaddress" : "10.0.0.1",
"tasks" : [ "http://broker/tasks/task1.json" ],
"executor" : "cloud-executor"
}
{
"timestamp" : "1355983013",
"ipaddress" : "10.0.0.1",
"tasks" : [ "http://broker/tasks/task2.json" ],
"executor" : "cloud-executor"
}
[
"http://broker/executors/executor1/1355983011.json",
"http://broker/executors/executor1/1355983013.json"
]
{
"timestamp" : "1355983011",
"executor" : "service-executor",
"service-state": "starting-machine",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f"
}
{
"timestamp" : "1355983012",
"executor" : "service-executor",
"service-state": "machine-started",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2"
}
{
"timestamp" : "1355983013",
"ipaddress" : "10.0.0.2",
"executor" : "service-executor",
"service-state": "starting-executor",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2"
}
{
"timestamp" : "1355983014",
"ipaddress" : "10.0.0.2",
"executor" : "service-executor",
"service-state": "executor-started",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2",
"executor-pid" : "566"
}
{
"timestamp" : "1355983015",
"ipaddress" : "10.0.0.2",
"tasks" : ["http://broker/tasks/task3.json"],
"executor" : "service-executor",
"service-state": "installing-service",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2",
"executor-pid" : "566",
"service-name" : "tomcat"
}
{
"timestamp" : "1355983016",
"ipaddress" : "10.0.0.2",
"tasks" : ["http://broker/tasks/task3.json"],
"executor" : "service-executor",
"service-state": "service-installed",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2",
"executor-pid" : "566",
"service-name" : "tomcat"
}
{
"timestamp" : "1355983017",
"ipaddress" : "10.0.0.2",
"tasks" : ["http://broker/tasks/task4.json"],
"executor" : "service-executor",
"service-state": "starting-service",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2",
"executor-pid" : "566",
"service-name" : "tomcat"
}
{
"timestamp" : "1355983018",
"ipaddress" : "10.0.0.2",
"tasks" : ["http://broker/tasks/task4.json"],
"executor" : "service-executor",
"service-state": "service-started",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f",
"ipaddress" : "10.0.0.2",
"executor-pid" : "566",
"service-name" : "tomcat",
"service-pids" : ["612"]
}
[
"http://broker/executors/executor2/1355983011.json",
"http://broker/executors/executor2/1355983012.json",
"http://broker/executors/executor2/1355983013.json",
"http://broker/executors/executor2/1355983014.json",
"http://broker/executors/executor2/1355983015.json",
"http://broker/executors/executor2/1355983016.json",
"http://broker/executors/executor2/1355983017.json",
"http://broker/executors/executor2/1355983018.json"
]
{
"source" : "http://broker/orchestrators/orchestrator1",
"target" : "http://broker/executors/executor1",
"impersonated-target" : "http://broker/executors/executor2",
"execute" : "start-cloud-machine",
"cloud" : "aws-ec2",
"image" : "us-east-1/ami-1624987f"
}
{
"source" : "http://broker/orchestrators/orchestrator1",
"target" : "http://broker/executors/executor1",
"impersonated-target" : "http://broker/executors/executor2",
"execute" : "start-executor",
"executor-id" : "http://broker/executors/executor2"
}
{
"source" : "http://broker/orchestrators/orchestrator1",
"target" : "http://broker/executors/executor2",
"execute" : "install-service",
"service-name" : "tomcat"
}
{
"source" : "http://broker/orchestrators/orchestrator1",
"target" : "http://broker/executors/executor2",
"execute" : "start-service",
"service-name" : "tomcat"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment