All Products
Search
Document Center

Intelligent Media Services:DescribeMeterImsMpsAiUsage

Last Updated:Dec 16, 2024

Queries the usage statistics of Intelligent Media Services (IMS) on AI processing of ApsaraVideo Media Processing (MPS). The maximum query range is 31 days. You can query data within the last 90 days.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:DescribeMeterImsMpsAiUsagenone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StartTslongYes

The beginning of the time range to query. The value is a 10-digit timestamp. You can query data within the last 90 days.

1654403036
EndTslongYes

The end of the time range to query. The value is a 10-digit timestamp. The maximum query range is 31 days. The duration between StartTs and EndTs cannot exceed 31 days.

1656995036
IntervallongYes

The time granularity of the query. Valid values: 3600 (hour) and 86400 (day).

86400
RegionstringNo

This parameter does not take effect. By default, the usage data of all regions is returned.

cn-shanghai

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

0622C702-41BE-467E-AF2E-883D4517962E
Dataarray<object>

The usage statistics of IMS on AI processing of MPS.

Dataobject
Timelong

The beginning time of usage. The value is a 10-digit timestamp.

1656950400
Typestring

The AI type. Valid values:

Durationlong

The usage duration, in minutes.

644

Examples

Sample success responses

JSONformat

{
  "RequestId": "0622C702-41BE-467E-AF2E-883D4517962E",
  "Data": [
    {
      "Time": 1656950400,
      "Type": "",
      "Duration": 644
    }
  ]
}

Error codes

HTTP status codeError codeError message
400Meter.ParamErrorParam Error:%s,Please Check Again.
403Meter.AuthErrorAuthentication Failed,Please Try Again.
500Meter.ServerInternalErrorThe Request Processing Has Failed Due To Some Unknown Error.
500Meter.DataSourceQueryErrorData Source Error:%s,Please Try Again.
502Meter.ReadyTsErrorGet ReadyTs Failed,Please Try Again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-07-26Add OperationView Change Details