open-nomad/website/source/guides/governance-and-policy/sentinel/job.html.md
Yishan Lin 968e67547a Revised NomadProject Structure
- Revised "What is Nomad" copy
- Added "Key Features" section with links to task drivers & device plugins with lift-and-shift from README
- Added "Who Uses Nomad" section with users, talks, blog posts
- Removed Hadoop YARN, Docker Swarm, HTCondor from comparisons
- Revamped Guides section
- Inserted "Installing Nomad", "Upgrading", "Integrations" as persistent in Guides navbar
- Split Installing Nomad into two paths for users (one for Sandbox with "Quickstart", one for Production)
- Surfaced "Upgrading" and "Integrations" section from documentation
- Changed "Job Lifecycle" section into "Deploying & Managing Applications"
- Reworked "Operations" into "Operating Nomad"
- Reworked "Security" into "Securing Nomad"
- Segmented Namespaces, Resource Quotas, Sentinel into "Governance & Policy" subsection
- Reworked "Spark integration" into its own "Analytical Workloads" section
2019-05-08 14:40:38 -07:00

1.2 KiB

layout page_title sidebar_current description
guides Sentinel Job Object guides-governance-and-policy-sentinel-job Job objects can be introspected to apply fine grained Sentinel policies.

Sentinel Job Objects

The job object is made available to policies in the submit-job scope automatically, without an explicit import. The object maps to the JSON Specification of jobs, but fields differ slightly for better readability.

Sentinel convention for identifiers is lower case and separated by underscores. All fields on the job are accessed by the same name, converted to lower case and separating camel case to underscores. Here are some examples:

Job Field Sentinel Accessor
job.ID job.id
job.AllAtOnce job.all_at_once
job.ParentID job.parent_id
job.TaskGroups job.task_groups
job.TaskGroups[0].EphemeralDisk.SizeMB job.task_groups[0].ephemeral_disk.size_mb