你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Service Tier Advisors - List By Database

返回指定数据库的服务层顾问。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors?api-version=2014-04-01

URI 参数

名称 必需 类型 说明
databaseName
path True

string

数据库的名称。

resourceGroupName
path True

string

包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serverName
path True

string

服务器的名称。

subscriptionId
path True

string

用于标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

响应

名称 类型 说明
200 OK

ServiceTierAdvisorListResult

确定

示例

Get a list of a service tier advisors

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/serviceTierAdvisors?api-version=2014-04-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/serviceTierAdvisors/Current",
      "name": "Current",
      "type": "Microsoft.Sql/servers/databases/serviceTierAdvisors",
      "properties": {
        "observationPeriodStart": "2017-07-12T12:00:00Z",
        "observationPeriodEnd": "2017-07-26T13:00:00Z",
        "activeTimeRatio": 0,
        "minDtu": 0,
        "avgDtu": 0,
        "maxDtu": 0,
        "maxSizeInGB": 0.0234375,
        "serviceLevelObjectiveUsageMetrics": [
          {
            "serviceLevelObjective": "Basic",
            "serviceLevelObjectiveId": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c",
            "inRangeTimeRatio": 1
          }
        ],
        "currentServiceLevelObjective": "S0",
        "currentServiceLevelObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "usageBasedRecommendationServiceLevelObjective": null,
        "usageBasedRecommendationServiceLevelObjectiveId": null,
        "databaseSizeBasedRecommendationServiceLevelObjective": null,
        "databaseSizeBasedRecommendationServiceLevelObjectiveId": null,
        "disasterPlanBasedRecommendationServiceLevelObjective": null,
        "disasterPlanBasedRecommendationServiceLevelObjectiveId": null,
        "overallRecommendationServiceLevelObjective": null,
        "overallRecommendationServiceLevelObjectiveId": null,
        "confidence": 1
      }
    }
  ]
}

定义

名称 说明
ServiceObjectiveName

serviceLevelObjective for SLO 使用情况指标。

ServiceTierAdvisor

表示服务层顾问。

ServiceTierAdvisorListResult

表示对列表服务层顾问请求的响应。

SloUsageMetric

Slo 使用情况指标。

ServiceObjectiveName

serviceLevelObjective for SLO 使用情况指标。

名称 类型 说明
Basic

string

DS100

string

DS1000

string

DS1200

string

DS1500

string

DS200

string

DS2000

string

DS300

string

DS400

string

DS500

string

DS600

string

DW100

string

DW1000

string

DW10000c

string

DW1000c

string

DW1200

string

DW1500

string

DW15000c

string

DW1500c

string

DW200

string

DW2000

string

DW2000c

string

DW2500c

string

DW300

string

DW3000

string

DW30000c

string

DW3000c

string

DW400

string

DW500

string

DW5000c

string

DW600

string

DW6000

string

DW6000c

string

DW7500c

string

ElasticPool

string

Free

string

P1

string

P11

string

P15

string

P2

string

P3

string

P4

string

P6

string

PRS1

string

PRS2

string

PRS4

string

PRS6

string

S0

string

S1

string

S12

string

S2

string

S3

string

S4

string

S6

string

S7

string

S9

string

System

string

System0

string

System1

string

System2

string

System2L

string

System3

string

System3L

string

System4

string

System4L

string

ServiceTierAdvisor

表示服务层顾问。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.activeTimeRatio

number

ActiveTimeRatio for 服务层顾问。

properties.avgDtu

number

获取或设置服务层顾问的 avgDtu。

properties.confidence

number

获取或设置服务层顾问的置信度。

properties.currentServiceLevelObjective

string

获取或设置服务层顾问的 currentServiceLevelObjective。

properties.currentServiceLevelObjectiveId

string

获取或设置服务层顾问的 currentServiceLevelObjectiveId。

properties.databaseSizeBasedRecommendationServiceLevelObjective

string

获取或设置 databaseSizeBasedRecommendationServiceLevelObjective for 服务层顾问。

properties.databaseSizeBasedRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 databaseSizeBasedRecommendationServiceLevelObjectiveId。

properties.disasterPlanBasedRecommendationServiceLevelObjective

string

获取或设置 disasterPlanBasedRecommendationServiceLevelObjective for 服务层顾问。

properties.disasterPlanBasedRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 disasterPlanBasedRecommendationServiceLevelObjectiveId。

properties.maxDtu

number

获取或设置服务层顾问的 maxDtu。

properties.maxSizeInGB

number

获取或设置服务层顾问的 maxSizeInGB。

properties.minDtu

number

获取或设置服务层顾问的 minDtu。

properties.observationPeriodEnd

string

观察周期开始 (ISO8601 格式) 。

properties.observationPeriodStart

string

观察周期开始 (ISO8601 格式) 。

properties.overallRecommendationServiceLevelObjective

string

获取或设置服务层顾问的 overallRecommendationServiceLevelObjective。

properties.overallRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 overallRecommendationServiceLevelObjectiveId。

properties.serviceLevelObjectiveUsageMetrics

SloUsageMetric[]

获取或设置服务层顾问的 serviceLevelObjectiveUsageMetrics。

properties.usageBasedRecommendationServiceLevelObjective

string

获取或设置 usageBasedRecommendationServiceLevelObjective for 服务层顾问。

properties.usageBasedRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 usageBasedRecommendationServiceLevelObjectiveId。

type

string

资源类型。

ServiceTierAdvisorListResult

表示对列表服务层顾问请求的响应。

名称 类型 说明
value

ServiceTierAdvisor[]

指定数据库的服务层顾问列表。

SloUsageMetric

Slo 使用情况指标。

名称 类型 说明
inRangeTimeRatio

number

获取或设置 SLO 使用情况指标的 InRangeTimeRatio。

serviceLevelObjective

ServiceObjectiveName

serviceLevelObjective for SLO 使用情况指标。

serviceLevelObjectiveId

string

SLO 使用情况指标的 serviceLevelObjectiveId。