-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathIAddScaleRuleContext.ts
More file actions
34 lines (27 loc) · 1.22 KB
/
IAddScaleRuleContext.ts
File metadata and controls
34 lines (27 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ScaleRule } from "@azure/arm-appcontainers";
import type { ExecuteActivityContext } from "@microsoft/vscode-azext-utils";
import type { ContainerAppModel } from "../../../tree/ContainerAppItem";
import type { IContainerAppContext } from "../../IContainerAppContext";
export interface IAddScaleRuleContext extends IContainerAppContext, ExecuteActivityContext {
// Make containerApp _required_
containerApp: ContainerAppModel;
/**
* The name of the parent resource (`ContainerAppModel | Revision`)
*/
parentResourceName: string;
// Base Rule Properties
newRuleName?: string;
newRuleType?: string;
// HTTP Rule Properties
newHttpConcurrentRequests?: string;
// Queue Rule Properties
newQueueName?: string;
newQueueLength?: number;
newQueueSecretRef?: string;
newQueueTriggerParameter?: string;
scaleRule?: ScaleRule;
}