API Requirements
Graph
Information Provided:
- List of namespaces
- Start Time
- End Time
- Time Resolution
Information Needed:
- Memory Usage over time per namespace, cluster, and max available
- Core Usage over time per namespace, cluster, and max available
- Bucketed over time resolution aggregate. (The aggregate, we should be able to identify pipeline vs custom app):
- Manual start
- Scheduled start
- Status (RUNNING, COMPLETED, FAILED)
- Delay between STARTING and RUNNING
- If start time and end time is for future date, show the scheduled apps
Details when Graph Time Range is Clicked
Information Provided:
- List of Namespace
- Start Time
- End Time
Information Needed:
- Entity Details:
- Namespace
- App Name
- Program Type
- Program Name
- Parent Artifact
- Duration
- User
- Start Method (time schedule, trigger, manual)
- Status
Reports View
Information Provided:
- List of namespaces
- List of statuses
- Start Time
- End Time
Information Needed:
- Entity Details:
- Namespace
- App Name
- Program Type
- Program Name
- Parent Artifact
- Duration
- User
- Start Method
- Status
- Runtime Arguments
- Memory Usage
- Number of CPU
- Number of Containers
- Number of Log Warnings
- Number of Log Errors
- Number of records out
- Summary Counts:
- Runs per namespace
- Time range
- Pipelines (Realtime vs Batch), custom apps
- Durations: min, max, average
- Last Started: Oldest and Newest
- List of users & count per user
- List of start method & count per methods
Action Items:
1. What happens to older version of CDAP that gets upgraded to 5.0.0 that doesn’t have some information (ie. program start methods)
2. Future timeline (design should get updated, grey out the statuses and manually started in graph)
3. Feasibility of features (core & memory usage, start methods for programs)
4. How should the runs list be displayed, Batch vs Realtime vs Custom Apps (collapsed by workflow? What about if the programs started outside workflow?)
5. Permalink in Reports view? Unsure about time ranges, can we get exact time range? authorization: if the user getting the permalink do not have access to some of the namespaces, etc.
6. Need to figure out how to generate the summary section in Reports view. Pre-aggregate from backend? Pagination issue with the list view