Command
terminus env:metrics
Description
Displays the pages served and unique visit metrics for the specified site environment. The most recent data up to the current day is returned.
Example Usage
terminus env:metrics --period PERIOD --datapoints DATAPOINTS --format FORMAT --fields FIELDS --field FIELD -- <site>.<env>env:metrics <site>.<env> Displays metrics for <site>'s <env> environment.
env:metrics <site> Displays the combined metrics for all of <site>'s
env:metrics <site> --fields=datetime,pages_served Displays only the pages
metrics
Options
| Option | Description |
|---|---|
| --ansi | Force (or disable --no-ansi) ANSI output |
| --datapoints | How much data to return in total, or 'auto' to select a resonable default based on the selected period. |
| --define | Define a configuration item value. |
| --field | Select just one field, and force format to *string*. |
| --fields | Available fields: Period (datetime), Visits (visits), Pages Served (pages_served), Cache Hits (cache_hits), Cache Misses (cache_misses), Cache Hit Ratio (cache_hit_ratio) |
| --format | Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml |
| --help | Display help for the given command. When no command is given display help for the <info>list</info> command |
| --no-ansi | Negate the "--ansi" option |
| --no-interaction | Do not ask any interactive question |
| --period | The time period for each data point (month|week|day) |
| --quiet | Do not output any message |
| --verbose | Increase the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv) |
| --version | Display this application version |
| --yes | Answer all confirmations with "yes" |