-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. stress start: start stress test ; 2. stress clean: clean the relevant resources
- Loading branch information
1 parent
b6c2ca8
commit da4d442
Showing
20 changed files
with
939 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { HttpTypeOption, EventTypeOption, StressOption, PayloadOption } from '../interface/component/fs-stress'; | ||
export default class FcStress { | ||
private readonly httpTypeOpts?; | ||
private readonly eventTypeOpts?; | ||
private readonly stressOpts?; | ||
private readonly payloadOpts?; | ||
private readonly region; | ||
private readonly access; | ||
constructor(access: string, region: string, stressOpts?: StressOption, httpTypeOpts?: HttpTypeOption, eventTypeOpts?: EventTypeOption, payloadOpts?: PayloadOption); | ||
private isEventFunctionType; | ||
private isHttpFunctionType; | ||
makeStartArgs(): string; | ||
makeCleanArgs(assumeYes?: boolean): string; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export interface StressOption { | ||
numUser?: number; | ||
spawnRate?: number; | ||
runningTime?: number; | ||
functionType: string; | ||
} | ||
export interface HttpTypeOption { | ||
url: number; | ||
method?: string; | ||
body?: any; | ||
} | ||
export interface EventTypeOption { | ||
serviceName: string; | ||
functionName: string; | ||
qualifier?: string; | ||
payload?: any; | ||
} | ||
export interface PayloadOption { | ||
payload?: string; | ||
payloadFile?: string; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.