c8y(1)
πΈ 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 forlistSummaryForTenant. Defaultfalse, 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 is10.--allowEmptyPipe[=false]β Don't fail when piped input is empty (stdin). Defaultfalse.--cache[=false]β Enables cached responses. Defaultfalse.--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, like60sor2m. 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. Defaultfalse.--confirm[=false]β Prompts for confirmation. Defaultfalse.--confirmText=""β Custom confirmation text. Default empty string.--currentPage=0β The current page that should be returned. Default0.--customQueryParam=[]β Adds custom URL query parameters, i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. Default[].--debug[=false]β Sets very verbose log messages. Defaultfalse.--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. Defaultfalse.--dryFormat="markdown"β Dry run output format, i.e.json,dump,markdownorcurl. Default"markdown".--examples[=false]β Shows examples for the current command. Defaultfalse.--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. Defaultfalse.-f,--force[=false]β Does not prompt for confirmation. Ignored when using--confirm. Defaultfalse.-H,--header=[]β Custom headers, i.e.--header "Accept: value, AnotherHeader: myvalue". Default[].--includeAll[=false]β Includes all results by iterating through each page. Defaultfalse.-k,--insecure[=false]β Allows insecure server connections when using SSL. Defaultfalse.-l,--logMessage=""β Adds a custom message to the activity log. Default empty string.--maxJobs=0β Maximum number of jobs.0means unlimited (use with caution!). Default0.> β οΈ 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. Defaultfalse.--noCache[=false]β Forces disabling of cached responses (overwrites the cache setting). Defaultfalse.-M,--noColor[=false]β Don't use colors when displaying log entries on the console. Defaultfalse.--noLog[=false]β Disables the activity log for the current command. Defaultfalse.--noProgress[=false]β Disables progress bars. Defaultfalse.--noProxy[=false]β Ignores the proxy settings. Defaultfalse.-n,--nullInput[=false]β Don't read the input (stdin). Useful if you're using it in a shell for/while loop. Defaultfalse.-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. Default5.--progress[=false]β Shows progress bar. This will also disable any other verbose output. Defaultfalse.--proxy=""β Proxy setting, i.e.http://10.0.0.1:8080. Default empty string.-r,--raw[=false]β Shows raw response. This mode will forceoutput=jsonandview=off. Defaultfalse.--retries=3β Max number of attempts when a failed HTTP call is encountered. Default3.--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.peterort1234/peter(with tenant). Default empty string.--silentExit[=false]β Silent status codes do not affect the exit code. Defaultfalse.--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. Default0.-v,--verbose[=false]β Verbose logging. Defaultfalse.--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. Defaultfalse.--withTotalElements[=false]β Requests Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in 10.13). Defaultfalse.-t,--withTotalPages[=false]β Requests Cumulocity to include the total pages in the response statistics under.statistics.totalPages. Defaultfalse.--workers=1β Number of workers. Default1.
π 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 π
c8y-tenantstatistics(1)β because besties stick together. π
π«Ά 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
- nixpkgs unstable: go-c8y-cli 2.56.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms