-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples(get-started-tracetest-cloud): add sls code
- Loading branch information
1 parent
70a4021
commit b1f8d04
Showing
9 changed files
with
2,607 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
examples/get-started-cloud-based-managed-tracetest/kubernetes/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
examples/get-started-cloud-based-managed-tracetest/kubernetes/package.json
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "docker", | ||
"name": "kubernetes", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
|
2 changes: 2 additions & 0 deletions
2
examples/get-started-cloud-based-managed-tracetest/serverless/.gitignore
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,2 @@ | ||
node_modules | ||
.serverless |
10 changes: 10 additions & 0 deletions
10
examples/get-started-cloud-based-managed-tracetest/serverless/handler.js
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,10 @@ | ||
module.exports.hello = async (event) => { | ||
const response = { | ||
statusCode: 200, | ||
body: JSON.stringify({ | ||
message: 'Hello, world!', | ||
}), | ||
}; | ||
|
||
return response; | ||
}; |
Oops, something went wrong.