-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
988938c
commit fff994e
Showing
7 changed files
with
8 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
# Datadog-to-YAML | ||
--- | ||
Converts Datadog monitor JSON into YAML | ||
|
||
--- | ||
This conversion can be done by means of the [Chrome extension](https://github.com/peckham/Datadog-to-YAML/tree/master/releases/chrome) or the [Visual Studio Code extension](https://github.com/peckham/Datadog-to-YAML/tree/master/releases/vscode). Or both, I don't really care how you decide to do it. | ||
|
||
--- | ||
## Chrome | ||
The Chrome extensions adds a new `Export to YAML` button to the JSON export of the Datadog UI. This button will add the YAML to your clipboard. | ||
|
||
--- | ||
## Visual Studio Code | ||
The Visual Studio Code extension is activated when you open a .yaml file in the editor. Once activated you can paste the Datadog monitor JSON (or probably any valid JSON) using the keyboard shortcut `Ctrl+D, Ctrl+D` or via `Paste Datadog as YAML` in the context menu. |
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,4 @@ | ||
# Change Log | ||
|
||
## 0.0.1 | ||
- Initial release |
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,15 +1,12 @@ | ||
# Datadog-to-YAML Chrome extension | ||
--- | ||
Converts Datadog monitor JSON into YAML | ||
|
||
--- | ||
## Installation | ||
1. Download one of the releases on this page. | ||
2. Extract the .zip file. | ||
3. In Chrome navigate to `chrome://extensions/` and enable developer mode in the upper right corner. | ||
4. Add the extension by clicking on `Load unpacked` and selecting the folder where you extracted the .zip file. | ||
|
||
--- | ||
## How to Use | ||
1. Create or edit a monitor (but don't save it) in the Datadog UI. | ||
2. Use the `Export as YAML` button to copy the monitor YAML. |
Binary file not shown.
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,4 @@ | ||
# Change Log | ||
|
||
## 0.0.1 | ||
- Initial release |
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,13 +1,10 @@ | ||
# Datadog-to-YAML Visual Studio Code extension | ||
--- | ||
Converts Datadog monitor JSON into YAML | ||
|
||
--- | ||
## Installation | ||
1. Download one of the releases om this page. | ||
2. Either install the .vsix file with `code --install-extension datadog-to-yaml-{version}.vsix`, or open the extensions sidebar in Visual Studio Code, click on the ellipsis and choose `Install from VSIX`. | ||
|
||
--- | ||
## How to Use | ||
1. Create or edit a monitor (but don't save it) in the Datadog UI and copy the monitor JSON. | ||
2. In Visual Studio Code, open a .yaml file and insert the monitor YAML with Ctrl+D, Ctrl+D. Or use `Paste Datadog as YAML` in the editor's context menu. |
Binary file not shown.