-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Targets get_scope() will now pull from connected target (#9)
* `targets.get_scope()` will now pull the scope of the connected target if no arguments provided * Alphabetized defs for better organization
- Loading branch information
Showing
21 changed files
with
1,641 additions
and
1,584 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
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 |
---|---|---|
|
@@ -4,21 +4,6 @@ The Alerts Plugin is used to send alerts to various external services. | |
|
||
The functions within this plugin don't follow the standard naming convention. | ||
|
||
## alerts.slack(message) | ||
|
||
> This function makes a POST request to Slack in order to post a message. | ||
> This function expects `h.db.slack_url` to be set. | ||
> | ||
> | Arguments | Type | Description | ||
> | --- | --- | --- | ||
> | `message` | str | A message to send to Slack | ||
> | ||
>> Examples | ||
>> ```python3 | ||
>> >>> h.db.synack_url = 'https://hooks.slack.com/services/x/y/z' | ||
>> >>> h.alerts.slack('Something important happened!') | ||
>> ``` | ||
## alerts.email(subject, message) | ||
|
||
>> This function attempts to use SMTP to send an email. | ||
|
@@ -40,3 +25,18 @@ The functions within this plugin don't follow the standard naming convention. | |
>> >>> h.db.smtp_email_from = '[email protected]' | ||
>> >>> h.alerts.email('Look out!', 'Some other important thing happened!') | ||
>> ``` | ||
## alerts.slack(message) | ||
> This function makes a POST request to Slack in order to post a message. | ||
> This function expects `h.db.slack_url` to be set. | ||
> | ||
> | Arguments | Type | Description | ||
> | --- | --- | --- | ||
> | `message` | str | A message to send to Slack | ||
> | ||
>> Examples | ||
>> ```python3 | ||
>> >>> h.db.synack_url = 'https://hooks.slack.com/services/x/y/z' | ||
>> >>> h.alerts.slack('Something important happened!') | ||
>> ``` |
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
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.