All Products
Search
Document Center

Security Center:GetClientRatioStatistic

Last Updated:Jun 12, 2026

Mengkueri statistik tentang tingkat online dan tingkat instalasi klien.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:GetClientRatioStatistic

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

TimeStart

integer

Yes

Stempel waktu mulai statistik. Satuan: milidetik.

1671382800000

TimeEnd

integer

Yes

Stempel waktu akhir statistik. Satuan: milidetik.

1686412799999

StatisticTypes

array

No

Daftar jenis statistik.

string

No

Jenis statistik.

  • INSTALL: Tingkat instalasi

  • ONLINE: Tingkat online

INSTALL

ResourceDirectoryAccountId

integer

No

ID akun utama dari akun anggota direktori sumber daya.

Catatan

Anda dapat memanggil operasi DescribeMonitorAccounts untuk mendapatkan parameter ini.

127608589417****

Elemen respons

Element

Type

Description

Example

object

Parameter respons.

RequestId

string

ID permintaan. ID adalah pengenal unik yang dihasilkan oleh Alibaba Cloud untuk permintaan dan dapat digunakan untuk memecahkan masalah.

A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7

ClientInstallRatio

object

Statistik tentang tingkat instalasi klien.

HistoryItems

array<object>

Daftar statistik historis tentang tingkat instalasi klien.

array<object>

Statistik historis tentang tingkat instalasi klien.

Vendor

integer

The type of the cloud asset. Valid values:

  • 0: an asset provided by Alibaba Cloud

  • 1: a third-party cloud asset

  • 2: an asset in a data center

  • 3, 4, 5, and 7: other cloud asset

  • 8: a simple application server

3

Items

array<object>

The list of statistics on the client installation rate.

object

CalculateTime

integer

The timestamp of the calculation. Unit: milliseconds.

1687759630045

AssetTotalCount

integer

The total number of assets.

100

InstallRatio

number

The installation rate. Unit: %.

80.00

InstalledAssetCount

integer

The number of assets on which the client is installed.

80

CurrentItems

array<object>

Daftar statistik saat ini tentang tingkat instalasi klien.

array<object>

Statistik saat ini tentang tingkat instalasi klien.

Vendor

integer

The type of the server. Valid values:

  • 0: an asset provided by Alibaba Cloud

  • 1: a third-party cloud asset

  • 2: an asset in a data center

  • 3, 4, 5, and 7: other cloud asset

  • 8: a lightweight asset

0

Items

array<object>

The list of the statistics on the installation rate of the client by vendor.

object

CalculateTime

integer

The timestamp of the calculation. Unit: milliseconds.

1687759630045

AssetTotalCount

integer

The total number of assets.

100

InstallRatio

number

The installation rate. Unit: %.

70.00

InstalledAssetCount

integer

The number of assets on which the client is installed.

70

ClientOnlineRatio

object

Statistik tentang tingkat online klien.

HistoryItems

array<object>

Daftar statistik historis tentang tingkat online klien.

array<object>

Statistik historis tentang tingkat online klien.

Vendor

integer

The type of the server. Valid values:

  • 0: an asset provided by Alibaba Cloud

  • 1: a third-party cloud asset

  • 2: an asset in a data center

  • 3, 4, 5, and 7: other cloud asset

  • 8: a lightweight asset

7

Items

array<object>

The list of historical statistics on the online rate of the client by vendor.

object

CalculateTime

integer

The timestamp of the calculation. Unit: milliseconds.

1687759630045

AssetInstallCount

integer

The number of assets on which the client is installed.

50

OnlineRatio

number

The online rate. Unit: %.

40.00

OnlineAssetCount

integer

The number of online assets.

20

CurrentItems

array<object>

Daftar statistik saat ini tentang tingkat online klien.

array<object>

Statistik saat ini tentang tingkat online klien.

Vendor

integer

The type of the cloud asset. Valid values:

  • 0: an asset provided by Alibaba Cloud

  • 1: a third-party cloud asset

  • 2: an asset in a data center

  • 3, 4, 5, and 7: other cloud asset

  • 8: a simple application server

3

Items

array<object>

The list of current statistics on the online rate of the client by vendor.

object

CalculateTime

integer

The timestamp of the calculation. Unit: milliseconds.

1687759630045

AssetInstallCount

integer

The number of assets on which the client is installed.

50

OnlineRatio

number

The online rate. Unit: %.

20.00

OnlineAssetCount

integer

The number of online assets.

10

Dates

array

Daftar waktu statistik.

integer

Waktu statistik. Satuan: milidetik.

1687104000000

Contoh

Respons sukses

JSONformat

{
  "RequestId": "A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7",
  "ClientInstallRatio": {
    "HistoryItems": [
      {
        "Vendor": 3,
        "Items": [
          {
            "CalculateTime": 1687759630045,
            "AssetTotalCount": 100,
            "InstallRatio": 80,
            "InstalledAssetCount": 80
          }
        ]
      }
    ],
    "CurrentItems": [
      {
        "Vendor": 0,
        "Items": [
          {
            "CalculateTime": 1687759630045,
            "AssetTotalCount": 100,
            "InstallRatio": 70,
            "InstalledAssetCount": 70
          }
        ]
      }
    ]
  },
  "ClientOnlineRatio": {
    "HistoryItems": [
      {
        "Vendor": 7,
        "Items": [
          {
            "CalculateTime": 1687759630045,
            "AssetInstallCount": 50,
            "OnlineRatio": 40,
            "OnlineAssetCount": 20
          }
        ]
      }
    ],
    "CurrentItems": [
      {
        "Vendor": 3,
        "Items": [
          {
            "CalculateTime": 1687759630045,
            "AssetInstallCount": 50,
            "OnlineRatio": 20,
            "OnlineAssetCount": 10
          }
        ]
      }
    ]
  },
  "Dates": [
    1687104000000
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 RdCheckNoPermission Resource directory account verification has no permission.
400 NeedBuy This service shoule be purchased first.
500 RdCheckInnerError Resource directory account service internal error.
500 ServerError ServerError
403 NoPermission caller has no permission

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.