Stook Analytics

Learn how to retrieve and analyze storage performance metrics, usage statistics, and access logs for Stook Object Storage.

The Stook Analytics API provides comprehensive programmatic access to your object storage performance metrics, usage statistics, error rates, and raw access logs. This powerful API enables you to:

  • Monitor real-time storage performance and reliability

  • Build custom dashboards and reporting pipelines

  • Perform deep operational analysis

  • Integrate analytics data into your existing monitoring systems

  • Automate alerting and incident response

These endpoints power the analytics views available in the Medianova Control Panelarrow-up-right and offer extensive customization for advanced use cases.

Get Stook Overview Metrics

post

Retrieves high-level metrics for storage buckets to monitor overall system health and performance trends. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for metrics retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for metrics retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
bucketsstring[]Optional

List of bucket names to filter results. If omitted or empty, all organization buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01"]
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
metricstring · enumOptional

Primary metric type for the overview calculation.

Example: requestsPossible values:
Responses
chevron-right
200

Successful retrieval of overview metrics.

application/json
post
/api/v2/stook/overview

Get Stook Filters

post

Retrieves available analytics filters and their current values (options) for dropdown menus based on the specified time range. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Filter inputs are validated to prevent SQL injection; avoid SQL keywords and potentially dangerous patterns.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for filter option retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for filter option retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of available filters.

application/json
post
/api/v2/stook/filters

Get Request Histogram

post

Returns a time-series histogram of request counts grouped by the specified interval. Supports multi-bucket analysis and advanced filtering. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for histogram retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for histogram retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
intervalstring · enumOptional

Grouping interval. Recommended: 1h for a 1–7 day date range.

Default: 1hExample: 1hPossible values:
bucketsstring[]Optional

Target buckets. If omitted or empty, all buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01"]
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of request histogram.

application/json
post
/api/v2/stook/request_histogram

Get Error Ratio Histogram

post

Returns time-series data for error ratios (4xx and 5xx) grouped by the specified interval. Supports multi-bucket analysis and advanced filtering. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for histogram retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for histogram retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
intervalstring · enumOptional

Time interval for grouping data. Recommended: 1h for a 1–7 day date range.

Default: 1hExample: 1hPossible values:
bucketsstring[]Optional

List of bucket names. If omitted or empty, all organization buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01"]
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of error ratio histogram.

application/json
post
/api/v2/stook/error_ratio_histogram

Get Stook Charts

post

Returns time-series data points grouped into series for various chart types. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for chart retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for chart retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
bucketsstring[]Optional

List of bucket names to filter results. If omitted or empty, all buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01"]
intervalstring · enumOptional

Time interval for grouping data points.

Default: 1hExample: 1hPossible values:
chart_typestring · enumOptional

Category for data grouping/dimension.

Default: metricExample: per_bucketPossible values:
metricstring · enumOptional

Metric type to be displayed.

Example: requestsPossible values:
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of chart data.

application/json
post
/api/v2/stook/charts

Get Bucket Details

post

Returns a comprehensive list of performance metrics for each bucket within the specified time range. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for bucket metrics retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for bucket metrics retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
bucketsstring[]Optional

List of bucket names to filter. If omitted or empty, all organization buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01"]
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of bucket details.

application/json
post
/api/v2/stook/bucket_details

Get Failure Rate Per Bucket

post

Returns time-series failure rate percentages grouped by buckets. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for failure-rate retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for failure-rate retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
bucketsstring[]Optional

List of bucket names to analyze. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01","my-bucket-02"]
intervalstring · enumOptional

Time interval for grouping data points.

Default: 1hExample: 1hPossible values:
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of failure rates.

application/json
post
/api/v2/stook/failure_rate_per_bucket

Get Stook Raw Logs

post

Retrieves granular access logs including client info, object paths, and performance metrics. Supports result sorting and multi-page navigation. Results are cached for 60 seconds.

Constraints:

  • Maximum allowed date range per request is 90 days.
  • Analytics data is retained for 6 months; older ranges may return empty or partial results.
  • Bucket names and filter values are strictly validated; SQL keywords and potentially dangerous patterns are not allowed.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
organization_uuidstringRequired

Unique identifier for the organization.

Example: 550e8400-e29b-41d4-a716-446655440000
fromstring · date-timeRequired

Start date/time for raw log retrieval. Must be less than to. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T00:00:00Z
tostring · date-timeRequired

End date/time for raw log retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.

Example: 2024-11-12T23:59:59Z
bucketsstring[]Optional

Filter by specific buckets. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).

Example: ["my-bucket-01"]
limitintegerOptional

Number of records per page.

Default: 100Example: 100
pageintegerOptional

Page number (1-based).

Default: 1Example: 1
sort_fieldstringOptional

Field to sort results by. Commonly ts.

Default: tsExample: ts
sort_orderstring · enumOptional

Sort direction.

Default: descExample: descPossible values:
timezonestringOptional

Timezone for date conversion in the response.

Default: UTCExample: Europe/Istanbul
Responses
chevron-right
200

Successful retrieval of raw logs.

application/json
post
/api/v2/stook/raw_logs

Last updated

Was this helpful?