Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed Dec 10, 2023
1 parent 9cff07e commit acc60af
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/resources/project_spike_protection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sentry_project_spike_protection Resource - terraform-provider-sentry"
subcategory: ""
description: |-
Sentry Project Spike Protection resource. This resource is used to create and manage spike protection for a project.
---

# sentry_project_spike_protection (Resource)

Sentry Project Spike Protection resource. This resource is used to create and manage spike protection for a project.

## Example Usage

```terraform
resource "sentry_project" "default" {
organization = "my-organization"
teams = ["my-first-team", "my-second-team"]
name = "web-app"
platform = "javascript"
}
# Enable spike protection for the project
resource "sentry_project_spike_protection" "default" {
organization = sentry_project.default.organization
project_slug = sentry_project.default.slug
enabled = true
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `enabled` (Boolean) Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off.
- `organization` (String) The slug of the organization the project belongs to.
- `project_slug` (String) The slug of the project to create the filter for.

### Read-Only

- `id` (String) The ID of this resource.


15 changes: 15 additions & 0 deletions examples/resources/sentry_project_spike_protection/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resource "sentry_project" "default" {
organization = "my-organization"

teams = ["my-first-team", "my-second-team"]
name = "web-app"

platform = "javascript"
}

# Enable spike protection for the project
resource "sentry_project_spike_protection" "default" {
organization = sentry_project.default.organization
project_slug = sentry_project.default.slug
enabled = true
}

0 comments on commit acc60af

Please sign in to comment.