Class TimelineReaderWebServices

java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWebServices

@Private @Unstable @Singleton @Path("/ws/v2/timeline") public class TimelineReaderWebServices extends Object
REST end point for Timeline Reader.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.yarn.api.records.timeline.TimelineAbout
    about(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
    Return the description of the timeline reader web services.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getApp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String uId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd)
    Return a single app for given UID which is a delimited string containing clusterid, userid, flow name, flowrun id and app id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getApp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String flowName, String flowRunId, String userId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd)
    Return a single app for given app id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getApp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String flowName, String flowRunId, String userId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd)
    Return a single app for given cluster id and app id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
    Return a single application-attempt entity for the given attempt Id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String appAttemptId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
    Return a single application attempt entity of the given entity Id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getAppAttempts(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a set of application-attempt entities for a given applicationId.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getAppAttempts(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a set of application-attempt entities for a given applicationId.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getContainer(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String containerId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
    Return a single container entity for the given container Id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getContainer(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String containerId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
    Return a single container entity for the given container Id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appattemptId, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a set of container entities belonging to given application attempt id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String appattemptId, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a set of container entities belonging to given application attempt id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String uId, String entityType, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a single entity for a given entity type and UID which is a delimited string containing clusterid, userid, flow name, flowrun id and app id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String entityType, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a set of entities that match the given parameters.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String entityType, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a set of entities that match the given parameters.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String entityType, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId, boolean genericEntity)
     
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getEntity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String uId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd)
    Return a single entity for given UID which is a delimited string containing clusterid, userid, flow name, flowrun id, app id, entity type and entityid.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getEntity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String entityType, String entityId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
    Return a single entity of the given entity type and Id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getEntity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String entityType, String entityId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
    Return a single entity of the given entity type and Id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getEntity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String entityType, String entityId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix, boolean genericEntity)
     
    getEntityTypes(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String flowName, String flowRunId, String userId)
    Returns a set of available entity types for a given app id.
    getEntityTypes(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String flowName, String flowRunId, String userId)
    Returns a set of available entity types for a given app id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String userId, String flowName, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a list of apps for given user and flow name.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String userId, String flowName, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a list of apps for a given user, cluster id and flow name.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getFlowRun(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String uId, String metricsToRetrieve)
    Return a single flow run for given UID which is a delimited string containing clusterid, userid, flow name and flowrun id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getFlowRun(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String userId, String flowName, String flowRunId, String metricsToRetrieve)
    Return a single flow run for the given user, flow name and run id.
    org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
    getFlowRun(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String userId, String flowName, String flowRunId, String metricsToRetrieve)
    Return a single flow run for the given user, cluster, flow name and run id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowRunApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String uId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a list of apps for given UID which is a delimited string containing clusterid, userid, flow name and flowrun id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowRunApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a list of apps for given user, flow name and flow run id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowRunApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
    Return a list of apps for a given user, cluster id, flow name and flow run id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowRuns(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String uId, String limit, String createdTimeStart, String createdTimeEnd, String metricsToRetrieve, String fields, String fromId)
    Return a list of flow runs for given UID which is a delimited string containing clusterid, userid and flow name.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowRuns(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String userId, String flowName, String limit, String createdTimeStart, String createdTimeEnd, String metricsToRetrieve, String fields, String fromId)
    Return a set of flows runs for the given user and flow name.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlowRuns(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String userId, String flowName, String limit, String createdTimeStart, String createdTimeEnd, String metricsToRetrieve, String fields, String fromId)
    Return a set of flows runs for the given cluster, user and flow name.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlows(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String limit, String dateRange, String fromId)
    Return a list of active flows.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getFlows(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String limit, String dateRange, String fromId)
    Return a list of active flows for a given cluster id.
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getSubAppEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String userId, String entityType, String entityId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
     
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getSubAppEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String userId, String entityType, String entityId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix)
     
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getSubAppEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String userId, String entityType, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
     
    Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>
    getSubAppEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String userId, String entityType, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId)
     
    javax.ws.rs.core.Response
    health(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
    Health check REST end point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimelineReaderWebServices

      public TimelineReaderWebServices()
  • Method Details

    • about

      @GET @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timeline.TimelineAbout about(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res)
      Return the description of the timeline reader web services.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      Returns:
      information about the cluster including timeline version.
    • health

      @GET @Path("/health") @Produces("application/json; charset=utf-8") public javax.ws.rs.core.Response health(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res)
      Health check REST end point.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      Returns:
      A Response object with HTTP status 200 OK if the service is running. Otherwise, a Response object with HTTP status 500 is returned.
    • getEntities

      @GET @Path("/app-uid/{uid}/entities/{entitytype}") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("uid") String uId, @PathParam("entitytype") String entityType, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a single entity for a given entity type and UID which is a delimited string containing clusterid, userid, flow name, flowrun id and app id.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      uId - a delimited string containing clusterid, userid, flow name, flowrun id and app id which are extracted from UID and then used to query backend(Mandatory path param).
      entityType - Type of entities(Mandatory path param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id and created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the entities would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the entities would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of entities from the given fromId. The set of entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the given entity type is returned.
      On failures,
      If any problem occurs in parsing request or UID is incorrect, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntities

      @GET @Path("/apps/{appid}/entities/{entitytype}") @Produces("application/json; charset=utf-8") @Consumes("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("entitytype") String entityType, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a set of entities that match the given parameters. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and default cluster id from the flow context information stored in underlying storage implementation. If number of matching entities are more than the limit, most recent entities till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to which the entities to be queried belong to( Mandatory path param).
      entityType - Type of entities(Mandatory path param).
      userId - User id which should match for the entities(Optional query param)
      flowName - Flow name which should match for the entities(Optional query param).
      flowRunId - Run id which should match for the entities(Optional query param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the entities would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the entities would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of entities from the given fromId. The set of entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the given entity type is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntities

      @GET @Path("/clusters/{clusterid}/apps/{appid}/entities/{entitytype}") @Produces("application/json; charset=utf-8") @Consumes("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @PathParam("entitytype") String entityType, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a set of entities that match the given parameters. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation. If number of matching entities are more than the limit, most recent entities till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the entities to be queried belong to( Mandatory path param).
      appId - Application id to which the entities to be queried belong to( Mandatory path param).
      entityType - Type of entities(Mandatory path param).
      userId - User id which should match for the entities(Optional query param)
      flowName - Flow name which should match for the entities(Optional query param).
      flowRunId - Run id which should match for the entities(Optional query param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the entities would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the entities would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of entities from the given fromId. The set of entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the given entity type is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntities

      public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String entityType, String userId, String flowName, String flowRunId, String limit, String createdTimeStart, String createdTimeEnd, String relatesTo, String isRelatedTo, String infofilters, String conffilters, String metricfilters, String eventfilters, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String fromId, boolean genericEntity)
    • getEntity

      @GET @Path("/entity-uid/{uid}/") @Produces("application/json; charset=utf-8") @Consumes("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("uid") String uId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd)
      Return a single entity for given UID which is a delimited string containing clusterid, userid, flow name, flowrun id, app id, entity type and entityid.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      uId - a delimited string containing clusterid, userid, flow name, flowrun id, app id, entity type and entity id which are extracted from UID and then used to query backend(Mandatory path param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the entity would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the entity would not contain metric values after this timestamp(Optional query param).
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request or UID is incorrect, HTTP 400(Bad Request) is returned.
      If entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntity

      public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String clusterId, String appId, String entityType, String entityId, String userId, String flowName, String flowRunId, String confsToRetrieve, String metricsToRetrieve, String fields, String metricsLimit, String metricsTimeStart, String metricsTimeEnd, String entityIdPrefix, boolean genericEntity)
    • getEntity

      @GET @Path("/apps/{appid}/entities/{entitytype}/{entityid}/") @Produces("application/json; charset=utf-8") @Consumes("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("entitytype") String entityType, @PathParam("entityid") String entityId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
      Return a single entity of the given entity type and Id. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and default cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to which the entity to be queried belongs to( Mandatory path param).
      entityType - Type of entity(Mandatory path param).
      entityId - Id of the entity to be fetched(Mandatory path param).
      userId - User id which should match for the entity(Optional query param).
      flowName - Flow name which should match for the entity(Optional query param).
      flowRunId - Run id which should match for the entity(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the entity would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the entity would not contain metric values after this timestamp(Optional query param).
      entityIdPrefix - Defines the id prefix for the entity to be fetched. If specified, then entity retrieval will be faster.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntity

      @GET @Path("/clusters/{clusterid}/apps/{appid}/entities/{entitytype}/{entityid}/") @Produces("application/json; charset=utf-8") @Consumes("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @PathParam("entitytype") String entityType, @PathParam("entityid") String entityId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
      Return a single entity of the given entity type and Id. If userid, flowname and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the entity to be queried belongs to( Mandatory path param).
      appId - Application id to which the entity to be queried belongs to( Mandatory path param).
      entityType - Type of entity(Mandatory path param).
      entityId - Id of the entity to be fetched(Mandatory path param).
      userId - User id which should match for the entity(Optional query param).
      flowName - Flow name which should match for the entity(Optional query param).
      flowRunId - Run id which should match for the entity(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id and created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the entity would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the entity would not contain metric values after this timestamp(Optional query param).
      entityIdPrefix - Defines the id prefix for the entity to be fetched. If specified, then entity retrieval will be faster.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRun

      @GET @Path("/run-uid/{uid}/") @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getFlowRun(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("uid") String uId, @QueryParam("metricstoretrieve") String metricsToRetrieve)
      Return a single flow run for given UID which is a delimited string containing clusterid, userid, flow name and flowrun id.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      uId - a delimited string containing clusterid, userid, flow name and flowrun id which are extracted from UID and then used to query backend (Mandatory path param).
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a FlowRunEntity instance is returned. By default, all metrics for the flow run will be returned.
      On failures,
      If any problem occurs in parsing request or UID is incorrect, HTTP 400(Bad Request) is returned.
      If flow run for the given flow run id cannot be found, HTTP 404 (Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRun

      @GET @Path("/users/{userid}/flows/{flowname}/runs/{flowrunid}/") @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getFlowRun(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @PathParam("flowrunid") String flowRunId, @QueryParam("metricstoretrieve") String metricsToRetrieve)
      Return a single flow run for the given user, flow name and run id. Cluster ID is not provided by client so default cluster ID has to be taken.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      userId - User id representing the user who ran the flow run(Mandatory path param).
      flowName - Flow name to which the flow run to be queried belongs to( Mandatory path param).
      flowRunId - Id of the flow run to be queried(Mandatory path param).
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a FlowRunEntity instance is returned. By default, all metrics for the flow run will be returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow run for the given flow run id cannot be found, HTTP 404 (Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRun

      @GET @Path("/clusters/{clusterid}/users/{userid}/flows/{flowname}/runs/{flowrunid}/") @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getFlowRun(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @PathParam("flowrunid") String flowRunId, @QueryParam("metricstoretrieve") String metricsToRetrieve)
      Return a single flow run for the given user, cluster, flow name and run id.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the flow run to be queried belong to( Mandatory path param).
      userId - User id representing the user who ran the flow run(Mandatory path param).
      flowName - Flow name to which the flow run to be queried belongs to( Mandatory path param).
      flowRunId - Id of the flow run to be queried(Mandatory path param).
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a FlowRunEntity instance is returned. By default, all metrics for the flow run will be returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow run for the given flow run id cannot be found, HTTP 404 (Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRuns

      @GET @Path("/flow-uid/{uid}/runs/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowRuns(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("uid") String uId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("fromid") String fromId)
      Return a list of flow runs for given UID which is a delimited string containing clusterid, userid and flow name.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      uId - a delimited string containing clusterid, userid, and flow name which are extracted from UID and then used to query backend(Mandatory path param).
      limit - If specified, defines the number of flow runs to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched flow runs should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched flow runs should not be created after this timestamp(Optional query param).
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. Amongst all the fields, only METRICS makes sense for flow runs hence only ALL or METRICS are supported as fields for fetching flow runs. Other fields will lead to HTTP 400 (Bad Request) response. (Optional query param).
      fromId - If specified, retrieve the next set of flow run entities from the given fromId. The set of entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of FlowRunEntity instances for the given flow are returned.
      On failures,
      If any problem occurs in parsing request or UID is incorrect, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRuns

      @GET @Path("/users/{userid}/flows/{flowname}/runs/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowRuns(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("fromid") String fromId)
      Return a set of flows runs for the given user and flow name. Cluster ID is not provided by client so default cluster ID has to be taken.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      userId - User id representing the user who ran the flow runs( Mandatory path param)
      flowName - Flow name to which the flow runs to be queried belongs to( Mandatory path param).
      limit - If specified, defines the number of flow runs to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched flow runs should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched flow runs should not be created after this timestamp(Optional query param).
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. Amongst all the fields, only METRICS makes sense for flow runs hence only ALL or METRICS are supported as fields for fetching flow runs. Other fields will lead to HTTP 400 (Bad Request) response. (Optional query param).
      fromId - If specified, retrieve the next set of flow run entities from the given fromId. The set of entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of FlowRunEntity instances for the given flow are returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRuns

      @GET @Path("/clusters/{clusterid}/users/{userid}/flows/{flowname}/runs/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowRuns(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("fromid") String fromId)
      Return a set of flows runs for the given cluster, user and flow name.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the flow runs to be queried belong to( Mandatory path param).
      userId - User id representing the user who ran the flow runs( Mandatory path param)
      flowName - Flow name to which the flow runs to be queried belongs to( Mandatory path param).
      limit - If specified, defines the number of flow runs to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched flow runs should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched flow runs should not be created after this timestamp(Optional query param).
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. Amongst all the fields, only METRICS makes sense for flow runs hence only ALL or METRICS are supported as fields for fetching flow runs. Other fields will lead to HTTP 400 (Bad Request) response. (Optional query param).
      fromId - If specified, retrieve the next set of flow run entities from the given fromId. The set of entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of FlowRunEntity instances for the given flow are returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlows

      @GET @Path("/flows/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlows(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @QueryParam("limit") String limit, @QueryParam("daterange") String dateRange, @QueryParam("fromid") String fromId)
      Return a list of active flows. Cluster ID is not provided by client so default cluster ID has to be taken.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      limit - If specified, defines the number of flows to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      dateRange - If specified is given as "[startdate]-[enddate]"(i.e. start and end date separated by "-") or single date. Dates are interpreted in yyyyMMdd format and are assumed to be in GMT(Optional query param). If a single date is specified, all flows active on that date are returned. If both startdate and enddate is given, all flows active between start and end date will be returned. If only startdate is given, flows active on and after startdate are returned. If only enddate is given, flows active on and before enddate are returned. For example : "daterange=20150711" returns flows active on 20150711. "daterange=20150711-20150714" returns flows active between these 2 dates. "daterange=20150711-" returns flows active on and after 20150711. "daterange=-20150711" returns flows active on and before 20150711.
      fromId - If specified, retrieve the next set of flows from the given fromId. The set of flows retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in flow entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of FlowActivityEntity instances are returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlows

      @GET @Path("/clusters/{clusterid}/flows/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlows(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @QueryParam("limit") String limit, @QueryParam("daterange") String dateRange, @QueryParam("fromid") String fromId)
      Return a list of active flows for a given cluster id.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the flows to be queried belong to( Mandatory path param).
      limit - If specified, defines the number of flows to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      dateRange - If specified is given as "[startdate]-[enddate]"(i.e. start and end date separated by "-") or single date. Dates are interpreted in yyyyMMdd format and are assumed to be in GMT(Optional query param). If a single date is specified, all flows active on that date are returned. If both startdate and enddate is given, all flows active between start and end date will be returned. If only startdate is given, flows active on and after startdate are returned. If only enddate is given, flows active on and before enddate are returned. For example : "daterange=20150711" returns flows active on 20150711. "daterange=20150711-20150714" returns flows active between these 2 dates. "daterange=20150711-" returns flows active on and after 20150711. "daterange=-20150711" returns flows active on and before 20150711.
      fromId - If specified, retrieve the next set of flows from the given fromId. The set of flows retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in flow entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of FlowActivityEntity instances are returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getApp

      @GET @Path("/app-uid/{uid}/") @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getApp(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("uid") String uId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd)
      Return a single app for given UID which is a delimited string containing clusterid, userid, flow name, flowrun id and app id.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      uId - a delimited string containing clusterid, userid, flow name, flow run id and app id which are extracted from UID and then used to query backend(Mandatory path param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the apps would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the apps would not contain metric values after this timestamp(Optional query param).
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request or UID is incorrect, HTTP 400(Bad Request) is returned.
      If app for the given app id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getApp

      @GET @Path("/apps/{appid}/") @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getApp(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("userid") String userId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd)
      Return a single app for given app id. Cluster ID is not provided by client client so default cluster ID has to be taken. If userid, flow name and flow run id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to be queried(Mandatory path param).
      flowName - Flow name which should match for the app(Optional query param).
      flowRunId - Run id which should match for the app(Optional query param).
      userId - User id which should match for the app(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the app would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the app would not contain metric values after this timestamp(Optional query param).
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or app for the given app id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getApp

      @GET @Path("/clusters/{clusterid}/apps/{appid}/") @Produces("application/json; charset=utf-8") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getApp(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("userid") String userId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd)
      Return a single app for given cluster id and app id. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the app to be queried belong to( Mandatory path param).
      appId - Application id to be queried(Mandatory path param).
      flowName - Flow name which should match for the app(Optional query param).
      flowRunId - Run id which should match for the app(Optional query param).
      userId - User id which should match for the app(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the app would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the app would not contain metric values after this timestamp(Optional query param).
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or app for the given app id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRunApps

      @GET @Path("/run-uid/{uid}/apps") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowRunApps(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("uid") String uId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a list of apps for given UID which is a delimited string containing clusterid, userid, flow name and flowrun id. If number of matching apps are more than the limit, most recent apps till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      uId - a delimited string containing clusterid, userid, flow name and flowrun id which are extracted from UID and then used to query backend. (Mandatory path param).
      limit - If specified, defines the number of apps to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched apps should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched apps should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched apps should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched apps should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched apps should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched apps should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched apps should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched apps should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the apps would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the apps would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of applications from the given fromId. The set of applications retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances representing apps is returned.
      On failures,
      If any problem occurs in parsing request or UID is incorrect, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRunApps

      @GET @Path("/users/{userid}/flows/{flowname}/runs/{flowrunid}/apps/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowRunApps(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @PathParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a list of apps for given user, flow name and flow run id. Cluster ID is not provided by client so default cluster ID has to be taken. If number of matching apps are more than the limit, most recent apps till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      userId - User id which should match for the apps(Mandatory path param)
      flowName - Flow name which should match for the apps(Mandatory path param).
      flowRunId - Run id which should match for the apps(Mandatory path param).
      limit - If specified, defines the number of apps to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched apps should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched apps should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched apps should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched apps should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched apps should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched apps should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched apps should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched apps should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the apps would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the apps would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of applications from the given fromId. The set of applications retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances representing apps is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowRunApps

      @GET @Path("/clusters/{clusterid}/users/{userid}/flows/{flowname}/runs/{flowrunid}/apps/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowRunApps(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @PathParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a list of apps for a given user, cluster id, flow name and flow run id. If number of matching apps are more than the limit, most recent apps till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the apps to be queried belong to (Mandatory path param).
      userId - User id which should match for the apps(Mandatory path param)
      flowName - Flow name which should match for the apps(Mandatory path param).
      flowRunId - Run id which should match for the apps(Mandatory path param).
      limit - If specified, defines the number of apps to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched apps should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched apps should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched apps should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched apps should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched apps should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched apps should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched apps should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched apps should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the apps would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the apps would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of applications from the given fromId. The set of applications retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances representing apps is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowApps

      @GET @Path("/users/{userid}/flows/{flowname}/apps/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowApps(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a list of apps for given user and flow name. Cluster ID is not provided by client so default cluster ID has to be taken. If number of matching apps are more than the limit, most recent apps till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      userId - User id which should match for the apps(Mandatory path param)
      flowName - Flow name which should match for the apps(Mandatory path param).
      limit - If specified, defines the number of apps to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched apps should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched apps should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched apps should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched apps should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched apps should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched apps should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched apps should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched apps should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the apps would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the apps would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of applications from the given fromId. The set of applications retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances representing apps is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getFlowApps

      @GET @Path("/clusters/{clusterid}/users/{userid}/flows/{flowname}/apps/") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getFlowApps(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("userid") String userId, @PathParam("flowname") String flowName, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a list of apps for a given user, cluster id and flow name. If number of matching apps are more than the limit, most recent apps till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the apps to be queried belong to (Mandatory path param).
      userId - User id which should match for the apps(Mandatory path param)
      flowName - Flow name which should match for the apps(Mandatory path param).
      limit - If specified, defines the number of apps to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched apps should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched apps should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched apps should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched apps should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched apps should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched apps should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched apps should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched apps should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the app entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type(equivalent to YARN_APPLICATION), app id and app created time is returned(Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the apps would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the apps would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of applications from the given fromId. The set of applications retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances representing apps is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getAppAttempts

      @GET @Path("/apps/{appid}/appattempts") @Produces("application/json") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getAppAttempts(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a set of application-attempt entities for a given applicationId. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and default cluster id from the flow context information stored in underlying storage implementation. If number of matching entities are more than the limit, most recent entities till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to which the entities to be queried belong to( Mandatory path param).
      userId - User id which should match for the entities(Optional query param)
      flowName - Flow name which should match for the entities(Optional query param).
      flowRunId - Run id which should match for the entities(Optional query param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the app attempts would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the app attempts would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of application-attempt entities from the given fromId. The set of application-attempt entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the app-attempt entity type is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getAppAttempts

      @GET @Path("/clusters/{clusterid}/apps/{appid}/appattempts") @Produces("application/json") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getAppAttempts(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a set of application-attempt entities for a given applicationId. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation. If number of matching entities are more than the limit, most recent entities till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the entities to be queried belong to( Mandatory path param).
      appId - Application id to which the entities to be queried belong to( Mandatory path param).
      userId - User id which should match for the entities(Optional query param)
      flowName - Flow name which should match for the entities(Optional query param).
      flowRunId - Run id which should match for the entities(Optional query param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the app attempts would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the app attempts would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of application-attempt entities from the given fromId. The set of application-attempt entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the app-attempts entity type is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getAppAttempt

      @GET @Path("/apps/{appid}/appattempts/{appattemptid}") @Produces("application/json") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getAppAttempt(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("appattemptid") String appAttemptId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
      Return a single application-attempt entity for the given attempt Id. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and default cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to which the entity to be queried belongs to( Mandatory path param).
      appAttemptId - Application Attempt Id to which the containers belong to( Mandatory path param).
      userId - User id which should match for the entity(Optional query param).
      flowName - Flow name which should match for the entity(Optional query param).
      flowRunId - Run id which should match for the entity(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the app attempt would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the app attempt would not contain metric values after this timestamp(Optional query param).
      entityIdPrefix - Defines the id prefix for the entity to be fetched. If specified, then entity retrieval will be faster.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getAppAttempt

      @GET @Path("/clusters/{clusterid}/apps/{appid}/appattempts/{appattemptid}") @Produces("application/json") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getAppAttempt(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @PathParam("appattemptid") String appAttemptId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
      Return a single application attempt entity of the given entity Id. If userid, flowname and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the entity to be queried belongs to( Mandatory path param).
      appId - Application id to which the entity to be queried belongs to( Mandatory path param).
      appAttemptId - Application Attempt Id to which the containers belong to( Mandatory path param).
      userId - User id which should match for the entity(Optional query param).
      flowName - Flow name which should match for the entity(Optional query param).
      flowRunId - Run id which should match for the entity(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id and created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the app attempt would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the app attempt would not contain metric values after this timestamp(Optional query param).
      entityIdPrefix - Defines the id prefix for the entity to be fetched. If specified, then entity retrieval will be faster.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getContainers

      @GET @Path("/apps/{appid}/appattempts/{appattemptid}/containers") @Produces("application/json") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getContainers(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("appattemptid") String appattemptId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a set of container entities belonging to given application attempt id. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and default cluster id from the flow context information stored in underlying storage implementation. If number of matching entities are more than the limit, most recent entities till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to which the entities to be queried belong to( Mandatory path param).
      appattemptId - Application Attempt Id to which the containers belong to( Mandatory path param).
      userId - User id which should match for the entities(Optional query param)
      flowName - Flow name which should match for the entities(Optional query param).
      flowRunId - Run id which should match for the entities(Optional query param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the containers would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the containers would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of container entities from the given fromId. The set of container entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the containers belongs to given application attempt id.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getContainers

      @GET @Path("/clusters/{clusterid}/apps/{appid}/appattempts/{appattemptid}/containers") @Produces("application/json") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getContainers(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @PathParam("appattemptid") String appattemptId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
      Return a set of container entities belonging to given application attempt id. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation. If number of matching entities are more than the limit, most recent entities till the limit is reached, will be returned.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the entities to be queried belong to( Mandatory path param).
      appId - Application id to which the entities to be queried belong to( Mandatory path param).
      appattemptId - Application Attempt Id to which the containers belong to( Mandatory path param).
      userId - User id which should match for the entities(Optional query param)
      flowName - Flow name which should match for the entities(Optional query param).
      flowRunId - Run id which should match for the entities(Optional query param).
      limit - If specified, defines the number of entities to return. The maximum possible value for limit can be Long.MAX_VALUE. If it is not specified or has a value less than 0, then limit will be considered as 100. (Optional query param).
      createdTimeStart - If specified, matched entities should not be created before this timestamp(Optional query param).
      createdTimeEnd - If specified, matched entities should not be created after this timestamp(Optional query param).
      relatesTo - If specified, matched entities should relate to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      isRelatedTo - If specified, matched entities should be related to given entities associated with a entity type. relatesto is a comma separated list in the format [entitytype]:[entityid1]:[entityid2]... (Optional query param).
      infofilters - If specified, matched entities should have exact matches to the given info represented as key-value pairs. This is represented as infofilters=info1:value1,info2:value2... (Optional query param).
      conffilters - If specified, matched entities should have exact matches to the given configs represented as key-value pairs. This is represented as conffilters=conf1:value1,conf2:value2... (Optional query param).
      metricfilters - If specified, matched entities should contain the given metrics. This is represented as metricfilters=metricid1, metricid2... (Optional query param).
      eventfilters - If specified, matched entities should contain the given events. This is represented as eventfilters=eventid1, eventid2...
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the containers would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the containers would not contain metric values after this timestamp(Optional query param).
      fromId - If specified, retrieve the next set of container entities from the given fromId. The set of container entities retrieved is inclusive of specified fromId. fromId should be taken from the value associated with FROM_ID info key in entity response which was sent earlier.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a set of TimelineEntity instances of the containers belongs to given application attempt id.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getContainer

      @GET @Path("/apps/{appid}/containers/{containerid}") @Produces("application/json") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getContainer(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("containerid") String containerId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
      Return a single container entity for the given container Id. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flowrun id which are optional query parameters are not specified, they will be queried based on app id and default cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to which the entity to be queried belongs to( Mandatory path param).
      containerId - Container Id to which the entity to be queried belongs to( Mandatory path param).
      userId - User id which should match for the entity(Optional query param).
      flowName - Flow name which should match for the entity(Optional query param).
      flowRunId - Run id which should match for the entity(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id, created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the container would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the container would not contain metric values after this timestamp(Optional query param).
      entityIdPrefix - Defines the id prefix for the entity to be fetched. If specified, then entity retrieval will be faster.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getContainer

      @GET @Path("/clusters/{clusterid}/apps/{appid}/containers/{containerid}") @Produces("application/json") public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getContainer(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @PathParam("containerid") String containerId, @QueryParam("userid") String userId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
      Return a single container entity for the given container Id. If userid, flowname and flowrun id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the entity to be queried belongs to( Mandatory path param).
      appId - Application id to which the entity to be queried belongs to( Mandatory path param).
      containerId - Container Id to which the entity to be queried belongs to( Mandatory path param).
      userId - User id which should match for the entity(Optional query param).
      flowName - Flow name which should match for the entity(Optional query param).
      flowRunId - Run id which should match for the entity(Optional query param).
      confsToRetrieve - If specified, defines which configurations to retrieve and send back in response. These configs will be retrieved irrespective of whether configs are specified in fields to retrieve or not.
      metricsToRetrieve - If specified, defines which metrics to retrieve and send back in response. These metrics will be retrieved irrespective of whether metrics are specified in fields to retrieve or not.
      fields - Specifies which fields of the entity object to retrieve, see TimelineReader.Field. All fields will be retrieved if fields=ALL. If not specified, 3 fields i.e. entity type, id and created time is returned (Optional query param).
      metricsLimit - If specified, defines the number of metrics to return. Considered only if fields contains METRICS/ALL or metricsToRetrieve is specified. Ignored otherwise. The maximum possible value for metricsLimit can be Integer.MAX_VALUE. If it is not specified or has a value less than 1, and metrics have to be retrieved, then metricsLimit will be considered as 1 i.e. latest single value of metric(s) will be returned. (Optional query param).
      metricsTimeStart - If specified, returned metrics for the container would not contain metric values before this timestamp(Optional query param).
      metricsTimeEnd - If specified, returned metrics for the container would not contain metric values after this timestamp(Optional query param).
      entityIdPrefix - Defines the id prefix for the entity to be fetched. If specified, then entity retrieval will be faster.
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a TimelineEntity instance is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or entity for the given entity id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntityTypes

      @GET @Path("/apps/{appid}/entity-types") @Produces("application/json") public Set<String> getEntityTypes(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("userid") String userId)
      Returns a set of available entity types for a given app id. Cluster ID is not provided by client so default cluster ID has to be taken. If userid, flow name and flow run id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      appId - Application id to be queried(Mandatory path param).
      flowName - Flow name which should match for the app(Optional query param).
      flowRunId - Run id which should match for the app(Optional query param).
      userId - User id which should match for the app(Optional query param).
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a list contains all timeline entity types is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or app for the given app id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getEntityTypes

      @GET @Path("/clusters/{clusterid}/apps/{appid}/entity-types") @Produces("application/json") public Set<String> getEntityTypes(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("appid") String appId, @QueryParam("flowname") String flowName, @QueryParam("flowrunid") String flowRunId, @QueryParam("userid") String userId)
      Returns a set of available entity types for a given app id. If userid, flow name and flow run id which are optional query parameters are not specified, they will be queried based on app id and cluster id from the flow context information stored in underlying storage implementation.
      Parameters:
      req - Servlet request.
      res - Servlet response.
      clusterId - Cluster id to which the app to be queried belong to( Mandatory path param).
      appId - Application id to be queried(Mandatory path param).
      flowName - Flow name which should match for the app(Optional query param).
      flowRunId - Run id which should match for the app(Optional query param).
      userId - User id which should match for the app(Optional query param).
      Returns:
      If successful, a HTTP 200(OK) response having a JSON representing a list contains all timeline entity types is returned.
      On failures,
      If any problem occurs in parsing request, HTTP 400(Bad Request) is returned.
      If flow context information cannot be retrieved or app for the given app id cannot be found, HTTP 404(Not Found) is returned.
      For all other errors while retrieving data, HTTP 500(Internal Server Error) is returned.
    • getSubAppEntities

      @GET @Path("/users/{userid}/entities/{entitytype}") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getSubAppEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("userid") String userId, @PathParam("entitytype") String entityType, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
    • getSubAppEntities

      @GET @Path("/clusters/{clusterid}/users/{userid}/entities/{entitytype}") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getSubAppEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("userid") String userId, @PathParam("entitytype") String entityType, @QueryParam("limit") String limit, @QueryParam("createdtimestart") String createdTimeStart, @QueryParam("createdtimeend") String createdTimeEnd, @QueryParam("relatesto") String relatesTo, @QueryParam("isrelatedto") String isRelatedTo, @QueryParam("infofilters") String infofilters, @QueryParam("conffilters") String conffilters, @QueryParam("metricfilters") String metricfilters, @QueryParam("eventfilters") String eventfilters, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("fromid") String fromId)
    • getSubAppEntities

      @GET @Path("/users/{userid}/entities/{entitytype}/{entityid}") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getSubAppEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("userid") String userId, @PathParam("entitytype") String entityType, @PathParam("entityid") String entityId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)
    • getSubAppEntities

      @GET @Path("/clusters/{clusterid}/users/{userid}/entities/{entitytype}/{entityid}") @Produces("application/json; charset=utf-8") public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getSubAppEntities(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("clusterid") String clusterId, @PathParam("userid") String userId, @PathParam("entitytype") String entityType, @PathParam("entityid") String entityId, @QueryParam("confstoretrieve") String confsToRetrieve, @QueryParam("metricstoretrieve") String metricsToRetrieve, @QueryParam("fields") String fields, @QueryParam("metricslimit") String metricsLimit, @QueryParam("metricstimestart") String metricsTimeStart, @QueryParam("metricstimeend") String metricsTimeEnd, @QueryParam("entityidprefix") String entityIdPrefix)