Get Table Usage Information
get
/20190828/tables/{tableNameOrId}/usage
Get the usage information of a table.
Request
Path Parameters
-
tableNameOrId: string
A table name within the compartment, or a table OCID.
Query Parameters
-
compartmentId(optional): string
The ID of a table's compartment. When a table is identified by name, the compartmentId is often needed to provide context for interpreting the name.
-
limit: integer
Minimum Value:
1
Maximum Value:1000
The maximum number of items to return.Default Value:1000
-
page: string
Minimum Length:
1
Maximum Length:1024
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. -
timeEnd(optional): string(date-time)
The end time to use for the request.
-
timeStart(optional): string(date-time)
The start time to use for the request. If no time range is set for this request, the most recent complete usage record is returned.
Header Parameters
-
opc-request-id: string
The client request ID for tracing.
Response
Supported Media Types
- application/json
200 Response
A collection of TableUsageSummary.
Headers
-
opc-next-page: string
For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : TableUsageCollection
Type:
object
Result of GetTableUsage.
Show Source
-
items(optional):
array items
A page of TableUsageSummary objects.
Nested Schema : items
Type:
array
A page of TableUsageSummary objects.
Show Source
-
Array of:
object TableUsageSummary
TableUsageSummary represents a single usage record, or slice, that includes information about read and write throughput consumed during that period as well as the current information regarding storage capacity. In addition the count of throttling exceptions for the period is reported.
Nested Schema : TableUsageSummary
Type:
object
TableUsageSummary represents a single usage record, or slice, that includes
information about read and write throughput consumed during that period
as well as the current information regarding storage capacity. In
addition the count of throttling exceptions for the period is reported.
Show Source
-
readThrottleCount(optional):
integer
The number of times reads were throttled due to exceeding the read throughput limit.
-
readUnits(optional):
integer
Read throughput during the sampling period.
-
secondsInPeriod(optional):
integer
The length of the sampling period.
-
storageInGBs(optional):
integer
The size of the table, in GB.
-
storageThrottleCount(optional):
integer
The number of times writes were throttled because the table exceeded its size limit.
-
writeThrottleCount(optional):
integer
The number of times writes were throttled due to exceeding the write throughput limit.
-
writeUnits(optional):
integer
Write throughput during the sampling period.
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.
429 Response
Too Many Requests
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
-
retry-after: number(float)
A decimal number representing the number of seconds the client should wait before polling this endpoint again.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.
Default Response
Unknown Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.