c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

🌸 c8y(1) β€” the manual page for c8y-tenantstatistics-listSummaryForTenant πŸ’…

Okay bestie, listen up, because this manual page is literally about getting your tenant's whole usage vibe check. It's giving "commands that actually matter" and I'm obsessed. No cap. 🫢


✨ NAME ✨

c8y-tenantstatistics-listSummaryForTenant β€” Get tenant usage summary statistics

Like, it's the whole point of the command. You want the stats? This is the one. Periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

c8y tenantstatistics listSummaryForTenant [flags]

Keep that exactly as it is, bestie, because commands are ✨iconic✨ and we don't mess with them.


🌈 DESCRIPTION 🌈

So the tea is: this command gets you a summary of requests and database usage from the start of this month until now. It's a little snapshot of your tenant's activity, and honestly? Super useful. Not me checking my stats every five minutes like a main character. πŸ’€


πŸ’– OPTIONS πŸ’–

Alright, let's go through these one by one. Each one slays in its own way.

  • --dateFrom="" β€” Where the stats should start. Can be a date, or a date-and-time situation. Default is empty string.
  • --dateTo="" β€” Where the stats should end. Again, date or date-and-time. Default is empty string.
  • -h, --help[=false] β€” The classic help flag. Shows you the help for listSummaryForTenant. Default false, obviously.

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

These are the ones you get from the parent command β€” like when your older sibling lets you borrow their clothes. So many options, but we're going to go through every single one because that's how we do.

  • --abortOnErrors=10 β€” Aborts the batch when you hit this number of errors. Default is 10.
  • --allowEmptyPipe[=false] β€” Don't fail when piped input is empty (stdin). Default false.
  • --cache[=false] β€” Enables cached responses. Default false.
  • --cacheBodyPaths=[] β€” Cache should limit hashing to the selected paths in the JSON body. Empty means all values. Default is [].
  • --cacheTTL="60s" β€” Cache time-to-live (TTL) as a duration, like 60s or 2m. Default is "60s".
  • -c, --compact[=false] β€” Compact instead of pretty-printed output when using JSON output. Pretty print is the default if the output is the terminal. Default false.
  • --confirm[=false] β€” Prompts for confirmation. Default false.
  • --confirmText="" β€” Custom confirmation text. Default empty string.
  • --currentPage=0 β€” The current page that should be returned. Default 0.
  • --customQueryParam=[] β€” Adds custom URL query parameters, i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. Default [].
  • --debug[=false] β€” Sets very verbose log messages. Default false.
  • --delay="0ms" β€” Delay after each request, i.e. 5ms, 1.2s. Default "0ms".
  • --delayBefore="0ms" β€” Delay before each request, i.e. 5ms, 1.2s. Default "0ms".
  • --dry[=false] β€” Dry run. Doesn't send any data to the server. Default false.
  • --dryFormat="markdown" β€” Dry run output format, i.e. json, dump, markdown or curl. Default "markdown".
  • --examples[=false] β€” Shows examples for the current command. Default false.
  • --filter=[] β€” Applies a client-side filter to the response before returning it to the user. Default [].
  • --flatten[=false] β€” Flattens JSON output by replacing nested JSON properties with properties where their names are represented by dot notation. Default false.
  • -f, --force[=false] β€” Does not prompt for confirmation. Ignored when using --confirm. Default false.
  • -H, --header=[] β€” Custom headers, i.e. --header "Accept: value, AnotherHeader: myvalue". Default [].
  • --includeAll[=false] β€” Includes all results by iterating through each page. Default false.
  • -k, --insecure[=false] β€” Allows insecure server connections when using SSL. Default false.
  • -l, --logMessage="" β€” Adds a custom message to the activity log. Default empty string.
  • --maxJobs=0 β€” Maximum number of jobs. 0 means unlimited (use with caution!). Default 0. > ⚠️ Use with caution, bestie β€” unlimited jobs can get wild.
  • --noAccept[=false] β€” Ignores the Accept header, which removes the Accept header from requests. However, PUT and POST requests will only see the effect. Default false.
  • --noCache[=false] β€” Forces disabling of cached responses (overwrites the cache setting). Default false.
  • -M, --noColor[=false] β€” Don't use colors when displaying log entries on the console. Default false.
  • --noLog[=false] β€” Disables the activity log for the current command. Default false.
  • --noProgress[=false] β€” Disables progress bars. Default false.
  • --noProxy[=false] β€” Ignores the proxy settings. Default false.
  • -n, --nullInput[=false] β€” Don't read the input (stdin). Useful if you're using it in a shell for/while loop. Default false.
  • -o, --output="table" β€” Output format, i.e. table, json, csv, csvheader. Default is "table".
  • --outputFile="" β€” Saves JSON output to file (after select/view). Default empty string.
  • --outputFileRaw="" β€” Saves the raw response to file (before select/view). Default empty string.
  • --outputTemplate="" β€” Jsonnet template to apply to the output. Default empty string.
  • -p, --pageSize=5 β€” Maximum results per page. Default 5.
  • --progress[=false] β€” Shows progress bar. This will also disable any other verbose output. Default false.
  • --proxy="" β€” Proxy setting, i.e. http://10.0.0.1:8080. Default empty string.
  • -r, --raw[=false] β€” Shows raw response. This mode will force output=json and view=off. Default false.
  • --retries=3 β€” Max number of attempts when a failed HTTP call is encountered. Default 3.
  • --select=[] β€” Comma separated list of properties to return. Wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. Default [].
  • --session="" β€” Session configuration. Default empty string.
  • --sessionMode="" β€” Overrides the default session mode for a single command, which would normally be disabled. Default empty string.
  • -P, --sessionPassword="" β€” Override session password. Default empty string.
  • -U, --sessionUsername="" β€” Override session username, i.e. peter or t1234/peter (with tenant). Default empty string.
  • --silentExit[=false] β€” Silent status codes do not affect the exit code. Default false.
  • --silentStatusCodes="" β€” Status codes which will not print out an error message. Default empty string.
  • --timeout="600s" β€” Request timeout duration, i.e. 60s, 2m. Default "600s".
  • --totalPages=0 β€” Total number of pages to get. Default 0.
  • -v, --verbose[=false] β€” Verbose logging. Default false.
  • --view="auto" β€” Use views when displaying data on the terminal. Disable using --view off. Default "auto".
  • --withError[=false] β€” Errors will be printed on stdout instead of stderr. Default false.
  • --withTotalElements[=false] β€” Requests Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). Default false.
  • -t, --withTotalPages[=false] β€” Requests Cumulocity to include the total pages in the response statistics under .statistics.totalPages. Default false.
  • --workers=1 β€” Number of workers. Default 1.

πŸŽ€ EXAMPLE πŸŽ€

Like, examples are the best part because they show you exactly how to use it. Obsessed.

$ c8y tenantstatistics listSummaryForTenant

Get tenant summary statistics for the current tenant. Classic.

$ c8y tenantstatistics listSummaryForTenant --dateFrom "-30d"

Get tenant summary statistics collection for the last 30 days. Slay.

$ c8y tenantstatistics listSummaryForTenant --dateFrom "-10d" --dateTo "-9d"

Get tenant summary statistics collection for the last 10 days, only return until the last 9 days. Highkey specific, but we love that.


🌟 SEE ALSO 🌟


🫢 CUTE SIGN-OFF 🫢

So yeah, this manual page is from Jan 1980 (literally forever ago, but it's giving vintage) and it's part of the c8y(1) manual. Go forth and check those tenant stats, bestie. Iykyk. πŸ’…βœ¨

πŸ“¦ where this page comes from