Queries a partition filter expression.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetQualityEntity

The operation that you want to perform.

EnvType String Yes odps

The type of the compute engine or data source.

MatchExpression String Yes dt=$[yyyymmdd]

The partition filter expression.

ProjectName String Yes autotest

The name of the compute engine or data source. You can obtain the name from data source configurations.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint used to call the operation.

TableName String Yes dual

The name of the partitioned table. You can call the GetMetaTablePartition operation to obtain the name.

Response parameters

Parameter Type Example Description
Data Array of EntityDto

The details of the partition filter expression.

CreateTime Long 1593964800000

The time when the partition filter expression was created.

EntityLevel Integer 0

The level of the partition filter expression. Valid values:

  • 0: The partition filter expression is at the SQL level. This indicates that Data Quality performs monitoring after each SQL statement is executed.
  • 1: The partition filter expression is at the node level. This indicates that Data Quality performs monitoring after all the SQL statements for a node are executed.
EnvType String odps

The type of the compute engine or data source.

Followers String 1822931****

The ID of the Alibaba Cloud account that is used to receive alert notifications.

HasRelativeNode Boolean true

Indicates whether the partition filter expression is associated with a node. Valid values:

  • true: The partition filter expression is associated with a node.
  • false: The partition filter expression is not associated with a node.
Id Long 4003918

The ID of the partition filter expression.

MatchExpression String dt=$[yyyymmdd-1]

The partition filter expression.

ModifyTime Long 1593964800000

The time when the partition filter expression was modified.

ModifyUser String 1822931****

The ID of the Alibaba Cloud account that is used to modify the partition filter expression.

OnDuty String 1822931****

The ID of the Alibaba Cloud account that is used to configure the partition filter expression.

OnDutyAccountName String test

The name of the Alibaba Cloud account that is used to configure the partition filter expression.

ProjectName String autotest

The name of the compute engine or data source.

RelativeNode String [{"projectName":"xc_DP****","nodeId":7000026****}]

The information of the node that is associated with the partition filter expression. The information includes the following items:

  • projectName: indicates the name of the workspace to which the node belongs.
  • nodeId: indicates the ID of the node.
Sql Integer 0

Indicates that the partition filter expression is at the SQL level.

TableName String test_dqc_de****

The name of the partitioned table.

Task Integer 0

The node.

ErrorCode String 401

The error code returned.

ErrorMessage String You have no permission.

The error message returned.

HttpStatusCode Integer 200

The HTTP status code returned.

RequestId String 6d739ef6-098a-47****

The ID of the request.

Success Boolean true

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetQualityEntity
&EnvType=ODPS
&MatchExpression=dt=$[yyyymmdd]
&ProjectName=autotest
&RegionId=cn-shanghai
&TableName=dual
&<Common request parameters>

Sample success responses

XML format

<RequestId>6d739ef6-098a-47****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>
    <ModifyTime>1593964800000</ModifyTime>
    <Task>0</Task>
    <ModifyUser>1822931104031845</ModifyUser>
    <ProjectName>autotest</ProjectName>
    <HasRelativeNode>true</HasRelativeNode>
    <CreateTime>1593964800000</CreateTime>
    <OnDuty>1822931****</OnDuty>
    <OnDutyAccountName>test</OnDutyAccountName>
    <Followers>1822931****</Followers>
    <MatchExpression>dt=$[yyyymmdd-1]</MatchExpression>
    <EnvType>odps</EnvType>
    <Sql>0</Sql>
    <TableName>test_dqc_de****</TableName>
    <Id>4003918</Id>
    <RelativeNode>[{"projectName":"xc_DP****","nodeId":7000026****}]</RelativeNode>
    <EntityLevel/>
</Data>
<ErrorCode>401</ErrorCode>
<ErrorMessage>You have no permission.</ErrorMessage>
<Success>true</Success>

JSON format

{
    "RequestId": "6d739ef6-098a-47****",
    "HttpStatusCode": 200,
    "Data": {
        "ModifyTime": 1593964800000,
        "Task": 0,
        "ModifyUser": 1822931104031845,
        "ProjectName": "autotest",
        "HasRelativeNode": true,
        "CreateTime": 1593964800000,
        "OnDuty": "1822931****",
        "OnDutyAccountName": "test",
        "Followers": "1822931****",
        "MatchExpression": "dt=$[yyyymmdd-1]",
        "EnvType": "odps",
        "Sql": 0,
        "TableName": "test_dqc_de****",
        "Id": 4003918,
        "RelativeNode": "[{\"projectName\":\"xc_DP****\",\"nodeId\":7000026****}]",
        "EntityLevel": ""
    },
    "ErrorCode": 401,
    "ErrorMessage": "You have no permission.",
    "Success": true
}

Error codes

For a list of error codes, visit the API Error Center.