Skip to main content

Lens

GET Account stats#

Get all account stats.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/lens
HeadersAuthorization
Parametersversion, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "totalStorage": 0,    "objectCount": 0,    "averageObjectSize": 0,    "activeBuckets": 0,    "topBuckets": [      {        "bucket": "string",        "totalStorage": 0,        "objectCount": 0,        "percentageOfTotal": 0,        "averageObjectSize": 0      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Return a list of results for account stats
totalStorageint0Returns the number of total storage usage
objectCountint0Returns the number of objects in storage
averageObjectSizeint0Returns the avarage size of object in storage
activeBucketsint0Returns the number of active buckets
topBucketsarray [object]Returns the object of top buckets
bucketstring"string"Returns the top bucket
totalStoragestring"string"Returns the number of total usage of the bucket
objectCountlong1234Returns the number of object into bucket
percentageOfTotalstring"string"Returns the percentage of total usage in bucket
averageObjectSizelong1234Returns the avarage usage size of objects in bucket
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors#

For information about the errors that are common to all actions, see Common Errors:

HTTP Status Code: 401 Unauthorized

HTTP Status Code: 403 Forbidden

HTTP Status Code: 404 If the service is down

GET Storage time stats#

Get all storage time stats over time.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/time-lens
HeadersAuthorization
Parametersversion, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
PeriodNoint1, 17, 14, 30, 60Enter period time
UsageTypeNostring"string"Enter the usage type
BucketNostring"string"Enter the bucket name

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "timestamp": "2022-04-01T08:54:23.484Z",      "datapoint": 0    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Return a list of results for storage stats over time
timestampDateTime"2022-04-01T08:54:23.484Z"Returns the date time of the stroage stats over time
datapointint0Returns the number of data point
resultInfoarray [object]Returns an object of lens
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors#

For information about the errors that are common to all actions, see Common Errors:

HTTP Status Code: 401 Unauthorized

HTTP Status Code: 403 Forbidden

HTTP Status Code: 404 If the service is down

GET Gateway stats#

Get gateway stats over time.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/rgw-lens
HeadersAuthorization
Parametersversion, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
PeriodNoint1, 17, 14, 30, 60Enter period time
CategoryNostring"string"Enter the category
BucketNostring"string"Enter the bucket name

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "timestamp": "2022-04-01T08:54:23.484Z",      "datapoint": 0    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Return a list of results for storage stats over time
timestampDateTime"2022-04-01T08:54:23.484Z"Returns the date time of the gateway stats over time
datapointint0Returns the number of data point
resultInfoarray [object]Returns an object of lens
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors#

For information about the errors that are common to all actions, see Common Errors:

HTTP Status Code: 401 Unauthorized

HTTP Status Code: 403 Forbidden

HTTP Status Code: 404 If the service is down

GET Gateway categories#

Get all account stats.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/lens
HeadersAuthorization
Parametersversion, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
PeriodNoint1, 17, 14, 30, 60Enter period time
CategoryNostring"string"Enter the category
BucketNostring"string"Enter the bucket name

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    "string"  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultstring"string"Returns a gateway category
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors#

For information about the errors that are common to all actions, see Common Errors:

HTTP Status Code: 401 Unauthorized

HTTP Status Code: 403 Forbidden

HTTP Status Code: 404 If the service is down