github.com/smintz/nomad@v0.8.3/website/source/guides/sentinel/job.html.md (about)

     1  ---
     2  layout: "guides"
     3  page_title: "Sentinel Job Object"
     4  sidebar_current: "guides-sentinel-job"
     5  description: |-
     6    Job objects can be introspected to apply fine grained Sentinel policies.
     7  ---
     8  
     9  # Sentinel Job Objects
    10  
    11  The `job` object is made available to policies in the `submit-job` scope automatically, without an explicit import.
    12  The object maps to the [JSON Specification of jobs](/api/json-jobs.html), but fields differ slightly for better readability.
    13  
    14  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:
    15  
    16  | Job Field                               | Sentinel Accessor      |
    17  | --------------------------------------- | ---------------------- |
    18  | `job.ID       `                         | `job.id`               |
    19  | `job.AllAtOnce`                         | `job.all_at_once`      |
    20  | `job.ParentID`                          | `job.parent_id`        |
    21  | `job.TaskGroups`                        | `job.task_groups`      |
    22  | `job.TaskGroups[0].EphemeralDisk.SizeMB`| `job.task_groups[0].ephemeral_disk.size_mb` |
    23