hostinger-api-sdk 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.38.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.37.0
6
+ * API Version: 1.38.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.38.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.37.0
7
+ * API Version: 1.38.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -0,0 +1,123 @@
1
+ # AgencyHostingMetricsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**listAgencyPlanOrderDiskUsageMetricsV1**](#listagencyplanorderdiskusagemetricsv1) | **GET** /api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics | List Agency Plan order disk usage metrics|
8
+ |[**listOrderResourceUsageMetricsV1**](#listorderresourceusagemetricsv1) | **GET** /api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics | List order resource usage metrics|
9
+
10
+ # **listAgencyPlanOrderDiskUsageMetricsV1**
11
+ > AgencyHostingV1OrdersDiskUsageMetricsMetricsResource listAgencyPlanOrderDiskUsageMetricsV1()
12
+
13
+ Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ AgencyHostingMetricsApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new AgencyHostingMetricsApi(configuration);
25
+
26
+ let orderId: number; //Agency Plan order ID (default to undefined)
27
+ let timeFrameDays: 1 | 7 | 14 | 30; //Length of the window in days, ending now. Bucket size grows with the window. (optional) (default to 1)
28
+
29
+ const { status, data } = await apiInstance.listAgencyPlanOrderDiskUsageMetricsV1(
30
+ orderId,
31
+ timeFrameDays
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **orderId** | [**number**] | Agency Plan order ID | defaults to undefined|
40
+ | **timeFrameDays** | [**1 | 7 | 14 | 30**]**Array<1 &#124; 7 &#124; 14 &#124; 30>** | Length of the window in days, ending now. Bucket size grows with the window. | (optional) defaults to 1|
41
+
42
+
43
+ ### Return type
44
+
45
+ **AgencyHostingV1OrdersDiskUsageMetricsMetricsResource**
46
+
47
+ ### Authorization
48
+
49
+ [apiToken](../README.md#apiToken)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Success response | - |
61
+ |**422** | Validation error response | - |
62
+ |**401** | Unauthenticated response | - |
63
+ |**500** | Error response | - |
64
+
65
+ [[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)
66
+
67
+ # **listOrderResourceUsageMetricsV1**
68
+ > AgencyHostingV1OrdersResourceUsageMetricsMetricsResource listOrderResourceUsageMetricsV1()
69
+
70
+ Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
71
+
72
+ ### Example
73
+
74
+ ```typescript
75
+ import {
76
+ AgencyHostingMetricsApi,
77
+ Configuration
78
+ } from 'hostinger-api-sdk';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new AgencyHostingMetricsApi(configuration);
82
+
83
+ let orderId: number; //Agency Plan order ID (default to undefined)
84
+ let timeFrameHours: 1 | 24 | 168 | 336 | 720; //Length of the window in hours, ending now. Bucket size grows with the window. (optional) (default to 24)
85
+
86
+ const { status, data } = await apiInstance.listOrderResourceUsageMetricsV1(
87
+ orderId,
88
+ timeFrameHours
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **orderId** | [**number**] | Agency Plan order ID | defaults to undefined|
97
+ | **timeFrameHours** | [**1 | 24 | 168 | 336 | 720**]**Array<1 &#124; 24 &#124; 168 &#124; 336 &#124; 720>** | Length of the window in hours, ending now. Bucket size grows with the window. | (optional) defaults to 24|
98
+
99
+
100
+ ### Return type
101
+
102
+ **AgencyHostingV1OrdersResourceUsageMetricsMetricsResource**
103
+
104
+ ### Authorization
105
+
106
+ [apiToken](../README.md#apiToken)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+ ### HTTP response details
115
+ | Status code | Description | Response headers |
116
+ |-------------|-------------|------------------|
117
+ |**200** | Success response | - |
118
+ |**422** | Validation error response | - |
119
+ |**401** | Unauthenticated response | - |
120
+ |**500** | Error response | - |
121
+
122
+ [[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)
123
+
@@ -0,0 +1,22 @@
1
+ # AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **disk_bytes** | **number** | Disk usage quota in bytes | [optional] [default to undefined]
9
+ **inodes** | **number** | Inodes quota | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AgencyHostingV1OrdersDiskUsageMetricsLimitsResource } from 'hostinger-api-sdk';
15
+
16
+ const instance: AgencyHostingV1OrdersDiskUsageMetricsLimitsResource = {
17
+ disk_bytes,
18
+ inodes,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AgencyHostingV1OrdersDiskUsageMetricsMetricResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **disk_bytes** | **number** | Disk usage in bytes at this sample | [optional] [default to undefined]
9
+ **inodes** | **number** | Number of inodes used at this sample | [optional] [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp of the sample | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AgencyHostingV1OrdersDiskUsageMetricsMetricResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: AgencyHostingV1OrdersDiskUsageMetricsMetricResource = {
18
+ disk_bytes,
19
+ inodes,
20
+ timestamp,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **limits** | [**AgencyHostingV1OrdersDiskUsageMetricsLimitsResource**](AgencyHostingV1OrdersDiskUsageMetricsLimitsResource.md) | | [optional] [default to undefined]
9
+ **metrics** | [**Array&lt;AgencyHostingV1OrdersDiskUsageMetricsMetricResource&gt;**](AgencyHostingV1OrdersDiskUsageMetricsMetricResource.md) | Array of [&#x60;AgencyHosting.V1.Orders.DiskUsageMetrics.MetricResource&#x60;](#model/agencyhostingv1ordersdiskusagemetricsmetricresource) | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AgencyHostingV1OrdersDiskUsageMetricsMetricsResource } from 'hostinger-api-sdk';
15
+
16
+ const instance: AgencyHostingV1OrdersDiskUsageMetricsMetricsResource = {
17
+ limits,
18
+ metrics,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **memory_bytes** | **number** | Memory usage quota in bytes | [optional] [default to undefined]
9
+ **cpu_percent** | **number** | CPU usage quota in percent | [optional] [default to undefined]
10
+ **processes** | **number** | Process usage quota | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AgencyHostingV1OrdersResourceUsageMetricsLimitsResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: AgencyHostingV1OrdersResourceUsageMetricsLimitsResource = {
18
+ memory_bytes,
19
+ cpu_percent,
20
+ processes,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # AgencyHostingV1OrdersResourceUsageMetricsMetricResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **cpu_percent** | **number** | CPU usage percentage at this sample | [optional] [default to undefined]
9
+ **memory_bytes** | **number** | Memory usage in bytes at this sample | [optional] [default to undefined]
10
+ **processes** | **number** | Number of processes at this sample | [optional] [default to undefined]
11
+ **timestamp** | **number** | Unix timestamp of the sample | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AgencyHostingV1OrdersResourceUsageMetricsMetricResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: AgencyHostingV1OrdersResourceUsageMetricsMetricResource = {
19
+ cpu_percent,
20
+ memory_bytes,
21
+ processes,
22
+ timestamp,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **limits** | [**AgencyHostingV1OrdersResourceUsageMetricsLimitsResource**](AgencyHostingV1OrdersResourceUsageMetricsLimitsResource.md) | | [optional] [default to undefined]
9
+ **metrics** | [**Array&lt;AgencyHostingV1OrdersResourceUsageMetricsMetricResource&gt;**](AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md) | Array of [&#x60;AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource&#x60;](#model/agencyhostingv1ordersresourceusagemetricsmetricresource) | [optional] [default to undefined]
10
+ **websites** | [**Array&lt;AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource&gt;**](AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource.md) | Array of [&#x60;AgencyHosting.V1.Orders.ResourceUsageMetrics.WebsiteResource&#x60;](#model/agencyhostingv1ordersresourceusagemetricswebsiteresource) | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AgencyHostingV1OrdersResourceUsageMetricsMetricsResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: AgencyHostingV1OrdersResourceUsageMetricsMetricsResource = {
18
+ limits,
19
+ metrics,
20
+ websites,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uid** | **string** | Website UID | [optional] [default to undefined]
9
+ **domains** | **Array&lt;string&gt;** | Domains associated with the website | [optional] [default to undefined]
10
+ **metrics** | [**Array&lt;AgencyHostingV1OrdersResourceUsageMetricsMetricResource&gt;**](AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md) | Array of [&#x60;AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource&#x60;](#model/agencyhostingv1ordersresourceusagemetricsmetricresource) | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource = {
18
+ uid,
19
+ domains,
20
+ metrics,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.37.0
6
+ * API Version: 1.38.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {