in genie-ui/src/main/web/scripts/Job.js [15:94]
get formFields() {
return [
{ label: "User Name", name: "user", value: "", type: "input" },
{ label: "Job Id", name: "id", value: "", type: "input" },
{ label: "Job Name", name: "name", value: "", type: "input" },
{
label: "Status",
name: "status",
value: "",
type: "select",
selectFields: [
"INIT",
"RUNNING",
"SUCCEEDED",
"FAILED",
"KILLED",
"INVALID"
].map(field => ({ value: field, label: field }))
},
{
label: "Start Range",
name: "startTime",
value: [],
type: "timeRange",
queryMapping: ["minStarted", "maxStarted"],
mapper: x => moment(parseInt(x, 10)).utc()
},
{
label: "Finished Range",
name: "finishedTime",
value: [],
type: "timeRange",
queryMapping: ["minFinished", "maxFinished"],
mapper: x => moment(parseInt(x, 10)).utc()
},
{
label: "Size",
name: "size",
value: 25,
type: "option",
optionValues: [10, 25, 50, 100]
},
{
label: "Sort By",
name: "sort",
value: "",
type: "select",
selectFields: [
"user",
"id",
"name",
"status",
"clusterName",
"clusterId",
"created",
"started",
"finished"
].map(field => ({ value: field, label: field }))
},
{
label: "Order",
name: "sortOrder",
value: "desc",
type: "sortOption",
optionValues: ["desc", "asc"]
},
{ label: "Tags", name: "tag", value: "", type: "input" },
{ label: "Cluster Name", name: "clusterName", value: "", type: "input" },
{ label: "Cluster ID", name: "clusterId", value: "", type: "input" },
{ label: "Command Name", name: "commandName", value: "", type: "input" },
{ label: "Command ID", name: "commandId", value: "", type: "input" },
{ label: "Grouping", name: "grouping", value: "", type: "input" },
{
label: "Grouping Instance",
name: "groupingInstance",
value: "",
type: "input"
}
];
}