c8y(1)

๐Ÿ“ฆ version 2.56.1, in nixpkgs unstable

๐Ÿ’… c8y(1) โ€” c8y-tenantstatistics-listSummaryAllTenants โœจ

okay so bestie, you're holding the c8y(1) manual page and honestly? this one's a whole vibe. it's the tenant-statistics summary command and it ate. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

c8y-tenantstatistics-listSummaryAllTenants โ€” get all tenant usage summary statistics. yes, ALL of them. no crumbs left behind ๐Ÿ’…


โœจ SYNOPSIS โœจ

c8y tenantstatistics listSummaryAllTenants [flags]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Get collection of tenant usage statistics summary. that's it, that's the whole thing โ€” you're pulling back the full collection of summaries, and it's giving main character energy fr fr ๐Ÿ”ฅ


๐ŸŽ€ OPTIONS ๐ŸŽ€

  • --dateFrom="" โ€” start date, or start date and time, of the statistics. leave it empty and you get whatever the default window is ๐Ÿ‘‘
  • --dateTo="" โ€” end date, or end date and time, of the statistics. also empty by default, no cap ๐ŸŒธ
  • -h, --help[=false] โ€” help for listSummaryAllTenants. your little emergency "what does this do again" button, default false ๐Ÿงš

๐Ÿ’œ OPTIONS INHERITED FROM PARENT COMMANDS ๐Ÿ’œ

these are the ones you didn't ask for but got anyway, like a group chat you never left. all of them, in order, no skipping ๐Ÿ™ˆ

  • --abortOnErrors=10 โ€” abort the batch when you hit the specified number of errors. default is 10 โ€” literally built-in patience ๐Ÿ’€
  • --allowEmptyPipe[=false] โ€” don't fail when the piped input (stdin) is empty. default false ๐Ÿ“
  • --cache[=false] โ€” enable cached responses. default false, sad but true โœจ
  • --cacheBodyPaths=[] โ€” cache should limit hashing of the selected paths in the json body. empty indicates all values ๐Ÿ’…
  • --cacheTTL="60s" โ€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m. default "60s" ๐Ÿ•
  • -c, --compact[=false] โ€” compact instead of pretty-printed output when using json output. pretty print is the default if output is the terminal. default false ๐Ÿ’–
  • --confirm[=false] โ€” prompt for confirmation. default false ๐ŸŒธ
  • --confirmText="" โ€” custom confirmation text ๐ŸŽ€
  • --currentPage=0 โ€” current page which should be returned. default 0 ๐Ÿ“„
  • --customQueryParam=[] โ€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue' ๐Ÿ”—
  • --debug[=false] โ€” set 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. don'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] โ€” show examples for the current command. default false ๐ŸŒˆ
  • --filter=[] โ€” apply a client side filter to the response before returning it to the user. default [] ๐Ÿงน
  • --flatten[=false] โ€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. default false ๐Ÿช„
  • -f, --force[=false] โ€” do not prompt for confirmation. ignored when using --confirm. default false ๐Ÿ’ช
  • -H, --header=[] โ€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue" ๐Ÿ“จ
  • --includeAll[=false] โ€” include all results by iterating through each page. default false ๐Ÿ“š
  • -k, --insecure[=false] โ€” allow insecure server connections when using SSL. default false ๐Ÿ”“
  • -l, --logMessage="" โ€” add custom message to the activity log โœ๏ธ
  • --maxJobs=0 โ€” maximum number of jobs. 0 = unlimited (use with caution!). default 0 โš ๏ธ
  • --noAccept[=false] โ€” ignore Accept header; will remove the Accept header from requests, however PUT and POST requests will only see the effect. default false ๐Ÿšซ
  • --noCache[=false] โ€” force disabling of cached responses (overwrites 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] โ€” disable progress bars. default false ๐Ÿšซ
  • --noProxy[=false] โ€” ignore the proxy settings. default false ๐Ÿ•ณ๏ธ
  • -n, --nullInput[=false] โ€” don't read the input (stdin). useful if using in shell for/while loops. default false ๐Ÿ”‡
  • -o, --output="table" โ€” output format, i.e. table, json, csv, csvheader. default "table" ๐Ÿ“Š
  • --outputFile="" โ€” save JSON output to file (after select/view) ๐Ÿ’พ
  • --outputFileRaw="" โ€” save raw response to file (before select/view) ๐Ÿ’พ
  • --outputTemplate="" โ€” jsonnet template to apply to the output ๐Ÿงต
  • -p, --pageSize=5 โ€” maximum results per page. default 5 ๐Ÿ“‘
  • --progress[=false] โ€” show progress bar. this will also disable any other verbose output. default false ๐Ÿ“ถ
  • --proxy="" โ€” proxy setting, i.e. http://10.0.0.1:8080 ๐ŸŒ
  • -r, --raw[=false] โ€” show 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' ๐ŸŽฏ
  • --session="" โ€” session configuration ๐Ÿ”‘
  • --sessionMode="" โ€” override default session mode for a single command which would normally be disabled ๐Ÿ”„
  • -P, --sessionPassword="" โ€” override session password ๐Ÿ”’
  • -U, --sessionUsername="" โ€” override session username. i.e. peter or t1234/peter (with tenant) ๐Ÿ‘ค
  • --silentExit[=false] โ€” silent status codes do not affect the exit code. default false ๐Ÿคซ
  • --silentStatusCodes="" โ€” status codes which will not print out an error message ๐Ÿ™Š
  • --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] โ€” request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). default false ๐Ÿ”ข
  • -t, --withTotalPages[=false] โ€” request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. default false ๐Ÿงฎ
  • --workers=1 โ€” number of workers. default 1 ๐Ÿ‘ท

๐Ÿ”ฅ EXAMPLE ๐Ÿ”ฅ

bestie these examples are iconic, copy them exactly:

$ c8y tenantstatistics listSummaryAllTenants
Get tenant summary statistics for all tenants
$ c8y tenantstatistics listSummaryAllTenants --dateFrom "-30d"
Get tenant summary statistics collection for the last 30 days
$ c8y tenantstatistics listSummaryAllTenants --dateFrom "-10d" --dateTo "-9d"
Get tenant summary statistics collection for the last 10 days, only return until the last 9 days

see how --dateFrom and --dateTo are doing the absolute most? that's a time window, periodt ๐Ÿ•ฐ๏ธโœจ


๐ŸŒŸ SEE ALSO ๐ŸŒŸ


ngl the inherited options list is long enough to be its own trilogy, but every single one is here so you're never gonna get jumpscared by a flag you didn't know about ๐Ÿ’€๐Ÿ’–

and that's a wrap, bestie ๐ŸŽ€ this page was served up from the c8y(1) manual, dated Jan 1980 โ€” vintage but still slaying โœจ go get those tenant summaries, you've got this ๐Ÿ’…๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from