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 Panel and offer extensive customization for advanced use cases.
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for metrics retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZList 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 (_).
["my-bucket-01"]Timezone for date conversion in the response.
UTCExample: Europe/IstanbulPrimary metric type for the overview calculation.
requestsPossible values: Successful retrieval of overview metrics.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, or invalid filter value).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for filter option retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZTimezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of available filters.
Unauthorized - Missing or invalid JWT token.
Validation Error - Invalid parameters or date range (including ranges exceeding 90 days).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for histogram retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZGrouping interval. Recommended: 1h for a 1–7 day date range.
1hExample: 1hPossible values: Target buckets. If omitted or empty, all buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).
["my-bucket-01"]Timezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of request histogram.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, or invalid filter value).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for histogram retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZTime interval for grouping data. Recommended: 1h for a 1–7 day date range.
1hExample: 1hPossible values: List of bucket names. If omitted or empty, all organization buckets are included. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).
["my-bucket-01"]Timezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of error ratio histogram.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, or invalid filter value).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for chart retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZList 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 (_).
["my-bucket-01"]Time interval for grouping data points.
1hExample: 1hPossible values: Category for data grouping/dimension.
metricExample: per_bucketPossible values: Metric type to be displayed.
requestsPossible values: Timezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of chart data.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, or invalid filter value).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for bucket metrics retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZList 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 (_).
["my-bucket-01"]Timezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of bucket details.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, or invalid filter value).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for failure-rate retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZList of bucket names to analyze. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).
["my-bucket-01","my-bucket-02"]Time interval for grouping data points.
1hExample: 1hPossible values: Timezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of failure rates.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, or invalid filter value).
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.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Start 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.
2024-11-12T00:00:00ZEnd date/time for raw log retrieval. The maximum allowed range between from and to is 90 days. Use ISO 8601 date-time format.
2024-11-12T23:59:59ZFilter by specific buckets. Bucket names can only contain letters, numbers, dots (.), dashes (-), and underscores (_).
["my-bucket-01"]Number of records per page.
100Example: 100Page number (1-based).
1Example: 1Field to sort results by. Commonly ts.
tsExample: tsSort direction.
descExample: descPossible values: Timezone for date conversion in the response.
UTCExample: Europe/IstanbulSuccessful retrieval of raw logs.
Unauthorized - Missing or invalid JWT token.
Unprocessable Entity - Validation failed (e.g., invalid date range, range exceeds 90 days, invalid bucket name, invalid filter value, or invalid pagination inputs).
Last updated
Was this helpful?