- Home
- API Enriched
- Billing And Usage
- data
- Telemetry Data Metrics.
Telemetry Data Metrics.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/data/namespaces/system/billing/usage_details';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"end_time":"example","filters":[{"label_filters":[{"label":"LABEL_NONE","op":"EQ","value":"example"}],"usage_type":"TENANT_INFO"}],"start_time":"example","step":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/data/namespaces/system/billing/usage_details \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "end_time": "example", "filters": [ { "label_filters": [ { "label": "LABEL_NONE", "op": "EQ", "value": "example" } ], "usage_type": "TENANT_INFO" } ], "start_time": "example", "step": "example" }'GET the billing usage details for each feature over the specified duration.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Request to GET billing usage details for the given tenant.
object
End time of metric collection from which data will be considered to build graph. Format: unix_timestamp|RFC 3339
Optional: If not specified, then the end_time will be evaluated to start_time+1h
If start_time is not specified, then the end_time will be evaluated to
List of usage_type queries and the corresponding object/namespace filters.
Usage Data Filter represents the usage type query and the corresponding filters like object, namespace.
object
List of label filter expressions of the form “label key” QueryOp “value” related to the usage_type. Response will only contain data that matches all the conditions specified in the label_filter. Filters corresponding to objects with default names like “CE Mesh Node - Medium” will be ignored.
Optional: If not specified, glr status data for all global log receiver objects will be returned in the response.
X-example: {“label”:LABEL_OBJECT_NAME,“op”:EQ,“value”:“CE-01”} Metrics used in the billing usage are tagged with labels listed in the enum Label. Label Filter is used to filter the timeseries that match the specified label key/value and the operator.
object
Value of the label.
Start time of metric collection from which data will be considered to build graph. Format: unix_timestamp|RFC 3339
Optional: If not specified, then the start_time will be evaluated to end_time-1h
If end_time is not specified, then the start_time will be evaluated to
Step is the resolution width, which determines the number of the data points [x-axis (time)] to be returned in the response. The timestamps in the response will be t1=start_time, t2=t1+step, … Tn=tn-1+step, where tn <= end_time. Format: [0-9][smhd], where s - seconds, m - minutes, h - hours, d - days
Optional: If not specified, then step size is evaluated to <end_time - start_time>
Responses
Section titled “Responses”A successful response.
Billing Usage Response.
object
Actual step size used in the response. It could be higher than the requested step due to metric rollups and the query duration. Format: [0-9][smhd], where s - seconds, m - minutes, h - hours, d - days.
Data contains time-series data for the billing usage.
Usage data contains the usage type and the corresponding metric values.
object
List of metric values.
Metric data contains timestamp and the value.
object
Timestamp
object
Description of the method used to calculate trend.
Configuration parameter for previous value
Configuration parameter for value
Configuration parameter for value
Human-readable name for the resource
Name of the data field.
Name of the data field.
Name of the quantity unit.
Example
{ "usage_data": [ { "metric_values": [ { "trend_value": { "sentiment": "TREND_SENTIMENT_NONE" } } ], "usage_type": "TENANT_INFO" } ]}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example