# \AnalyticsApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**capture_snapshot**](AnalyticsApi.md#capture_snapshot) | **POST** /api/v1/admin/analytics/snapshot | POST /api/v1/admin/analytics/snapshot - manually trigger a snapshot
[**get_download_trends**](AnalyticsApi.md#get_download_trends) | **GET** /api/v1/admin/analytics/downloads/trend | GET /api/v1/admin/analytics/downloads/trend
[**get_growth_summary**](AnalyticsApi.md#get_growth_summary) | **GET** /api/v1/admin/analytics/storage/growth | GET /api/v1/admin/analytics/storage/growth
[**get_repository_trend**](AnalyticsApi.md#get_repository_trend) | **GET** /api/v1/admin/analytics/repositories/{id}/trend | GET /api/v1/admin/analytics/repositories/{id}/trend
[**get_stale_artifacts**](AnalyticsApi.md#get_stale_artifacts) | **GET** /api/v1/admin/analytics/artifacts/stale | GET /api/v1/admin/analytics/artifacts/stale
[**get_storage_breakdown**](AnalyticsApi.md#get_storage_breakdown) | **GET** /api/v1/admin/analytics/storage/breakdown | GET /api/v1/admin/analytics/storage/breakdown
[**get_storage_trend**](AnalyticsApi.md#get_storage_trend) | **GET** /api/v1/admin/analytics/storage/trend | GET /api/v1/admin/analytics/storage/trend



## capture_snapshot

> models::StorageSnapshot capture_snapshot()
POST /api/v1/admin/analytics/snapshot - manually trigger a snapshot

### Parameters

This endpoint does not need any parameter.

### Return type

[**models::StorageSnapshot**](StorageSnapshot.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_download_trends

> Vec<models::DownloadTrend> get_download_trends(from, to)
GET /api/v1/admin/analytics/downloads/trend

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**from** | Option<**String**> |  |  |
**to** | Option<**String**> |  |  |

### Return type

[**Vec<models::DownloadTrend>**](DownloadTrend.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_growth_summary

> models::GrowthSummary get_growth_summary(from, to)
GET /api/v1/admin/analytics/storage/growth

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**from** | Option<**String**> |  |  |
**to** | Option<**String**> |  |  |

### Return type

[**models::GrowthSummary**](GrowthSummary.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_repository_trend

> Vec<models::RepositorySnapshot> get_repository_trend(id, from, to)
GET /api/v1/admin/analytics/repositories/{id}/trend

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Repository ID | [required] |
**from** | Option<**String**> |  |  |
**to** | Option<**String**> |  |  |

### Return type

[**Vec<models::RepositorySnapshot>**](RepositorySnapshot.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_stale_artifacts

> Vec<models::StaleArtifact> get_stale_artifacts(days, limit)
GET /api/v1/admin/analytics/artifacts/stale

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**days** | Option<**i32**> |  |  |
**limit** | Option<**i64**> |  |  |

### Return type

[**Vec<models::StaleArtifact>**](StaleArtifact.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_storage_breakdown

> Vec<models::RepositoryStorageBreakdown> get_storage_breakdown()
GET /api/v1/admin/analytics/storage/breakdown

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::RepositoryStorageBreakdown>**](RepositoryStorageBreakdown.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_storage_trend

> Vec<models::StorageSnapshot> get_storage_trend(from, to)
GET /api/v1/admin/analytics/storage/trend

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**from** | Option<**String**> |  |  |
**to** | Option<**String**> |  |  |

### Return type

[**Vec<models::StorageSnapshot>**](StorageSnapshot.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

