Details

      Description

      Marathon Rest API "/v2/apps/

      {app_id}

      /tasks" return without docker container name.

      I saw formats in src/main/scala/mesosphere/marathon/api/v2/json/Formats.scala.

      Like:

      val base = Json.obj(
      "id" -> task.taskId,
      "slaveId" -> task.agentInfo.agentId,
      "host" -> task.agentInfo.host,
      "state" -> task.mesosStatus.fold(mesos.TaskState.TASK_STAGING)(_.getState)
      )

      I want to add an op like this:

      val base = Json.obj(
      "id" -> task.taskId,
      "containerName": task.containerName.
      "slaveId" -> task.agentInfo.agentId,
      "host" -> task.agentInfo.host,
      "state" -> task.mesosStatus.fold(mesos.TaskState.TASK_STAGING)(_.getState)
      )

      Or tell me where the code path marathon get mesos returned data and parsing them.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              GitHub_JerryDog JerryDog (Inactive)
              Team:
              ( DO NOT USE ) Orchestration Team
              Watchers:
              Jason Gilanfarr (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: