文档

GetDoctorHiveDatabase - 获取Hive库信息

更新时间:

获取 Hive 库维度分析结果。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
DateTimestring

日期。

2023-01-01
DatabaseNamestring

数据库名称。

db1

返回参数

名称类型描述示例值
object

返回数据

Dataobject

Hive 库分析数据。

Formatsobject []

存储格式信息。

FormatNamestring

存储格式名称。

TextInputFormat
FormatSizelong

格式数据量。

1000
FormatSizeUnitstring

格式数据量单位。

MB
FormatRatiofloat

格式占比。

0.5
FormatDayGrowthSizelong

格式数据量日增量。

1000
FormatSizeDayGrowthRatiofloat

格式数据量日环比。

0.5
Metricsobject

指标信息。

TableCountobject

表数量。

Namestring

指标名称。

tableCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of tables
PartitionNumobject

分区数。

Namestring

指标名称。

partitionNum
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of partitions
LargeFileCountobject

大文件个数。大文件指的是 1 GB 以上大小的文件。

Namestring

指标名称。

largeFileCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of large files
MediumFileCountobject

中文件个数。中文件指的是 128 MB 以上,1 GB 以下大小的文件。

Namestring

指标名称。

mediumFileCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of medium files
SmallFileCountobject

小文件个数。小文件指的是 10 MB 以上,128 MB 以下大小的文件。

Namestring

指标名称。

smallFileCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of small files
TinyFileCountobject

极小文件个数。极小文件指的是 0 MB 以上,10 MB 以下大小的文件。

Namestring

指标名称。

tinyFileCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of tiny files
EmptyFileCountobject

空文件个数。空文件指的是 0 MB 大小的文件。

Namestring

指标名称。

emptyFileCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of empty files
TotalFileCountobject

总文件个数。

Namestring

指标名称。

totalFileCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of total files
LargeFileRatioobject

大文件个数占比。大文件指的是 1 GB 以上大小的文件。

Namestring

指标名称。

largeFileRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of large files
MediumFileRatioobject

中文件个数占比。中文件指的是 128 MB 以上,1 GB 以下大小的文件。

Namestring

指标名称。

mediumFileRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of medium files
SmallFileRatioobject

小文件个数占比。小文件指的是 10 MB 以上,128 MB 以下大小的文件。

Namestring

指标名称。

smallFileRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of small files
TinyFileRatioobject

极小文件个数占比。极小文件指的是 0 MB 以上,10 MB 以下大小的文件。

Namestring

指标名称。

tinyFileRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of tiny files
EmptyFileRatioobject

空文件个数占比。空文件指的是 0 MB 大小的文件。

Namestring

指标名称。

emptyFileRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of empty files
HotDataSizeobject

热数据的数据量大小。热数据指的是 7 日内有访问的数据。

Namestring

指标名称。

hotDataSize
Valuelong

指标值。

1000
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Ratio of hot files
WarmDataSizeobject

温数据的数据量大小。温数据指的是 7 日内没有访问的数据,但是 30 日以内有访问的数据。

Namestring

指标名称。

warmDataSize
Valuelong

指标值。

1000
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Ratio of warm files
ColdDataSizeobject

冷数据的数据量大小。冷数据指的是 30 日内没有访问的数据,但是 90 日以内有访问的数据。

Namestring

指标名称。

coldDataSize
Valuelong

指标值。

1000
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Ratio of cold files
FreezeDataSizeobject

极冷数据的数据量大小。极冷数据指的是 90 日以内都没有访问的数据。

Namestring

指标名称。

freezeDataSize
Valuelong

指标值。

1000
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Ratio of freeze files
TotalDataSizeobject

总数据量大小。

Namestring

指标名称。

totalDataSize
Valuelong

指标值。

1000
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Total data size in megabytes (MB)
HotDataRatioobject

热数据的数据量大小占比。热数据指的是 7 日内有访问的数据。

Namestring

指标名称。

hotDataRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Hot data ratio
WarmDataRatioobject

温数据的数据量大小占比。温数据指的是 7 日内没有访问的数据,但是 30 日以内有访问的数据。

Namestring

指标名称。

warmDataRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of warm data
ColdDataRatioobject

冷数据的数据量大小占比。冷数据指的是 30 日内没有访问的数据,但是 90 日以内有访问的数据。

Namestring

指标名称。

coldDataRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Cold data ratio
FreezeDataRatioobject

极冷数据的数据量大小占比。极冷数据指的是 90 日以内都没有访问的数据。

Namestring

指标名称。

freezeDataRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of freeze data
TotalFileDayGrowthCountobject

总文件个数日增量。

Namestring

指标名称。

totalFileDayGrowthCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth count of total files
LargeFileDayGrowthCountobject

大文件个数日增量。大文件指的是 1 GB 以上大小的文件。

Namestring

指标名称。

largeFileDayGrowthCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth count of large files
MediumFileDayGrowthCountobject

中文件个数日增量。中文件指的是 128 M 以上,1 G 以下大小的文件。

Namestring

指标名称。

mediumFileDayGrowthCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth count of medium files
SmallFileDayGrowthCountobject

小文件个数日增量。小文件指的是 10 MB 以上,128 MB 以下大小的文件。

Namestring

指标名称。

smallFileDayGrowthCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth count of small files
TinyFileDayGrowthCountobject

极小文件个数日增量。极小文件指的是 0 MB 以上,10 MB 以下大小的文件。

Namestring

指标名称。

tinyFileDayGrowthCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth count of tiny files
EmptyFileDayGrowthCountobject

空文件个数日增量。空文件指的是 0 MB 大小的文件。

Namestring

指标名称。

emptyFileDayGrowthCount
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth count of empty files
HotDataDayGrowthSizeobject

热数据的数据量日增量大小。热数据指的是 7 日内有访问的数据。

Namestring

指标名称。

hotDataDayGrowthSize
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth size of hot data
WarmDataDayGrowthSizeobject

温数据的数据量日增量大小。温数据指的是 7 日内没有访问的数据,但是 30 日以内有访问的数据。

Namestring

指标名称。

warmDataDayGrowthSize
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth size of warm data
ColdDataDayGrowthSizeobject

冷数据的数据量日增量大小。冷数据指的是 30 日内没有访问的数据,但是 90 日以内有访问的数据。

Namestring

指标名称。

coldDataDayGrowthSize
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth size of cold data
FreezeDataDayGrowthSizeobject

极冷数据的数据量日增量大小。极冷数据指的是 90 日以内都没有访问的数据。

Namestring

指标名称。

freezeDataDayGrowthSize
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth size of freeze data
TotalDataDayGrowthSizeobject

全部数据的数据量日增量大小。

Namestring

指标名称。

totalDataDayGrowthSize
Valuelong

指标值。

1000
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth size of total data
TotalFileCountDayGrowthRatioobject

总文件个数日环比。

Namestring

指标名称。

totalFileCountDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of total files
LargeFileCountDayGrowthRatioobject

大文件个数日环比。大文件指的是 1 GB 以上大小的文件。

Namestring

指标名称。

largeFileCountDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of large files
MediumFileCountDayGrowthRatioobject

中文件个数日环比。比中文件指的是 128 MB 以上,1 GB 以下大小的文件。

Namestring

指标名称。

mediumFileCountDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of medium files
SmallFileCountDayGrowthRatioobject

小文件个数日环比。小文件指的是 10 MB 以上,128 MB 以下大小的文件。

Namestring

指标名称。

smallFileCountDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of small files
TinyFileCountDayGrowthRatioobject

极小文件个数日环比。极小文件指的是 0 MB 以上,10 MB 以下大小的文件。

Namestring

指标名称。

tinyFileCountDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of tiny files
EmptyFileCountDayGrowthRatioobject

空文件个数日环比。空文件指的是 0 MB 大小的文件。

Namestring

指标名称。

emptyFileCountDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of empty files
HotDataSizeDayGrowthRatioobject

热数据的数据量大小日环比。热数据指的是 7 日内有访问的数据。

Namestring

指标名称。

hotDataSizeDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of hot data size
WarmDataSizeDayGrowthRatioobject

温数据的数据量大小日环比。温数据指的是 7 日内没有访问的数据,但是 30 日以内有访问的数据。

Namestring

指标名称。

warmDataSizeDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of warm data size
ColdDataSizeDayGrowthRatioobject

冷数据的数据量大小日环比。冷数据指的是 30 日内没有访问的数据,但是 90 日以内有访问的数据。

Namestring

指标名称。

coldDataSizeDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of cold data size
FreezeDataSizeDayGrowthRatioobject

极冷数据的数据量大小日环比。极冷数据指的是 90 日以内都没有访问的数据。

Namestring

指标名称。

freezeDataSizeDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of freeze data size
TotalDataSizeDayGrowthRatioobject

总数据量大小日环比。

Namestring

指标名称。

totalDataSizeDayGrowthRatio
Valuefloat

指标值。

0.5
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of total data size
Analysisobject

分析结果。

HiveFrequencyScoreinteger

Hive 库访问频率得分。

85
HiveDistributionScoreinteger

Hive 库文件大小评分。

85
HiveFormatScoreinteger

Hive 库格式评分。

85
HiveScoreinteger

Hive 库综合评分。

85
RequestIdstring

请求 ID。

DD6B1B2A-5837-5237-ABE4-FF0C8944****

示例

正常返回示例

JSON格式

{
  "Data": {
    "Formats": [
      {
        "FormatName": "TextInputFormat",
        "FormatSize": 1000,
        "FormatSizeUnit": "MB",
        "FormatRatio": 0.5,
        "FormatDayGrowthSize": 1000,
        "FormatSizeDayGrowthRatio": 0.5
      }
    ],
    "Metrics": {
      "TableCount": {
        "Name": "tableCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of tables\n"
      },
      "PartitionNum": {
        "Name": "partitionNum",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of partitions\n"
      },
      "LargeFileCount": {
        "Name": "largeFileCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of large files\n"
      },
      "MediumFileCount": {
        "Name": "mediumFileCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of medium files\n"
      },
      "SmallFileCount": {
        "Name": "smallFileCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of small files\n"
      },
      "TinyFileCount": {
        "Name": "tinyFileCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of tiny files\n"
      },
      "EmptyFileCount": {
        "Name": "emptyFileCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of empty files\n"
      },
      "TotalFileCount": {
        "Name": "totalFileCount\t",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Number of total files\n"
      },
      "LargeFileRatio": {
        "Name": "largeFileRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of large files\n"
      },
      "MediumFileRatio": {
        "Name": "mediumFileRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of medium files\n"
      },
      "SmallFileRatio": {
        "Name": "smallFileRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of small files\n"
      },
      "TinyFileRatio": {
        "Name": "tinyFileRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of tiny files\n"
      },
      "EmptyFileRatio": {
        "Name": "emptyFileRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of empty files\n"
      },
      "HotDataSize": {
        "Name": "hotDataSize",
        "Value": 1000,
        "Unit": "MB",
        "Description": "Ratio of hot files\n"
      },
      "WarmDataSize": {
        "Name": "warmDataSize",
        "Value": 1000,
        "Unit": "MB",
        "Description": "Ratio of warm files\n"
      },
      "ColdDataSize": {
        "Name": "coldDataSize",
        "Value": 1000,
        "Unit": "MB",
        "Description": "Ratio of cold files\n"
      },
      "FreezeDataSize": {
        "Name": "freezeDataSize",
        "Value": 1000,
        "Unit": "MB",
        "Description": "Ratio of freeze files\n"
      },
      "TotalDataSize": {
        "Name": "totalDataSize\t",
        "Value": 1000,
        "Unit": "MB",
        "Description": "Total data size in megabytes (MB)\n"
      },
      "HotDataRatio": {
        "Name": "hotDataRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Hot data ratio\n"
      },
      "WarmDataRatio": {
        "Name": "warmDataRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of warm data\n"
      },
      "ColdDataRatio": {
        "Name": "coldDataRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Cold data ratio\n"
      },
      "FreezeDataRatio": {
        "Name": "freezeDataRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Ratio of freeze data\n"
      },
      "TotalFileDayGrowthCount": {
        "Name": "totalFileDayGrowthCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth count of total files\n"
      },
      "LargeFileDayGrowthCount": {
        "Name": "largeFileDayGrowthCount\t",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth count of large files\n"
      },
      "MediumFileDayGrowthCount": {
        "Name": "mediumFileDayGrowthCount\t",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth count of medium files\n"
      },
      "SmallFileDayGrowthCount": {
        "Name": "smallFileDayGrowthCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth count of small files\n"
      },
      "TinyFileDayGrowthCount": {
        "Name": "tinyFileDayGrowthCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth count of tiny files\n"
      },
      "EmptyFileDayGrowthCount": {
        "Name": "emptyFileDayGrowthCount",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth count of empty files\n"
      },
      "HotDataDayGrowthSize": {
        "Name": "hotDataDayGrowthSize",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth size of hot data\n"
      },
      "WarmDataDayGrowthSize": {
        "Name": "warmDataDayGrowthSize",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth size of warm data\n"
      },
      "ColdDataDayGrowthSize": {
        "Name": "coldDataDayGrowthSize\t",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth size of cold data\n"
      },
      "FreezeDataDayGrowthSize": {
        "Name": "freezeDataDayGrowthSize\t",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth size of freeze data\n"
      },
      "TotalDataDayGrowthSize": {
        "Name": "totalDataDayGrowthSize\t",
        "Value": 1000,
        "Unit": "\"\"",
        "Description": "Day growth size of total data\n"
      },
      "TotalFileCountDayGrowthRatio": {
        "Name": "totalFileCountDayGrowthRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of total files\n"
      },
      "LargeFileCountDayGrowthRatio": {
        "Name": "largeFileCountDayGrowthRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of large files\n"
      },
      "MediumFileCountDayGrowthRatio": {
        "Name": "mediumFileCountDayGrowthRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of medium files\n"
      },
      "SmallFileCountDayGrowthRatio": {
        "Name": "smallFileCountDayGrowthRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of small files\n"
      },
      "TinyFileCountDayGrowthRatio": {
        "Name": "tinyFileCountDayGrowthRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of tiny files\n"
      },
      "EmptyFileCountDayGrowthRatio": {
        "Name": "emptyFileCountDayGrowthRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of empty files\n"
      },
      "HotDataSizeDayGrowthRatio": {
        "Name": "hotDataSizeDayGrowthRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of hot data size\n"
      },
      "WarmDataSizeDayGrowthRatio": {
        "Name": "warmDataSizeDayGrowthRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of warm data size\n"
      },
      "ColdDataSizeDayGrowthRatio": {
        "Name": "coldDataSizeDayGrowthRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of cold data size\n"
      },
      "FreezeDataSizeDayGrowthRatio": {
        "Name": "freezeDataSizeDayGrowthRatio\t",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of freeze data size\n"
      },
      "TotalDataSizeDayGrowthRatio": {
        "Name": "totalDataSizeDayGrowthRatio",
        "Value": 0.5,
        "Unit": "\"\"",
        "Description": "Day growth ratio of total data size\n"
      }
    },
    "Analysis": {
      "HiveFrequencyScore": 85,
      "HiveDistributionScore": 85,
      "HiveFormatScore": 85,
      "HiveScore": 85
    }
  },
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}

错误码

HTTP status code错误码错误信息描述
400ConflictParametersParameters that must not be used together. %s多个参数间存在冲突。
400IncompleteSignatureThe request signature is invalid.API请求签名不合法。
400InvalidActionThe action %s requested is invalid.不合法的Action。
400InvalidParameterThe specified parameter %s is not valid.参数错误。
400InvalidParameterValueThe input parameter %s is invalid or out of range.参数值超出范围。
400MissingActionThe action %s requested is missing.缺少Action参数
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.参数缺失。
400NotAuthorizedYou do not have permission to perform this action. %s没有权限。
400ThrottlingExceptionThe request was denied due to request throttling. %s限流。
404ResourceNotFoundThe resource not found by %s.请求的资源未找到。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.内部错误。
503ServiceFailureThe request has failed due to a temporary failure of %s service.依赖的阿里云其他服务不可用。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.请求超时或者服务不可用。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈