hostinger-api-sdk 1.35.0 → 1.37.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.
- package/README.md +2 -2
- package/api.ts +402 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +303 -1
- package/dist/api.js +216 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +303 -1
- package/dist/esm/api.js +204 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingMetricsApi.md +123 -0
- package/docs/AgencyHostingV1OrdersDiskUsageMetricsLimitsResource.md +22 -0
- package/docs/AgencyHostingV1OrdersDiskUsageMetricsMetricResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDiskUsageMetricsMetricsResource.md +22 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsLimitsResource.md +24 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md +26 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsMetricsResource.md +24 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource.md +24 -0
- package/docs/HostingV1DatabasesDatabaseResource.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.39.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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.39.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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.37.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.39.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.
|
|
6
|
+
* API Version: 1.39.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.
|
|
4
|
+
* API Version: 1.39.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.
|
|
7
|
+
* API Version: 1.39.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 | 7 | 14 | 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 | 24 | 168 | 336 | 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<AgencyHostingV1OrdersDiskUsageMetricsMetricResource>**](AgencyHostingV1OrdersDiskUsageMetricsMetricResource.md) | Array of [`AgencyHosting.V1.Orders.DiskUsageMetrics.MetricResource`](#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<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>**](AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md) | Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource`](#model/agencyhostingv1ordersresourceusagemetricsmetricresource) | [optional] [default to undefined]
|
|
10
|
+
**websites** | [**Array<AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource>**](AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource.md) | Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.WebsiteResource`](#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<string>** | Domains associated with the website | [optional] [default to undefined]
|
|
10
|
+
**metrics** | [**Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>**](AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md) | Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource`](#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)
|
|
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**updated_at** | **string** | Database last update date in ISO 8601 format. | [optional] [default to undefined]
|
|
14
14
|
**disk_usage_mb** | **number** | Current database disk usage in megabytes. | [optional] [default to undefined]
|
|
15
15
|
**max_size_mb** | **number** | Maximum allowed database size in megabytes. | [optional] [default to undefined]
|
|
16
|
+
**host** | **string** | MySQL hostname for remote connections. Same value as hPanel Remote MySQL. Identical for every database on this account. Not the database user grant host. | [optional] [default to undefined]
|
|
17
|
+
**port** | **number** | MySQL port for remote connections. Always 3306. | [optional] [default to undefined]
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -28,6 +30,8 @@ const instance: HostingV1DatabasesDatabaseResource = {
|
|
|
28
30
|
updated_at,
|
|
29
31
|
disk_usage_mb,
|
|
30
32
|
max_size_mb,
|
|
33
|
+
host,
|
|
34
|
+
port,
|
|
31
35
|
};
|
|
32
36
|
```
|
|
33
37
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.39.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
|