github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/recommendation/info.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: recommendation info'
     4  sidebar_title: info
     5  description: |
     6    The recommendation info command is used to read the specified recommendation.
     7  ---
     8  
     9  # Command: recommendation info
    10  
    11  The `recommendation info` command is used to read the specified recommendation.
    12  
    13  ~> Recommendation commands are new in Nomad 1.0 and are only available with
    14  Nomad Enterprise.
    15  
    16  ## Usage
    17  
    18  ```plaintext
    19  nomad recommendation info [options] <recommendation_id>
    20  ```
    21  
    22  The `recommendation info` command requires a single argument, a recommendation ID.
    23  
    24  When ACLs are enabled, this command requires a token with the `read-job`
    25  capability for the recommendation's namespace.
    26  
    27  ## General Options
    28  
    29  @include 'general_options.mdx'
    30  
    31  ## Info Options
    32  
    33  - `-json` : Output the recommendation in its JSON format.
    34  
    35  - `-t` : Format and display the recommendation using a Go template.
    36  
    37  ## Examples
    38  
    39  View the information of a specific recommendation:
    40  
    41  ```shell-session
    42  $ nomad recommendation info 68236421-c90f-efa6-fc02-37ae2d59bf03
    43  ID         = 68236421-c90f-efa6-fc02-37ae2d59bf03
    44  Namespace  = default
    45  Job ID     = example
    46  Task Group = cache
    47  Task       = redis
    48  Resource   = CPU
    49  Value      = 57
    50  Current    = 500
    51  
    52  Stats
    53  max   mean  min   p99
    54  5.89  1.66  0.44  5.89
    55  
    56  Meta
    57  nomad_policy_id       = e20dc742-dd5d-5419-8add-c5e0233933f5
    58  num_evaluated_windows = 2
    59  window_size           = 3e+11
    60  ```