{"swagger":"2.0","info":{"title":"code-deploy-dashboard","description":"Code Deploy Dashboard.","contact":{"name":"Graham Rhodes","email":"graham.a.r@gmail.com"},"version":"0.0.1-dev"},"host":"code-deploy-dashboard.tools.gilt.com","basePath":"/","schemes":["http"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/application":{"get":{"parameters":[],"responses":{"200":{"description":"200 response","schema":{"type":"array","items":{"$ref":"#/definitions/application"}}}}}},"/info":{"get":{"parameters":[],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/info"}}}}}},"definitions":{"application":{"type":"object","title":"application","required":["name","deploymentGroups"],"properties":{"name":{"description":"Name of this application.","type":"string"},"deploymentGroups":{"type":"array","items":{"$ref":"#/definitions/deployment_group"}}}},"deployment":{"type":"object","title":"deployment","required":["id","created","started","completed","creator","deployment_group_name","failed","skipped","in_progress","pending","succeeded","status","revision_location","instances"],"properties":{"id":{"description":"The deployment id","type":"string"},"created":{"description":"Date deployment created","type":"string","format":"date-time"},"started":{"description":"Date deployment started","type":"string","format":"date-time"},"completed":{"description":"Date deployment created","type":"string","format":"date-time"},"creator":{"type":"string"},"deployment_group_name":{"description":"The deployment group name","type":"string"},"failed":{"description":"The number of instances failed deployment","type":"integer","format":"int32"},"skipped":{"description":"The number of instances skipped deployment","type":"integer","format":"int32"},"in_progress":{"description":"The number of instances currently deploying","type":"integer","format":"int32"},"pending":{"description":"The number of instances pending deployment","type":"integer","format":"int32"},"succeeded":{"description":"The number of instances succeeded at deployment","type":"integer","format":"int32"},"status":{"description":"The status of the deployment","type":"string"},"error_message":{"description":"A error message if the deployment failed","type":"string"},"revision_location":{"description":"The location of the revision","type":"string"},"instances":{"type":"array","items":{"$ref":"#/definitions/deployment_instance"}}}},"deployment_group":{"type":"object","title":"deployment_group","required":["name","autoScalingGroupNames"],"properties":{"name":{"description":"Name of this deployment group.","type":"string"},"autoScalingGroupNames":{"description":"List of auto scaling groups for this deployment group.","type":"array","items":{"type":"string"}}}},"deployment_instance":{"type":"object","title":"deployment_instance","required":["id","status","last_updated_at","lifecycle_events"],"properties":{"id":{"description":"The instance id","type":"string"},"status":{"description":"The status of this instances deployment","type":"string"},"last_updated_at":{"description":"Last updated at time","type":"string","format":"date-time"},"lifecycle_events":{"type":"array","items":{"$ref":"#/definitions/deployment_lifecycle_event"}}}},"deployment_lifecycle_event":{"type":"object","title":"deployment_lifecycle_event","required":["name","start_time","end_time","status"],"properties":{"name":{"description":"The deployment lifecycle event name","type":"string"},"start_time":{"description":"Time the deployment lifecycle event started","type":"string","format":"date-time"},"end_time":{"description":"Time the deployment lifecycle event ended","type":"string","format":"date-time"},"status":{"description":"The status of the deployment lifecycle event","type":"string"},"error_log_tail":{"description":"The deployment lifecycle event log tail if it failed","type":"string"},"error_message":{"description":"The deployment lifecycle event error message if it failed","type":"string"},"script_name":{"description":"The deployment lifecycle event script filename if it failed","type":"string"}}},"info":{"type":"object","title":"info","required":["name","version","scala_version","sbt_version","build_time"],"properties":{"name":{"description":"Name of this service.","type":"string"},"version":{"description":"Version of this service.","type":"string"},"scala_version":{"description":"Version of Scala this service is using.","type":"string"},"sbt_version":{"description":"Version of SBT used to build this service.","type":"string"},"build_time":{"description":"Time the service was built at.","type":"string","format":"date-time"}}}}}