PreRules interface
表示 PreRules 的介面。
方法
begin |
建立 PreRulesResource |
begin |
建立 PreRulesResource |
begin |
刪除 PreRulesResource |
begin |
刪除 PreRulesResource |
get(string, string, Pre |
取得 PreRulesResource |
get |
取得計數器 |
list(string, Pre |
依租使用者列出 PreRulesResource 資源 |
refresh |
重新整理計數器 |
reset |
重設計數器 |
方法詳細資料
beginCreateOrUpdate(string, string, PreRulesResource, PreRulesCreateOrUpdateOptionalParams)
建立 PreRulesResource
function beginCreateOrUpdate(globalRulestackName: string, priority: string, resource: PreRulesResource, options?: PreRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PreRulesResource>, PreRulesResource>>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
- resource
- PreRulesResource
資源建立參數。
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<PreRulesResource>, PreRulesResource>>
beginCreateOrUpdateAndWait(string, string, PreRulesResource, PreRulesCreateOrUpdateOptionalParams)
建立 PreRulesResource
function beginCreateOrUpdateAndWait(globalRulestackName: string, priority: string, resource: PreRulesResource, options?: PreRulesCreateOrUpdateOptionalParams): Promise<PreRulesResource>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
- resource
- PreRulesResource
資源建立參數。
選項參數。
傳回
Promise<PreRulesResource>
beginDelete(string, string, PreRulesDeleteOptionalParams)
刪除 PreRulesResource
function beginDelete(globalRulestackName: string, priority: string, options?: PreRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
- options
- PreRulesDeleteOptionalParams
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, PreRulesDeleteOptionalParams)
刪除 PreRulesResource
function beginDeleteAndWait(globalRulestackName: string, priority: string, options?: PreRulesDeleteOptionalParams): Promise<void>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
- options
- PreRulesDeleteOptionalParams
選項參數。
傳回
Promise<void>
get(string, string, PreRulesGetOptionalParams)
取得 PreRulesResource
function get(globalRulestackName: string, priority: string, options?: PreRulesGetOptionalParams): Promise<PreRulesResource>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
- options
- PreRulesGetOptionalParams
選項參數。
傳回
Promise<PreRulesResource>
getCounters(string, string, PreRulesGetCountersOptionalParams)
取得計數器
function getCounters(globalRulestackName: string, priority: string, options?: PreRulesGetCountersOptionalParams): Promise<RuleCounter>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
選項參數。
傳回
Promise<RuleCounter>
list(string, PreRulesListOptionalParams)
依租使用者列出 PreRulesResource 資源
function list(globalRulestackName: string, options?: PreRulesListOptionalParams): PagedAsyncIterableIterator<PreRulesResource, PreRulesResource[], PageSettings>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- options
- PreRulesListOptionalParams
選項參數。
傳回
refreshCounters(string, string, PreRulesRefreshCountersOptionalParams)
重新整理計數器
function refreshCounters(globalRulestackName: string, priority: string, options?: PreRulesRefreshCountersOptionalParams): Promise<void>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
選項參數。
傳回
Promise<void>
resetCounters(string, string, PreRulesResetCountersOptionalParams)
重設計數器
function resetCounters(globalRulestackName: string, priority: string, options?: PreRulesResetCountersOptionalParams): Promise<RuleCounterReset>
參數
- globalRulestackName
-
string
GlobalRulestack 資源名稱
- priority
-
string
預先規則優先順序
選項參數。
傳回
Promise<RuleCounterReset>