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
resource "squadcast_squad" "squad" { | |
name = "My squad" | |
team_id = data.squadcast_team.example_team.id | |
members { | |
user_id = data.squadcast_user.example_user.id | |
role = “owner” | |
} | |
members { | |
user_id = data.squadcast_user.example_user_2.id | |
role = “member” |
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
data "squadcast_team" "example_team" { | |
name = "example team name" | |
} | |
data "squadcast_user" "example_user" { | |
email = "example@squadcast.com" | |
} | |
data "squadcast_user" "example_user_2" { | |
email = "example2@squadcast.com" |
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
resource "squadcast_team_member" "example_team_member" { | |
team_id = data.squadcast_team.example_team.id | |
user_id = data.squadcast_user.example_user.id | |
role = “owner” # “member”, “stakeholder” | |
} |
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
data "squadcast_team" "example_team" { | |
name = "example team name" | |
} | |
data "squadcast_user" "example_user" { | |
email = "example@squadcast.com" | |
} | |
resource "squadcast_team_member" "example_team_member" { | |
team_id = data.squadcast_team.example_team.id |
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
terraform state rm squadcast_team_role.example_team_role_1 | |
terraform state rm squadcast_team_role.example_team_role_1 |
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
data "squadcast_team" "example_team" { | |
name = "example team name" | |
} | |
resource "squadcast_team_role" "example_team_role_1" { | |
name = "Test Role" | |
team_id = data.squadcast_team.example_team.id | |
abilities = ["create-escalation-policies", "read-escalation-policies", "update-escalation-policies"] | |
} |
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
https://api.squadcast.com/global/v1/<alert_source_shortname>/<global_routing_key> |
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
payload.stateChange="down" |
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
{ | |
"webhookId": "5e3378c2-275d-11e8-89db", | |
"monitorId": "1afb2342-2754-11e8-89db", | |
"monitorName": "Example", | |
"monitorAddress": "http://example.adminlabs.com/example.html", | |
"stateChange": "down", | |
"outageId": "4fd5c5df-275d-11e8", | |
"outageStartedAt": "2018-03-14 08:57:09", | |
"outageEndedAt": null, | |
"maintenanceId": null |
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
GET/bank /_search | |
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"bool": { | |
"should": [ | |
{ "match": { "address_name": "lane" } }, | |
{ "match": { "address_name": "street" } } |
NewerOlder