diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b0944acd..d585e0b7 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,17 +1,19 @@ name: Lint -on: [ push, pull_request, workflow_dispatch ] + +on: [push] jobs: - golangci-lint: + golangci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: "1.20" - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: - skip-go-installation: true - version: v1.50.1 - args: --timeout=10m \ No newline at end of file + version: v1.53 + args: --timeout=5m diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e5bd92de..4bab4db6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,50 +3,31 @@ name: Release on: push: tags: - - 'v*' + - "v*" jobs: - release: + goreleaser: runs-on: ubuntu-latest - services: - postgres: - image: postgres:13 - ports: - - 5432:5432 - env: - POSTGRES_PASSWORD: postgres - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 steps: - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: 1.18 - id: go - - name: Check out code into the Go module directory + - name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Test - env: - POSTGRES_PASSWORD: postgres - run: make test - - name: Get release tag - id: get_version - uses: battila7/get-version-action@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: "1.20" - name: Login to DockerHub uses: docker/login-action@v1 with: + registry: docker.io username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2.6.1 + uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser version: latest - args: --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 82cd9c79..aea82eac 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,3 @@ - name: Test on: [push, pull_request] @@ -18,13 +17,10 @@ jobs: --health-timeout 5s --health-retries 5 steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Set up Go 1.18 - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 with: - go-version: 1.18 - id: go + go-version: "1.20" - name: Install dependencies run: sudo apt-get install build-essential - name: Install packages @@ -33,7 +29,9 @@ jobs: env: POSTGRES_PASSWORD: postgres run: make test - - name: Send coverage to coveralls - uses: shogo82148/actions-goveralls@v1 - with: - path-to-profile: coverage.out + - name: Install goveralls and send coverage + env: + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + go install github.com/mattn/goveralls@latest + goveralls -coverprofile=coverage.out -service=github diff --git a/.goreleaser.yml b/.goreleaser.yml index 3f6e84a3..0f823896 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,72 +1,73 @@ project_name: siren release: - draft: true prerelease: auto before: hooks: - go mod tidy - - go mod vendor + - make clean + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + - "^build:" builds: - - main: ./main.go - id: "siren" + - id: siren + main: ./main.go binary: siren - flags: - - -a + flags: [-a] ldflags: - - -s -w -X github.com/odpf/siren/config.Version={{.Tag}} -X github.com/odpf/siren/config.BuildCommit={{.FullCommit}} -X github.com/odpf/siren/config.BuildDate={{.Date}} + - -X github.com/raystack/siren/cli.Version={{.Tag}} + - -X github.com/raystack/siren/cli.BuildCommit={{.FullCommit}} + - -X github.com/raystack/siren/cli.BuildDate={{.Date}} + goos: [linux, darwin, windows] + goarch: [amd64, 386, arm, arm64] env: - CGO_ENABLED=0 - goos: [darwin, linux, windows] - goarch: [amd64, 386] archives: - - replacements: - darwin: macos - linux: linux - windows: windows - 386: i386 - amd64: x86_64 + - id: "archives" format_overrides: - goos: windows format: zip -changelog: - sort: asc - filters: - exclude: - - "^docs:" - - "^test:" - - "^build:" - - "Merge pull request" - - "Merge branch" - -checksum: - name_template: "checksums.txt" - -snapshot: - name_template: "{{ .Tag }}-next" - dockers: - - goos: linux - goarch: amd64 - ids: - - siren - dockerfile: Dockerfile + - id: dockerhub image_templates: - - "docker.io/odpf/{{.ProjectName}}:latest" - - "docker.io/odpf/{{.ProjectName}}:{{ .Version }}" - - "docker.io/odpf/{{.ProjectName}}:{{ .Tag }}-amd64" + - "docker.io/raystack/{{.ProjectName}}:latest" + - "docker.io/raystack/{{.ProjectName}}:{{ .Version }}" + - "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64" + +nfpms: + - maintainer: Raystack + description: Universal data observability tool. + homepage: https://github.com/raystack/siren + license: Apache 2.0 + formats: + - deb + - rpm + - apk + +scoops: + - homepage: "https://github.com/raystack/siren" + description: "Universal data observability tool." + license: Apache 2.0 + bucket: + owner: raystack + name: scoop-bucket brews: - name: siren - homepage: "https://github.com/odpf/siren" + homepage: "https://github.com/raystack/siren" description: "Universal data observability tool." tap: - owner: odpf - name: homebrew-taps + owner: raystack + name: homebrew-tap license: "Apache 2.0" folder: Formula dependencies: diff --git a/Makefile b/Makefile index 86462c41..917778be 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -NAME="github.com/odpf/siren" +NAME="github.com/raystack/siren" LAST_COMMIT := $(shell git rev-parse --short HEAD) LAST_TAG := "$(shell git rev-list --tags --max-count=1)" APP_VERSION := "$(shell git describe --tags ${LAST_TAG})-next" -PROTON_COMMIT := "9cdffc3c1838ec72b35b2a1b9a170ca9c138db66" +PROTON_COMMIT := "dfad17733cae03f1beea2e9db28001ce3453d8c3" .PHONY: all build test clean dist vet proto install @@ -30,9 +30,9 @@ lint: ## lint checker golangci-lint run proto: ## Generate the protobuf files - @echo " > generating protobuf from odpf/proton" + @echo " > generating protobuf from raystack/proton" @echo " > [info] make sure correct version of dependencies are installed using 'make install'" - @buf generate https://github.com/odpf/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path odpf/siren + @buf generate https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path raystack/siren @echo " > protobuf compilation finished" clean: ## Clean the build artifacts diff --git a/README.md b/README.md index 1b3fd271..bfb727b2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Siren -![test workflow](https://github.com/odpf/siren/actions/workflows/test.yaml/badge.svg) +![test workflow](https://github.com/raystack/siren/actions/workflows/test.yaml/badge.svg) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE) -[![Version](https://img.shields.io/github/v/release/odpf/siren?logo=semantic-release)](Version) -[![Coverage Status](https://coveralls.io/repos/github/odpf/siren/badge.svg?branch=main)](https://coveralls.io/github/odpf/siren?branch=main) +[![Version](https://img.shields.io/github/v/release/raystack/siren?logo=semantic-release)](Version) +[![Coverage Status](https://coveralls.io/repos/github/raystack/siren/badge.svg?branch=main)](https://coveralls.io/github/raystack/siren?branch=main) Siren provides alerting on metrics of your applications using [Cortex metrics](https://cortexmetrics.io/) in a simple DIY configuration. With Siren, you can define templates(using go templates standard), and create/edit/enable/disable @@ -21,7 +21,7 @@ with any client such as CI/CD pipelines, Self-Serve UI, microservices etc. - **Managing bulk rules:** Siren enables users to manage bulk alerting rules using YAML files in specified format with simple CLI. - **Receivers:** Siren can be used to send out notifications to several channels (slack, pagerduty, email etc). - **Alert History:** Siren can store alerts triggered by monitoring & alerting provider e.g. Cortex Alertmanager, which can be used for audit purposes. -To know more, follow the detailed [documentation](docs) + To know more, follow the detailed [documentation](docs) ## Usage @@ -34,7 +34,7 @@ Explore the following resources to get started with Siren: ## Run with Kubernetes -- Create a siren deployment using the helm chart available [here](https://github.com/odpf/charts/tree/main/stable/siren) +- Create a siren deployment using the helm chart available [here](https://github.com/raystack/charts/tree/main/stable/siren) ## Running locally @@ -55,7 +55,7 @@ Update the configs(db credentials etc.) as per your dev machine and docker confi Run the following commands to compile from source ```sh -$ git clone git@github.com:odpf/siren.git +$ git clone git@github.com:raystack/siren.git $ cd siren $ go build main.go ``` @@ -69,6 +69,7 @@ $ make test # To run tests locally with coverage $ make test-coverage ``` + ## Generate Server Configuration ```sh @@ -97,10 +98,10 @@ Read our [contributing guide](docs/contribute/contribution.md) to learn about ou bugfixes and improvements, and how to build and test your changes to Siren. To help you get your feet wet and get you familiar with our contribution process, we have a list of -[good first issues](https://github.com/odpf/siren/labels/good%20first%20issue) that contain bugs which have a relatively +[good first issues](https://github.com/raystack/siren/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started. -This project exists thanks to all the [contributors](https://github.com/odpf/siren/graphs/contributors). +This project exists thanks to all the [contributors](https://github.com/raystack/siren/graphs/contributors). ## License diff --git a/buf.gen.yaml b/buf.gen.yaml index af92fa22..4e61a26e 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,20 +1,20 @@ version: v1 plugins: - - remote: "buf.build/library/plugins/go:v1.27.1-1" + - plugin: buf.build/protocolbuffers/go:v1.31.0 out: proto opt: paths=source_relative - - remote: "buf.build/library/plugins/go-grpc:v1.1.0-2" + - plugin: buf.build/grpc/go:v1.3.0 out: proto opt: paths=source_relative,require_unimplemented_servers=true - - remote: buf.build/odpf/plugins/validate + - remote: buf.build/raystack/plugins/validate out: "proto" opt: "paths=source_relative,lang=go" - - remote: "buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.11.3-1" + - plugin: buf.build/grpc-ecosystem/gateway:v2.16.0 out: proto opt: - paths=source_relative - allow_repeated_fields_in_body=true - - remote: "buf.build/grpc-ecosystem/plugins/openapiv2:v2.11.3-1" + - plugin: "buf.build/grpc-ecosystem/openapiv2:v2.16.0" out: proto opt: - allow_repeated_fields_in_body=true diff --git a/cli/alert.go b/cli/alert.go index bcef2b35..6062f0e9 100644 --- a/cli/alert.go +++ b/cli/alert.go @@ -6,10 +6,10 @@ import ( "strconv" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" ) diff --git a/cli/client.go b/cli/client.go index b50a8d83..f169d76d 100644 --- a/cli/client.go +++ b/cli/client.go @@ -4,10 +4,10 @@ import ( "context" "time" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/config" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/config" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" diff --git a/cli/config.go b/cli/config.go index d8fa17de..5a706995 100644 --- a/cli/config.go +++ b/cli/config.go @@ -4,8 +4,8 @@ import ( "fmt" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" "github.com/spf13/cobra" ) diff --git a/cli/deps.go b/cli/deps.go index ce00c3c3..15da32ac 100644 --- a/cli/deps.go +++ b/cli/deps.go @@ -5,29 +5,29 @@ import ( "fmt" "github.com/newrelic/go-agent/v3/newrelic" - "github.com/odpf/salt/db" - saltlog "github.com/odpf/salt/log" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" - "github.com/odpf/siren/pkg/secret" - "github.com/odpf/siren/pkg/telemetry" - "github.com/odpf/siren/plugins/providers/cortex" - "github.com/odpf/siren/plugins/receivers/file" - "github.com/odpf/siren/plugins/receivers/httpreceiver" - "github.com/odpf/siren/plugins/receivers/pagerduty" - "github.com/odpf/siren/plugins/receivers/slack" + "github.com/raystack/salt/db" + saltlog "github.com/raystack/salt/log" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" + "github.com/raystack/siren/pkg/secret" + "github.com/raystack/siren/pkg/telemetry" + "github.com/raystack/siren/plugins/providers/cortex" + "github.com/raystack/siren/plugins/receivers/file" + "github.com/raystack/siren/plugins/receivers/httpreceiver" + "github.com/raystack/siren/plugins/receivers/pagerduty" + "github.com/raystack/siren/plugins/receivers/slack" ) func InitDeps( diff --git a/cli/errors.go b/cli/errors.go index 127552e1..381207b7 100644 --- a/cli/errors.go +++ b/cli/errors.go @@ -2,7 +2,7 @@ package cli import ( "github.com/MakeNowJust/heredoc" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) var ( diff --git a/cli/help.go b/cli/help.go index 673aa853..80e68a82 100644 --- a/cli/help.go +++ b/cli/help.go @@ -6,8 +6,8 @@ var envHelp = map[string]string{ "short": "List of supported environment variables", "long": heredoc.Doc(` ` + "```" + ` - ODPF_CONFIG_DIR: the directory where siren will store configuration files. Default: - "$XDG_CONFIG_HOME/odpf" or "$HOME/.config/odpf". + RAYSTACK_CONFIG_DIR: the directory where siren will store configuration files. Default: + "$XDG_CONFIG_HOME/raystack" or "$HOME/.config/raystack". NO_COLOR: set to any value to avoid printing ANSI escape sequences for color output. CLICOLOR: set to "0" to disable printing ANSI colors in output. ` + "```" + ` diff --git a/cli/job.go b/cli/job.go index 48f1f1be..e664c9ba 100644 --- a/cli/job.go +++ b/cli/job.go @@ -5,15 +5,15 @@ import ( "time" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/log" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/jobs" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/plugins/queues" - "github.com/odpf/siren/plugins/queues/postgresq" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/log" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/jobs" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/plugins/queues" + "github.com/raystack/siren/plugins/queues/postgresq" "github.com/spf13/cobra" ) diff --git a/cli/namespace.go b/cli/namespace.go index 974ba9d4..482e6499 100644 --- a/cli/namespace.go +++ b/cli/namespace.go @@ -6,11 +6,11 @@ import ( "strconv" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/cli/provider.go b/cli/provider.go index 2637a21b..b8a132e1 100644 --- a/cli/provider.go +++ b/cli/provider.go @@ -6,11 +6,11 @@ import ( "strconv" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/cli/receiver.go b/cli/receiver.go index 5c60c17f..e5cce7fa 100644 --- a/cli/receiver.go +++ b/cli/receiver.go @@ -6,11 +6,11 @@ import ( "strconv" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/cli/root.go b/cli/root.go index 3915d5f0..7ae88305 100644 --- a/cli/root.go +++ b/cli/root.go @@ -2,7 +2,7 @@ package cli import ( "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" + "github.com/raystack/salt/cmdx" "github.com/spf13/cobra" ) @@ -21,10 +21,10 @@ func New() *cobra.Command { "group": "core", "help:learn": heredoc.Doc(` Use 'siren --help' for more information about a command. - Read the manual at https://odpf.github.io/siren/ + Read the manual at https://raystack.github.io/siren/ `), "help:feedback": heredoc.Doc(` - Open an issue here https://github.com/odpf/siren/issues + Open an issue here https://github.com/raystack/siren/issues `), "help:environment": heredoc.Doc(` See 'siren help environment' for the list of supported environment variables. diff --git a/cli/rule.go b/cli/rule.go index a7ea9c7f..1eb4d966 100644 --- a/cli/rule.go +++ b/cli/rule.go @@ -7,14 +7,14 @@ import ( "strconv" "strings" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" "gopkg.in/yaml.v3" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/core/rule" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/core/rule" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" ) diff --git a/cli/server.go b/cli/server.go index 3525af5d..723cf6b0 100644 --- a/cli/server.go +++ b/cli/server.go @@ -6,17 +6,17 @@ import ( "time" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/log" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/server" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/worker" - "github.com/odpf/siren/pkg/zaputil" - "github.com/odpf/siren/plugins/queues" - "github.com/odpf/siren/plugins/queues/inmemory" - "github.com/odpf/siren/plugins/queues/postgresq" + "github.com/raystack/salt/log" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/server" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/worker" + "github.com/raystack/siren/pkg/zaputil" + "github.com/raystack/siren/plugins/queues" + "github.com/raystack/siren/plugins/queues/inmemory" + "github.com/raystack/siren/plugins/queues/postgresq" "github.com/spf13/cobra" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/cli/subscription.go b/cli/subscription.go index 18beeb5e..f8852ad3 100644 --- a/cli/subscription.go +++ b/cli/subscription.go @@ -7,11 +7,11 @@ import ( "strconv" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/cli/template.go b/cli/template.go index 733d00da..30d4eb4b 100644 --- a/cli/template.go +++ b/cli/template.go @@ -6,14 +6,14 @@ import ( "os" "strings" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" "gopkg.in/yaml.v3" "github.com/MakeNowJust/heredoc" - "github.com/odpf/salt/cmdx" - "github.com/odpf/salt/printer" - "github.com/odpf/siren/core/template" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/cmdx" + "github.com/raystack/salt/printer" + "github.com/raystack/siren/core/template" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/spf13/cobra" ) diff --git a/cli/utils.go b/cli/utils.go index 5ff02a36..e5229690 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" "gopkg.in/yaml.v3" ) diff --git a/cli/worker.go b/cli/worker.go index 24b7803b..4af3943b 100644 --- a/cli/worker.go +++ b/cli/worker.go @@ -6,11 +6,11 @@ import ( "time" "github.com/MakeNowJust/heredoc" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/worker" - "github.com/odpf/siren/plugins/queues" - "github.com/odpf/siren/plugins/queues/postgresq" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/worker" + "github.com/raystack/siren/plugins/queues" + "github.com/raystack/siren/plugins/queues/postgresq" "github.com/spf13/cobra" ) diff --git a/config/config.go b/config/config.go index 2a67d632..188d293f 100644 --- a/config/config.go +++ b/config/config.go @@ -4,14 +4,14 @@ import ( _ "embed" "fmt" - "github.com/odpf/salt/config" - "github.com/odpf/salt/db" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/server" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" - "github.com/odpf/siren/plugins/providers" - "github.com/odpf/siren/plugins/receivers" + "github.com/raystack/salt/config" + "github.com/raystack/salt/db" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/server" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" + "github.com/raystack/siren/plugins/providers" + "github.com/raystack/siren/plugins/receivers" ) // Load returns application configuration diff --git a/config/init.go b/config/init.go index 949acdd7..acbcf846 100644 --- a/config/init.go +++ b/config/init.go @@ -4,7 +4,7 @@ import ( "os" "github.com/mcuadros/go-defaults" - "github.com/odpf/siren/core/receiver" + "github.com/raystack/siren/core/receiver" "gopkg.in/yaml.v3" ) diff --git a/core/alert/mocks/alert_repository.go b/core/alert/mocks/alert_repository.go index 313bd0c6..4c929916 100644 --- a/core/alert/mocks/alert_repository.go +++ b/core/alert/mocks/alert_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - alert "github.com/odpf/siren/core/alert" + alert "github.com/raystack/siren/core/alert" mock "github.com/stretchr/testify/mock" ) diff --git a/core/alert/mocks/alert_transformer.go b/core/alert/mocks/alert_transformer.go index bc4163db..c9512763 100644 --- a/core/alert/mocks/alert_transformer.go +++ b/core/alert/mocks/alert_transformer.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - alert "github.com/odpf/siren/core/alert" + alert "github.com/raystack/siren/core/alert" mock "github.com/stretchr/testify/mock" ) diff --git a/core/alert/service.go b/core/alert/service.go index ae259a0d..f5b95baa 100644 --- a/core/alert/service.go +++ b/core/alert/service.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) //go:generate mockery --name=LogService -r --case underscore --with-expecter --structname LogService --filename log_service.go --output=./mocks diff --git a/core/alert/service_test.go b/core/alert/service_test.go index 88785020..36e207e8 100644 --- a/core/alert/service_test.go +++ b/core/alert/service_test.go @@ -6,9 +6,9 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/alert/mocks" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/alert/mocks" + "github.com/raystack/siren/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/core/log/mocks/notification_log_repository.go b/core/log/mocks/notification_log_repository.go index d24a59fc..948e26c3 100644 --- a/core/log/mocks/notification_log_repository.go +++ b/core/log/mocks/notification_log_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - log "github.com/odpf/siren/core/log" + log "github.com/raystack/siren/core/log" mock "github.com/stretchr/testify/mock" ) diff --git a/core/namespace/crypto.go b/core/namespace/crypto.go index 51743a96..f88a85c5 100644 --- a/core/namespace/crypto.go +++ b/core/namespace/crypto.go @@ -1,6 +1,6 @@ package namespace -import "github.com/odpf/siren/pkg/secret" +import "github.com/raystack/siren/pkg/secret" //go:generate mockery --name=Encryptor -r --case underscore --with-expecter --structname Encryptor --filename encryptor.go --output=./mocks type Encryptor interface { diff --git a/core/namespace/mocks/config_syncer.go b/core/namespace/mocks/config_syncer.go index 7a6ad650..512deea1 100644 --- a/core/namespace/mocks/config_syncer.go +++ b/core/namespace/mocks/config_syncer.go @@ -7,7 +7,7 @@ import ( mock "github.com/stretchr/testify/mock" - provider "github.com/odpf/siren/core/provider" + provider "github.com/raystack/siren/core/provider" ) // ConfigSyncer is an autogenerated mock type for the ConfigSyncer type diff --git a/core/namespace/mocks/encryptor.go b/core/namespace/mocks/encryptor.go index 75c95c91..9a48d7ae 100644 --- a/core/namespace/mocks/encryptor.go +++ b/core/namespace/mocks/encryptor.go @@ -5,7 +5,7 @@ package mocks import ( mock "github.com/stretchr/testify/mock" - secret "github.com/odpf/siren/pkg/secret" + secret "github.com/raystack/siren/pkg/secret" ) // Encryptor is an autogenerated mock type for the Encryptor type diff --git a/core/namespace/mocks/namespace_repository.go b/core/namespace/mocks/namespace_repository.go index 9216ff6c..c430900b 100644 --- a/core/namespace/mocks/namespace_repository.go +++ b/core/namespace/mocks/namespace_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - namespace "github.com/odpf/siren/core/namespace" + namespace "github.com/raystack/siren/core/namespace" mock "github.com/stretchr/testify/mock" ) diff --git a/core/namespace/mocks/provider_service.go b/core/namespace/mocks/provider_service.go index 297e4bb7..a52b39df 100644 --- a/core/namespace/mocks/provider_service.go +++ b/core/namespace/mocks/provider_service.go @@ -7,7 +7,7 @@ import ( mock "github.com/stretchr/testify/mock" - provider "github.com/odpf/siren/core/provider" + provider "github.com/raystack/siren/core/provider" ) // ProviderService is an autogenerated mock type for the ProviderService type diff --git a/core/namespace/namespace.go b/core/namespace/namespace.go index b77bae6a..ad359daf 100644 --- a/core/namespace/namespace.go +++ b/core/namespace/namespace.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/odpf/siren/core/provider" + "github.com/raystack/siren/core/provider" ) //go:generate mockery --name=Repository -r --case underscore --with-expecter --structname NamespaceRepository --filename namespace_repository.go --output=./mocks diff --git a/core/namespace/provider_plugin.go b/core/namespace/provider_plugin.go index ceeecf7a..06cb53cf 100644 --- a/core/namespace/provider_plugin.go +++ b/core/namespace/provider_plugin.go @@ -3,7 +3,7 @@ package namespace import ( "context" - "github.com/odpf/siren/core/provider" + "github.com/raystack/siren/core/provider" ) //go:generate mockery --name=ConfigSyncer -r --case underscore --with-expecter --structname ConfigSyncer --filename config_syncer.go --output=./mocks diff --git a/core/namespace/service.go b/core/namespace/service.go index 9219061f..498b80e6 100644 --- a/core/namespace/service.go +++ b/core/namespace/service.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/secret" ) //go:generate mockery --name=ProviderService -r --case underscore --with-expecter --structname ProviderService --filename provider_service.go --output=./mocks diff --git a/core/namespace/service_test.go b/core/namespace/service_test.go index 52852402..2f21227f 100644 --- a/core/namespace/service_test.go +++ b/core/namespace/service_test.go @@ -6,11 +6,11 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/namespace/mocks" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/namespace/mocks" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/secret" "github.com/stretchr/testify/assert" mock "github.com/stretchr/testify/mock" ) diff --git a/core/notification/builder.go b/core/notification/builder.go index 94a37c42..2d5b790b 100644 --- a/core/notification/builder.go +++ b/core/notification/builder.go @@ -5,9 +5,9 @@ import ( "time" "github.com/mitchellh/mapstructure" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/pkg/errors" ) // Transform alerts and populate Data and Labels to be interpolated to the system-default template diff --git a/core/notification/builder_test.go b/core/notification/builder_test.go index 2cdb521f..b9da51c6 100644 --- a/core/notification/builder_test.go +++ b/core/notification/builder_test.go @@ -6,9 +6,9 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/template" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/template" ) func TestBuildTypeReceiver(t *testing.T) { diff --git a/core/notification/config.go b/core/notification/config.go index fe490683..7e938772 100644 --- a/core/notification/config.go +++ b/core/notification/config.go @@ -3,7 +3,7 @@ package notification import ( "time" - "github.com/odpf/siren/plugins/queues" + "github.com/raystack/siren/plugins/queues" ) type Config struct { diff --git a/core/notification/dispatch_receiver_service.go b/core/notification/dispatch_receiver_service.go index f53bdc70..f54d9dee 100644 --- a/core/notification/dispatch_receiver_service.go +++ b/core/notification/dispatch_receiver_service.go @@ -4,9 +4,9 @@ import ( "context" "strconv" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/pkg/errors" ) type DispatchReceiverService struct { diff --git a/core/notification/dispatch_receiver_service_test.go b/core/notification/dispatch_receiver_service_test.go index 95cf231f..910aed3f 100644 --- a/core/notification/dispatch_receiver_service_test.go +++ b/core/notification/dispatch_receiver_service_test.go @@ -6,11 +6,11 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/notification/mocks" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/notification/mocks" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/pkg/errors" "github.com/stretchr/testify/mock" ) diff --git a/core/notification/dispatch_subscriber_service.go b/core/notification/dispatch_subscriber_service.go index 151a697c..87698c4c 100644 --- a/core/notification/dispatch_subscriber_service.go +++ b/core/notification/dispatch_subscriber_service.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - saltlog "github.com/odpf/salt/log" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" + saltlog "github.com/raystack/salt/log" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" ) type DispatchSubscriberService struct { diff --git a/core/notification/dispatch_subscriber_service_test.go b/core/notification/dispatch_subscriber_service_test.go index c7648ac9..98062e86 100644 --- a/core/notification/dispatch_subscriber_service_test.go +++ b/core/notification/dispatch_subscriber_service_test.go @@ -7,12 +7,12 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - saltlog "github.com/odpf/salt/log" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/notification/mocks" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/core/subscription" + saltlog "github.com/raystack/salt/log" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/notification/mocks" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/core/subscription" "github.com/stretchr/testify/mock" ) diff --git a/core/notification/handler.go b/core/notification/handler.go index 7e996b86..d938e444 100644 --- a/core/notification/handler.go +++ b/core/notification/handler.go @@ -5,12 +5,12 @@ import ( "fmt" "time" - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" "go.opencensus.io/tag" "go.opencensus.io/trace" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" ) const ( diff --git a/core/notification/handler_test.go b/core/notification/handler_test.go index 3a63fd07..f214606c 100644 --- a/core/notification/handler_test.go +++ b/core/notification/handler_test.go @@ -5,11 +5,11 @@ import ( "errors" "testing" - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" "github.com/stretchr/testify/mock" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/notification/mocks" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/notification/mocks" ) const testReceiverType = "test" diff --git a/core/notification/message.go b/core/notification/message.go index 90fb9a8e..95071eb4 100644 --- a/core/notification/message.go +++ b/core/notification/message.go @@ -5,9 +5,9 @@ import ( "time" "github.com/google/uuid" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" "go.opencensus.io/tag" "gopkg.in/yaml.v3" ) diff --git a/core/notification/message_test.go b/core/notification/message_test.go index 4ad3b035..b16c9ecf 100644 --- a/core/notification/message_test.go +++ b/core/notification/message_test.go @@ -8,8 +8,8 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/notification/mocks" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/notification/mocks" "github.com/stretchr/testify/mock" ) diff --git a/core/notification/mocks/dispatcher.go b/core/notification/mocks/dispatcher.go index d869a9f4..cbf1091f 100644 --- a/core/notification/mocks/dispatcher.go +++ b/core/notification/mocks/dispatcher.go @@ -5,10 +5,10 @@ package mocks import ( context "context" - log "github.com/odpf/siren/core/log" + log "github.com/raystack/siren/core/log" mock "github.com/stretchr/testify/mock" - notification "github.com/odpf/siren/core/notification" + notification "github.com/raystack/siren/core/notification" ) // Dispatcher is an autogenerated mock type for the Dispatcher type diff --git a/core/notification/mocks/idempotency_repository.go b/core/notification/mocks/idempotency_repository.go index 0ed1f893..f2bacb9a 100644 --- a/core/notification/mocks/idempotency_repository.go +++ b/core/notification/mocks/idempotency_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - notification "github.com/odpf/siren/core/notification" + notification "github.com/raystack/siren/core/notification" mock "github.com/stretchr/testify/mock" ) diff --git a/core/notification/mocks/log_service.go b/core/notification/mocks/log_service.go index 683460e8..6235827a 100644 --- a/core/notification/mocks/log_service.go +++ b/core/notification/mocks/log_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - log "github.com/odpf/siren/core/log" + log "github.com/raystack/siren/core/log" mock "github.com/stretchr/testify/mock" ) diff --git a/core/notification/mocks/notifier.go b/core/notification/mocks/notifier.go index f8799d2c..b2249676 100644 --- a/core/notification/mocks/notifier.go +++ b/core/notification/mocks/notifier.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - notification "github.com/odpf/siren/core/notification" + notification "github.com/raystack/siren/core/notification" mock "github.com/stretchr/testify/mock" ) diff --git a/core/notification/mocks/queuer.go b/core/notification/mocks/queuer.go index 3f28e26e..a646551d 100644 --- a/core/notification/mocks/queuer.go +++ b/core/notification/mocks/queuer.go @@ -5,10 +5,10 @@ package mocks import ( context "context" - notification "github.com/odpf/siren/core/notification" + notification "github.com/raystack/siren/core/notification" mock "github.com/stretchr/testify/mock" - queues "github.com/odpf/siren/plugins/queues" + queues "github.com/raystack/siren/plugins/queues" ) // Queuer is an autogenerated mock type for the Queuer type diff --git a/core/notification/mocks/receiver_service.go b/core/notification/mocks/receiver_service.go index 923c8514..ffde9c2f 100644 --- a/core/notification/mocks/receiver_service.go +++ b/core/notification/mocks/receiver_service.go @@ -7,7 +7,7 @@ import ( mock "github.com/stretchr/testify/mock" - receiver "github.com/odpf/siren/core/receiver" + receiver "github.com/raystack/siren/core/receiver" ) // ReceiverService is an autogenerated mock type for the ReceiverService type diff --git a/core/notification/mocks/repository.go b/core/notification/mocks/repository.go index b0097f02..88102f5a 100644 --- a/core/notification/mocks/repository.go +++ b/core/notification/mocks/repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - notification "github.com/odpf/siren/core/notification" + notification "github.com/raystack/siren/core/notification" mock "github.com/stretchr/testify/mock" ) diff --git a/core/notification/mocks/silence_service.go b/core/notification/mocks/silence_service.go index 29d0338a..7c6ed8cb 100644 --- a/core/notification/mocks/silence_service.go +++ b/core/notification/mocks/silence_service.go @@ -7,7 +7,7 @@ import ( mock "github.com/stretchr/testify/mock" - silence "github.com/odpf/siren/core/silence" + silence "github.com/raystack/siren/core/silence" ) // SilenceService is an autogenerated mock type for the SilenceService type diff --git a/core/notification/mocks/subscription_service.go b/core/notification/mocks/subscription_service.go index 3ece2d67..73991ad7 100644 --- a/core/notification/mocks/subscription_service.go +++ b/core/notification/mocks/subscription_service.go @@ -7,7 +7,7 @@ import ( mock "github.com/stretchr/testify/mock" - subscription "github.com/odpf/siren/core/subscription" + subscription "github.com/raystack/siren/core/subscription" ) // SubscriptionService is an autogenerated mock type for the SubscriptionService type diff --git a/core/notification/notification.go b/core/notification/notification.go index 08e77579..6ab53992 100644 --- a/core/notification/notification.go +++ b/core/notification/notification.go @@ -5,7 +5,7 @@ import ( "strconv" "time" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) const ( diff --git a/core/notification/notification_test.go b/core/notification/notification_test.go index 1c34f8aa..8a17766a 100644 --- a/core/notification/notification_test.go +++ b/core/notification/notification_test.go @@ -3,7 +3,7 @@ package notification_test import ( "testing" - "github.com/odpf/siren/core/notification" + "github.com/raystack/siren/core/notification" ) func TestNotification_Validate(t *testing.T) { diff --git a/core/notification/receiver_plugin.go b/core/notification/receiver_plugin.go index 4fbda67a..c9e0a2ad 100644 --- a/core/notification/receiver_plugin.go +++ b/core/notification/receiver_plugin.go @@ -3,7 +3,7 @@ package notification import ( "context" - "github.com/odpf/siren/plugins/queues" + "github.com/raystack/siren/plugins/queues" ) //go:generate mockery --name=Notifier -r --case underscore --with-expecter --structname Notifier --filename notifier.go --output=./mocks diff --git a/core/notification/service.go b/core/notification/service.go index 5ee5d8e0..242c411f 100644 --- a/core/notification/service.go +++ b/core/notification/service.go @@ -5,15 +5,15 @@ import ( "fmt" "time" - saltlog "github.com/odpf/salt/log" + saltlog "github.com/raystack/salt/log" "go.opencensus.io/trace" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" ) //go:generate mockery --name=Dispatcher -r --case underscore --with-expecter --structname Dispatcher --filename dispatcher.go --output=./mocks diff --git a/core/notification/service_test.go b/core/notification/service_test.go index 51b546ee..c0a2b1d6 100644 --- a/core/notification/service_test.go +++ b/core/notification/service_test.go @@ -4,12 +4,12 @@ import ( "context" "testing" - saltlog "github.com/odpf/salt/log" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/notification/mocks" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/plugins/queues" + saltlog "github.com/raystack/salt/log" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/notification/mocks" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/plugins/queues" "github.com/stretchr/testify/mock" ) diff --git a/core/notification/utils.go b/core/notification/utils.go index e7328db1..791a98b7 100644 --- a/core/notification/utils.go +++ b/core/notification/utils.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/mitchellh/hashstructure/v2" - "github.com/odpf/siren/core/alert" + "github.com/raystack/siren/core/alert" ) func removeDuplicateStringValues(strSlice []string) []string { diff --git a/core/notification/utils_test.go b/core/notification/utils_test.go index 3df46d4e..f2e0ae43 100644 --- a/core/notification/utils_test.go +++ b/core/notification/utils_test.go @@ -5,7 +5,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/mitchellh/hashstructure/v2" - "github.com/odpf/siren/core/alert" + "github.com/raystack/siren/core/alert" "github.com/stretchr/testify/require" ) diff --git a/core/provider/errors_test.go b/core/provider/errors_test.go index b3766872..bdffb011 100644 --- a/core/provider/errors_test.go +++ b/core/provider/errors_test.go @@ -3,7 +3,7 @@ package provider_test import ( "testing" - "github.com/odpf/siren/core/provider" + "github.com/raystack/siren/core/provider" ) func TestError(t *testing.T) { diff --git a/core/provider/mocks/provider_repository.go b/core/provider/mocks/provider_repository.go index 594fbf72..7c01ecd4 100644 --- a/core/provider/mocks/provider_repository.go +++ b/core/provider/mocks/provider_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - provider "github.com/odpf/siren/core/provider" + provider "github.com/raystack/siren/core/provider" mock "github.com/stretchr/testify/mock" ) diff --git a/core/provider/service.go b/core/provider/service.go index c74f9cb9..c252e0bc 100644 --- a/core/provider/service.go +++ b/core/provider/service.go @@ -3,7 +3,7 @@ package provider import ( "context" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) // Service handles business logic diff --git a/core/provider/service_test.go b/core/provider/service_test.go index d7f2873e..1d2d44cf 100644 --- a/core/provider/service_test.go +++ b/core/provider/service_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/provider/mocks" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/provider/mocks" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/core/receiver/errors.go b/core/receiver/errors.go index 40516f94..8fd8a68f 100644 --- a/core/receiver/errors.go +++ b/core/receiver/errors.go @@ -3,7 +3,7 @@ package receiver import ( "fmt" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) var ( diff --git a/core/receiver/errors_test.go b/core/receiver/errors_test.go index dc0f5733..81dbd1f8 100644 --- a/core/receiver/errors_test.go +++ b/core/receiver/errors_test.go @@ -3,7 +3,7 @@ package receiver_test import ( "testing" - "github.com/odpf/siren/core/receiver" + "github.com/raystack/siren/core/receiver" ) func TestError(t *testing.T) { diff --git a/core/receiver/mocks/receiver_repository.go b/core/receiver/mocks/receiver_repository.go index eb1948c2..d853eba7 100644 --- a/core/receiver/mocks/receiver_repository.go +++ b/core/receiver/mocks/receiver_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - receiver "github.com/odpf/siren/core/receiver" + receiver "github.com/raystack/siren/core/receiver" mock "github.com/stretchr/testify/mock" ) diff --git a/core/receiver/service.go b/core/receiver/service.go index f604f268..d5e73536 100644 --- a/core/receiver/service.go +++ b/core/receiver/service.go @@ -3,8 +3,8 @@ package receiver import ( "context" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" "go.opencensus.io/tag" ) diff --git a/core/receiver/service_test.go b/core/receiver/service_test.go index 28ddc1a3..7803b16d 100644 --- a/core/receiver/service_test.go +++ b/core/receiver/service_test.go @@ -6,9 +6,9 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/receiver/mocks" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/receiver/mocks" + "github.com/raystack/siren/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/core/rule/mocks/namespace_service.go b/core/rule/mocks/namespace_service.go index c86da659..b58c8dac 100644 --- a/core/rule/mocks/namespace_service.go +++ b/core/rule/mocks/namespace_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - namespace "github.com/odpf/siren/core/namespace" + namespace "github.com/raystack/siren/core/namespace" mock "github.com/stretchr/testify/mock" ) diff --git a/core/rule/mocks/rule_repository.go b/core/rule/mocks/rule_repository.go index e335bf59..903ec758 100644 --- a/core/rule/mocks/rule_repository.go +++ b/core/rule/mocks/rule_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - rule "github.com/odpf/siren/core/rule" + rule "github.com/raystack/siren/core/rule" mock "github.com/stretchr/testify/mock" ) diff --git a/core/rule/mocks/rule_uploader.go b/core/rule/mocks/rule_uploader.go index bcfd32e9..20bf7607 100644 --- a/core/rule/mocks/rule_uploader.go +++ b/core/rule/mocks/rule_uploader.go @@ -5,12 +5,12 @@ package mocks import ( context "context" - provider "github.com/odpf/siren/core/provider" + provider "github.com/raystack/siren/core/provider" mock "github.com/stretchr/testify/mock" - rule "github.com/odpf/siren/core/rule" + rule "github.com/raystack/siren/core/rule" - template "github.com/odpf/siren/core/template" + template "github.com/raystack/siren/core/template" ) // RuleUploader is an autogenerated mock type for the RuleUploader type diff --git a/core/rule/mocks/template_service.go b/core/rule/mocks/template_service.go index cc038cae..de243795 100644 --- a/core/rule/mocks/template_service.go +++ b/core/rule/mocks/template_service.go @@ -7,7 +7,7 @@ import ( mock "github.com/stretchr/testify/mock" - template "github.com/odpf/siren/core/template" + template "github.com/raystack/siren/core/template" ) // TemplateService is an autogenerated mock type for the TemplateService type diff --git a/core/rule/provider_plugin.go b/core/rule/provider_plugin.go index 79b061fd..455e613b 100644 --- a/core/rule/provider_plugin.go +++ b/core/rule/provider_plugin.go @@ -3,8 +3,8 @@ package rule import ( "context" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/template" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/template" ) // RuleUploader is an interface for the provider to upload rule(s). diff --git a/core/rule/service.go b/core/rule/service.go index e54bb787..9a24d01e 100644 --- a/core/rule/service.go +++ b/core/rule/service.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/pkg/errors" ) const ( diff --git a/core/rule/service_test.go b/core/rule/service_test.go index ddf5f48a..8520e5ce 100644 --- a/core/rule/service_test.go +++ b/core/rule/service_test.go @@ -4,12 +4,12 @@ import ( context "context" "testing" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/rule/mocks" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/rule/mocks" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/pkg/errors" "github.com/stretchr/testify/assert" mock "github.com/stretchr/testify/mock" ) @@ -312,7 +312,7 @@ func TestService_List(t *testing.T) { repositoryMock.EXPECT().List(ctx, rule.Filter{ Name: "foo", - Namespace: "odpf", + Namespace: "raystack", GroupName: "test-group", TemplateName: "test-tmpl", NamespaceID: 1, @@ -320,7 +320,7 @@ func TestService_List(t *testing.T) { result, err := dummyService.List(ctx, rule.Filter{ Name: "foo", - Namespace: "odpf", + Namespace: "raystack", GroupName: "test-group", TemplateName: "test-tmpl", NamespaceID: 1, diff --git a/core/silence/mocks/subscription_repository.go b/core/silence/mocks/subscription_repository.go index 15534f55..2489e6d3 100644 --- a/core/silence/mocks/subscription_repository.go +++ b/core/silence/mocks/subscription_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - silence "github.com/odpf/siren/core/silence" + silence "github.com/raystack/siren/core/silence" mock "github.com/stretchr/testify/mock" ) diff --git a/core/silence/silence_test.go b/core/silence/silence_test.go index 5eb5963c..dd4e8c99 100644 --- a/core/silence/silence_test.go +++ b/core/silence/silence_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/mitchellh/mapstructure" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/core/subscription" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/core/subscription" "github.com/stretchr/testify/require" ) diff --git a/core/subscription/errors_test.go b/core/subscription/errors_test.go index 1782141a..69e5794a 100644 --- a/core/subscription/errors_test.go +++ b/core/subscription/errors_test.go @@ -3,7 +3,7 @@ package subscription_test import ( "testing" - "github.com/odpf/siren/core/subscription" + "github.com/raystack/siren/core/subscription" ) func TestError(t *testing.T) { diff --git a/core/subscription/mocks/namespace_service.go b/core/subscription/mocks/namespace_service.go index c86da659..b58c8dac 100644 --- a/core/subscription/mocks/namespace_service.go +++ b/core/subscription/mocks/namespace_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - namespace "github.com/odpf/siren/core/namespace" + namespace "github.com/raystack/siren/core/namespace" mock "github.com/stretchr/testify/mock" ) diff --git a/core/subscription/mocks/receiver_service.go b/core/subscription/mocks/receiver_service.go index 7e13371b..312e5e67 100644 --- a/core/subscription/mocks/receiver_service.go +++ b/core/subscription/mocks/receiver_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - receiver "github.com/odpf/siren/core/receiver" + receiver "github.com/raystack/siren/core/receiver" mock "github.com/stretchr/testify/mock" ) diff --git a/core/subscription/mocks/subscription_repository.go b/core/subscription/mocks/subscription_repository.go index f4cc9dd5..57971cac 100644 --- a/core/subscription/mocks/subscription_repository.go +++ b/core/subscription/mocks/subscription_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - subscription "github.com/odpf/siren/core/subscription" + subscription "github.com/raystack/siren/core/subscription" mock "github.com/stretchr/testify/mock" ) diff --git a/core/subscription/service.go b/core/subscription/service.go index d6aa0986..321f00ee 100644 --- a/core/subscription/service.go +++ b/core/subscription/service.go @@ -3,9 +3,9 @@ package subscription import ( "context" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/pkg/errors" ) //go:generate mockery --name=LogService -r --case underscore --with-expecter --structname LogService --filename log_service.go --output=./mocks diff --git a/core/subscription/service_test.go b/core/subscription/service_test.go index 32c3d228..447be068 100644 --- a/core/subscription/service_test.go +++ b/core/subscription/service_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/core/subscription/mocks" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/core/subscription/mocks" "github.com/stretchr/testify/mock" ) diff --git a/core/subscription/subscription.go b/core/subscription/subscription.go index 982d688f..cba51eb3 100644 --- a/core/subscription/subscription.go +++ b/core/subscription/subscription.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/odpf/siren/core/silence" + "github.com/raystack/siren/core/silence" ) //go:generate mockery --name=Repository -r --case underscore --with-expecter --structname SubscriptionRepository --filename subscription_repository.go --output=./mocks diff --git a/core/template/errors_test.go b/core/template/errors_test.go index d2332480..011fd214 100644 --- a/core/template/errors_test.go +++ b/core/template/errors_test.go @@ -3,7 +3,7 @@ package template_test import ( "testing" - "github.com/odpf/siren/core/template" + "github.com/raystack/siren/core/template" ) func TestError(t *testing.T) { diff --git a/core/template/mocks/template_repository.go b/core/template/mocks/template_repository.go index 73a43756..8dde0fdc 100644 --- a/core/template/mocks/template_repository.go +++ b/core/template/mocks/template_repository.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - template "github.com/odpf/siren/core/template" + template "github.com/raystack/siren/core/template" mock "github.com/stretchr/testify/mock" ) diff --git a/core/template/service.go b/core/template/service.go index c48ce8c2..e5a636d8 100644 --- a/core/template/service.go +++ b/core/template/service.go @@ -6,7 +6,7 @@ import ( texttemplate "text/template" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) const ( diff --git a/core/template/service_test.go b/core/template/service_test.go index 16870bee..1d8e93f4 100644 --- a/core/template/service_test.go +++ b/core/template/service_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/core/template/mocks" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/core/template/mocks" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/docker/otel-collector-config.yaml b/docker/otel-collector-config.yaml index 5e8ac5e1..81049020 100644 --- a/docker/otel-collector-config.yaml +++ b/docker/otel-collector-config.yaml @@ -14,10 +14,10 @@ exporters: tls: insecure: true headers: - X-Scope-OrgID: odpf + X-Scope-OrgID: raystack external_labels: service: siren - team: odpf-infra + team: raystack-infra environment: development host: local logging: @@ -41,4 +41,4 @@ service: metrics: receivers: [opencensus] processors: [batch] - exporters: [prometheusremotewrite,otlp, logging] \ No newline at end of file + exporters: [prometheusremotewrite, otlp, logging] diff --git a/docs/docs/contribute/contribution.md b/docs/docs/contribute/contribution.md index 67ccc58e..b9a75542 100644 --- a/docs/docs/contribute/contribution.md +++ b/docs/docs/contribute/contribution.md @@ -4,8 +4,8 @@ The following is a set of guidelines for contributing to Siren. These are mostly judgment, and feel free to propose changes to this document in a pull request. Here are some important resources: - [Concepts](../concepts/overview) section will explain you about Siren architecture, -- Our [roadmap](https://github.com/odpf/siren#readme) is the 10k foot view of where we're going, and -- Github [issues](https://github.com/odpf/siren/issues) track the ongoing and reported issues. +- Our [roadmap](https://github.com/raystack/siren#readme) is the 10k foot view of where we're going, and +- Github [issues](https://github.com/raystack/siren/issues) track the ongoing and reported issues. ## How can I contribute? @@ -44,5 +44,5 @@ Please follow these practices for you change to get merged fast and smoothly: - Make sure your local build is running with all the tests and checkstyle passing. - If your change is related to user-facing protocols / configurations, you need to make the corresponding change in the documentation as well. -- Docs live in the code repo under [`docs`](https://github.com/odpf/siren/tree/main/docs) so that changes to that can be +- Docs live in the code repo under [`docs`](https://github.com/raystack/siren/tree/main/docs) so that changes to that can be done in the same PR as changes to the code. diff --git a/docs/docs/extend/adding_new_provider.md b/docs/docs/extend/adding_new_provider.md index 618954c4..a06d91c8 100644 --- a/docs/docs/extend/adding_new_provider.md +++ b/docs/docs/extend/adding_new_provider.md @@ -1,31 +1,31 @@ # Add a New Provider Plugin -Provider plugin is being used to update rule configurations to the provider, setup some runtime provider configuration config if any, and transform incoming alert data in Siren's Hook API to a list of `*alert.Alert` model. More details about the concept of provider plugin can be found [here](../concepts/plugin.md#provider-plugin). +Provider plugin is being used to update rule configurations to the provider, setup some runtime provider configuration config if any, and transform incoming alert data in Siren's Hook API to a list of `*alert.Alert` model. More details about the concept of provider plugin can be found [here](../concepts/plugin.md#provider-plugin). ## Steps to Add a New Plugin 1. **Add a new package** - A new plugin could be added as a new package under `plugins/providers/{new_plugin}`. Package name should comply with odpf golang standard naming. See the [handbook](https://odpf.github.io/handbook/programming/go#packages). Ideally you might want to name the package with lower-case and without any `-` or `_` signs. + A new plugin could be added as a new package under `plugins/providers/{new_plugin}`. Package name should comply with raystack golang standard naming. See the [handbook](https://raystack.github.io/handbook/programming/go#packages). Ideally you might want to name the package with lower-case and without any `-` or `_` signs. 2. **Defining Configurations** (Optional) - If there is a need to have a generic config for the provider that is being loaded during start-up, you could add a new `AppConfig` and assign the config to `plugins/providers/config.go` to expose it to the server-level config. Siren will recognize and read the config when starting up. + If there is a need to have a generic config for the provider that is being loaded during start-up, you could add a new `AppConfig` and assign the config to `plugins/providers/config.go` to expose it to the server-level config. Siren will recognize and read the config when starting up. 3. **Implement Interfaces** - - **Implement `TransformToAlerts`** + - **Implement `TransformToAlerts`** - You need to find a way for the provider to send alert to Siren's hook API `{api_version}/alerts/{provider_type}/{provider_id}`. You need to implement a `TransformToAlerts` method to parse and transform the body of incoming request received by Siren's hook API to a list of Siren's `*alert.Alert` model. + You need to find a way for the provider to send alert to Siren's hook API `{api_version}/alerts/{provider_type}/{provider_id}`. You need to implement a `TransformToAlerts` method to parse and transform the body of incoming request received by Siren's hook API to a list of Siren's `*alert.Alert` model. - - **Implement `UpsertRules`** - - You need to implement `UpsertRules` method to push all rules changes to the provider everytime a rule is upserted. + - **Implement `UpsertRules`** - - **Implement `SyncRuntimeConfig`** (Optional) + You need to implement `UpsertRules` method to push all rules changes to the provider everytime a rule is upserted. - If a provider supports setting the configuration dynamically and if for each provider's namespace there is a possibility to have different config (e.g. for multitenancy purpose like CortexMetrics), you could implement `SyncRuntimeConfig` function to push all configurations changes to the provider everytime a new namespace is created or an existing namespace is updated. + - **Implement `SyncRuntimeConfig`** (Optional) + + If a provider supports setting the configuration dynamically and if for each provider's namespace there is a possibility to have different config (e.g. for multitenancy purpose like CortexMetrics), you could implement `SyncRuntimeConfig` function to push all configurations changes to the provider everytime a new namespace is created or an existing namespace is updated. 4. **Integrate the new plugin with Siren main flow** - - Define and add your new type of plugin inside `core/providers/type.go`. - - Initialize your plugin provider service and add to the `AlertTransformer`, `ConfigSyncer`, and `RuleUploader` registries map in `cli/deps`. + - Define and add your new type of plugin inside `core/providers/type.go`. + - Initialize your plugin provider service and add to the `AlertTransformer`, `ConfigSyncer`, and `RuleUploader` registries map in `cli/deps`. diff --git a/docs/docs/extend/adding_new_receiver.md b/docs/docs/extend/adding_new_receiver.md index 0b475757..5751a333 100644 --- a/docs/docs/extend/adding_new_receiver.md +++ b/docs/docs/extend/adding_new_receiver.md @@ -3,52 +3,56 @@ Receiver plugin is being used to send notifications to the receiver. More details about the concept of receiver plugin can be found [here](../concepts/plugin.md#receiver-plugin). ## Steps to Add a New Plugin + 1. **Add a new package** - A new plugin could be added as a new package under `plugins/providers/{new_plugin}`. Package name should comply with odpf golang standard naming. See the [handbook](https://odpf.github.io/handbook/programming/go#packages). Ideally you might want to name the package with lower-case and without any `-` or `_` signs. + A new plugin could be added as a new package under `plugins/providers/{new_plugin}`. Package name should comply with raystack golang standard naming. See the [handbook](https://raystack.github.io/handbook/programming/go#packages). Ideally you might want to name the package with lower-case and without any `-` or `_` signs. 2. **Defining Configurations** - - **Define `AppConfig`** (Optional) + - **Define `AppConfig`** (Optional) + + If there is a need to have a generic config for the receiver that is being loaded during start-up, you could add a new `AppConfig` and assign the config to `plugins/receivers/config.go` to expose it to the app-level config. Siren will recognize and read the config when starting up. + + - **Define `ReceiverConfig`** + + For each receiver, there must be a specific config that is important to be used to send notifications. You need to add the information needed in `ReceiverConfig`. + + - **Define `SubscriptionConfig`** (Optional) + + It is also possible for a receiver to have different config in the receiver and subscription. For example, slack has a dedicated config called `channel_name` in subscription to send notification only to a specific channel. In this case you need to define separate configurations: `ReceiverConfig` and `SubscriptionConfig`. + + - **Define `NotificationConfig`** - If there is a need to have a generic config for the receiver that is being loaded during start-up, you could add a new `AppConfig` and assign the config to `plugins/receivers/config.go` to expose it to the app-level config. Siren will recognize and read the config when starting up. - - **Define `ReceiverConfig`** + You need to implement `NotificationConfig` which is a placeholder to combine `ReceiverConfig` and `SubscriptionConfig` (if any). Therefore `NotificationConfig` should just embed `ReceiverConfig` and `SubscriptionConfig` (if needed). You might also want to add more function to validate and transform the config to `map[string]interface{}`. - For each receiver, there must be a specific config that is important to be used to send notifications. You need to add the information needed in `ReceiverConfig`. - - **Define `SubscriptionConfig`** (Optional) - - It is also possible for a receiver to have different config in the receiver and subscription. For example, slack has a dedicated config called `channel_name` in subscription to send notification only to a specific channel. In this case you need to define separate configurations: `ReceiverConfig` and `SubscriptionConfig`. - - **Define `NotificationConfig`** - - You need to implement `NotificationConfig` which is a placeholder to combine `ReceiverConfig` and `SubscriptionConfig` (if any). Therefore `NotificationConfig` should just embed `ReceiverConfig` and `SubscriptionConfig` (if needed). You might also want to add more function to validate and transform the config to `map[string]interface{}`. - 3. **Implement Interfaces** - - **Implement PreHook methods** (Optional) - You need to figure out whether there is a need to do pre-processing of receiver configuration before storing to the database or enqueueing to the queue. For some receivers, there is a need to do encryption or validation in pre-processing step, in this case you could implement `PreHookDBTransformConfigs` to transform and validate configurations before storing it to the DB and `PreHookQueueTransformConfigs` to transform and validate configurations before storing it to the queue. + - **Implement PreHook methods** (Optional) - - **Implement PostHook methods** (Optional) - - If there is a need to transform back receiver's configurations (e.g. decrypting config), you need to implement `PostHookDBTransformConfigs` or `PostHookQueueTransformConfigs` to transform the config back for processing. + You need to figure out whether there is a need to do pre-processing of receiver configuration before storing to the database or enqueueing to the queue. For some receivers, there is a need to do encryption or validation in pre-processing step, in this case you could implement `PreHookDBTransformConfigs` to transform and validate configurations before storing it to the DB and `PreHookQueueTransformConfigs` to transform and validate configurations before storing it to the queue. - - **Implement `Send` notification method** - - You need to implement `Send` method to send notification message to the external notification vendor. + - **Implement PostHook methods** (Optional) - - **Implement `GetSystemDefaultTemplate` method** + If there is a need to transform back receiver's configurations (e.g. decrypting config), you need to implement `PostHookDBTransformConfigs` or `PostHookQueueTransformConfigs` to transform the config back for processing. - Add a new default template for alert notification in `plugins/receivers/{type}/config/{template_file_name}.goyaml` and return it inside the `GetSystemDefaultTemplate` method. More details about it are [here](../concepts/plugin.md#alert-notification-default-template). + - **Implement `Send` notification method** - - **Implement `BuildData` method** (Optional) + You need to implement `Send` method to send notification message to the external notification vendor. - If Siren needs to return some additional post-processed data during Get and List Receivers (see [here](../concepts/plugin.md#receiver-plugin) for more context), you could implement `BuildData` method. + - **Implement `GetSystemDefaultTemplate` method** + Add a new default template for alert notification in `plugins/receivers/{type}/config/{template_file_name}.goyaml` and return it inside the `GetSystemDefaultTemplate` method. More details about it are [here](../concepts/plugin.md#alert-notification-default-template). + + - **Implement `BuildData` method** (Optional) + + If Siren needs to return some additional post-processed data during Get and List Receivers (see [here](../concepts/plugin.md#receiver-plugin) for more context), you could implement `BuildData` method. 4. **Integrate New Plugin with Siren** - - Define and add your new type of plugin inside `core/receivers/type.go`. - - Initialize your plugin receiver service and add to the `ConfigResolver` and `Notifier` registries map in `cli/deps`. - - To make sure notification handler and dlq handler process your new type, don't forget to add your new receiver type in notification message & dlq handler config or make it default to support all receiver types. + - Define and add your new type of plugin inside `core/receivers/type.go`. + - Initialize your plugin receiver service and add to the `ConfigResolver` and `Notifier` registries map in `cli/deps`. + - To make sure notification handler and dlq handler process your new type, don't forget to add your new receiver type in notification message & dlq handler config or make it default to support all receiver types. ## Example: Add a new plugin `file` receiver @@ -57,12 +61,15 @@ In this part, we will show how to add a new receiver plugin to send notification ### Defining Configurations To write a file, we need a `url` of the file. This might be the only config that we needs. We also don't need to define `SubscriptionConfig` since we don't need a specific config for the subscription. + ```go type ReceiverConfig struct { URL string `mapstructure:"url"` } ``` + We define a `NotificationConfig` which only embeds `ReceiverConfig`. This is helpful to separate the concern for a specific use-cases in some plugins. + ```go type NotificationConfig struct { ReceiverConfig `mapstructure:",squash"` @@ -181,4 +188,4 @@ func (s *PluginService) Send(ctx context.Context, notificationMessage notificati return false, nil } // highlight-end -``` \ No newline at end of file +``` diff --git a/docs/docs/guides/deployment.md b/docs/docs/guides/deployment.md index 3ada363b..28b15b25 100644 --- a/docs/docs/guides/deployment.md +++ b/docs/docs/guides/deployment.md @@ -10,11 +10,12 @@ There are several approaches to setup Siren Server - PostgreSQL (version 13 or above) - Monitoring Providers - - Ex: CortexMetrics + - Ex: CortexMetrics ## Using the CLI ### Pre-requisites for CLI + - [Create siren config file](../tour/setup_server.md#initialization) To run the Siren server use command: @@ -50,7 +51,7 @@ $ docker run -d \ -p 8080:8080 \ --env-file .env \ --name siren-server \ - odpf/siren: \ + raystack/siren: \ server start ``` @@ -73,25 +74,27 @@ $ docker run -d \ -p 8080:8080 \ -v $(pwd)/config.yaml:/config.yaml \ --name siren-server \ - odpf/siren: \ + raystack/siren: \ server start -c /config.yaml ``` ## Use the Helm chart ### Pre-requisites for Helm chart -Siren can be installed in Kubernetes using the Helm chart from https://github.com/odpf/charts. + +Siren can be installed in Kubernetes using the Helm chart from https://github.com/raystack/charts. Ensure that the following requirements are met: + - Kubernetes 1.14+ - Helm version 3.x is [installed](https://helm.sh/docs/intro/install/) -### Add ODPF Helm repository +### Add Raystack Helm repository -Add ODPF chart repository to Helm: +Add Raystack chart repository to Helm: ``` -helm repo add odpf https://odpf.github.io/charts/ +helm repo add raystack https://raystack.github.io/charts/ ``` You can update the chart repository by running: @@ -104,18 +107,17 @@ helm repo update The following table lists the configurable parameters of the Siren chart and their default values. -See full helm values guide [here](https://github.com/odpf/charts/tree/main/stable/siren#values). +See full helm values guide [here](https://github.com/raystack/charts/tree/main/stable/siren#values). ```yaml title="values.yaml" app: - ## Value to fully override guardian.name template nameOverride: "" ## Value to fully override guardian.fullname template fullnameOverride: "" image: - repository: odpf/siren + repository: raystack/siren pullPolicy: Always tag: latest container: @@ -169,5 +171,5 @@ app: And install it with the helm command line along with the values file: ```sh -$ helm install my-release -f values.yaml odpf/siren -``` \ No newline at end of file +$ helm install my-release -f values.yaml raystack/siren +``` diff --git a/docs/docs/guides/provider_and_namespace.md b/docs/docs/guides/provider_and_namespace.md index edea0c0a..f216862d 100644 --- a/docs/docs/guides/provider_and_namespace.md +++ b/docs/docs/guides/provider_and_namespace.md @@ -24,14 +24,14 @@ Siren provider represents a monitoring server. We define alerts and alerts routi } ``` -Monitoring providers usually have tenants, a sharded way of storing and querying telemetry data. Siren calls them **namespaces**. You should create a namespaces with the same name as the tenant of your monitoring providers. Example: the below namespace represent the tenant "odpf". +Monitoring providers usually have tenants, a sharded way of storing and querying telemetry data. Siren calls them **namespaces**. You should create a namespaces with the same name as the tenant of your monitoring providers. Example: the below namespace represent the tenant "raystack". ```json # namespace { "id": "10", - "urn": "odpf", - "name": "odpf", + "urn": "raystack", + "name": "raystack", "provider": { "id": 3 }, @@ -311,4 +311,3 @@ $ siren namespace delete 13 - diff --git a/docs/docs/guides/rule.md b/docs/docs/guides/rule.md index 934c4af6..22c4ed42 100644 --- a/docs/docs/guides/rule.md +++ b/docs/docs/guides/rule.md @@ -37,7 +37,7 @@ $ siren rule create --file rule.yaml --url `}{defaultHost}{`/`}{apiVersion}{`/rules --header 'content-type: application/json' --data-raw '{ - "namespace": "odpf", + "namespace": "raystack", "group_name": "CPUHigh", "template": "CPU", "providerNamespace": "3" @@ -49,7 +49,7 @@ $ siren rule create --file rule.yaml }, { "name": "team", - "value": "odpf", + "value": "raystack", "type": "string" } ], @@ -163,7 +163,7 @@ The yaml file can be edited and re-uploaded to edit the rule thresholds. | API Version | Which API to use to parse the YAML file | v2 | | Type | Describes the type of object represented by YAML file | rule | | Namespace | Corresponds to Cortex namespace in which rule will be created | kafka | -| Entity | Corresponds to tenant name in cortex | odpf | +| Entity | Corresponds to tenant name in cortex | raystack | | Rules | Map of GroupNames describing what template is used in a particular group | See example file | | Variables | Value of variables defined inside the template | See example above | | provider | URN of monitoring provider to be used | localhost-cortex | @@ -270,7 +270,7 @@ The benefits that one gets via this is: type: rule namespace: demo provider: production-cortex - providerNamespace: odpf + providerNamespace: raystack rules: TestGroup: template: CPU diff --git a/docs/docs/guides/template.md b/docs/docs/guides/template.md index e7559c14..7bc2a53c 100644 --- a/docs/docs/guides/template.md +++ b/docs/docs/guides/template.md @@ -42,7 +42,7 @@ $ siren template upsert --file template.yaml { "name": "team", "type": "string", - "default": "odpf", + "default": "raystack", "description": "Name of the team that owns the deployment" }, { @@ -92,7 +92,7 @@ The response body will look like this: { "name": "team", "type": "string", - "default": "odpf", + "default": "raystack", "description": "Name of the team that owns the deployment" }, { @@ -182,7 +182,6 @@ $ siren template delete cpu - **Note:** 1. Updating a template via API will not upload the associated rules. @@ -251,4 +250,3 @@ siren template upload cpu_template.yaml 1. It's suggested to always provide default value for the templated variables. 2. Updating a template used by rules via CLI will update all associated rules. - diff --git a/docs/docs/installation.md b/docs/docs/installation.md index c245bec6..7ee6bf88 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -10,16 +10,16 @@ There are several approaches to install Siren CLI #### Binary (Cross-platform) -Download the appropriate version for your platform from [releases](https://github.com/odpf/siren/releases) page. Once downloaded, the binary can be run from anywhere. +Download the appropriate version for your platform from [releases](https://github.com/raystack/siren/releases) page. Once downloaded, the binary can be run from anywhere. You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account. Ideally, you should install it somewhere in your PATH for easy use. `/usr/local/bin` is the most probable location. #### macOS -`siren` is available via a Homebrew Tap, and as downloadable binary from the [releases](https://github.com/odpf/siren/releases/latest) page: +`siren` is available via a Homebrew Tap, and as downloadable binary from the [releases](https://github.com/raystack/siren/releases/latest) page: ```sh -brew install odpf/tap/siren +brew install raystack/tap/siren ``` To upgrade to the latest version: @@ -36,14 +36,14 @@ siren version #### Linux -`siren` is available as downloadable binaries from the [releases](https://github.com/odpf/siren/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively. +`siren` is available as downloadable binaries from the [releases](https://github.com/raystack/siren/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively. #### Windows -`siren` is available via [scoop](https://scoop.sh/), and as a downloadable binary from the [releases](https://github.com/odpf/siren/releases/latest) page: +`siren` is available via [scoop](https://scoop.sh/), and as a downloadable binary from the [releases](https://github.com/raystack/siren/releases/latest) page: ``` -scoop bucket add siren https://github.com/odpf/scoop-bucket.git +scoop bucket add siren https://github.com/raystack/scoop-bucket.git ``` To upgrade to the latest version: @@ -66,8 +66,8 @@ Siren requires the following dependencies: Run either of the following commands to clone and compile Siren from source ```sh -git clone git@github.com:odpf/siren.git (Using SSH Protocol) Or -git clone https://github.com/odpf/siren.git (Using HTTPS Protocol) +git clone git@github.com:raystack/siren.git (Using SSH Protocol) Or +git clone https://github.com/raystack/siren.git (Using HTTPS Protocol) ``` Install all the golang dependencies @@ -111,28 +111,28 @@ $ siren config init We provide ready to use Docker container images. To pull the latest image: ``` -docker pull odpf/siren:latest +docker pull raystack/siren:latest ``` To pull a specific version: ``` -docker pull odpf/siren:v0.4.1 +docker pull raystack/siren:v0.4.1 ``` ### Use the Helm chart -Siren can be installed in Kubernetes using the Helm chart from https://github.com/odpf/charts. +Siren can be installed in Kubernetes using the Helm chart from https://github.com/raystack/charts. Ensure that the following requirements are met: - Kubernetes 1.14+ - Helm version 3.x is [installed](https://helm.sh/docs/intro/install/) -Add ODPF chart repository to Helm: +Add Raystack chart repository to Helm: ``` -helm repo add odpf https://odpf.github.io/charts/ +helm repo add raystack https://raystack.github.io/charts/ ``` You can update the chart repository by running: @@ -144,7 +144,7 @@ helm repo update And install it with the helm command line: ``` -helm install my-release odpf/siren +helm install my-release raystack/siren ``` ### Verifying the installation​ @@ -157,4 +157,4 @@ $ siren --help ### Dockerized dependencies - You will notice there is a [`docker-compose.yaml`](https://github.com/odpf/siren/blob/main/docker-compose.yaml) file contains all dependencies that you need to bootstrap Siren. Inside, it has `postgresql` as a main storage, `cortex ruler` and `cortex alertmanager` as monitoring provider, and `minio` as a backend storage for `cortex`. +You will notice there is a [`docker-compose.yaml`](https://github.com/raystack/siren/blob/main/docker-compose.yaml) file contains all dependencies that you need to bootstrap Siren. Inside, it has `postgresql` as a main storage, `cortex ruler` and `cortex alertmanager` as monitoring provider, and `minio` as a backend storage for `cortex`. diff --git a/docs/docs/receivers/slack.md b/docs/docs/receivers/slack.md index 85b476df..f24f26ec 100644 --- a/docs/docs/receivers/slack.md +++ b/docs/docs/receivers/slack.md @@ -4,38 +4,39 @@ import CodeBlock from '@theme/CodeBlock'; import siteConfig from '/docusaurus.config.js'; # Slack + export const apiVersion = siteConfig.customFields.apiVersion export const defaultHost = siteConfig.customFields.defaultHost -||| -|---|---| -|**type**|`slack`| - +| | | +| -------- | ------- | +| **type** | `slack` | A Slack receiver in Siren tied to a Slack workspace. The implementation uses [slack-go](https://github.com/slack-go/slack) library to send notification to a [Slack app](#initializing-a-slack-app). This Slack app must be installed in the required workspaces and added to the required channels. Siren helps with the installation flow by automating the exchanging code for access token [flow](https://api.slack.com/legacy/oauth#authenticating-users-with-oauth__the-oauth-flow). - ## Initializing a Slack App -Here is the list of actions one need to take to attach a Slack app to Siren. + +Here is the list of actions one need to take to attach a Slack app to Siren. 1. Create a Slack app and configure these permissions. Visit [this](https://api.slack.com/apps). If you already have an app, make sure permissions mentioned below are there. - ```text - channels:read - chat:write - groups:read - im:read - team:read - users:read - users:read.email - ``` + +```text +channels:read +chat:write +groups:read +im:read +team:read +users:read +users:read.email +``` + 3. Enable Distribution 4. Setup a redirection server. You can use `localhost` as well. This must be a `https` server. Slack will call this server once we install the app in any workspace. 5. Install your app to a workspace. Visit `Manage Distribution` section on the App Dashboard. Click the `Add to Slack` Button. 6. This will prompt you to the OAuth Consent screen. Make sure you have selected the correct Slack Workspace by verifying the dropdown in the top-right corner. Click `Allow`. 7. Copy the `code` that you received from Slack redirection URL query params and use this as `auth_code` inside `create receiver` payload. -In order to send Slack notifications via Siren API, you need to create its receiver. To add a new slack receiver you need all credentials mentioned in this [configuration](#configurations-in-api). - +In order to send Slack notifications via Siren API, you need to create its receiver. To add a new slack receiver you need all credentials mentioned in this [configuration](#configurations-in-api). ## Configurations in API @@ -90,7 +91,6 @@ $ siren receiver create --file slack_receiver.yaml On success, this will store the encrypted app token for that particular slack workspace and use it for sending out notifications. - ## Subscription Slack has additional `SubscriptionConfig` where user could routes the notification to a specific channel or individual in a workspace. Here is the subscription config. @@ -102,8 +102,7 @@ Slack has additional `SubscriptionConfig` where user could routes the notificati } ``` -The `channel_type` has two possible enum values `channel` and `user`. The default value of this is `channel`. If `channel_type` is channel, `channel_name` should be a slack channel handle in the workspace e.g. `#odpf-critical`. If one wants to send notification to an individual, `channel_type` needs to be `user` and `channel_name` needs to be populated with slack user's e-mail e.g. `user1@odpf.io`. - +The `channel_type` has two possible enum values `channel` and `user`. The default value of this is `channel`. If `channel_type` is channel, `channel_name` should be a slack channel handle in the workspace e.g. `#raystack-critical`. If one wants to send notification to an individual, `channel_type` needs to be `user` and `channel_name` needs to be populated with slack user's e-mail e.g. `user1@raystack.io`. ## Message Payload diff --git a/docs/docs/reference/client_configuration.md b/docs/docs/reference/client_configuration.md index edf1730e..7417b6f7 100644 --- a/docs/docs/reference/client_configuration.md +++ b/docs/docs/reference/client_configuration.md @@ -5,15 +5,17 @@ When using `siren` client CLI, sometimes there are client-specifi flags that are ```bash siren receiver list --host localhost:8080 ``` + Siren client CLI could use a client config so you don't need to pass client-required flags e.g. `--host` everytime you run `siren` command. For Siren client CLI, here is the required config to interact to Siren server. ```yaml host: localhost:8080 ``` + You could easily generate client config by running this command: + ```bash siren config init ``` -This will create (if not exists) a config file `${HOME}/.config/odpf/siren.yaml` with default values. You can modify the value as you wish. - +This will create (if not exists) a config file `${HOME}/.config/raystack/siren.yaml` with default values. You can modify the value as you wish. diff --git a/docs/docs/support.md b/docs/docs/support.md index b088f4d2..06c672c8 100644 --- a/docs/docs/support.md +++ b/docs/docs/support.md @@ -5,14 +5,14 @@ Need a bit of help? We're here for you. Check out our current issues, GitHub dis ### Slack The Siren team has an open source slack workspace to discuss development and support. Most of the Siren discussions happen in #siren channel. -[Join us on Slack](https://odpf-community.slack.com/) +[Join us on Slack](https://raystack-community.slack.com/) ### Issues Have a general issue or bug that you've found? We'd love to hear about it in our GitHub issues. This can be feature requests too! -[Go to issues](https://github.com/odpf/siren/issues) +[Go to issues](https://github.com/raystack/siren/issues) ### Discussions For help and questions about best practices, join our GitHub discussions. Browse and ask questions. -[Go to discussions](https://github.com/orgs/odpf/discussions) +[Go to discussions](https://github.com/orgs/raystack/discussions) diff --git a/docs/docs/tour/2alerting_rules_subscriptions_overview.md b/docs/docs/tour/2alerting_rules_subscriptions_overview.md index 5cb93b51..989dd059 100644 --- a/docs/docs/tour/2alerting_rules_subscriptions_overview.md +++ b/docs/docs/tour/2alerting_rules_subscriptions_overview.md @@ -10,7 +10,7 @@ export const defaultHost = siteConfig.customFields.defaultHost This tour shows you how could we create alerting rules and we want to subscribe to a notification triggered by an alert. If you want to know how to send on-demand notification to a receiver, you could go to the [first tour](./1sending_notifications_overview.md). -As mentioned previously, we will be using [CortexMetrics](https://cortexmetrics.io/docs/getting-started/) as a provider. We need to register the provider and create a provider namespace in Siren first before creating any rule and subscription. +As mentioned previously, we will be using [CortexMetrics](https://cortexmetrics.io/docs/getting-started/) as a provider. We need to register the provider and create a provider namespace in Siren first before creating any rule and subscription. > Provider is implemented as a plugin in Siren. You can learn more about Siren Plugin concepts [here](../concepts/plugin.md). We also welcome all contributions to add new provider plugins. Learn more about how to add a new provider plugin [here](../extend/adding_new_provider.md). @@ -64,18 +64,18 @@ The `id` we got from the provider creation is important to create a namespace la ### Register Namespaces -For multi-tenant scenario, which [CortexMetrics](https://cortexmetrics.io/) supports, we need to define namespaces in Siren. Assuming there are 2 tenants in Cortex, `odpf` and `non-odpf`, we need to create 2 namespaces. This could be done in similar way with how we created provider. +For multi-tenant scenario, which [CortexMetrics](https://cortexmetrics.io/) supports, we need to define namespaces in Siren. Assuming there are 2 tenants in Cortex, `raystack` and `non-raystack`, we need to create 2 namespaces. This could be done in similar way with how we created provider. -```bash title=ns1.yaml -urn: odpf-ns -name: odpf-ns +```bash title=ns1.yaml +urn: raystack-ns +name: raystack-ns provider: id: 1 ``` -```bash title=ns2.yaml -urn: non-odpf-ns -name: non-odpf-ns +```bash title=ns2.yaml +urn: non-raystack-ns +name: non-raystack-ns provider: id: 1 ``` @@ -94,8 +94,8 @@ $ siren namespace create --file ns1.yaml --url `}{defaultHost}{`/`}{apiVersion}{`/namespaces --header 'content-type: application/json' --data-raw '{ - "urn": "odpf-ns", - "name": "odpf-ns", + "urn": "raystack-ns", + "name": "raystack-ns", "provider": { "id": 1 } @@ -118,8 +118,8 @@ $ siren namespace create --file ns2.yaml --url `}{defaultHost}{`/`}{apiVersion}{`/namespaces --header 'content-type: application/json' --data-raw '{ - "urn": "non-odpf-ns", - "name": "non-odpf-ns", + "urn": "non-raystack-ns", + "name": "non-raystack-ns", "provider": { "id": 2 } @@ -172,8 +172,8 @@ $ siren namespace list Showing 2 of 2 namespaces ID URN NAME -1 odpf-ns odpf-ns -2 non-odpf-ns non-odpf-ns +1 raystack-ns raystack-ns +2 non-raystack-ns non-raystack-ns For details on a namespace, try: siren namespace view ``` @@ -196,7 +196,8 @@ With `file` receiver, all published notifications will be written to a file. Let > We welcome all contributions to add new type of receiver plugins. See [Extend](../extend/adding_new_receiver.md) section to explore how to add a new type of receiver plugin to Siren Prepare receiver detail and register the receiver with Siren CLI. -```bash title=receiver_2.yaml + +```bash title=receiver_2.yaml name: file-sink-2 type: file labels: @@ -240,49 +241,49 @@ Receiver created with id: 2 ✓ - ## 2.3 Configuring Provider Alerting Rules In this part, we will create alerting rules for our CortexMetrics monitoring provider. Rules in Siren relies on [template](../guides/template.md) for its abstraction. To create a rule, we need to create a template first. ### Creating a Rule's Template -We will create a rule's template to monitor CPU usage. -```yaml title=cpu_template.yaml +We will create a rule's template to monitor CPU usage. + +```yaml title=cpu_template.yaml apiVersion: v2 type: template name: CPU body: - - alert: CPUWarning - expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > [[.warning]] - for: "[[.for]]" - labels: - severity: WARNING - annotations: - description: CPU has been above [[.warning]] for last [[.for]] {{ $labels.host }} - - alert: CPUCritical - expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > [[.critical]] - for: "[[.for]]" - labels: - severity: CRITICAL - annotations: - description: CPU has been above [[.critical]] for last [[.for]] {{ $labels.host }} + - alert: CPUWarning + expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > [[.warning]] + for: "[[.for]]" + labels: + severity: WARNING + annotations: + description: CPU has been above [[.warning]] for last [[.for]] {{ $labels.host }} + - alert: CPUCritical + expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > [[.critical]] + for: "[[.for]]" + labels: + severity: CRITICAL + annotations: + description: CPU has been above [[.critical]] for last [[.for]] {{ $labels.host }} variables: - - name: for - type: string - default: 10m - description: For eg 5m, 2h; Golang duration format - - name: warning - type: int - default: 80 - - name: critical - type: int - default: 90 + - name: for + type: string + default: 10m + description: For eg 5m, 2h; Golang duration format + - name: warning + type: int + default: 80 + - name: critical + type: int + default: 90 tags: - - systems + - systems ``` -We named the template above as `CPU`, the body in the template is the data that will be interpolated with variables. Notice that template body format is similar with [Prometheus alerting rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/). This is because Cortex uses the same rules as prometheus and Siren will translate the rendered rules to the Cortex alerting rules. Let's save the template above into a file called `cpu_template.yaml` and upload our template to Siren using +We named the template above as `CPU`, the body in the template is the data that will be interpolated with variables. Notice that template body format is similar with [Prometheus alerting rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/). This is because Cortex uses the same rules as prometheus and Siren will translate the rendered rules to the Cortex alerting rules. Let's save the template above into a file called `cpu_template.yaml` and upload our template to Siren using @@ -302,10 +303,11 @@ You could verify the newly created template using this command. ```shell $ siren template list ``` + ```shell Showing 1 of 1 templates - -ID NAME TAGS + +ID NAME TAGS 1 CPU systems For details on a template, try: siren template view @@ -323,25 +325,27 @@ For details on a template, try: siren template view ### Creating a Rule Now we already have a `CPU` template, we can create a rule based on that template. Let's prepare a rule and save it in a file called `cpu_test.yaml`. -```yaml title=cpu_test.yaml + +```yaml title=cpu_test.yaml apiVersion: v2 type: rule -namespace: odpf +namespace: raystack provider: localhost-dev-cortex -providerNamespace: odpf-ns +providerNamespace: raystack-ns rules: - cpuGroup: - template: CPU - enabled: true - variables: - - name: for - value: 15m - - name: warning - value: 185 - - name: critical - value: 195 + cpuGroup: + template: CPU + enabled: true + variables: + - name: for + value: 15m + - name: warning + value: 185 + - name: critical + value: 195 ``` -We defined a rule based on `CPU` template for namespace urn `odpf-ns` and provider urn `localhost-dev-cortex`. The rule group name is `cpuGroup` and there are also some variables to be assign to the template when the template is rendered. Let's upload the rule with Siren CLI. + +We defined a rule based on `CPU` template for namespace urn `raystack-ns` and provider urn `localhost-dev-cortex`. The rule group name is `cpuGroup` and there are also some variables to be assign to the template when the template is rendered. Let's upload the rule with Siren CLI. @@ -349,45 +353,49 @@ We defined a rule based on `CPU` template for namespace urn `odpf-ns` and provid ```shell $ siren rule upload cpu_test.yaml ``` + If succeed, you will get this message. + ```shell Upserted Rule ID: 4 ``` + You could verify the created rules by getting all registered rules in CortexMetrics with cURL. - + - ```bash - curl --location --request GET 'http://localhost:9009/api/v1/rules' \ - --header 'X-Scope-OrgId: odpf-ns' - ``` +```bash +curl --location --request GET 'http://localhost:9009/api/v1/rules' \ +--header 'X-Scope-OrgId: raystack-ns' +``` The response body should be in `yaml` format and like this. + ```yaml -odpf: - - name: cpuGroup - rules: - - alert: CPUWarning - expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > 185 - for: 15m - labels: - severity: WARNING - annotations: - description: CPU has been above 185 for last 15m {{ $labels.host }} - - alert: CPUCritical - expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > 195 - for: 15m - labels: - severity: CRITICAL - annotations: - description: CPU has been above 195 for last 15m {{ $labels.host }} +raystack: + - name: cpuGroup + rules: + - alert: CPUWarning + expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > 185 + for: 15m + labels: + severity: WARNING + annotations: + description: CPU has been above 185 for last 15m {{ $labels.host }} + - alert: CPUCritical + expr: avg by (host) (cpu_usage_user{cpu="cpu-total"}) > 195 + for: 15m + labels: + severity: CRITICAL + annotations: + description: CPU has been above 195 for last 15m {{ $labels.host }} ``` If there is a response like above, that means the rule that we created in Siren was already synchronized to the provider. Next, we can add a subscription to the alert and try to trigger an alert to verify whether we got a notification alert or not. @@ -396,40 +404,40 @@ If there is a response like above, that means the rule that we created in Siren Notifications can be subscribed and routed to the defined receivers by adding a subscription. In this part, we will trigger an alert to CortexMetrics manually by calling CortexMetrics `POST /alerts` API and expect CortexMetrics to trigger webhook-notification and calling Siren alerts hook API. On Siren side, we expect a notification is published everytime the hook API is being called. - > If you are curious about how notification in Siren works, you can read the concepts [here](../concepts/notification.md). The first thing that we should do is knowing what would be the labels sent by CortexMetrics. The labels should be defined when we were defining [rules](#23-configuring-provider-alerting-rules). Assuming the labels sent by CortexMetrics are these: ```yaml severity: WARNING -team: odpf +team: raystack service: some-service environment: integration resource_name: some-resource ``` -We want to subscribe all notifications owned by `odpf` team and has severity `WARNING` regardless the service name and route the notification to `file` with receiver id `2` (the one that we created in the [previous](#22-register-a-receiver) part). +We want to subscribe all notifications owned by `raystack` team and has severity `WARNING` regardless the service name and route the notification to `file` with receiver id `2` (the one that we created in the [previous](#22-register-a-receiver) part). Prepare a subscription detail and create a new subscription with Siren CLI. -```bash title=cpu_subs.yaml -urn: subscribe-cpu-odpf-warning + +```bash title=cpu_subs.yaml +urn: subscribe-cpu-raystack-warning namespace: 1 receivers: - id: 1 - id: 2 match - team: odpf + team: raystack severity: WARNING ``` - ```shell - $ siren subscription create --file cpu_subs.yaml - ``` - +```shell +$ siren subscription create --file cpu_subs.yaml +``` + @@ -438,7 +446,7 @@ match --header 'Content-Type: application/json' --header 'Accept: application/json' --data-raw '{ - "urn": "subscribe-cpu-odpf-warning", + "urn": "subscribe-cpu-raystack-warning", "namespace": 1, "receivers": [ { @@ -449,7 +457,7 @@ match } ], "match": { - "team": "odpf", + "team": "raystack", "severity": "WARNING" } }'`} @@ -462,36 +470,37 @@ Once a subscription is created, let's manually trigger alert in CortexMetrics wi - ```bash - curl --location --request POST 'http://localhost:9009/api/prom/alertmanager/api/v1/alerts' - --header 'X-Scope-OrgId: odpf-ns' - --header 'Content-Type: application/json' \ - --data-raw '[ - { - "state": "firing", - "value": 1, - "labels": { - "severity": "WARNING", - "team": "odpf", - "service": "some-service", - "environment": "integration" - }, - "annotations": { - "resource": "test_alert", - "metricName": "test_alert", - "metricValue": "1", - "template": "alert_test" - } - } - ]' - ``` +```bash +curl --location --request POST 'http://localhost:9009/api/prom/alertmanager/api/v1/alerts' +--header 'X-Scope-OrgId: raystack-ns' +--header 'Content-Type: application/json' \ +--data-raw '[ + { + "state": "firing", + "value": 1, + "labels": { + "severity": "WARNING", + "team": "raystack", + "service": "some-service", + "environment": "integration" + }, + "annotations": { + "resource": "test_alert", + "metricName": "test_alert", + "metricValue": "1", + "template": "alert_test" + } + } +]' +``` If succeed, the response should be like this. + ```json -{"status":"success"} +{ "status": "success" } ``` Now, we need to expect CortexMetrics to send alerts notification to our Siren API `/alerts/cortex/:providerId`. If that is the case, the alert should also be stored and published to the receivers in the matching subscriptions. You might want to wait for a CortexMetrics `group_wait` (usually 30s) until alerts are triggered by Cortex Alertmanager. @@ -504,16 +513,18 @@ Let's verify the alert is stored inside our DB. ```shell $ siren alert list --provider-id 1 --provider-type cortex --resource-name test_alert ``` + The result would be something like this. + ```shell Showing 1 of 1 alerts - + ID PROVIDER_ID RESOURCE_NAME METRIC_NAME METRIC_VALUE SEVERITY -1 1 test_alert test_alert 1 WARNING +1 1 test_alert test_alert 1 WARNING For details on a alert, try: siren alert view ``` - + @@ -523,11 +534,24 @@ For details on a alert, try: siren alert view - We also expect notifications have been published to the receiver id `2`. You can check a new notification is already added in `./out-file-sink2.json` with this value. ```json -{"environment":"integration","generator_url":"","groupKey":"{}:{severity=\"WARNING\"}","metricName":"test_alert","metricValue":"1","num_alerts_firing":1,"resource":"test_alert","routing_method":"subscribers","service":"some-service","severity":"WARNING","status":"firing","team":"odpf","template":"alert_test"} +{ + "environment": "integration", + "generator_url": "", + "groupKey": "{}:{severity=\"WARNING\"}", + "metricName": "test_alert", + "metricValue": "1", + "num_alerts_firing": 1, + "resource": "test_alert", + "routing_method": "subscribers", + "service": "some-service", + "severity": "WARNING", + "status": "firing", + "team": "raystack", + "template": "alert_test" +} ``` ## What Next? diff --git a/docs/docs/tour/setup_server.md b/docs/docs/tour/setup_server.md index 225f0961..d30b813b 100644 --- a/docs/docs/tour/setup_server.md +++ b/docs/docs/tour/setup_server.md @@ -7,14 +7,15 @@ Siren binary contains both the CLI client and the server itself. Each has it's o ### Pre-requisites Dependencies - - PostgreSQL - - [CortexMetrics](https://cortexmetrics.io/docs/getting-started/) -You need to prepare and run above dependencies first before running Siren. Siren also has a [`docker-compose.yaml`](https://github.com/odpf/siren/blob/main/docker-compose.yaml) file in its repo that has all required dependencies. If you are interested to use it, you just need to `git clone` the [repo](https://github.com/odpf/siren) and run `docker-compose up` in the root project. +- PostgreSQL +- [CortexMetrics](https://cortexmetrics.io/docs/getting-started/) + +You need to prepare and run above dependencies first before running Siren. Siren also has a [`docker-compose.yaml`](https://github.com/raystack/siren/blob/main/docker-compose.yaml) file in its repo that has all required dependencies. If you are interested to use it, you just need to `git clone` the [repo](https://github.com/raystack/siren) and run `docker-compose up` in the root project. ### Initialization -This steps assumes all dependencies already up and running. Create a server config `config.yaml` file (`siren server init`) in the root folder of siren project or use `--config` flag to customize to a certain config file location or you can also use environment variables to provide the server config. +This steps assumes all dependencies already up and running. Create a server config `config.yaml` file (`siren server init`) in the root folder of siren project or use `--config` flag to customize to a certain config file location or you can also use environment variables to provide the server config. Setup up a database in postgres and provide the details in the DB field as given in the example below. For the purpose of this tutorial, we'll assume that the username is `postgres`, database name is `siren_development`, host and port are `localhost` and `5432`. @@ -41,11 +42,12 @@ receivers: We are using CortexMetrics as a provider. We need to set the `webhook_base_api` in `providers.cortex` config. If you are using the dockerized CortexMetrics with Docker Desktop, you could put the value as `http://host.docker.internal:8080/v1beta1/alerts/cortex`. This will enable CortexMetrics inside container to talk with Siren in our host machine later. If you are running CortexMetrics inside your host, you could put the value as `http://localhost:8080/v1beta1/alerts/cortex`. - You also might want to set the `provider.cortex.group_wait` value to `1s` so alert will be sent to the webhook immediately once it was triggered. +You also might want to set the `provider.cortex.group_wait` value to `1s` so alert will be sent to the webhook immediately once it was triggered. > If you're new to YAML and want to learn more, see Learn [YAML in Y minutes](https://learnxinyminutes.com/docs/yaml/). ### Starting the server + Database migration is required during the first server initialization. In addition, re-running the migration command might be needed in a new release to apply the new schema changes (if any). It's safer to always re-run the migration script before deploying/starting a new release. To initialize the database schema, Run Migrations with the following command: @@ -71,6 +73,7 @@ $ siren server start --config= ``` ### Using environment variables + All the configs can be passed as environment variables using underscore `_` as the delimiter between nested keys. See the following examples ```yaml @@ -85,13 +88,13 @@ service: Here is the corresponding environment variable for the above -| Configuration key | Environment variable | -| ---------------------- | ------------------------ | -| db.driver | DB_DRIVER | -| db.url | DB_URL | -| service.host | SERVICE_HOST | -| service.port | SERVICE_PORT | -| service.encryption_key | SERVICE_ENCRYPTION_KEY | +| Configuration key | Environment variable | +| ---------------------- | ---------------------- | +| db.driver | DB_DRIVER | +| db.url | DB_URL | +| service.host | SERVICE_HOST | +| service.port | SERVICE_PORT | +| service.encryption_key | SERVICE_ENCRYPTION_KEY | Set the env variable using export @@ -111,8 +114,8 @@ Siren CLI supports CLI client to communicate with a Siren server. To initialize $ siren config init ``` -A yaml file will be created in the `~/.config/odpf/siren.yaml` directory. Open this file to configure the host for Siren server as in the example below: +A yaml file will be created in the `~/.config/raystack/siren.yaml` directory. Open this file to configure the host for Siren server as in the example below: ```yaml host: "localhost:8080" -``` \ No newline at end of file +``` diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index f790f64a..a413a3e9 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -5,12 +5,12 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); module.exports = { title: 'Siren', tagline: 'Universal data observability toolkit', - url: 'https://odpf.github.io', + url: 'https://raystack.github.io', baseUrl: '/siren/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', - organizationName: 'odpf', + organizationName: 'raystack', projectName: 'siren', customFields: { apiVersion: 'v1beta1', @@ -23,7 +23,7 @@ module.exports = { ({ docs: { sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/odpf/siren/edit/master/docs/', + editUrl: 'https://github.com/raystack/siren/edit/master/docs/', sidebarCollapsed: true, breadcrumbs: false, }, @@ -65,7 +65,7 @@ module.exports = { className: 'header-slack-link', }, { - href: 'https://github.com/odpf/siren', + href: 'https://github.com/raystack/siren', className: 'navbar-item-github', position: 'right', }, @@ -81,7 +81,7 @@ module.exports = { }, announcementBar: { id: 'star-repo', - content: '⭐️ If you like Siren, give it a star on GitHub! ⭐', + content: '⭐️ If you like Siren, give it a star on GitHub! ⭐', backgroundColor: '#222', textColor: '#eee', isCloseable: true, diff --git a/go.mod b/go.mod index 9a82a1fc..853f58d5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/odpf/siren +module github.com/raystack/siren go 1.18 @@ -24,10 +24,10 @@ require ( github.com/newrelic/go-agent/v3 v3.20.2 github.com/newrelic/go-agent/v3/integrations/nrgrpc v1.3.2 github.com/newrelic/newrelic-opencensus-exporter-go v0.4.0 - github.com/odpf/salt v0.2.5-0.20221122033807-b6caa1b617bf github.com/ory/dockertest/v3 v3.9.1 github.com/prometheus/alertmanager v0.23.1-0.20210914172521-e35efbddb66a github.com/prometheus/prometheus v1.8.2-0.20210215121130-6f488061dfb4 + github.com/raystack/salt v0.3.2 github.com/slack-go/slack v0.11.0 github.com/spf13/cobra v1.5.0 github.com/stretchr/testify v1.8.1 @@ -41,7 +41,10 @@ require ( gopkg.in/yaml.v3 v3.0.1 ) -require github.com/antonmedv/expr v1.9.0 +require ( + github.com/antonmedv/expr v1.9.0 + github.com/mitchellh/hashstructure/v2 v2.0.2 +) require ( github.com/Masterminds/goutils v1.1.1 // indirect @@ -127,13 +130,12 @@ require ( github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/microcosm-cc/bluemonday v1.0.17 // indirect github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect - github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect github.com/muesli/reflow v0.3.0 // indirect github.com/muesli/termenv v0.9.0 // indirect github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect - github.com/newrelic/go-agent/v3/integrations/nrpq v1.1.1 // indirect github.com/newrelic/newrelic-telemetry-sdk-go v0.8.1 // indirect + github.com/oklog/run v1.1.0 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect diff --git a/go.sum b/go.sum index 0c85e17b..9125d7d6 100644 --- a/go.sum +++ b/go.sum @@ -1502,7 +1502,6 @@ github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= @@ -1703,13 +1702,10 @@ github.com/ncw/swift v1.0.47/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/ncw/swift v1.0.50/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= github.com/neo4j/neo4j-go-driver v1.8.1-0.20200803113522-b626aa943eba/go.mod h1:ncO5VaFWh0Nrt+4KT4mOZboaczBZcLuHrG+/sUeP8gI= -github.com/newrelic/go-agent/v3 v3.3.0/go.mod h1:H28zDNUC0U/b7kLoY4EFOhuth10Xu/9dchozUiOseQQ= github.com/newrelic/go-agent/v3 v3.20.2 h1:EqFMriW3Bv3on4tqKzI+fJmNYOEG55yw54v6yv8L+x8= github.com/newrelic/go-agent/v3 v3.20.2/go.mod h1:rT6ZUxJc5rQbWLyCtjqQCOcfb01lKRFbc1yMQkcboWM= github.com/newrelic/go-agent/v3/integrations/nrgrpc v1.3.2 h1:SBtZAkWapxfAxYVZHagHxsrbRt+ULkgxi0mbn6TMRM8= github.com/newrelic/go-agent/v3/integrations/nrgrpc v1.3.2/go.mod h1:h5GGcju9OuzmRdKa5glKh/SrMs1HhZyvXrf0mEPv70k= -github.com/newrelic/go-agent/v3/integrations/nrpq v1.1.1 h1:HlVcLXw7ZZPjeRx3lQUAN8qfpJVDmuq4L237M1+PS8A= -github.com/newrelic/go-agent/v3/integrations/nrpq v1.1.1/go.mod h1:UvI7Z0Dok/36E44UiTysh9HQZudDdpiChbe3+eqSB0I= github.com/newrelic/newrelic-opencensus-exporter-go v0.4.0 h1:BjzhyzSrzc8/WtyZDWBF8XATW4M92EoZiy38kgL3gfo= github.com/newrelic/newrelic-opencensus-exporter-go v0.4.0/go.mod h1:gSMlmRnmdRq5c2NTNuh+JtBGXSvnJDqIudxiXwQ07m0= github.com/newrelic/newrelic-telemetry-sdk-go v0.2.0/go.mod h1:G9MqE/cHGv3Hx3qpYhfuyFUsGx2DpVcGi1iJIqTg+JQ= @@ -1720,10 +1716,9 @@ github.com/nkovacs/streamquote v0.0.0-20170412213628-49af9bddb229/go.mod h1:0aYX github.com/nsqio/go-nsq v1.0.7/go.mod h1:XP5zaUs3pqf+Q71EqUJs3HYfBIqfK6G83WQMdNN+Ito= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/odpf/salt v0.2.5-0.20221122033807-b6caa1b617bf h1:C3/G+SWZoH7z8Hmfm1huBCeTPUCvht8BSzLqCPxtVFc= -github.com/odpf/salt v0.2.5-0.20221122033807-b6caa1b617bf/go.mod h1:oKbFD+VxcWBX5JLJXnD24ZocrKUJxVqnp3Ob6EO0oq8= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/oklog/ulid v0.0.0-20170117200651-66bb6560562f/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= @@ -1968,6 +1963,8 @@ github.com/prometheus/statsd_exporter v0.22.8/go.mod h1:/DzwbTEaFTE0Ojz5PqcSk6+P github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rafaeljusto/redigomock v0.0.0-20190202135759-257e089e14a1/go.mod h1:JaY6n2sDr+z2WTsXkOmNRUfDy6FN0L6Nk7x06ndm4tY= github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be/go.mod h1:MIDFMn7db1kT65GmV94GzpX9Qdi7N/pQlwb+AN8wh+Q= +github.com/raystack/salt v0.3.2 h1:0kEuaHefwyL+uTC8r+jVoDW9C3jRTl6/ezZwynlc8oE= +github.com/raystack/salt v0.3.2/go.mod h1:MZUZG25Si+aU8QkqGt9FZrHA7zm5gQGnzRk5HRq9jaE= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= @@ -2247,8 +2244,6 @@ github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPS github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= gitlab.com/nyarla/go-crypt v0.0.0-20160106005555-d9a5dc2b789b/go.mod h1:T3BPAOm2cqquPa0MKWeNkmOM5RQsRhkrwMWonFMN7fE= -go.buf.build/odpf/gw/grpc-ecosystem/grpc-gateway v1.1.35/go.mod h1:/LuddrGPi0fwj7ay6Orutt8oFfPz8Y3c8qdBkacJq1A= -go.buf.build/odpf/gw/odpf/proton v1.1.9/go.mod h1:I9E8CF7w/690vRNWqBU6qDcUbi3Pi2THdn1yycBVTDQ= go.elastic.co/apm v1.5.0/go.mod h1:OdB9sPtM6Vt7oz3VXt7+KR96i9li74qrxBGHTQygFvk= go.elastic.co/apm/module/apmhttp v1.5.0/go.mod h1:1FbmNuyD3ddauwzgVwFB0fqY6KbZt3JkV187tGCYYhY= go.elastic.co/apm/module/apmot v1.5.0/go.mod h1:d2KYwhJParTpyw2WnTNy8geNlHKKFX+4oK3YLlsesWE= diff --git a/internal/api/api.go b/internal/api/api.go index 7817f3fa..b0cb1a92 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -4,15 +4,15 @@ import ( "context" "time" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/core/template" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/core/template" ) //go:generate mockery --name=AlertService -r --case underscore --with-expecter --structname AlertService --filename alert_service.go --output=./mocks diff --git a/internal/api/mocks/alert_service.go b/internal/api/mocks/alert_service.go index a7ed9804..b77b9bca 100644 --- a/internal/api/mocks/alert_service.go +++ b/internal/api/mocks/alert_service.go @@ -3,7 +3,7 @@ package mocks import ( - alert "github.com/odpf/siren/core/alert" + alert "github.com/raystack/siren/core/alert" context "context" diff --git a/internal/api/mocks/namespace_service.go b/internal/api/mocks/namespace_service.go index c86da659..b58c8dac 100644 --- a/internal/api/mocks/namespace_service.go +++ b/internal/api/mocks/namespace_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - namespace "github.com/odpf/siren/core/namespace" + namespace "github.com/raystack/siren/core/namespace" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/mocks/notification_service.go b/internal/api/mocks/notification_service.go index 00fd9488..1b8d4663 100644 --- a/internal/api/mocks/notification_service.go +++ b/internal/api/mocks/notification_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - notification "github.com/odpf/siren/core/notification" + notification "github.com/raystack/siren/core/notification" mock "github.com/stretchr/testify/mock" time "time" diff --git a/internal/api/mocks/provider_service.go b/internal/api/mocks/provider_service.go index e9f722b8..bcf6d377 100644 --- a/internal/api/mocks/provider_service.go +++ b/internal/api/mocks/provider_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - provider "github.com/odpf/siren/core/provider" + provider "github.com/raystack/siren/core/provider" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/mocks/receiver_service.go b/internal/api/mocks/receiver_service.go index ef3e5f8c..cc4e42c9 100644 --- a/internal/api/mocks/receiver_service.go +++ b/internal/api/mocks/receiver_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - receiver "github.com/odpf/siren/core/receiver" + receiver "github.com/raystack/siren/core/receiver" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/mocks/rule_service.go b/internal/api/mocks/rule_service.go index 1ddbc7c2..380c70ad 100644 --- a/internal/api/mocks/rule_service.go +++ b/internal/api/mocks/rule_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - rule "github.com/odpf/siren/core/rule" + rule "github.com/raystack/siren/core/rule" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/mocks/silence_service.go b/internal/api/mocks/silence_service.go index 0715715d..463594df 100644 --- a/internal/api/mocks/silence_service.go +++ b/internal/api/mocks/silence_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - silence "github.com/odpf/siren/core/silence" + silence "github.com/raystack/siren/core/silence" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/mocks/subscription_service.go b/internal/api/mocks/subscription_service.go index 71c25c8d..026f02f6 100644 --- a/internal/api/mocks/subscription_service.go +++ b/internal/api/mocks/subscription_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - subscription "github.com/odpf/siren/core/subscription" + subscription "github.com/raystack/siren/core/subscription" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/mocks/template_service.go b/internal/api/mocks/template_service.go index 0a1d3a1d..d59f0243 100644 --- a/internal/api/mocks/template_service.go +++ b/internal/api/mocks/template_service.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - template "github.com/odpf/siren/core/template" + template "github.com/raystack/siren/core/template" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/api/v1beta1/alert.go b/internal/api/v1beta1/alert.go index d08e0dd3..ccfdb3de 100644 --- a/internal/api/v1beta1/alert.go +++ b/internal/api/v1beta1/alert.go @@ -4,9 +4,9 @@ import ( "context" "time" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/notification" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/notification" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/alert_test.go b/internal/api/v1beta1/alert_test.go index 1ef929af..2e00c425 100644 --- a/internal/api/v1beta1/alert_test.go +++ b/internal/api/v1beta1/alert_test.go @@ -5,14 +5,14 @@ import ( "testing" "time" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/api/v1beta1/namespace.go b/internal/api/v1beta1/namespace.go index f7516703..4f63a021 100644 --- a/internal/api/v1beta1/namespace.go +++ b/internal/api/v1beta1/namespace.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/provider" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/provider" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/namespace_test.go b/internal/api/v1beta1/namespace_test.go index 00dbb293..f4be80bd 100644 --- a/internal/api/v1beta1/namespace_test.go +++ b/internal/api/v1beta1/namespace_test.go @@ -5,14 +5,14 @@ import ( "testing" "time" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/api/v1beta1/notification.go b/internal/api/v1beta1/notification.go index 1abef106..8a5a0505 100644 --- a/internal/api/v1beta1/notification.go +++ b/internal/api/v1beta1/notification.go @@ -3,10 +3,10 @@ package v1beta1 import ( "context" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" ) const notificationAPIScope = "notification_api" diff --git a/internal/api/v1beta1/notification_test.go b/internal/api/v1beta1/notification_test.go index 452faab9..73ad0416 100644 --- a/internal/api/v1beta1/notification_test.go +++ b/internal/api/v1beta1/notification_test.go @@ -4,12 +4,12 @@ import ( "context" "testing" - "github.com/odpf/salt/log" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/mock" "google.golang.org/grpc/metadata" ) diff --git a/internal/api/v1beta1/provider.go b/internal/api/v1beta1/provider.go index 0a71e0ea..47a3c938 100644 --- a/internal/api/v1beta1/provider.go +++ b/internal/api/v1beta1/provider.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/odpf/siren/core/provider" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/provider" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/provider_test.go b/internal/api/v1beta1/provider_test.go index 6f9c7959..7f535f04 100644 --- a/internal/api/v1beta1/provider_test.go +++ b/internal/api/v1beta1/provider_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/api/v1beta1/receiver.go b/internal/api/v1beta1/receiver.go index ce84ec97..a23b3c3f 100644 --- a/internal/api/v1beta1/receiver.go +++ b/internal/api/v1beta1/receiver.go @@ -8,10 +8,10 @@ import ( "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/secret" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/secret" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" ) func (s *GRPCServer) ListReceivers(ctx context.Context, _ *sirenv1beta1.ListReceiversRequest) (*sirenv1beta1.ListReceiversResponse, error) { diff --git a/internal/api/v1beta1/receiver_test.go b/internal/api/v1beta1/receiver_test.go index 02ef8a39..42b96422 100644 --- a/internal/api/v1beta1/receiver_test.go +++ b/internal/api/v1beta1/receiver_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/api/v1beta1/rule.go b/internal/api/v1beta1/rule.go index 2c83352b..c7eacf09 100644 --- a/internal/api/v1beta1/rule.go +++ b/internal/api/v1beta1/rule.go @@ -3,8 +3,8 @@ package v1beta1 import ( "context" - "github.com/odpf/siren/core/rule" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/rule" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/rule_test.go b/internal/api/v1beta1/rule_test.go index 812a9f64..cfca7d60 100644 --- a/internal/api/v1beta1/rule_test.go +++ b/internal/api/v1beta1/rule_test.go @@ -5,14 +5,14 @@ import ( "testing" "time" - "github.com/odpf/salt/log" - "github.com/odpf/siren/pkg/errors" - - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/pkg/errors" + + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/v1beta1/silence.go b/internal/api/v1beta1/silence.go index 2b426f4d..2470ea4c 100644 --- a/internal/api/v1beta1/silence.go +++ b/internal/api/v1beta1/silence.go @@ -3,8 +3,8 @@ package v1beta1 import ( "context" - "github.com/odpf/siren/core/silence" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/silence" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/silence_test.go b/internal/api/v1beta1/silence_test.go index 3503bf9e..e6f19477 100644 --- a/internal/api/v1beta1/silence_test.go +++ b/internal/api/v1beta1/silence_test.go @@ -7,13 +7,13 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/mock" "google.golang.org/protobuf/testing/protocmp" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/api/v1beta1/subscription.go b/internal/api/v1beta1/subscription.go index 0ca6eab5..934bea65 100644 --- a/internal/api/v1beta1/subscription.go +++ b/internal/api/v1beta1/subscription.go @@ -3,8 +3,8 @@ package v1beta1 import ( "context" - "github.com/odpf/siren/core/subscription" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/subscription" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/subscription_test.go b/internal/api/v1beta1/subscription_test.go index 367e011e..78cc8c81 100644 --- a/internal/api/v1beta1/subscription_test.go +++ b/internal/api/v1beta1/subscription_test.go @@ -6,13 +6,13 @@ import ( "testing" "time" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/api/v1beta1/template.go b/internal/api/v1beta1/template.go index 8e9f7037..10455f9e 100644 --- a/internal/api/v1beta1/template.go +++ b/internal/api/v1beta1/template.go @@ -3,8 +3,8 @@ package v1beta1 import ( "context" - "github.com/odpf/siren/core/template" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/core/template" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/internal/api/v1beta1/template_test.go b/internal/api/v1beta1/template_test.go index 4cf0ecff..86860cdf 100644 --- a/internal/api/v1beta1/template_test.go +++ b/internal/api/v1beta1/template_test.go @@ -4,13 +4,13 @@ import ( "context" "testing" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/mocks" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/mocks" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/internal/api/v1beta1/v1beta1.go b/internal/api/v1beta1/v1beta1.go index 3df04096..b0eb8b69 100644 --- a/internal/api/v1beta1/v1beta1.go +++ b/internal/api/v1beta1/v1beta1.go @@ -2,13 +2,13 @@ package v1beta1 import ( "github.com/newrelic/go-agent/v3/newrelic" - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/pkg/errors" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/pkg/errors" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" ) type GRPCServer struct { diff --git a/internal/jobs/handler.go b/internal/jobs/handler.go index f041b4a6..55db6de2 100644 --- a/internal/jobs/handler.go +++ b/internal/jobs/handler.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" ) //go:generate mockery --name=NotificationService -r --case underscore --with-expecter --structname NotificationService --filename notification_service.go --output=./mocks diff --git a/internal/server/server.go b/internal/server/server.go index 56d7a3d5..8798c3f3 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -2,6 +2,7 @@ package server import ( "context" + "errors" "fmt" "net/http" "time" @@ -15,13 +16,13 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/newrelic/go-agent/v3/integrations/nrgrpc" "github.com/newrelic/go-agent/v3/newrelic" - "github.com/odpf/salt/log" - "github.com/odpf/salt/mux" - "github.com/odpf/siren/internal/api" - "github.com/odpf/siren/internal/api/v1beta1" - "github.com/odpf/siren/pkg/zaputil" - swagger "github.com/odpf/siren/proto" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/salt/mux" + "github.com/raystack/siren/internal/api" + "github.com/raystack/siren/internal/api/v1beta1" + "github.com/raystack/siren/pkg/zaputil" + swagger "github.com/raystack/siren/proto" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "go.opencensus.io/plugin/ocgrpc" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" @@ -32,9 +33,16 @@ import ( const defaultGracePeriod = 5 * time.Second +type GRPCConfig struct { + Port int `mapstructure:"port" default:"8081"` + MaxRecvMsgSize int `mapstructure:"max_recv_msg_size" default:"33554432"` + MaxSendMsgSize int `mapstructure:"max_send_msg_size" default:"33554432"` +} + type Config struct { Host string `mapstructure:"host" yaml:"host" default:"localhost"` Port int `mapstructure:"port" yaml:"port" default:"8080"` + GRPC GRPCConfig `mapstructure:"grpc"` EncryptionKey string `mapstructure:"encryption_key" yaml:"encryption_key" default:"_ENCRYPTIONKEY_OF_32_CHARACTERS_"` APIHeaders api.HeadersConfig `mapstructure:"api_headers" yaml:"api_headers"` } @@ -143,9 +151,19 @@ func RunServer( logger.Info("server is running", "host", c.Host, "port", c.Port) - return mux.Serve(runtimeCtx, c.addr(), - mux.WithHTTP(baseMux), - mux.WithGRPC(grpcServer), + if err := mux.Serve(runtimeCtx, + mux.WithHTTPTarget(fmt.Sprintf(":%d", c.Port), &http.Server{ + Handler: baseMux, + ReadTimeout: 120 * time.Second, + WriteTimeout: 120 * time.Second, + MaxHeaderBytes: 1 << 20, + }), + mux.WithGRPCTarget(fmt.Sprintf(":%d", c.GRPC.Port), grpcServer), mux.WithGracePeriod(defaultGracePeriod), - ) + ); !errors.Is(err, context.Canceled) { + logger.Error("mux serve error", "err", err) + } + + logger.Info("server stopped") + return nil } diff --git a/internal/store/model/alerts.go b/internal/store/model/alerts.go index c65cb465..2588b446 100644 --- a/internal/store/model/alerts.go +++ b/internal/store/model/alerts.go @@ -4,7 +4,7 @@ import ( "database/sql" "time" - "github.com/odpf/siren/core/alert" + "github.com/raystack/siren/core/alert" ) type Alert struct { diff --git a/internal/store/model/idempotency.go b/internal/store/model/idempotency.go index a683b30d..f89ab9fe 100644 --- a/internal/store/model/idempotency.go +++ b/internal/store/model/idempotency.go @@ -3,7 +3,7 @@ package model import ( "time" - "github.com/odpf/siren/core/notification" + "github.com/raystack/siren/core/notification" ) type Idempotency struct { diff --git a/internal/store/model/log.go b/internal/store/model/log.go index 9ecad2cc..3ce3ea14 100644 --- a/internal/store/model/log.go +++ b/internal/store/model/log.go @@ -5,7 +5,7 @@ import ( "time" "github.com/lib/pq" - "github.com/odpf/siren/core/log" + "github.com/raystack/siren/core/log" ) type NotificationLog struct { diff --git a/internal/store/model/namespace.go b/internal/store/model/namespace.go index 010315e1..22c451f6 100644 --- a/internal/store/model/namespace.go +++ b/internal/store/model/namespace.go @@ -3,9 +3,9 @@ package model import ( "time" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/pkg/pgc" ) type Namespace struct { diff --git a/internal/store/model/notification.go b/internal/store/model/notification.go index 23869076..cf52819a 100644 --- a/internal/store/model/notification.go +++ b/internal/store/model/notification.go @@ -4,8 +4,8 @@ import ( "database/sql" "time" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/pgc" ) type Notification struct { diff --git a/internal/store/model/provider.go b/internal/store/model/provider.go index d5148290..7f125696 100644 --- a/internal/store/model/provider.go +++ b/internal/store/model/provider.go @@ -3,8 +3,8 @@ package model import ( "time" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/pkg/pgc" ) type Provider struct { diff --git a/internal/store/model/receiver.go b/internal/store/model/receiver.go index 3d855765..27a5aebc 100644 --- a/internal/store/model/receiver.go +++ b/internal/store/model/receiver.go @@ -3,8 +3,8 @@ package model import ( "time" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/pkg/pgc" ) type Receiver struct { diff --git a/internal/store/model/rule.go b/internal/store/model/rule.go index 62c061c8..0f2b45a4 100644 --- a/internal/store/model/rule.go +++ b/internal/store/model/rule.go @@ -4,8 +4,8 @@ import ( "encoding/json" "time" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/pkg/errors" ) type Rule struct { diff --git a/internal/store/model/silence.go b/internal/store/model/silence.go index 50e48c53..6ecfcd19 100644 --- a/internal/store/model/silence.go +++ b/internal/store/model/silence.go @@ -4,8 +4,8 @@ import ( "database/sql" "time" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/pkg/pgc" ) type Silence struct { diff --git a/internal/store/model/subscription.go b/internal/store/model/subscription.go index 4f04c8c8..50aa343f 100644 --- a/internal/store/model/subscription.go +++ b/internal/store/model/subscription.go @@ -5,8 +5,8 @@ import ( "encoding/json" "time" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/pkg/pgc" ) type SubscriptionReceiver struct { diff --git a/internal/store/model/template.go b/internal/store/model/template.go index 28cb175a..0da2a2b3 100644 --- a/internal/store/model/template.go +++ b/internal/store/model/template.go @@ -6,7 +6,7 @@ import ( "time" "github.com/lib/pq" - "github.com/odpf/siren/core/template" + "github.com/raystack/siren/core/template" ) type Template struct { diff --git a/internal/store/postgres/alerts.go b/internal/store/postgres/alerts.go index 3d2d8421..011eded8 100644 --- a/internal/store/postgres/alerts.go +++ b/internal/store/postgres/alerts.go @@ -6,10 +6,10 @@ import ( sq "github.com/Masterminds/squirrel" "github.com/lib/pq" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const alertInsertQuery = ` diff --git a/internal/store/postgres/alerts_test.go b/internal/store/postgres/alerts_test.go index 97022bae..6b7d4ee9 100644 --- a/internal/store/postgres/alerts_test.go +++ b/internal/store/postgres/alerts_test.go @@ -7,13 +7,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -104,7 +104,7 @@ func (s *AlertsRepositoryTestSuite) TestList() { { Description: "should get all filtered alerts with correct filter", Filter: alert.Filter{ - ResourceName: "odpf-kafka-1", + ResourceName: "raystack-kafka-1", ProviderID: 1, StartTime: int64(time.Date(2021, time.January, 0, 0, 0, 0, 0, time.UTC).Unix()), EndTime: int64(time.Date(2022, time.January, 0, 0, 0, 0, 0, time.UTC).Unix()), @@ -113,7 +113,7 @@ func (s *AlertsRepositoryTestSuite) TestList() { { ID: 1, ProviderID: 1, - ResourceName: "odpf-kafka-1", + ResourceName: "raystack-kafka-1", MetricName: "cpu_usage_user", MetricValue: "97.30", Severity: "CRITICAL", @@ -122,7 +122,7 @@ func (s *AlertsRepositoryTestSuite) TestList() { { ID: 3, ProviderID: 1, - ResourceName: "odpf-kafka-1", + ResourceName: "raystack-kafka-1", MetricName: "cpu_usage_user", MetricValue: "98.30", Severity: "CRITICAL", @@ -133,7 +133,7 @@ func (s *AlertsRepositoryTestSuite) TestList() { { Description: "should get empty alerts if out of range", Filter: alert.Filter{ - ResourceName: "odpf-kafka-1", + ResourceName: "raystack-kafka-1", ProviderID: 1, StartTime: int64(time.Date(1980, time.January, 0, 0, 0, 0, 0, time.UTC).Unix()), EndTime: int64(time.Date(1999, time.January, 0, 0, 0, 0, 0, time.UTC).Unix()), @@ -170,7 +170,7 @@ func (s *AlertsRepositoryTestSuite) TestCreate() { Description: "should create an alert", AlertToCreate: alert.Alert{ ProviderID: 1, - ResourceName: "odpf-kafka-stream", + ResourceName: "raystack-kafka-stream", MetricName: "cpu_usage_user", MetricValue: "88.88", Severity: "CRITICAL", @@ -182,7 +182,7 @@ func (s *AlertsRepositoryTestSuite) TestCreate() { Description: "should return error foreign key if provider id does not exist", AlertToCreate: alert.Alert{ ProviderID: 1000, - ResourceName: "odpf-kafka-stream", + ResourceName: "raystack-kafka-stream", MetricName: "cpu_usage_user", MetricValue: "88.88", Severity: "CRITICAL", @@ -220,7 +220,7 @@ func (s *AlertsRepositoryTestSuite) TestBulkUpdateSilence() { { ID: 2, ProviderID: 1, - ResourceName: "odpf-kafka-2", + ResourceName: "raystack-kafka-2", MetricName: "cpu_usage_user", MetricValue: "97.95", Severity: "WARNING", @@ -230,7 +230,7 @@ func (s *AlertsRepositoryTestSuite) TestBulkUpdateSilence() { { ID: 3, ProviderID: 1, - ResourceName: "odpf-kafka-1", + ResourceName: "raystack-kafka-1", MetricName: "cpu_usage_user", MetricValue: "98.30", Severity: "CRITICAL", diff --git a/internal/store/postgres/bootstrap_test.go b/internal/store/postgres/bootstrap_test.go index 5661f8d4..92150da6 100644 --- a/internal/store/postgres/bootstrap_test.go +++ b/internal/store/postgres/bootstrap_test.go @@ -6,21 +6,21 @@ import ( "fmt" "os" - "github.com/odpf/salt/db" - saltlog "github.com/odpf/salt/log" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + saltlog "github.com/raystack/salt/log" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" ) const ( diff --git a/internal/store/postgres/idempotency.go b/internal/store/postgres/idempotency.go index 81826df1..20085730 100644 --- a/internal/store/postgres/idempotency.go +++ b/internal/store/postgres/idempotency.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const idempotencyInsertQuery = ` diff --git a/internal/store/postgres/idempotency_test.go b/internal/store/postgres/idempotency_test.go index 0a559a9c..5fc28113 100644 --- a/internal/store/postgres/idempotency_test.go +++ b/internal/store/postgres/idempotency_test.go @@ -7,16 +7,16 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" "github.com/stretchr/testify/suite" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) type IdempotencyRepositoryTestSuite struct { diff --git a/internal/store/postgres/log.go b/internal/store/postgres/log.go index 269311bf..8f223034 100644 --- a/internal/store/postgres/log.go +++ b/internal/store/postgres/log.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const notificationLogTableName = "notification_log" diff --git a/internal/store/postgres/log_test.go b/internal/store/postgres/log_test.go index 72e0a1ca..7f87ac5c 100644 --- a/internal/store/postgres/log_test.go +++ b/internal/store/postgres/log_test.go @@ -6,18 +6,18 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - saltlog "github.com/odpf/salt/log" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + saltlog "github.com/raystack/salt/log" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) diff --git a/internal/store/postgres/namespace.go b/internal/store/postgres/namespace.go index 1716f74b..523d1d64 100644 --- a/internal/store/postgres/namespace.go +++ b/internal/store/postgres/namespace.go @@ -7,10 +7,10 @@ import ( sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const namespaceInsertQuery = ` diff --git a/internal/store/postgres/namespace_test.go b/internal/store/postgres/namespace_test.go index aac920ec..00dd4842 100644 --- a/internal/store/postgres/namespace_test.go +++ b/internal/store/postgres/namespace_test.go @@ -6,14 +6,14 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/namespace" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/namespace" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -105,38 +105,38 @@ func (s *NamespaceRepositoryTestSuite) TestList() { { Namespace: &namespace.Namespace{ ID: 1, - Name: "odpf", - URN: "odpf", + Name: "raystack", + URN: "raystack", Provider: provider.Provider{ ID: 1, - Host: "http://cortex-ingress.odpf.io", - URN: "odpf-cortex", - Name: "odpf-cortex", + Host: "http://cortex-ingress.raystack.io", + URN: "raystack-cortex", + Name: "raystack-cortex", Type: "cortex", Credentials: map[string]interface{}{}, Labels: map[string]string{}, }, Labels: map[string]string{}, }, - CredentialString: "map[secret_key:odpf-secret-key-1]", + CredentialString: "map[secret_key:raystack-secret-key-1]", }, { Namespace: &namespace.Namespace{ ID: 2, - Name: "odpf", - URN: "odpf", + Name: "raystack", + URN: "raystack", Provider: provider.Provider{ ID: 2, - Host: "http://prometheus-ingress.odpf.io", - URN: "odpf-prometheus", - Name: "odpf-prometheus", + Host: "http://prometheus-ingress.raystack.io", + URN: "raystack-prometheus", + Name: "raystack-prometheus", Type: "prometheus", Credentials: map[string]interface{}{}, Labels: map[string]string{}, }, Labels: map[string]string{}, }, - CredentialString: "map[secret_key:odpf-secret-key-2]", + CredentialString: "map[secret_key:raystack-secret-key-2]", }, { Namespace: &namespace.Namespace{ @@ -145,9 +145,9 @@ func (s *NamespaceRepositoryTestSuite) TestList() { URN: "instance-1", Provider: provider.Provider{ ID: 2, - Host: "http://prometheus-ingress.odpf.io", - URN: "odpf-prometheus", - Name: "odpf-prometheus", + Host: "http://prometheus-ingress.raystack.io", + URN: "raystack-prometheus", + Name: "raystack-prometheus", Type: "prometheus", Credentials: map[string]interface{}{}, Labels: map[string]string{}, @@ -196,9 +196,9 @@ func (s *NamespaceRepositoryTestSuite) TestGet() { URN: "instance-1", Provider: provider.Provider{ ID: 2, - Host: "http://prometheus-ingress.odpf.io", - URN: "odpf-prometheus", - Name: "odpf-prometheus", + Host: "http://prometheus-ingress.raystack.io", + URN: "raystack-prometheus", + Name: "raystack-prometheus", Type: "prometheus", Credentials: map[string]interface{}{}, Labels: map[string]string{}, @@ -257,8 +257,8 @@ func (s *NamespaceRepositoryTestSuite) TestCreate() { Description: "should return error foreign key if provider id does not exist", NamespaceToCreate: &namespace.EncryptedNamespace{ Namespace: &namespace.Namespace{ - Name: "odpf-new", - URN: "odpf", + Name: "raystack-new", + URN: "raystack", Provider: provider.Provider{ ID: 1000, }, @@ -271,8 +271,8 @@ func (s *NamespaceRepositoryTestSuite) TestCreate() { Description: "should return error duplicate if URN and provider already exist", NamespaceToCreate: &namespace.EncryptedNamespace{ Namespace: &namespace.Namespace{ - Name: "odpf-new", - URN: "odpf", + Name: "raystack-new", + URN: "raystack", Provider: provider.Provider{ ID: 2, }, @@ -328,8 +328,8 @@ func (s *NamespaceRepositoryTestSuite) TestUpdate() { NamespaceToUpdate: &namespace.EncryptedNamespace{ Namespace: &namespace.Namespace{ ID: 3, - Name: "new-odpf", - URN: "odpf", + Name: "new-raystack", + URN: "raystack", Provider: provider.Provider{ ID: 2, }, @@ -343,8 +343,8 @@ func (s *NamespaceRepositoryTestSuite) TestUpdate() { NamespaceToUpdate: &namespace.EncryptedNamespace{ Namespace: &namespace.Namespace{ ID: 1000, - Name: "new-odpf", - URN: "odpf", + Name: "new-raystack", + URN: "raystack", Provider: provider.Provider{ ID: 2, }, @@ -358,8 +358,8 @@ func (s *NamespaceRepositoryTestSuite) TestUpdate() { NamespaceToUpdate: &namespace.EncryptedNamespace{ Namespace: &namespace.Namespace{ ID: 1, - Name: "odpf-new", - URN: "odpf", + Name: "raystack-new", + URN: "raystack", Provider: provider.Provider{ ID: 1000, }, @@ -373,8 +373,8 @@ func (s *NamespaceRepositoryTestSuite) TestUpdate() { NamespaceToUpdate: &namespace.EncryptedNamespace{ Namespace: &namespace.Namespace{ ID: 1, - Name: "odpf-new", - URN: "odpf", + Name: "raystack-new", + URN: "raystack", Provider: provider.Provider{ ID: 2, }, diff --git a/internal/store/postgres/notification.go b/internal/store/postgres/notification.go index 145a9ba1..8ae03e63 100644 --- a/internal/store/postgres/notification.go +++ b/internal/store/postgres/notification.go @@ -3,9 +3,9 @@ package postgres import ( "context" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/pgc" ) const notificationInsertQuery = ` diff --git a/internal/store/postgres/notification_test.go b/internal/store/postgres/notification_test.go index 1e3db292..726091c9 100644 --- a/internal/store/postgres/notification_test.go +++ b/internal/store/postgres/notification_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) diff --git a/internal/store/postgres/postgres.go b/internal/store/postgres/postgres.go index 42594c45..58fb4d72 100644 --- a/internal/store/postgres/postgres.go +++ b/internal/store/postgres/postgres.go @@ -1,8 +1,8 @@ package postgres import ( - "github.com/odpf/salt/db" - "github.com/odpf/siren/internal/store/postgres/migrations" + "github.com/raystack/salt/db" + "github.com/raystack/siren/internal/store/postgres/migrations" ) func Migrate(cfg db.Config) error { diff --git a/internal/store/postgres/provider.go b/internal/store/postgres/provider.go index 8bbcfb0c..df9d5d77 100644 --- a/internal/store/postgres/provider.go +++ b/internal/store/postgres/provider.go @@ -5,10 +5,10 @@ import ( "database/sql" sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const providerInsertQuery = ` diff --git a/internal/store/postgres/provider_test.go b/internal/store/postgres/provider_test.go index 13838c7f..0676feec 100644 --- a/internal/store/postgres/provider_test.go +++ b/internal/store/postgres/provider_test.go @@ -6,13 +6,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -100,18 +100,18 @@ func (s *ProviderRepositoryTestSuite) TestList() { ExpectedProviders: []provider.Provider{ { ID: 1, - Host: "http://cortex-ingress.odpf.io", - URN: "odpf-cortex", - Name: "odpf-cortex", + Host: "http://cortex-ingress.raystack.io", + URN: "raystack-cortex", + Name: "raystack-cortex", Type: "cortex", Credentials: map[string]interface{}{}, Labels: map[string]string{}, }, { ID: 2, - Host: "http://prometheus-ingress.odpf.io", - URN: "odpf-prometheus", - Name: "odpf-prometheus", + Host: "http://prometheus-ingress.raystack.io", + URN: "raystack-prometheus", + Name: "raystack-prometheus", Type: "prometheus", Credentials: map[string]interface{}{}, Labels: map[string]string{}, @@ -121,14 +121,14 @@ func (s *ProviderRepositoryTestSuite) TestList() { { Description: "should filter by urn", Filter: provider.Filter{ - URN: "odpf-prometheus", + URN: "raystack-prometheus", }, ExpectedProviders: []provider.Provider{ { ID: 2, - Host: "http://prometheus-ingress.odpf.io", - URN: "odpf-prometheus", - Name: "odpf-prometheus", + Host: "http://prometheus-ingress.raystack.io", + URN: "raystack-prometheus", + Name: "raystack-prometheus", Type: "prometheus", Credentials: map[string]interface{}{}, Labels: map[string]string{}, @@ -143,9 +143,9 @@ func (s *ProviderRepositoryTestSuite) TestList() { ExpectedProviders: []provider.Provider{ { ID: 1, - Host: "http://cortex-ingress.odpf.io", - URN: "odpf-cortex", - Name: "odpf-cortex", + Host: "http://cortex-ingress.raystack.io", + URN: "raystack-cortex", + Name: "raystack-cortex", Type: "cortex", Credentials: map[string]interface{}{}, Labels: map[string]string{}, @@ -183,9 +183,9 @@ func (s *ProviderRepositoryTestSuite) TestGet() { PassedID: uint64(2), ExpectedProvider: &provider.Provider{ ID: 2, - Host: "http://prometheus-ingress.odpf.io", - URN: "odpf-prometheus", - Name: "odpf-prometheus", + Host: "http://prometheus-ingress.raystack.io", + URN: "raystack-prometheus", + Name: "raystack-prometheus", Type: "prometheus", Credentials: map[string]interface{}{}, Labels: map[string]string{}, @@ -225,9 +225,9 @@ func (s *ProviderRepositoryTestSuite) TestCreate() { { Description: "should create a provider", ProviderToCreate: &provider.Provider{ - Host: "http://new-provider-ingress.odpf.io", - URN: "odpf-new-provider", - Name: "odpf-new-provider", + Host: "http://new-provider-ingress.raystack.io", + URN: "raystack-new-provider", + Name: "raystack-new-provider", Type: "new-provider", }, ExpectedID: uint64(3), // autoincrement in db side @@ -236,8 +236,8 @@ func (s *ProviderRepositoryTestSuite) TestCreate() { Description: "should return error duplicate if URN already exist", ProviderToCreate: &provider.Provider{ Host: "http://newhostcortex", - URN: "odpf-cortex", - Name: "odpf-cortex-new", + URN: "raystack-cortex", + Name: "raystack-cortex-new", Type: "cortex", }, ErrString: "urn already exist", @@ -273,9 +273,9 @@ func (s *ProviderRepositoryTestSuite) TestUpdate() { Description: "should update existing provider", ProviderToUpdate: &provider.Provider{ ID: 1, - Host: "http://new-provider-ingress.odpf.io", - URN: "odpf-new-provider", - Name: "odpf-new-provider", + Host: "http://new-provider-ingress.raystack.io", + URN: "raystack-new-provider", + Name: "raystack-new-provider", Type: "new-provider", }, ExpectedID: uint64(1), @@ -285,8 +285,8 @@ func (s *ProviderRepositoryTestSuite) TestUpdate() { ProviderToUpdate: &provider.Provider{ ID: 2, Host: "http://prometheus", - URN: "odpf-new-provider", - Name: "odpf-prometheus", + URN: "raystack-new-provider", + Name: "raystack-prometheus", Type: "prometheus", }, ErrString: "urn already exist", @@ -296,8 +296,8 @@ func (s *ProviderRepositoryTestSuite) TestUpdate() { ProviderToUpdate: &provider.Provider{ ID: 1000, Host: "http://prometheus", - URN: "odpf-new-provider", - Name: "odpf-prometheus", + URN: "raystack-new-provider", + Name: "raystack-prometheus", Type: "prometheus", }, ErrString: "provider with id 1000 not found", diff --git a/internal/store/postgres/receiver.go b/internal/store/postgres/receiver.go index 2172e1c3..99b35826 100644 --- a/internal/store/postgres/receiver.go +++ b/internal/store/postgres/receiver.go @@ -5,11 +5,11 @@ import ( "database/sql" sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const receiverInsertQuery = ` diff --git a/internal/store/postgres/receiver_test.go b/internal/store/postgres/receiver_test.go index 03d58f19..5e7c543a 100644 --- a/internal/store/postgres/receiver_test.go +++ b/internal/store/postgres/receiver_test.go @@ -6,13 +6,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -99,10 +99,10 @@ func (s *ReceiverRepositoryTestSuite) TestList() { ExpectedReceivers: []receiver.Receiver{ { ID: 1, - Name: "odpf-slack", + Name: "raystack-slack", Type: "slack", Labels: map[string]string{ - "entity": "odpf,org-a,org-b", + "entity": "raystack,org-a,org-b", }, Configurations: map[string]interface{}{ "token": "xxxxxxxxxx", @@ -114,19 +114,19 @@ func (s *ReceiverRepositoryTestSuite) TestList() { Name: "alert-history", Type: "http", Labels: map[string]string{ - "entity": "odpf,org-a,org-b,org-c", + "entity": "raystack,org-a,org-b,org-c", }, Configurations: map[string]interface{}{ - "url": "http://siren.odpf.io/v1beta1/alerts/cortex/1", + "url": "http://siren.raystack.io/v1beta1/alerts/cortex/1", }, }, { ID: 3, - Name: "odpf_pagerduty", + Name: "raystack_pagerduty", Type: "pagerduty", Labels: map[string]string{ - "entity": "odpf", - "team": "siren-odpf", + "entity": "raystack", + "team": "siren-raystack", }, Configurations: map[string]interface{}{ "service_key": "1212121212121212121212121", @@ -145,19 +145,19 @@ func (s *ReceiverRepositoryTestSuite) TestList() { Name: "alert-history", Type: "http", Labels: map[string]string{ - "entity": "odpf,org-a,org-b,org-c", + "entity": "raystack,org-a,org-b,org-c", }, Configurations: map[string]interface{}{ - "url": "http://siren.odpf.io/v1beta1/alerts/cortex/1", + "url": "http://siren.raystack.io/v1beta1/alerts/cortex/1", }, }, { ID: 3, - Name: "odpf_pagerduty", + Name: "raystack_pagerduty", Type: "pagerduty", Labels: map[string]string{ - "entity": "odpf", - "team": "siren-odpf", + "entity": "raystack", + "team": "siren-raystack", }, Configurations: map[string]interface{}{ "service_key": "1212121212121212121212121", @@ -196,11 +196,11 @@ func (s *ReceiverRepositoryTestSuite) TestGet() { PassedID: 3, ExpectedReceiver: &receiver.Receiver{ ID: 3, - Name: "odpf_pagerduty", + Name: "raystack_pagerduty", Type: "pagerduty", Labels: map[string]string{ - "entity": "odpf", - "team": "siren-odpf", + "entity": "raystack", + "team": "siren-raystack", }, Configurations: map[string]interface{}{ "service_key": "1212121212121212121212121", @@ -287,10 +287,10 @@ func (s *ReceiverRepositoryTestSuite) TestUpdate() { Name: "alert-history-updated", Type: "http", Labels: map[string]string{ - "entity": "odpf", + "entity": "raystack", }, Configurations: map[string]interface{}{ - "url": "http://siren.odpf.io/v2/alerts/cortex", + "url": "http://siren.raystack.io/v2/alerts/cortex", }, }, ExpectedID: uint64(2), diff --git a/internal/store/postgres/rule.go b/internal/store/postgres/rule.go index 33aa94ad..a0fffe57 100644 --- a/internal/store/postgres/rule.go +++ b/internal/store/postgres/rule.go @@ -5,10 +5,10 @@ import ( "fmt" sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const ruleUpsertQuery = ` diff --git a/internal/store/postgres/rule_test.go b/internal/store/postgres/rule_test.go index 5fef9e55..4528eab8 100644 --- a/internal/store/postgres/rule_test.go +++ b/internal/store/postgres/rule_test.go @@ -6,13 +6,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -127,7 +127,7 @@ func (s *RuleRepositoryTestSuite) TestList() { }, { Name: "team", - Value: "odpf-app", + Value: "raystack-app", }, { Name: "name", @@ -135,7 +135,7 @@ func (s *RuleRepositoryTestSuite) TestList() { }, { Name: "entity", - Value: "odpf", + Value: "raystack", }, }, ProviderNamespace: 1, @@ -158,7 +158,7 @@ func (s *RuleRepositoryTestSuite) TestList() { }, { Name: "team", - Value: "odpf-web", + Value: "raystack-web", }, { Name: "name", @@ -195,7 +195,7 @@ func (s *RuleRepositoryTestSuite) TestList() { }, { Name: "team", - Value: "odpf-web", + Value: "raystack-web", }, { Name: "name", diff --git a/internal/store/postgres/silence.go b/internal/store/postgres/silence.go index 735bb48f..2aeb91b8 100644 --- a/internal/store/postgres/silence.go +++ b/internal/store/postgres/silence.go @@ -6,10 +6,10 @@ import ( "fmt" sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const silenceInsertQuery = ` diff --git a/internal/store/postgres/silence_test.go b/internal/store/postgres/silence_test.go index f61b37aa..419352ba 100644 --- a/internal/store/postgres/silence_test.go +++ b/internal/store/postgres/silence_test.go @@ -6,13 +6,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) diff --git a/internal/store/postgres/subscription.go b/internal/store/postgres/subscription.go index 3af9bb06..c3dbcef8 100644 --- a/internal/store/postgres/subscription.go +++ b/internal/store/postgres/subscription.go @@ -8,10 +8,10 @@ import ( sq "github.com/Masterminds/squirrel" "github.com/lib/pq" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const subscriptionInsertQuery = ` diff --git a/internal/store/postgres/subscription_test.go b/internal/store/postgres/subscription_test.go index 4ae4da8f..7fbe83d7 100644 --- a/internal/store/postgres/subscription_test.go +++ b/internal/store/postgres/subscription_test.go @@ -6,13 +6,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/subscription" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/subscription" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -116,7 +116,7 @@ func (s *SubscriptionRepositoryTestSuite) TestList() { ExpectedSubscriptions: []subscription.Subscription{ { ID: 1, - URN: "alert-history-odpf", + URN: "alert-history-raystack", Namespace: 2, Receivers: []subscription.Receiver{ { @@ -127,37 +127,37 @@ func (s *SubscriptionRepositoryTestSuite) TestList() { }, { ID: 2, - URN: "odpf-data-warning", + URN: "raystack-data-warning", Namespace: 1, Receivers: []subscription.Receiver{ { ID: 1, Configuration: map[string]interface{}{ - "channel_name": "odpf-data", + "channel_name": "raystack-data", }, }, }, Match: map[string]string{ "environment": "integration", - "team": "odpf-data", + "team": "raystack-data", }, }, { ID: 3, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 2, Receivers: []subscription.Receiver{ { ID: 1, Configuration: map[string]interface{}{ - "channel_name": "odpf-data", + "channel_name": "raystack-data", }, }, }, Match: map[string]string{ "environment": "production", "severity": "CRITICAL", - "team": "odpf-app", + "team": "raystack-app", }, }, }, @@ -170,19 +170,19 @@ func (s *SubscriptionRepositoryTestSuite) TestList() { ExpectedSubscriptions: []subscription.Subscription{ { ID: 2, - URN: "odpf-data-warning", + URN: "raystack-data-warning", Namespace: 1, Receivers: []subscription.Receiver{ { ID: 1, Configuration: map[string]interface{}{ - "channel_name": "odpf-data", + "channel_name": "raystack-data", }, }, }, Match: map[string]string{ "environment": "integration", - "team": "odpf-data", + "team": "raystack-data", }, }, }, @@ -193,26 +193,26 @@ func (s *SubscriptionRepositoryTestSuite) TestList() { NotificationMatch: map[string]string{ "environment": "production", "severity": "CRITICAL", - "team": "odpf-app", + "team": "raystack-app", }, }, ExpectedSubscriptions: []subscription.Subscription{ { ID: 3, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 2, Receivers: []subscription.Receiver{ { ID: 1, Configuration: map[string]interface{}{ - "channel_name": "odpf-data", + "channel_name": "raystack-data", }, }, }, Match: map[string]string{ "environment": "production", "severity": "CRITICAL", - "team": "odpf-app", + "team": "raystack-app", }, }, }, @@ -341,20 +341,20 @@ func (s *SubscriptionRepositoryTestSuite) TestGet() { PassedID: uint64(3), ExpectedSubscription: &subscription.Subscription{ ID: 3, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 2, Receivers: []subscription.Receiver{ { ID: 1, Configuration: map[string]interface{}{ - "channel_name": "odpf-data", + "channel_name": "raystack-data", }, }, }, Match: map[string]string{ "environment": "production", "severity": "CRITICAL", - "team": "odpf-app", + "team": "raystack-app", }, }, }, @@ -391,7 +391,7 @@ func (s *SubscriptionRepositoryTestSuite) TestUpdate() { Description: "should update a subscription", SubscriptionToUpsert: &subscription.Subscription{ ID: 3, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 2, Receivers: []subscription.Receiver{ { @@ -408,7 +408,7 @@ func (s *SubscriptionRepositoryTestSuite) TestUpdate() { Description: "should return duplicate error if urn already exist", SubscriptionToUpsert: &subscription.Subscription{ ID: 1, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 2, Receivers: []subscription.Receiver{ { @@ -425,7 +425,7 @@ func (s *SubscriptionRepositoryTestSuite) TestUpdate() { Description: "should return relation error if namespace id does not exist", SubscriptionToUpsert: &subscription.Subscription{ ID: 3, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 1000, Receivers: []subscription.Receiver{ { @@ -442,7 +442,7 @@ func (s *SubscriptionRepositoryTestSuite) TestUpdate() { Description: "should return not found error if id not found", SubscriptionToUpsert: &subscription.Subscription{ ID: 3000, - URN: "odpf-pd", + URN: "raystack-pd", Namespace: 1, Receivers: []subscription.Receiver{ { diff --git a/internal/store/postgres/template.go b/internal/store/postgres/template.go index 0fabca80..ab1a95fe 100644 --- a/internal/store/postgres/template.go +++ b/internal/store/postgres/template.go @@ -5,10 +5,10 @@ import ( "database/sql" sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/internal/store/model" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/internal/store/model" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/pgc" ) const templateUpsertQuery = ` diff --git a/internal/store/postgres/template_test.go b/internal/store/postgres/template_test.go index 6e9d4376..e73cfd64 100644 --- a/internal/store/postgres/template_test.go +++ b/internal/store/postgres/template_test.go @@ -6,13 +6,13 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/internal/store/postgres" - "github.com/odpf/siren/pkg/pgc" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/internal/store/postgres" + "github.com/raystack/siren/pkg/pgc" "github.com/stretchr/testify/suite" ) @@ -125,7 +125,7 @@ func (s *TemplateRepositoryTestSuite) TestList() { { Name: "team", Type: "string", - Default: "odpf", + Default: "raystack", Description: "For eg team name which the alert should go to", }, }, @@ -152,7 +152,7 @@ func (s *TemplateRepositoryTestSuite) TestList() { { Name: "team", Type: "string", - Default: "odpf", + Default: "raystack", Description: "For eg team name which the alert should go to", }, }, @@ -192,7 +192,7 @@ func (s *TemplateRepositoryTestSuite) TestList() { { Name: "team", Type: "string", - Default: "odpf", + Default: "raystack", Description: "For eg team name which the alert should go to", }, }, @@ -255,7 +255,7 @@ func (s *TemplateRepositoryTestSuite) TestGetByName() { { Name: "team", Type: "string", - Default: "odpf", + Default: "raystack", Description: "For eg team name which the alert should go to", }, }, diff --git a/internal/store/postgres/testdata/mock-alert.json b/internal/store/postgres/testdata/mock-alert.json index aa30a4f0..34fcd874 100644 --- a/internal/store/postgres/testdata/mock-alert.json +++ b/internal/store/postgres/testdata/mock-alert.json @@ -1,29 +1,29 @@ [ - { - "provider_id": 1, - "resource_name": "odpf-kafka-1", - "metric_name": "cpu_usage_user", - "metric_value": "97.30", - "severity": "CRITICAL", - "rule": "cpu-usage", - "triggered_at": "2021-06-20T07:36:35.136744Z" - }, - { - "provider_id": 1, - "resource_name": "odpf-kafka-2", - "metric_name": "cpu_usage_user", - "metric_value": "97.95", - "severity": "WARNING", - "rule": "cpu-usage", - "triggered_at": "2021-06-20T07:41:35.155974Z" - }, - { - "provider_id": 1, - "resource_name": "odpf-kafka-1", - "metric_name": "cpu_usage_user", - "metric_value": "98.30", - "severity": "CRITICAL", - "rule": "cpu-usage", - "triggered_at": "2021-02-20T07:36:35.136744Z" - } -] \ No newline at end of file + { + "provider_id": 1, + "resource_name": "raystack-kafka-1", + "metric_name": "cpu_usage_user", + "metric_value": "97.30", + "severity": "CRITICAL", + "rule": "cpu-usage", + "triggered_at": "2021-06-20T07:36:35.136744Z" + }, + { + "provider_id": 1, + "resource_name": "raystack-kafka-2", + "metric_name": "cpu_usage_user", + "metric_value": "97.95", + "severity": "WARNING", + "rule": "cpu-usage", + "triggered_at": "2021-06-20T07:41:35.155974Z" + }, + { + "provider_id": 1, + "resource_name": "raystack-kafka-1", + "metric_name": "cpu_usage_user", + "metric_value": "98.30", + "severity": "CRITICAL", + "rule": "cpu-usage", + "triggered_at": "2021-02-20T07:36:35.136744Z" + } +] diff --git a/internal/store/postgres/testdata/mock-namespace.json b/internal/store/postgres/testdata/mock-namespace.json index 68d67deb..81533ccf 100644 --- a/internal/store/postgres/testdata/mock-namespace.json +++ b/internal/store/postgres/testdata/mock-namespace.json @@ -1,32 +1,32 @@ [ - { - "name": "odpf", - "urn": "odpf", - "provider": { - "id": 1 - }, - "credentials": { - "secret_key": "odpf-secret-key-1" - } + { + "name": "raystack", + "urn": "raystack", + "provider": { + "id": 1 }, - { - "name": "odpf", - "urn": "odpf", - "provider": { - "id": 2 - }, - "credentials": { - "secret_key": "odpf-secret-key-2" - } + "credentials": { + "secret_key": "raystack-secret-key-1" + } + }, + { + "name": "raystack", + "urn": "raystack", + "provider": { + "id": 2 + }, + "credentials": { + "secret_key": "raystack-secret-key-2" + } + }, + { + "name": "instance-1", + "urn": "instance-1", + "provider": { + "id": 2 }, - { - "name": "instance-1", - "urn": "instance-1", - "provider": { - "id": 2 - }, - "credentials": { - "service_key": "instance-1-service-key" - } + "credentials": { + "service_key": "instance-1-service-key" } -] \ No newline at end of file + } +] diff --git a/internal/store/postgres/testdata/mock-provider.json b/internal/store/postgres/testdata/mock-provider.json index 9fb51eb5..3fc5705e 100644 --- a/internal/store/postgres/testdata/mock-provider.json +++ b/internal/store/postgres/testdata/mock-provider.json @@ -1,16 +1,16 @@ [ - { - "host": "http://cortex-ingress.odpf.io", - "urn": "odpf-cortex", - "name": "odpf-cortex", - "type": "cortex", - "credentials": {} - }, - { - "host": "http://prometheus-ingress.odpf.io", - "urn": "odpf-prometheus", - "name": "odpf-prometheus", - "type": "prometheus", - "credentials": {} - } -] \ No newline at end of file + { + "host": "http://cortex-ingress.raystack.io", + "urn": "raystack-cortex", + "name": "raystack-cortex", + "type": "cortex", + "credentials": {} + }, + { + "host": "http://prometheus-ingress.raystack.io", + "urn": "raystack-prometheus", + "name": "raystack-prometheus", + "type": "prometheus", + "credentials": {} + } +] diff --git a/internal/store/postgres/testdata/mock-receiver.json b/internal/store/postgres/testdata/mock-receiver.json index 498fbcaf..4a842f00 100644 --- a/internal/store/postgres/testdata/mock-receiver.json +++ b/internal/store/postgres/testdata/mock-receiver.json @@ -1,34 +1,34 @@ [ - { - "name": "odpf-slack", - "type": "slack", - "labels": { - "entity": "odpf,org-a,org-b" - }, - "configurations": { - "token": "xxxxxxxxxx", - "workspace": "Odpf" - } + { + "name": "raystack-slack", + "type": "slack", + "labels": { + "entity": "raystack,org-a,org-b" }, - { - "name": "alert-history", - "type": "http", - "labels": { - "entity": "odpf,org-a,org-b,org-c" - }, - "configurations": { - "url": "http://siren.odpf.io/v1beta1/alerts/cortex/1" - } + "configurations": { + "token": "xxxxxxxxxx", + "workspace": "Odpf" + } + }, + { + "name": "alert-history", + "type": "http", + "labels": { + "entity": "raystack,org-a,org-b,org-c" + }, + "configurations": { + "url": "http://siren.raystack.io/v1beta1/alerts/cortex/1" + } + }, + { + "name": "raystack_pagerduty", + "type": "pagerduty", + "labels": { + "entity": "raystack", + "team": "siren-raystack" }, - { - "name": "odpf_pagerduty", - "type": "pagerduty", - "labels": { - "entity": "odpf", - "team": "siren-odpf" - }, - "configurations": { - "service_key": "1212121212121212121212121" - } + "configurations": { + "service_key": "1212121212121212121212121" } -] \ No newline at end of file + } +] diff --git a/internal/store/postgres/testdata/mock-rule.json b/internal/store/postgres/testdata/mock-rule.json index b2b93f8c..15506d04 100644 --- a/internal/store/postgres/testdata/mock-rule.json +++ b/internal/store/postgres/testdata/mock-rule.json @@ -1,59 +1,59 @@ [ - { - "name": "prefix_provider-urn-1_namespace-urn-1_namespace-1_group-name-1_template-name-1", - "group_name": "group-name-1", - "namespace": "namespace-urn-1", - "template": "template-name-1", - "variables": [ - { - "name": "WARN_THRESHOLD", - "value": "200", - "type": "int" - }, - { - "name": "CRIT_THRESHOLD", - "value": "300", - "type": "int" - }, - { - "name": "team", - "value": "odpf-app" - }, - { - "name": "name", - "value": "namespace-urn-1" - }, - { - "name": "entity", - "value": "odpf" - } - ], - "provider_namespace": 1 - }, - { - "name": "prefix_provider-urn-1_namespace-urn-2_namespace-2_group-name-1_template-name-1", - "enabled": true, - "group_name": "group-name-1", - "namespace": "namespace-urn-2", - "template": "template-name-1", - "variables": [ - { - "name": "WARN_THRESHOLD", - "value": "5000" - }, - { - "name": "CRIT_THRESHOLD", - "value": "15000" - }, - { - "name": "team", - "value": "odpf-web" - }, - { - "name": "name", - "value": "namespace-urn-2" - } - ], - "provider_namespace": 2 - } -] \ No newline at end of file + { + "name": "prefix_provider-urn-1_namespace-urn-1_namespace-1_group-name-1_template-name-1", + "group_name": "group-name-1", + "namespace": "namespace-urn-1", + "template": "template-name-1", + "variables": [ + { + "name": "WARN_THRESHOLD", + "value": "200", + "type": "int" + }, + { + "name": "CRIT_THRESHOLD", + "value": "300", + "type": "int" + }, + { + "name": "team", + "value": "raystack-app" + }, + { + "name": "name", + "value": "namespace-urn-1" + }, + { + "name": "entity", + "value": "raystack" + } + ], + "provider_namespace": 1 + }, + { + "name": "prefix_provider-urn-1_namespace-urn-2_namespace-2_group-name-1_template-name-1", + "enabled": true, + "group_name": "group-name-1", + "namespace": "namespace-urn-2", + "template": "template-name-1", + "variables": [ + { + "name": "WARN_THRESHOLD", + "value": "5000" + }, + { + "name": "CRIT_THRESHOLD", + "value": "15000" + }, + { + "name": "team", + "value": "raystack-web" + }, + { + "name": "name", + "value": "namespace-urn-2" + } + ], + "provider_namespace": 2 + } +] diff --git a/internal/store/postgres/testdata/mock-subscription.json b/internal/store/postgres/testdata/mock-subscription.json index 39846dd9..2bf538a6 100644 --- a/internal/store/postgres/testdata/mock-subscription.json +++ b/internal/store/postgres/testdata/mock-subscription.json @@ -1,44 +1,44 @@ [ - { - "urn": "alert-history-odpf", - "namespace": 2, - "receivers": [ - { - "id": 1 - } - ] - }, - { - "urn": "odpf-data-warning", - "namespace": 1, - "receivers": [ - { - "id": 1, - "configuration": { - "channel_name": "odpf-data" - } - } - ], - "match": { - "environment": "integration", - "team": "odpf-data" + { + "urn": "alert-history-raystack", + "namespace": 2, + "receivers": [ + { + "id": 1 + } + ] + }, + { + "urn": "raystack-data-warning", + "namespace": 1, + "receivers": [ + { + "id": 1, + "configuration": { + "channel_name": "raystack-data" } - }, - { - "urn": "odpf-pd", - "namespace": 2, - "receivers": [ - { - "id": 1, - "configuration": { - "channel_name": "odpf-data" - } - } - ], - "match": { - "environment": "production", - "severity": "CRITICAL", - "team": "odpf-app" + } + ], + "match": { + "environment": "integration", + "team": "raystack-data" + } + }, + { + "urn": "raystack-pd", + "namespace": 2, + "receivers": [ + { + "id": 1, + "configuration": { + "channel_name": "raystack-data" } + } + ], + "match": { + "environment": "production", + "severity": "CRITICAL", + "team": "raystack-app" } -] \ No newline at end of file + } +] diff --git a/internal/store/postgres/testdata/mock-template.json b/internal/store/postgres/testdata/mock-template.json index 0696b87c..859cd2aa 100644 --- a/internal/store/postgres/testdata/mock-template.json +++ b/internal/store/postgres/testdata/mock-template.json @@ -1,59 +1,55 @@ [ - { - "name": "zookeeper-pending-syncs", - "body": "- alert: zookeeper pending syncs warning\n expr: avg by (host, environment) (zookeeper_pending_syncs) > [[.warning]]\n for: '[[.for]]'\n labels:\n alertname: zookeeper pending syncs on host {{ $labels.host }} is greater than \"[[.warning]]\"\n environment: '{{ $labels.environment }}'\n severity: WARNING\n team: '[[.team]]'\n annotations:\n metric_name: zookeeper_pending_syncs\n metric_value: '{{ $value }}'\n resource: '{{ $labels.host }}'\n summary: zookeeper pending sync on host {{ $labels.host }} is {{ $value }}\n template: zookeeper-pending-syncs\n- alert: zookeeper pending sync critical\n expr: avg by (host, environment) (zookeeper_pending_syncs) > [[.critical]]\n for: '[[.for]]'\n labels:\n alertname: zookeeper pending syncs on host {{ $labels.host }} is greater than \"[[.critical]]\"\n environment: '{{ $labels.environment }}'\n severity: CRITICAL\n team: '[[.team]]'\n annotations:\n metric_name: zookeeper_pending_syncs\n metric_value: '{{ $value }}'\n resource: '{{ $labels.host }}'\n summary: zookeeper oustanding requests on host {{ $labels.host }} is {{ $value }}\n template: zookeeper-pending-syncs\n", - "tags": [ - "zookeeper" - ], - "variables": [ - { - "name": "for", - "type": "string", - "default": "5m", - "description": "For eg 5m, 2h; Golang duration format" - }, - { - "name": "warning", - "type": "int", - "default": "10" - }, - { - "name": "critical", - "type": "int", - "default": "100" - }, - { - "name": "team", - "type": "string", - "default": "odpf", - "description": "For eg team name which the alert should go to" - } - ] - }, - { - "name": "kafka-under-replicated-partitions", - "body": "- alert: kafka under replicated partitions warning\n expr: sum by (host, environment) (v2_jolokia_kafka_server_ReplicaManager_UnderReplicatedPartitionsValue) > [[.warning]]\n for: '[[.for]]'\n labels:\n alertname: number of under replicated partitions on host {{ $labels.host }} is {{ $value }}\n environment: '{{ $labels.environment }}'\n severity: WARNING\n team: '[[.team]]'\n annotations:\n metric_name: kafka_under_replicated_partitions\n metric_value: '{{ $value }}'\n resource: '{{ $labels.host }}'\n summary: under replicated partitions on host {{ $labels.host }} is {{ $value }} is greather than [[.warning]]\n template: kafka-under-replicated-partitions\n", - "tags": [ - "kafka" - ], - "variables": [ - { - "name": "for", - "type": "string", - "default": "10m", - "description": "For eg 5m, 2h; Golang duration format" - }, - { - "name": "warning", - "type": "int", - "default": "0" - }, - { - "name": "team", - "type": "string", - "default": "odpf", - "description": "For eg team name which the alert should go to" - } - ] - } -] \ No newline at end of file + { + "name": "zookeeper-pending-syncs", + "body": "- alert: zookeeper pending syncs warning\n expr: avg by (host, environment) (zookeeper_pending_syncs) > [[.warning]]\n for: '[[.for]]'\n labels:\n alertname: zookeeper pending syncs on host {{ $labels.host }} is greater than \"[[.warning]]\"\n environment: '{{ $labels.environment }}'\n severity: WARNING\n team: '[[.team]]'\n annotations:\n metric_name: zookeeper_pending_syncs\n metric_value: '{{ $value }}'\n resource: '{{ $labels.host }}'\n summary: zookeeper pending sync on host {{ $labels.host }} is {{ $value }}\n template: zookeeper-pending-syncs\n- alert: zookeeper pending sync critical\n expr: avg by (host, environment) (zookeeper_pending_syncs) > [[.critical]]\n for: '[[.for]]'\n labels:\n alertname: zookeeper pending syncs on host {{ $labels.host }} is greater than \"[[.critical]]\"\n environment: '{{ $labels.environment }}'\n severity: CRITICAL\n team: '[[.team]]'\n annotations:\n metric_name: zookeeper_pending_syncs\n metric_value: '{{ $value }}'\n resource: '{{ $labels.host }}'\n summary: zookeeper oustanding requests on host {{ $labels.host }} is {{ $value }}\n template: zookeeper-pending-syncs\n", + "tags": ["zookeeper"], + "variables": [ + { + "name": "for", + "type": "string", + "default": "5m", + "description": "For eg 5m, 2h; Golang duration format" + }, + { + "name": "warning", + "type": "int", + "default": "10" + }, + { + "name": "critical", + "type": "int", + "default": "100" + }, + { + "name": "team", + "type": "string", + "default": "raystack", + "description": "For eg team name which the alert should go to" + } + ] + }, + { + "name": "kafka-under-replicated-partitions", + "body": "- alert: kafka under replicated partitions warning\n expr: sum by (host, environment) (v2_jolokia_kafka_server_ReplicaManager_UnderReplicatedPartitionsValue) > [[.warning]]\n for: '[[.for]]'\n labels:\n alertname: number of under replicated partitions on host {{ $labels.host }} is {{ $value }}\n environment: '{{ $labels.environment }}'\n severity: WARNING\n team: '[[.team]]'\n annotations:\n metric_name: kafka_under_replicated_partitions\n metric_value: '{{ $value }}'\n resource: '{{ $labels.host }}'\n summary: under replicated partitions on host {{ $labels.host }} is {{ $value }} is greather than [[.warning]]\n template: kafka-under-replicated-partitions\n", + "tags": ["kafka"], + "variables": [ + { + "name": "for", + "type": "string", + "default": "10m", + "description": "For eg 5m, 2h; Golang duration format" + }, + { + "name": "warning", + "type": "int", + "default": "0" + }, + { + "name": "team", + "type": "string", + "default": "raystack", + "description": "For eg team name which the alert should go to" + } + ] + } +] diff --git a/main.go b/main.go index 1904da95..f342db4e 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "os" "os/signal" - "github.com/odpf/siren/cli" + "github.com/raystack/siren/cli" ) func main() { diff --git a/pkg/errors/errors_test.go b/pkg/errors/errors_test.go index 23291d7f..bff52879 100644 --- a/pkg/errors/errors_test.go +++ b/pkg/errors/errors_test.go @@ -4,7 +4,7 @@ import ( goerrors "errors" "testing" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/pkg/httpclient/client.go b/pkg/httpclient/client.go index d5050144..9ffcd098 100644 --- a/pkg/httpclient/client.go +++ b/pkg/httpclient/client.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/odpf/siren/pkg/telemetry" + "github.com/raystack/siren/pkg/telemetry" ) type ClientOpt func(*Client) diff --git a/pkg/pgc/client.go b/pkg/pgc/client.go index 54ccbe05..ed87e524 100644 --- a/pkg/pgc/client.go +++ b/pkg/pgc/client.go @@ -7,10 +7,10 @@ import ( "github.com/jmoiron/sqlx" "github.com/lib/pq" - "github.com/odpf/salt/db" - "github.com/odpf/salt/log" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/telemetry" + "github.com/raystack/salt/db" + "github.com/raystack/salt/log" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/telemetry" "go.opencensus.io/trace" ) diff --git a/pkg/retry/retry_test.go b/pkg/retry/retry_test.go index 757cb2a2..368e0bbb 100644 --- a/pkg/retry/retry_test.go +++ b/pkg/retry/retry_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/odpf/siren/pkg/retry" + "github.com/raystack/siren/pkg/retry" "github.com/stretchr/testify/assert" ) diff --git a/pkg/secret/secret.go b/pkg/secret/secret.go index f9c1a993..1ad8e90f 100644 --- a/pkg/secret/secret.go +++ b/pkg/secret/secret.go @@ -6,7 +6,7 @@ import ( "io" "github.com/gtank/cryptopasta" - "github.com/odpf/siren/pkg/errors" + "github.com/raystack/siren/pkg/errors" ) type Crypto struct { diff --git a/pkg/telemetry/telemetry.go b/pkg/telemetry/telemetry.go index e306a108..1d4c2206 100644 --- a/pkg/telemetry/telemetry.go +++ b/pkg/telemetry/telemetry.go @@ -5,7 +5,7 @@ import ( "net/http" "net/http/pprof" - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" "go.opencensus.io/stats" "go.opencensus.io/tag" ) diff --git a/pkg/worker/ticker.go b/pkg/worker/ticker.go index 19762cda..c0b2f53d 100644 --- a/pkg/worker/ticker.go +++ b/pkg/worker/ticker.go @@ -5,7 +5,7 @@ import ( "time" "github.com/google/uuid" - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" ) const ( diff --git a/pkg/zaputil/grpc.go b/pkg/zaputil/grpc.go index e799ebc3..4e8a3beb 100644 --- a/pkg/zaputil/grpc.go +++ b/pkg/zaputil/grpc.go @@ -1,7 +1,7 @@ package zaputil import ( - "github.com/odpf/salt/log" + "github.com/raystack/salt/log" "go.uber.org/zap" "go.uber.org/zap/zapcore" "google.golang.org/grpc/codes" diff --git a/plugins/providers/base/service.go b/plugins/providers/base/service.go index 606a7a52..ed15c5c5 100644 --- a/plugins/providers/base/service.go +++ b/plugins/providers/base/service.go @@ -4,9 +4,9 @@ import ( "context" "html/template" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/plugins" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/plugins" ) // UnimplementedService is a base receiver provider service layer diff --git a/plugins/providers/config.go b/plugins/providers/config.go index 9539e46c..cee2c9ae 100644 --- a/plugins/providers/config.go +++ b/plugins/providers/config.go @@ -1,7 +1,7 @@ package providers import ( - "github.com/odpf/siren/plugins/providers/cortex" + "github.com/raystack/siren/plugins/providers/cortex" ) type Config struct { diff --git a/plugins/providers/cortex/config.go b/plugins/providers/cortex/config.go index 022e1d9e..9f5ca1ea 100644 --- a/plugins/providers/cortex/config.go +++ b/plugins/providers/cortex/config.go @@ -3,7 +3,7 @@ package cortex import ( _ "embed" - "github.com/odpf/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/httpclient" ) var ( diff --git a/plugins/providers/cortex/option.go b/plugins/providers/cortex/option.go index 9a30153b..0ea918af 100644 --- a/plugins/providers/cortex/option.go +++ b/plugins/providers/cortex/option.go @@ -1,6 +1,6 @@ package cortex -import "github.com/odpf/siren/pkg/httpclient" +import "github.com/raystack/siren/pkg/httpclient" type ServiceOption func(*PluginService) diff --git a/plugins/providers/cortex/service.go b/plugins/providers/cortex/service.go index 259fe2e7..c7108a5b 100644 --- a/plugins/providers/cortex/service.go +++ b/plugins/providers/cortex/service.go @@ -10,16 +10,16 @@ import ( "github.com/grafana/cortex-tools/pkg/client" "github.com/grafana/cortex-tools/pkg/rules/rwrulefmt" "github.com/mitchellh/mapstructure" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/plugins/receivers/base" promconfig "github.com/prometheus/alertmanager/config" "github.com/prometheus/prometheus/pkg/rulefmt" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/plugins/receivers/base" "gopkg.in/yaml.v3" ) diff --git a/plugins/providers/cortex/service_test.go b/plugins/providers/cortex/service_test.go index f7eadf70..f245024a 100644 --- a/plugins/providers/cortex/service_test.go +++ b/plugins/providers/cortex/service_test.go @@ -6,13 +6,13 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/grafana/cortex-tools/pkg/rules/rwrulefmt" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/provider" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/template" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/plugins/providers/cortex" - "github.com/odpf/siren/plugins/providers/cortex/mocks" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/provider" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/template" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/plugins/providers/cortex" + "github.com/raystack/siren/plugins/providers/cortex/mocks" "github.com/stretchr/testify/mock" ) @@ -69,7 +69,7 @@ func TestService_UpsertRule(t *testing.T) { Name: "team", Type: "string", Description: "For eg team name which the alert should go to", - Default: "odpf-infra", + Default: "raystack-infra", }, }, Tags: []string{"system"}, @@ -96,7 +96,7 @@ func TestService_UpsertRule(t *testing.T) { }, { Name: "team", - Value: "odpf-infra", + Value: "raystack-infra", }, }, ProviderNamespace: 1, @@ -123,7 +123,7 @@ func TestService_UpsertRule(t *testing.T) { copiedTemplate.Body = "[[x" return &copiedTemplate }(), - namespaceURN: "odpf", + namespaceURN: "raystack", }, err: errors.New("template: parser:1: function \"x\" not defined"), }, @@ -137,7 +137,7 @@ func TestService_UpsertRule(t *testing.T) { copiedTemplate.Body = "name: a" return &copiedTemplate }(), - namespaceURN: "odpf", + namespaceURN: "raystack", }, err: errors.New("cannot parse upserted rule"), }, @@ -149,7 +149,7 @@ func TestService_UpsertRule(t *testing.T) { args: args{ rl: &sampleRule, templateToUpdate: &sampleTemplate, - namespaceURN: "odpf", + namespaceURN: "raystack", }, err: errors.New("cannot get rule group from cortex when upserting rules"), }, @@ -166,7 +166,7 @@ func TestService_UpsertRule(t *testing.T) { return &copiedRule }(), templateToUpdate: &sampleTemplate, - namespaceURN: "odpf", + namespaceURN: "raystack", }, err: errors.New("error calling cortex: some error"), }, @@ -179,7 +179,7 @@ func TestService_UpsertRule(t *testing.T) { args: args{ rl: &sampleRule, templateToUpdate: &sampleTemplate, - namespaceURN: "odpf", + namespaceURN: "raystack", }, err: errors.New("error calling cortex: some error"), }, @@ -192,7 +192,7 @@ func TestService_UpsertRule(t *testing.T) { args: args{ rl: &sampleRule, templateToUpdate: &sampleTemplate, - namespaceURN: "odpf", + namespaceURN: "raystack", }, err: nil, }, diff --git a/plugins/queues/inmemory/queue.go b/plugins/queues/inmemory/queue.go index c1ccb1ac..063e0202 100644 --- a/plugins/queues/inmemory/queue.go +++ b/plugins/queues/inmemory/queue.go @@ -5,10 +5,10 @@ import ( "fmt" "sync" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/plugins" - "github.com/odpf/siren/plugins/queues" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/plugins" + "github.com/raystack/siren/plugins/queues" ) // Queue simulates queue inmemory, this is for testing only diff --git a/plugins/queues/inmemory/queue_test.go b/plugins/queues/inmemory/queue_test.go index db4afd5a..abb7ad5a 100644 --- a/plugins/queues/inmemory/queue_test.go +++ b/plugins/queues/inmemory/queue_test.go @@ -6,9 +6,9 @@ import ( "sync" "testing" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/plugins/queues/inmemory" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/plugins/queues/inmemory" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/plugins/queues/postgresq/cleanup.go b/plugins/queues/postgresq/cleanup.go index 0f454590..32b5e14e 100644 --- a/plugins/queues/postgresq/cleanup.go +++ b/plugins/queues/postgresq/cleanup.go @@ -7,8 +7,8 @@ import ( "time" sq "github.com/Masterminds/squirrel" - "github.com/odpf/siren/pkg/pgc" - "github.com/odpf/siren/plugins/queues" + "github.com/raystack/siren/pkg/pgc" + "github.com/raystack/siren/plugins/queues" ) const defaultPublishedTimeThreshold = time.Duration(7) * time.Hour diff --git a/plugins/queues/postgresq/model.go b/plugins/queues/postgresq/model.go index ec7820cd..505b8849 100644 --- a/plugins/queues/postgresq/model.go +++ b/plugins/queues/postgresq/model.go @@ -4,8 +4,8 @@ import ( "database/sql" "time" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/pgc" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/pgc" ) type NotificationMessage struct { diff --git a/plugins/queues/postgresq/queue.go b/plugins/queues/postgresq/queue.go index 737c01b7..71bf1af4 100644 --- a/plugins/queues/postgresq/queue.go +++ b/plugins/queues/postgresq/queue.go @@ -6,12 +6,12 @@ import ( "fmt" "strings" - "github.com/odpf/salt/db" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/pgc" - "github.com/odpf/siren/pkg/telemetry" - "github.com/odpf/siren/plugins/queues/postgresq/migrations" + "github.com/raystack/salt/db" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/pgc" + "github.com/raystack/siren/pkg/telemetry" + "github.com/raystack/siren/plugins/queues/postgresq/migrations" ) const ( diff --git a/plugins/queues/postgresq/queue_test.go b/plugins/queues/postgresq/queue_test.go index 96dfcf25..86fa5aa7 100644 --- a/plugins/queues/postgresq/queue_test.go +++ b/plugins/queues/postgresq/queue_test.go @@ -8,14 +8,14 @@ import ( "time" "github.com/google/uuid" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/receiver" - "github.com/odpf/siren/plugins/queues/postgresq" - "github.com/odpf/siren/plugins/queues/postgresq/migrations" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/receiver" + "github.com/raystack/siren/plugins/queues/postgresq" + "github.com/raystack/siren/plugins/queues/postgresq/migrations" "github.com/stretchr/testify/suite" ) diff --git a/plugins/receivers/base/service.go b/plugins/receivers/base/service.go index 1cd01e01..2d5a14b6 100644 --- a/plugins/receivers/base/service.go +++ b/plugins/receivers/base/service.go @@ -3,8 +3,8 @@ package base import ( "context" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/plugins" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/plugins" ) // UnimplementedService is a base receiver plugin service layer diff --git a/plugins/receivers/config.go b/plugins/receivers/config.go index f6eeb017..98efcf38 100644 --- a/plugins/receivers/config.go +++ b/plugins/receivers/config.go @@ -1,9 +1,9 @@ package receivers import ( - "github.com/odpf/siren/plugins/receivers/httpreceiver" - "github.com/odpf/siren/plugins/receivers/pagerduty" - "github.com/odpf/siren/plugins/receivers/slack" + "github.com/raystack/siren/plugins/receivers/httpreceiver" + "github.com/raystack/siren/plugins/receivers/pagerduty" + "github.com/raystack/siren/plugins/receivers/slack" ) type Config struct { diff --git a/plugins/receivers/file/service.go b/plugins/receivers/file/service.go index 21c2e397..4015557c 100644 --- a/plugins/receivers/file/service.go +++ b/plugins/receivers/file/service.go @@ -8,9 +8,9 @@ import ( "strings" "github.com/mitchellh/mapstructure" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/plugins/receivers/base" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/plugins/receivers/base" ) type PluginService struct { diff --git a/plugins/receivers/file/service_test.go b/plugins/receivers/file/service_test.go index 73de1a91..62a5be23 100644 --- a/plugins/receivers/file/service_test.go +++ b/plugins/receivers/file/service_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/plugins/receivers/file" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/plugins/receivers/file" ) func TestService_Send(t *testing.T) { diff --git a/plugins/receivers/httpreceiver/config.go b/plugins/receivers/httpreceiver/config.go index 43c4086c..3abbbf20 100644 --- a/plugins/receivers/httpreceiver/config.go +++ b/plugins/receivers/httpreceiver/config.go @@ -3,8 +3,8 @@ package httpreceiver import ( "fmt" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" ) // AppConfig is a config loaded when siren is started diff --git a/plugins/receivers/httpreceiver/option.go b/plugins/receivers/httpreceiver/option.go index 5c031c1b..8e9cb3ba 100644 --- a/plugins/receivers/httpreceiver/option.go +++ b/plugins/receivers/httpreceiver/option.go @@ -1,8 +1,8 @@ package httpreceiver import ( - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" ) type ServiceOption func(*PluginService) diff --git a/plugins/receivers/httpreceiver/service.go b/plugins/receivers/httpreceiver/service.go index 5b30a379..24124011 100644 --- a/plugins/receivers/httpreceiver/service.go +++ b/plugins/receivers/httpreceiver/service.go @@ -9,12 +9,12 @@ import ( "net/http" "github.com/mitchellh/mapstructure" - "github.com/odpf/salt/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/plugins/receivers/base" + "github.com/raystack/salt/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/plugins/receivers/base" ) type PluginService struct { diff --git a/plugins/receivers/httpreceiver/service_test.go b/plugins/receivers/httpreceiver/service_test.go index fcef1be8..91336900 100644 --- a/plugins/receivers/httpreceiver/service_test.go +++ b/plugins/receivers/httpreceiver/service_test.go @@ -6,9 +6,9 @@ import ( "net/http/httptest" "testing" - "github.com/odpf/salt/log" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/plugins/receivers/httpreceiver" + "github.com/raystack/salt/log" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/plugins/receivers/httpreceiver" "github.com/stretchr/testify/assert" ) diff --git a/plugins/receivers/pagerduty/client.go b/plugins/receivers/pagerduty/client.go index e160a954..a745172e 100644 --- a/plugins/receivers/pagerduty/client.go +++ b/plugins/receivers/pagerduty/client.go @@ -9,8 +9,8 @@ import ( "io" "net/http" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" ) const ( diff --git a/plugins/receivers/pagerduty/client_test.go b/plugins/receivers/pagerduty/client_test.go index 443a878e..f8bceb9a 100644 --- a/plugins/receivers/pagerduty/client_test.go +++ b/plugins/receivers/pagerduty/client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/plugins/receivers/pagerduty" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/plugins/receivers/pagerduty" "github.com/stretchr/testify/assert" ) diff --git a/plugins/receivers/pagerduty/config.go b/plugins/receivers/pagerduty/config.go index 12dd570d..bbf8281f 100644 --- a/plugins/receivers/pagerduty/config.go +++ b/plugins/receivers/pagerduty/config.go @@ -4,9 +4,9 @@ import ( "errors" "fmt" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/pkg/secret" ) // AppConfig is a config loaded when siren is started diff --git a/plugins/receivers/pagerduty/config_test.go b/plugins/receivers/pagerduty/config_test.go index 22a56bfd..ccf129c4 100644 --- a/plugins/receivers/pagerduty/config_test.go +++ b/plugins/receivers/pagerduty/config_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/pkg/secret" ) func TestReceiverConfig(t *testing.T) { diff --git a/plugins/receivers/pagerduty/messagev1.go b/plugins/receivers/pagerduty/messagev1.go index 21551175..4d046d0e 100644 --- a/plugins/receivers/pagerduty/messagev1.go +++ b/plugins/receivers/pagerduty/messagev1.go @@ -1,6 +1,6 @@ package pagerduty -import "github.com/odpf/siren/pkg/secret" +import "github.com/raystack/siren/pkg/secret" // https://developer.pagerduty.com/docs/ZG9jOjExMDI5NTc4-send-a-v1-event type MessageV1 struct { diff --git a/plugins/receivers/pagerduty/mocks/pagerduty_caller.go b/plugins/receivers/pagerduty/mocks/pagerduty_caller.go index 8301842a..a2c969d6 100644 --- a/plugins/receivers/pagerduty/mocks/pagerduty_caller.go +++ b/plugins/receivers/pagerduty/mocks/pagerduty_caller.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - pagerduty "github.com/odpf/siren/plugins/receivers/pagerduty" + pagerduty "github.com/raystack/siren/plugins/receivers/pagerduty" mock "github.com/stretchr/testify/mock" ) diff --git a/plugins/receivers/pagerduty/option.go b/plugins/receivers/pagerduty/option.go index 5cbb1864..e3879b11 100644 --- a/plugins/receivers/pagerduty/option.go +++ b/plugins/receivers/pagerduty/option.go @@ -1,8 +1,8 @@ package pagerduty import ( - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" ) type ServiceOption func(*PluginService) diff --git a/plugins/receivers/pagerduty/service.go b/plugins/receivers/pagerduty/service.go index 75d7154e..68eb72cd 100644 --- a/plugins/receivers/pagerduty/service.go +++ b/plugins/receivers/pagerduty/service.go @@ -5,11 +5,11 @@ import ( "fmt" "github.com/mitchellh/mapstructure" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/plugins/receivers/base" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/plugins/receivers/base" ) type PluginService struct { diff --git a/plugins/receivers/pagerduty/service_test.go b/plugins/receivers/pagerduty/service_test.go index d67b8026..9d4b22eb 100644 --- a/plugins/receivers/pagerduty/service_test.go +++ b/plugins/receivers/pagerduty/service_test.go @@ -5,10 +5,10 @@ import ( "errors" "testing" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/plugins/receivers/pagerduty" - "github.com/odpf/siren/plugins/receivers/pagerduty/mocks" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/plugins/receivers/pagerduty" + "github.com/raystack/siren/plugins/receivers/pagerduty/mocks" "github.com/stretchr/testify/mock" ) diff --git a/plugins/receivers/slack/client.go b/plugins/receivers/slack/client.go index 6d88fab8..9c3f1a2b 100644 --- a/plugins/receivers/slack/client.go +++ b/plugins/receivers/slack/client.go @@ -9,10 +9,10 @@ import ( "net/url" "strings" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/pkg/secret" goslack "github.com/slack-go/slack" ) diff --git a/plugins/receivers/slack/client_test.go b/plugins/receivers/slack/client_test.go index ea3d26da..d6380c38 100644 --- a/plugins/receivers/slack/client_test.go +++ b/plugins/receivers/slack/client_test.go @@ -7,9 +7,9 @@ import ( "net/http/httptest" "testing" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/pkg/secret" - "github.com/odpf/siren/plugins/receivers/slack" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/pkg/secret" + "github.com/raystack/siren/plugins/receivers/slack" goslack "github.com/slack-go/slack" "github.com/stretchr/testify/assert" ) diff --git a/plugins/receivers/slack/config.go b/plugins/receivers/slack/config.go index 8e8e2536..066fd6d3 100644 --- a/plugins/receivers/slack/config.go +++ b/plugins/receivers/slack/config.go @@ -3,9 +3,9 @@ package slack import ( "fmt" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/pkg/secret" ) // AppConfig is a config loaded when siren is started diff --git a/plugins/receivers/slack/config_test.go b/plugins/receivers/slack/config_test.go index 9ab165da..bf97d024 100644 --- a/plugins/receivers/slack/config_test.go +++ b/plugins/receivers/slack/config_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/pkg/secret" ) func TestSlackCredentialConfig(t *testing.T) { diff --git a/plugins/receivers/slack/mocks/encryptor.go b/plugins/receivers/slack/mocks/encryptor.go index 7f70f3e3..705fb7f6 100644 --- a/plugins/receivers/slack/mocks/encryptor.go +++ b/plugins/receivers/slack/mocks/encryptor.go @@ -3,7 +3,7 @@ package mocks import ( - secret "github.com/odpf/siren/pkg/secret" + secret "github.com/raystack/siren/pkg/secret" mock "github.com/stretchr/testify/mock" ) diff --git a/plugins/receivers/slack/mocks/slack_caller.go b/plugins/receivers/slack/mocks/slack_caller.go index a9097104..d021cf2a 100644 --- a/plugins/receivers/slack/mocks/slack_caller.go +++ b/plugins/receivers/slack/mocks/slack_caller.go @@ -5,10 +5,10 @@ package mocks import ( context "context" - secret "github.com/odpf/siren/pkg/secret" + secret "github.com/raystack/siren/pkg/secret" mock "github.com/stretchr/testify/mock" - slack "github.com/odpf/siren/plugins/receivers/slack" + slack "github.com/raystack/siren/plugins/receivers/slack" ) // SlackCaller is an autogenerated mock type for the SlackCaller type diff --git a/plugins/receivers/slack/option.go b/plugins/receivers/slack/option.go index 93f67ac6..19a74595 100644 --- a/plugins/receivers/slack/option.go +++ b/plugins/receivers/slack/option.go @@ -1,8 +1,8 @@ package slack import ( - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" ) type ServiceOption func(*PluginService) diff --git a/plugins/receivers/slack/service.go b/plugins/receivers/slack/service.go index 6669af48..3973f375 100644 --- a/plugins/receivers/slack/service.go +++ b/plugins/receivers/slack/service.go @@ -6,11 +6,11 @@ import ( "fmt" "github.com/mitchellh/mapstructure" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/httpclient" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/plugins/receivers/base" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/httpclient" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/plugins/receivers/base" ) const ( diff --git a/plugins/receivers/slack/service_test.go b/plugins/receivers/slack/service_test.go index bb8d87af..f79307ac 100644 --- a/plugins/receivers/slack/service_test.go +++ b/plugins/receivers/slack/service_test.go @@ -5,12 +5,12 @@ import ( "reflect" "testing" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/pkg/errors" - "github.com/odpf/siren/pkg/retry" - "github.com/odpf/siren/pkg/secret" - "github.com/odpf/siren/plugins/receivers/slack" - "github.com/odpf/siren/plugins/receivers/slack/mocks" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/pkg/errors" + "github.com/raystack/siren/pkg/retry" + "github.com/raystack/siren/pkg/secret" + "github.com/raystack/siren/plugins/receivers/slack" + "github.com/raystack/siren/plugins/receivers/slack/mocks" "github.com/stretchr/testify/mock" ) @@ -37,7 +37,7 @@ func TestService_BuildData(t *testing.T) { }, Confs: map[string]interface{}{ "token": secret.MaskableString("key"), - "workspace": "odpf", + "workspace": "raystack", }, Err: errors.New("could not get channels: some error"), }, @@ -53,7 +53,7 @@ func TestService_BuildData(t *testing.T) { }, Confs: map[string]interface{}{ "token": secret.MaskableString("key"), - "workspace": "odpf", + "workspace": "raystack", }, }, } diff --git a/plugins/receivers/slack/slack.go b/plugins/receivers/slack/slack.go index f4f7abbe..24202f27 100644 --- a/plugins/receivers/slack/slack.go +++ b/plugins/receivers/slack/slack.go @@ -3,7 +3,7 @@ package slack import ( "context" - "github.com/odpf/siren/pkg/secret" + "github.com/raystack/siren/pkg/secret" ) //go:generate mockery --name=Encryptor -r --case underscore --with-expecter --structname Encryptor --filename encryptor.go --output=./mocks diff --git a/proto/odpf/siren/v1beta1/siren.pb.go b/proto/raystack/siren/v1beta1/siren.pb.go similarity index 82% rename from proto/odpf/siren/v1beta1/siren.pb.go rename to proto/raystack/siren/v1beta1/siren.pb.go index 899633bf..dc7c8c20 100644 --- a/proto/odpf/siren/v1beta1/siren.pb.go +++ b/proto/raystack/siren/v1beta1/siren.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: odpf/siren/v1beta1/siren.proto +// source: raystack/siren/v1beta1/siren.proto package sirenv1beta1 @@ -45,7 +45,7 @@ type Provider struct { func (x *Provider) Reset() { *x = Provider{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[0] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -58,7 +58,7 @@ func (x *Provider) String() string { func (*Provider) ProtoMessage() {} func (x *Provider) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[0] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -71,7 +71,7 @@ func (x *Provider) ProtoReflect() protoreflect.Message { // Deprecated: Use Provider.ProtoReflect.Descriptor instead. func (*Provider) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{0} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{0} } func (x *Provider) GetId() uint64 { @@ -149,7 +149,7 @@ type ListProvidersRequest struct { func (x *ListProvidersRequest) Reset() { *x = ListProvidersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[1] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -162,7 +162,7 @@ func (x *ListProvidersRequest) String() string { func (*ListProvidersRequest) ProtoMessage() {} func (x *ListProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[1] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -175,7 +175,7 @@ func (x *ListProvidersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListProvidersRequest.ProtoReflect.Descriptor instead. func (*ListProvidersRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{1} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{1} } func (x *ListProvidersRequest) GetUrn() string { @@ -203,7 +203,7 @@ type ListProvidersResponse struct { func (x *ListProvidersResponse) Reset() { *x = ListProvidersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[2] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -216,7 +216,7 @@ func (x *ListProvidersResponse) String() string { func (*ListProvidersResponse) ProtoMessage() {} func (x *ListProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[2] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -229,7 +229,7 @@ func (x *ListProvidersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListProvidersResponse.ProtoReflect.Descriptor instead. func (*ListProvidersResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{2} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{2} } func (x *ListProvidersResponse) GetProviders() []*Provider { @@ -255,7 +255,7 @@ type CreateProviderRequest struct { func (x *CreateProviderRequest) Reset() { *x = CreateProviderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[3] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -268,7 +268,7 @@ func (x *CreateProviderRequest) String() string { func (*CreateProviderRequest) ProtoMessage() {} func (x *CreateProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[3] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -281,7 +281,7 @@ func (x *CreateProviderRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateProviderRequest.ProtoReflect.Descriptor instead. func (*CreateProviderRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{3} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{3} } func (x *CreateProviderRequest) GetHost() string { @@ -337,7 +337,7 @@ type CreateProviderResponse struct { func (x *CreateProviderResponse) Reset() { *x = CreateProviderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[4] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -350,7 +350,7 @@ func (x *CreateProviderResponse) String() string { func (*CreateProviderResponse) ProtoMessage() {} func (x *CreateProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[4] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -363,7 +363,7 @@ func (x *CreateProviderResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateProviderResponse.ProtoReflect.Descriptor instead. func (*CreateProviderResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{4} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{4} } func (x *CreateProviderResponse) GetId() uint64 { @@ -384,7 +384,7 @@ type GetProviderRequest struct { func (x *GetProviderRequest) Reset() { *x = GetProviderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[5] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -397,7 +397,7 @@ func (x *GetProviderRequest) String() string { func (*GetProviderRequest) ProtoMessage() {} func (x *GetProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[5] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -410,7 +410,7 @@ func (x *GetProviderRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetProviderRequest.ProtoReflect.Descriptor instead. func (*GetProviderRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{5} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{5} } func (x *GetProviderRequest) GetId() uint64 { @@ -431,7 +431,7 @@ type GetProviderResponse struct { func (x *GetProviderResponse) Reset() { *x = GetProviderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[6] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -444,7 +444,7 @@ func (x *GetProviderResponse) String() string { func (*GetProviderResponse) ProtoMessage() {} func (x *GetProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[6] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -457,7 +457,7 @@ func (x *GetProviderResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetProviderResponse.ProtoReflect.Descriptor instead. func (*GetProviderResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{6} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{6} } func (x *GetProviderResponse) GetProvider() *Provider { @@ -483,7 +483,7 @@ type UpdateProviderRequest struct { func (x *UpdateProviderRequest) Reset() { *x = UpdateProviderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[7] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -496,7 +496,7 @@ func (x *UpdateProviderRequest) String() string { func (*UpdateProviderRequest) ProtoMessage() {} func (x *UpdateProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[7] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -509,7 +509,7 @@ func (x *UpdateProviderRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateProviderRequest.ProtoReflect.Descriptor instead. func (*UpdateProviderRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{7} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{7} } func (x *UpdateProviderRequest) GetId() uint64 { @@ -565,7 +565,7 @@ type UpdateProviderResponse struct { func (x *UpdateProviderResponse) Reset() { *x = UpdateProviderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[8] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -578,7 +578,7 @@ func (x *UpdateProviderResponse) String() string { func (*UpdateProviderResponse) ProtoMessage() {} func (x *UpdateProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[8] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -591,7 +591,7 @@ func (x *UpdateProviderResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateProviderResponse.ProtoReflect.Descriptor instead. func (*UpdateProviderResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{8} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{8} } func (x *UpdateProviderResponse) GetId() uint64 { @@ -612,7 +612,7 @@ type DeleteProviderRequest struct { func (x *DeleteProviderRequest) Reset() { *x = DeleteProviderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[9] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -625,7 +625,7 @@ func (x *DeleteProviderRequest) String() string { func (*DeleteProviderRequest) ProtoMessage() {} func (x *DeleteProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[9] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -638,7 +638,7 @@ func (x *DeleteProviderRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteProviderRequest.ProtoReflect.Descriptor instead. func (*DeleteProviderRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{9} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{9} } func (x *DeleteProviderRequest) GetId() uint64 { @@ -657,7 +657,7 @@ type DeleteProviderResponse struct { func (x *DeleteProviderResponse) Reset() { *x = DeleteProviderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[10] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -670,7 +670,7 @@ func (x *DeleteProviderResponse) String() string { func (*DeleteProviderResponse) ProtoMessage() {} func (x *DeleteProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[10] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -683,7 +683,7 @@ func (x *DeleteProviderResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteProviderResponse.ProtoReflect.Descriptor instead. func (*DeleteProviderResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{10} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{10} } type Namespace struct { @@ -704,7 +704,7 @@ type Namespace struct { func (x *Namespace) Reset() { *x = Namespace{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[11] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -717,7 +717,7 @@ func (x *Namespace) String() string { func (*Namespace) ProtoMessage() {} func (x *Namespace) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[11] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -730,7 +730,7 @@ func (x *Namespace) ProtoReflect() protoreflect.Message { // Deprecated: Use Namespace.ProtoReflect.Descriptor instead. func (*Namespace) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{11} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{11} } func (x *Namespace) GetId() uint64 { @@ -798,7 +798,7 @@ type ListNamespacesRequest struct { func (x *ListNamespacesRequest) Reset() { *x = ListNamespacesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[12] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -811,7 +811,7 @@ func (x *ListNamespacesRequest) String() string { func (*ListNamespacesRequest) ProtoMessage() {} func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[12] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -824,7 +824,7 @@ func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead. func (*ListNamespacesRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{12} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{12} } type ListNamespacesResponse struct { @@ -838,7 +838,7 @@ type ListNamespacesResponse struct { func (x *ListNamespacesResponse) Reset() { *x = ListNamespacesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[13] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -851,7 +851,7 @@ func (x *ListNamespacesResponse) String() string { func (*ListNamespacesResponse) ProtoMessage() {} func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[13] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -864,7 +864,7 @@ func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead. func (*ListNamespacesResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{13} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{13} } func (x *ListNamespacesResponse) GetNamespaces() []*Namespace { @@ -891,7 +891,7 @@ type CreateNamespaceRequest struct { func (x *CreateNamespaceRequest) Reset() { *x = CreateNamespaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[14] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -904,7 +904,7 @@ func (x *CreateNamespaceRequest) String() string { func (*CreateNamespaceRequest) ProtoMessage() {} func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[14] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -917,7 +917,7 @@ func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead. func (*CreateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{14} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{14} } func (x *CreateNamespaceRequest) GetName() string { @@ -980,7 +980,7 @@ type CreateNamespaceResponse struct { func (x *CreateNamespaceResponse) Reset() { *x = CreateNamespaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[15] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -993,7 +993,7 @@ func (x *CreateNamespaceResponse) String() string { func (*CreateNamespaceResponse) ProtoMessage() {} func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[15] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1006,7 +1006,7 @@ func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead. func (*CreateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{15} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{15} } func (x *CreateNamespaceResponse) GetId() uint64 { @@ -1027,7 +1027,7 @@ type GetNamespaceRequest struct { func (x *GetNamespaceRequest) Reset() { *x = GetNamespaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[16] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1040,7 +1040,7 @@ func (x *GetNamespaceRequest) String() string { func (*GetNamespaceRequest) ProtoMessage() {} func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[16] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1053,7 +1053,7 @@ func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead. func (*GetNamespaceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{16} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{16} } func (x *GetNamespaceRequest) GetId() uint64 { @@ -1074,7 +1074,7 @@ type GetNamespaceResponse struct { func (x *GetNamespaceResponse) Reset() { *x = GetNamespaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[17] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1087,7 +1087,7 @@ func (x *GetNamespaceResponse) String() string { func (*GetNamespaceResponse) ProtoMessage() {} func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[17] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1100,7 +1100,7 @@ func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead. func (*GetNamespaceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{17} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{17} } func (x *GetNamespaceResponse) GetNamespace() *Namespace { @@ -1125,7 +1125,7 @@ type UpdateNamespaceRequest struct { func (x *UpdateNamespaceRequest) Reset() { *x = UpdateNamespaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[18] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1138,7 +1138,7 @@ func (x *UpdateNamespaceRequest) String() string { func (*UpdateNamespaceRequest) ProtoMessage() {} func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[18] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1151,7 +1151,7 @@ func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead. func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{18} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{18} } func (x *UpdateNamespaceRequest) GetId() uint64 { @@ -1200,7 +1200,7 @@ type UpdateNamespaceResponse struct { func (x *UpdateNamespaceResponse) Reset() { *x = UpdateNamespaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[19] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1213,7 +1213,7 @@ func (x *UpdateNamespaceResponse) String() string { func (*UpdateNamespaceResponse) ProtoMessage() {} func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[19] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1226,7 +1226,7 @@ func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead. func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{19} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{19} } func (x *UpdateNamespaceResponse) GetId() uint64 { @@ -1247,7 +1247,7 @@ type DeleteNamespaceRequest struct { func (x *DeleteNamespaceRequest) Reset() { *x = DeleteNamespaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[20] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1260,7 +1260,7 @@ func (x *DeleteNamespaceRequest) String() string { func (*DeleteNamespaceRequest) ProtoMessage() {} func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[20] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1273,7 +1273,7 @@ func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead. func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{20} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{20} } func (x *DeleteNamespaceRequest) GetId() uint64 { @@ -1292,7 +1292,7 @@ type DeleteNamespaceResponse struct { func (x *DeleteNamespaceResponse) Reset() { *x = DeleteNamespaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[21] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1305,7 +1305,7 @@ func (x *DeleteNamespaceResponse) String() string { func (*DeleteNamespaceResponse) ProtoMessage() {} func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[21] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1318,7 +1318,7 @@ func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteNamespaceResponse.ProtoReflect.Descriptor instead. func (*DeleteNamespaceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{21} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{21} } type ReceiverMetadata struct { @@ -1333,7 +1333,7 @@ type ReceiverMetadata struct { func (x *ReceiverMetadata) Reset() { *x = ReceiverMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[22] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1346,7 +1346,7 @@ func (x *ReceiverMetadata) String() string { func (*ReceiverMetadata) ProtoMessage() {} func (x *ReceiverMetadata) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[22] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1359,7 +1359,7 @@ func (x *ReceiverMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use ReceiverMetadata.ProtoReflect.Descriptor instead. func (*ReceiverMetadata) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{22} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{22} } func (x *ReceiverMetadata) GetId() uint64 { @@ -1393,7 +1393,7 @@ type Subscription struct { func (x *Subscription) Reset() { *x = Subscription{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[23] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1406,7 +1406,7 @@ func (x *Subscription) String() string { func (*Subscription) ProtoMessage() {} func (x *Subscription) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[23] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1419,7 +1419,7 @@ func (x *Subscription) ProtoReflect() protoreflect.Message { // Deprecated: Use Subscription.ProtoReflect.Descriptor instead. func (*Subscription) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{23} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{23} } func (x *Subscription) GetId() uint64 { @@ -1485,7 +1485,7 @@ type ListSubscriptionsRequest struct { func (x *ListSubscriptionsRequest) Reset() { *x = ListSubscriptionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[24] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1498,7 +1498,7 @@ func (x *ListSubscriptionsRequest) String() string { func (*ListSubscriptionsRequest) ProtoMessage() {} func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[24] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1511,7 +1511,7 @@ func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSubscriptionsRequest.ProtoReflect.Descriptor instead. func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{24} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{24} } func (x *ListSubscriptionsRequest) GetNamespaceId() uint64 { @@ -1553,7 +1553,7 @@ type ListSubscriptionsResponse struct { func (x *ListSubscriptionsResponse) Reset() { *x = ListSubscriptionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[25] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1566,7 +1566,7 @@ func (x *ListSubscriptionsResponse) String() string { func (*ListSubscriptionsResponse) ProtoMessage() {} func (x *ListSubscriptionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[25] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1579,7 +1579,7 @@ func (x *ListSubscriptionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSubscriptionsResponse.ProtoReflect.Descriptor instead. func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{25} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{25} } func (x *ListSubscriptionsResponse) GetSubscriptions() []*Subscription { @@ -1603,7 +1603,7 @@ type CreateSubscriptionRequest struct { func (x *CreateSubscriptionRequest) Reset() { *x = CreateSubscriptionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[26] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1616,7 +1616,7 @@ func (x *CreateSubscriptionRequest) String() string { func (*CreateSubscriptionRequest) ProtoMessage() {} func (x *CreateSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[26] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1629,7 +1629,7 @@ func (x *CreateSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateSubscriptionRequest.ProtoReflect.Descriptor instead. func (*CreateSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{26} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{26} } func (x *CreateSubscriptionRequest) GetUrn() string { @@ -1671,7 +1671,7 @@ type CreateSubscriptionResponse struct { func (x *CreateSubscriptionResponse) Reset() { *x = CreateSubscriptionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[27] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1684,7 +1684,7 @@ func (x *CreateSubscriptionResponse) String() string { func (*CreateSubscriptionResponse) ProtoMessage() {} func (x *CreateSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[27] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1697,7 +1697,7 @@ func (x *CreateSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateSubscriptionResponse.ProtoReflect.Descriptor instead. func (*CreateSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{27} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{27} } func (x *CreateSubscriptionResponse) GetId() uint64 { @@ -1718,7 +1718,7 @@ type GetSubscriptionRequest struct { func (x *GetSubscriptionRequest) Reset() { *x = GetSubscriptionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[28] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1731,7 +1731,7 @@ func (x *GetSubscriptionRequest) String() string { func (*GetSubscriptionRequest) ProtoMessage() {} func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[28] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1744,7 +1744,7 @@ func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead. func (*GetSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{28} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{28} } func (x *GetSubscriptionRequest) GetId() uint64 { @@ -1765,7 +1765,7 @@ type GetSubscriptionResponse struct { func (x *GetSubscriptionResponse) Reset() { *x = GetSubscriptionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[29] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1778,7 +1778,7 @@ func (x *GetSubscriptionResponse) String() string { func (*GetSubscriptionResponse) ProtoMessage() {} func (x *GetSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[29] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1791,7 +1791,7 @@ func (x *GetSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSubscriptionResponse.ProtoReflect.Descriptor instead. func (*GetSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{29} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{29} } func (x *GetSubscriptionResponse) GetSubscription() *Subscription { @@ -1816,7 +1816,7 @@ type UpdateSubscriptionRequest struct { func (x *UpdateSubscriptionRequest) Reset() { *x = UpdateSubscriptionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[30] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1829,7 +1829,7 @@ func (x *UpdateSubscriptionRequest) String() string { func (*UpdateSubscriptionRequest) ProtoMessage() {} func (x *UpdateSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[30] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1842,7 +1842,7 @@ func (x *UpdateSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateSubscriptionRequest.ProtoReflect.Descriptor instead. func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{30} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{30} } func (x *UpdateSubscriptionRequest) GetId() uint64 { @@ -1891,7 +1891,7 @@ type UpdateSubscriptionResponse struct { func (x *UpdateSubscriptionResponse) Reset() { *x = UpdateSubscriptionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[31] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1904,7 +1904,7 @@ func (x *UpdateSubscriptionResponse) String() string { func (*UpdateSubscriptionResponse) ProtoMessage() {} func (x *UpdateSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[31] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1917,7 +1917,7 @@ func (x *UpdateSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateSubscriptionResponse.ProtoReflect.Descriptor instead. func (*UpdateSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{31} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{31} } func (x *UpdateSubscriptionResponse) GetId() uint64 { @@ -1938,7 +1938,7 @@ type DeleteSubscriptionRequest struct { func (x *DeleteSubscriptionRequest) Reset() { *x = DeleteSubscriptionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[32] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1951,7 +1951,7 @@ func (x *DeleteSubscriptionRequest) String() string { func (*DeleteSubscriptionRequest) ProtoMessage() {} func (x *DeleteSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[32] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1964,7 +1964,7 @@ func (x *DeleteSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteSubscriptionRequest.ProtoReflect.Descriptor instead. func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{32} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{32} } func (x *DeleteSubscriptionRequest) GetId() uint64 { @@ -1983,7 +1983,7 @@ type DeleteSubscriptionResponse struct { func (x *DeleteSubscriptionResponse) Reset() { *x = DeleteSubscriptionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[33] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1996,7 +1996,7 @@ func (x *DeleteSubscriptionResponse) String() string { func (*DeleteSubscriptionResponse) ProtoMessage() {} func (x *DeleteSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[33] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2009,7 +2009,7 @@ func (x *DeleteSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteSubscriptionResponse.ProtoReflect.Descriptor instead. func (*DeleteSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{33} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{33} } type Receiver struct { @@ -2030,7 +2030,7 @@ type Receiver struct { func (x *Receiver) Reset() { *x = Receiver{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[34] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2043,7 +2043,7 @@ func (x *Receiver) String() string { func (*Receiver) ProtoMessage() {} func (x *Receiver) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[34] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2056,7 +2056,7 @@ func (x *Receiver) ProtoReflect() protoreflect.Message { // Deprecated: Use Receiver.ProtoReflect.Descriptor instead. func (*Receiver) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{34} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{34} } func (x *Receiver) GetId() uint64 { @@ -2124,7 +2124,7 @@ type ListReceiversRequest struct { func (x *ListReceiversRequest) Reset() { *x = ListReceiversRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[35] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2137,7 +2137,7 @@ func (x *ListReceiversRequest) String() string { func (*ListReceiversRequest) ProtoMessage() {} func (x *ListReceiversRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[35] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2150,7 +2150,7 @@ func (x *ListReceiversRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListReceiversRequest.ProtoReflect.Descriptor instead. func (*ListReceiversRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{35} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{35} } type ListReceiversResponse struct { @@ -2164,7 +2164,7 @@ type ListReceiversResponse struct { func (x *ListReceiversResponse) Reset() { *x = ListReceiversResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[36] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2177,7 +2177,7 @@ func (x *ListReceiversResponse) String() string { func (*ListReceiversResponse) ProtoMessage() {} func (x *ListReceiversResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[36] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2190,7 +2190,7 @@ func (x *ListReceiversResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListReceiversResponse.ProtoReflect.Descriptor instead. func (*ListReceiversResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{36} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{36} } func (x *ListReceiversResponse) GetReceivers() []*Receiver { @@ -2214,7 +2214,7 @@ type CreateReceiverRequest struct { func (x *CreateReceiverRequest) Reset() { *x = CreateReceiverRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[37] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2227,7 +2227,7 @@ func (x *CreateReceiverRequest) String() string { func (*CreateReceiverRequest) ProtoMessage() {} func (x *CreateReceiverRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[37] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2240,7 +2240,7 @@ func (x *CreateReceiverRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateReceiverRequest.ProtoReflect.Descriptor instead. func (*CreateReceiverRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{37} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{37} } func (x *CreateReceiverRequest) GetName() string { @@ -2282,7 +2282,7 @@ type CreateReceiverResponse struct { func (x *CreateReceiverResponse) Reset() { *x = CreateReceiverResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[38] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2295,7 +2295,7 @@ func (x *CreateReceiverResponse) String() string { func (*CreateReceiverResponse) ProtoMessage() {} func (x *CreateReceiverResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[38] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2308,7 +2308,7 @@ func (x *CreateReceiverResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateReceiverResponse.ProtoReflect.Descriptor instead. func (*CreateReceiverResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{38} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{38} } func (x *CreateReceiverResponse) GetId() uint64 { @@ -2329,7 +2329,7 @@ type GetReceiverRequest struct { func (x *GetReceiverRequest) Reset() { *x = GetReceiverRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[39] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2342,7 +2342,7 @@ func (x *GetReceiverRequest) String() string { func (*GetReceiverRequest) ProtoMessage() {} func (x *GetReceiverRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[39] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2355,7 +2355,7 @@ func (x *GetReceiverRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetReceiverRequest.ProtoReflect.Descriptor instead. func (*GetReceiverRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{39} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{39} } func (x *GetReceiverRequest) GetId() uint64 { @@ -2376,7 +2376,7 @@ type GetReceiverResponse struct { func (x *GetReceiverResponse) Reset() { *x = GetReceiverResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[40] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2389,7 +2389,7 @@ func (x *GetReceiverResponse) String() string { func (*GetReceiverResponse) ProtoMessage() {} func (x *GetReceiverResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[40] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2402,7 +2402,7 @@ func (x *GetReceiverResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetReceiverResponse.ProtoReflect.Descriptor instead. func (*GetReceiverResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{40} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{40} } func (x *GetReceiverResponse) GetReceiver() *Receiver { @@ -2426,7 +2426,7 @@ type UpdateReceiverRequest struct { func (x *UpdateReceiverRequest) Reset() { *x = UpdateReceiverRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[41] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2439,7 +2439,7 @@ func (x *UpdateReceiverRequest) String() string { func (*UpdateReceiverRequest) ProtoMessage() {} func (x *UpdateReceiverRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[41] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2452,7 +2452,7 @@ func (x *UpdateReceiverRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateReceiverRequest.ProtoReflect.Descriptor instead. func (*UpdateReceiverRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{41} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{41} } func (x *UpdateReceiverRequest) GetId() uint64 { @@ -2494,7 +2494,7 @@ type UpdateReceiverResponse struct { func (x *UpdateReceiverResponse) Reset() { *x = UpdateReceiverResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[42] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2507,7 +2507,7 @@ func (x *UpdateReceiverResponse) String() string { func (*UpdateReceiverResponse) ProtoMessage() {} func (x *UpdateReceiverResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[42] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2520,7 +2520,7 @@ func (x *UpdateReceiverResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateReceiverResponse.ProtoReflect.Descriptor instead. func (*UpdateReceiverResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{42} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{42} } func (x *UpdateReceiverResponse) GetId() uint64 { @@ -2541,7 +2541,7 @@ type DeleteReceiverRequest struct { func (x *DeleteReceiverRequest) Reset() { *x = DeleteReceiverRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[43] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2554,7 +2554,7 @@ func (x *DeleteReceiverRequest) String() string { func (*DeleteReceiverRequest) ProtoMessage() {} func (x *DeleteReceiverRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[43] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2567,7 +2567,7 @@ func (x *DeleteReceiverRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteReceiverRequest.ProtoReflect.Descriptor instead. func (*DeleteReceiverRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{43} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{43} } func (x *DeleteReceiverRequest) GetId() uint64 { @@ -2586,7 +2586,7 @@ type DeleteReceiverResponse struct { func (x *DeleteReceiverResponse) Reset() { *x = DeleteReceiverResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[44] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2599,7 +2599,7 @@ func (x *DeleteReceiverResponse) String() string { func (*DeleteReceiverResponse) ProtoMessage() {} func (x *DeleteReceiverResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[44] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2612,7 +2612,7 @@ func (x *DeleteReceiverResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteReceiverResponse.ProtoReflect.Descriptor instead. func (*DeleteReceiverResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{44} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{44} } type NotifyReceiverRequest struct { @@ -2627,7 +2627,7 @@ type NotifyReceiverRequest struct { func (x *NotifyReceiverRequest) Reset() { *x = NotifyReceiverRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[45] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2640,7 +2640,7 @@ func (x *NotifyReceiverRequest) String() string { func (*NotifyReceiverRequest) ProtoMessage() {} func (x *NotifyReceiverRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[45] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2653,7 +2653,7 @@ func (x *NotifyReceiverRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NotifyReceiverRequest.ProtoReflect.Descriptor instead. func (*NotifyReceiverRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{45} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{45} } func (x *NotifyReceiverRequest) GetId() uint64 { @@ -2679,7 +2679,7 @@ type NotifyReceiverResponse struct { func (x *NotifyReceiverResponse) Reset() { *x = NotifyReceiverResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[46] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2692,7 +2692,7 @@ func (x *NotifyReceiverResponse) String() string { func (*NotifyReceiverResponse) ProtoMessage() {} func (x *NotifyReceiverResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[46] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2705,7 +2705,7 @@ func (x *NotifyReceiverResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use NotifyReceiverResponse.ProtoReflect.Descriptor instead. func (*NotifyReceiverResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{46} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{46} } type Alert struct { @@ -2728,7 +2728,7 @@ type Alert struct { func (x *Alert) Reset() { *x = Alert{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[47] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2741,7 +2741,7 @@ func (x *Alert) String() string { func (*Alert) ProtoMessage() {} func (x *Alert) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[47] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2754,7 +2754,7 @@ func (x *Alert) ProtoReflect() protoreflect.Message { // Deprecated: Use Alert.ProtoReflect.Descriptor instead. func (*Alert) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{47} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{47} } func (x *Alert) GetId() uint64 { @@ -2844,7 +2844,7 @@ type ListAlertsRequest struct { func (x *ListAlertsRequest) Reset() { *x = ListAlertsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[48] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2857,7 +2857,7 @@ func (x *ListAlertsRequest) String() string { func (*ListAlertsRequest) ProtoMessage() {} func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[48] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2870,7 +2870,7 @@ func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead. func (*ListAlertsRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{48} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{48} } func (x *ListAlertsRequest) GetProviderType() string { @@ -2933,7 +2933,7 @@ type ListAlertsResponse struct { func (x *ListAlertsResponse) Reset() { *x = ListAlertsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[49] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2946,7 +2946,7 @@ func (x *ListAlertsResponse) String() string { func (*ListAlertsResponse) ProtoMessage() {} func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[49] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2959,7 +2959,7 @@ func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAlertsResponse.ProtoReflect.Descriptor instead. func (*ListAlertsResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{49} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{49} } func (x *ListAlertsResponse) GetAlerts() []*Alert { @@ -2982,7 +2982,7 @@ type CreateAlertsRequest struct { func (x *CreateAlertsRequest) Reset() { *x = CreateAlertsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[50] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2995,7 +2995,7 @@ func (x *CreateAlertsRequest) String() string { func (*CreateAlertsRequest) ProtoMessage() {} func (x *CreateAlertsRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[50] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3008,7 +3008,7 @@ func (x *CreateAlertsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAlertsRequest.ProtoReflect.Descriptor instead. func (*CreateAlertsRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{50} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{50} } func (x *CreateAlertsRequest) GetProviderType() string { @@ -3043,7 +3043,7 @@ type CreateAlertsResponse struct { func (x *CreateAlertsResponse) Reset() { *x = CreateAlertsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[51] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3056,7 +3056,7 @@ func (x *CreateAlertsResponse) String() string { func (*CreateAlertsResponse) ProtoMessage() {} func (x *CreateAlertsResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[51] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3069,7 +3069,7 @@ func (x *CreateAlertsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAlertsResponse.ProtoReflect.Descriptor instead. func (*CreateAlertsResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{51} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{51} } func (x *CreateAlertsResponse) GetAlerts() []*Alert { @@ -3093,7 +3093,7 @@ type CreateAlertsWithNamespaceRequest struct { func (x *CreateAlertsWithNamespaceRequest) Reset() { *x = CreateAlertsWithNamespaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[52] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3106,7 +3106,7 @@ func (x *CreateAlertsWithNamespaceRequest) String() string { func (*CreateAlertsWithNamespaceRequest) ProtoMessage() {} func (x *CreateAlertsWithNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[52] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3119,7 +3119,7 @@ func (x *CreateAlertsWithNamespaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAlertsWithNamespaceRequest.ProtoReflect.Descriptor instead. func (*CreateAlertsWithNamespaceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{52} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{52} } func (x *CreateAlertsWithNamespaceRequest) GetProviderType() string { @@ -3161,7 +3161,7 @@ type CreateAlertsWithNamespaceResponse struct { func (x *CreateAlertsWithNamespaceResponse) Reset() { *x = CreateAlertsWithNamespaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[53] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3174,7 +3174,7 @@ func (x *CreateAlertsWithNamespaceResponse) String() string { func (*CreateAlertsWithNamespaceResponse) ProtoMessage() {} func (x *CreateAlertsWithNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[53] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3187,7 +3187,7 @@ func (x *CreateAlertsWithNamespaceResponse) ProtoReflect() protoreflect.Message // Deprecated: Use CreateAlertsWithNamespaceResponse.ProtoReflect.Descriptor instead. func (*CreateAlertsWithNamespaceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{53} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{53} } func (x *CreateAlertsWithNamespaceResponse) GetAlerts() []*Alert { @@ -3211,7 +3211,7 @@ type Annotations struct { func (x *Annotations) Reset() { *x = Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[54] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3224,7 +3224,7 @@ func (x *Annotations) String() string { func (*Annotations) ProtoMessage() {} func (x *Annotations) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[54] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3237,7 +3237,7 @@ func (x *Annotations) ProtoReflect() protoreflect.Message { // Deprecated: Use Annotations.ProtoReflect.Descriptor instead. func (*Annotations) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{54} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{54} } func (x *Annotations) GetMetricName() string { @@ -3279,7 +3279,7 @@ type Labels struct { func (x *Labels) Reset() { *x = Labels{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[55] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3292,7 +3292,7 @@ func (x *Labels) String() string { func (*Labels) ProtoMessage() {} func (x *Labels) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[55] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3305,7 +3305,7 @@ func (x *Labels) ProtoReflect() protoreflect.Message { // Deprecated: Use Labels.ProtoReflect.Descriptor instead. func (*Labels) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{55} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{55} } func (x *Labels) GetSeverity() string { @@ -3335,7 +3335,7 @@ type Rule struct { func (x *Rule) Reset() { *x = Rule{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[56] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3348,7 +3348,7 @@ func (x *Rule) String() string { func (*Rule) ProtoMessage() {} func (x *Rule) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[56] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3361,7 +3361,7 @@ func (x *Rule) ProtoReflect() protoreflect.Message { // Deprecated: Use Rule.ProtoReflect.Descriptor instead. func (*Rule) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{56} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{56} } func (x *Rule) GetId() uint64 { @@ -3448,7 +3448,7 @@ type Variables struct { func (x *Variables) Reset() { *x = Variables{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[57] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3461,7 +3461,7 @@ func (x *Variables) String() string { func (*Variables) ProtoMessage() {} func (x *Variables) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[57] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3474,7 +3474,7 @@ func (x *Variables) ProtoReflect() protoreflect.Message { // Deprecated: Use Variables.ProtoReflect.Descriptor instead. func (*Variables) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{57} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{57} } func (x *Variables) GetName() string { @@ -3520,7 +3520,7 @@ type ListRulesRequest struct { func (x *ListRulesRequest) Reset() { *x = ListRulesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[58] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3533,7 +3533,7 @@ func (x *ListRulesRequest) String() string { func (*ListRulesRequest) ProtoMessage() {} func (x *ListRulesRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[58] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3546,7 +3546,7 @@ func (x *ListRulesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRulesRequest.ProtoReflect.Descriptor instead. func (*ListRulesRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{58} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{58} } func (x *ListRulesRequest) GetName() string { @@ -3595,7 +3595,7 @@ type ListRulesResponse struct { func (x *ListRulesResponse) Reset() { *x = ListRulesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[59] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3608,7 +3608,7 @@ func (x *ListRulesResponse) String() string { func (*ListRulesResponse) ProtoMessage() {} func (x *ListRulesResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[59] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3621,7 +3621,7 @@ func (x *ListRulesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRulesResponse.ProtoReflect.Descriptor instead. func (*ListRulesResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{59} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{59} } func (x *ListRulesResponse) GetRules() []*Rule { @@ -3647,7 +3647,7 @@ type UpdateRuleRequest struct { func (x *UpdateRuleRequest) Reset() { *x = UpdateRuleRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[60] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3660,7 +3660,7 @@ func (x *UpdateRuleRequest) String() string { func (*UpdateRuleRequest) ProtoMessage() {} func (x *UpdateRuleRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[60] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3673,7 +3673,7 @@ func (x *UpdateRuleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateRuleRequest.ProtoReflect.Descriptor instead. func (*UpdateRuleRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{60} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{60} } func (x *UpdateRuleRequest) GetEnabled() bool { @@ -3729,7 +3729,7 @@ type UpdateRuleResponse struct { func (x *UpdateRuleResponse) Reset() { *x = UpdateRuleResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[61] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3742,7 +3742,7 @@ func (x *UpdateRuleResponse) String() string { func (*UpdateRuleResponse) ProtoMessage() {} func (x *UpdateRuleResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[61] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3755,7 +3755,7 @@ func (x *UpdateRuleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateRuleResponse.ProtoReflect.Descriptor instead. func (*UpdateRuleResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{61} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{61} } func (x *UpdateRuleResponse) GetRule() *Rule { @@ -3779,7 +3779,7 @@ type TemplateVariables struct { func (x *TemplateVariables) Reset() { *x = TemplateVariables{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[62] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3792,7 +3792,7 @@ func (x *TemplateVariables) String() string { func (*TemplateVariables) ProtoMessage() {} func (x *TemplateVariables) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[62] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3805,7 +3805,7 @@ func (x *TemplateVariables) ProtoReflect() protoreflect.Message { // Deprecated: Use TemplateVariables.ProtoReflect.Descriptor instead. func (*TemplateVariables) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{62} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{62} } func (x *TemplateVariables) GetName() string { @@ -3853,7 +3853,7 @@ type Template struct { func (x *Template) Reset() { *x = Template{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[63] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3866,7 +3866,7 @@ func (x *Template) String() string { func (*Template) ProtoMessage() {} func (x *Template) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[63] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3879,7 +3879,7 @@ func (x *Template) ProtoReflect() protoreflect.Message { // Deprecated: Use Template.ProtoReflect.Descriptor instead. func (*Template) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{63} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{63} } func (x *Template) GetId() uint64 { @@ -3942,7 +3942,7 @@ type ListTemplatesRequest struct { func (x *ListTemplatesRequest) Reset() { *x = ListTemplatesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[64] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3955,7 +3955,7 @@ func (x *ListTemplatesRequest) String() string { func (*ListTemplatesRequest) ProtoMessage() {} func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[64] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3968,7 +3968,7 @@ func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTemplatesRequest.ProtoReflect.Descriptor instead. func (*ListTemplatesRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{64} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{64} } func (x *ListTemplatesRequest) GetTag() string { @@ -3989,7 +3989,7 @@ type ListTemplatesResponse struct { func (x *ListTemplatesResponse) Reset() { *x = ListTemplatesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[65] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4002,7 +4002,7 @@ func (x *ListTemplatesResponse) String() string { func (*ListTemplatesResponse) ProtoMessage() {} func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[65] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4015,7 +4015,7 @@ func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTemplatesResponse.ProtoReflect.Descriptor instead. func (*ListTemplatesResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{65} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{65} } func (x *ListTemplatesResponse) GetTemplates() []*Template { @@ -4040,7 +4040,7 @@ type UpsertTemplateRequest struct { func (x *UpsertTemplateRequest) Reset() { *x = UpsertTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[66] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4053,7 +4053,7 @@ func (x *UpsertTemplateRequest) String() string { func (*UpsertTemplateRequest) ProtoMessage() {} func (x *UpsertTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[66] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4066,7 +4066,7 @@ func (x *UpsertTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpsertTemplateRequest.ProtoReflect.Descriptor instead. func (*UpsertTemplateRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{66} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{66} } func (x *UpsertTemplateRequest) GetId() uint64 { @@ -4115,7 +4115,7 @@ type UpsertTemplateResponse struct { func (x *UpsertTemplateResponse) Reset() { *x = UpsertTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[67] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4128,7 +4128,7 @@ func (x *UpsertTemplateResponse) String() string { func (*UpsertTemplateResponse) ProtoMessage() {} func (x *UpsertTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[67] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4141,7 +4141,7 @@ func (x *UpsertTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpsertTemplateResponse.ProtoReflect.Descriptor instead. func (*UpsertTemplateResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{67} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{67} } func (x *UpsertTemplateResponse) GetId() uint64 { @@ -4162,7 +4162,7 @@ type GetTemplateRequest struct { func (x *GetTemplateRequest) Reset() { *x = GetTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[68] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4175,7 +4175,7 @@ func (x *GetTemplateRequest) String() string { func (*GetTemplateRequest) ProtoMessage() {} func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[68] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4188,7 +4188,7 @@ func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTemplateRequest.ProtoReflect.Descriptor instead. func (*GetTemplateRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{68} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{68} } func (x *GetTemplateRequest) GetName() string { @@ -4209,7 +4209,7 @@ type GetTemplateResponse struct { func (x *GetTemplateResponse) Reset() { *x = GetTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[69] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4222,7 +4222,7 @@ func (x *GetTemplateResponse) String() string { func (*GetTemplateResponse) ProtoMessage() {} func (x *GetTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[69] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4235,7 +4235,7 @@ func (x *GetTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTemplateResponse.ProtoReflect.Descriptor instead. func (*GetTemplateResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{69} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{69} } func (x *GetTemplateResponse) GetTemplate() *Template { @@ -4256,7 +4256,7 @@ type DeleteTemplateRequest struct { func (x *DeleteTemplateRequest) Reset() { *x = DeleteTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[70] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4269,7 +4269,7 @@ func (x *DeleteTemplateRequest) String() string { func (*DeleteTemplateRequest) ProtoMessage() {} func (x *DeleteTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[70] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4282,7 +4282,7 @@ func (x *DeleteTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTemplateRequest.ProtoReflect.Descriptor instead. func (*DeleteTemplateRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{70} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{70} } func (x *DeleteTemplateRequest) GetName() string { @@ -4301,7 +4301,7 @@ type DeleteTemplateResponse struct { func (x *DeleteTemplateResponse) Reset() { *x = DeleteTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[71] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4314,7 +4314,7 @@ func (x *DeleteTemplateResponse) String() string { func (*DeleteTemplateResponse) ProtoMessage() {} func (x *DeleteTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[71] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4327,7 +4327,7 @@ func (x *DeleteTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTemplateResponse.ProtoReflect.Descriptor instead. func (*DeleteTemplateResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{71} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{71} } type RenderTemplateRequest struct { @@ -4342,7 +4342,7 @@ type RenderTemplateRequest struct { func (x *RenderTemplateRequest) Reset() { *x = RenderTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[72] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4355,7 +4355,7 @@ func (x *RenderTemplateRequest) String() string { func (*RenderTemplateRequest) ProtoMessage() {} func (x *RenderTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[72] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4368,7 +4368,7 @@ func (x *RenderTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RenderTemplateRequest.ProtoReflect.Descriptor instead. func (*RenderTemplateRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{72} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{72} } func (x *RenderTemplateRequest) GetName() string { @@ -4396,7 +4396,7 @@ type RenderTemplateResponse struct { func (x *RenderTemplateResponse) Reset() { *x = RenderTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[73] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4409,7 +4409,7 @@ func (x *RenderTemplateResponse) String() string { func (*RenderTemplateResponse) ProtoMessage() {} func (x *RenderTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[73] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4422,7 +4422,7 @@ func (x *RenderTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RenderTemplateResponse.ProtoReflect.Descriptor instead. func (*RenderTemplateResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{73} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{73} } func (x *RenderTemplateResponse) GetBody() string { @@ -4450,7 +4450,7 @@ type Silence struct { func (x *Silence) Reset() { *x = Silence{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[74] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4463,7 +4463,7 @@ func (x *Silence) String() string { func (*Silence) ProtoMessage() {} func (x *Silence) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[74] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4476,7 +4476,7 @@ func (x *Silence) ProtoReflect() protoreflect.Message { // Deprecated: Use Silence.ProtoReflect.Descriptor instead. func (*Silence) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{74} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{74} } func (x *Silence) GetId() string { @@ -4549,7 +4549,7 @@ type CreateSilenceRequest struct { func (x *CreateSilenceRequest) Reset() { *x = CreateSilenceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[75] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4562,7 +4562,7 @@ func (x *CreateSilenceRequest) String() string { func (*CreateSilenceRequest) ProtoMessage() {} func (x *CreateSilenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[75] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4575,7 +4575,7 @@ func (x *CreateSilenceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateSilenceRequest.ProtoReflect.Descriptor instead. func (*CreateSilenceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{75} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{75} } func (x *CreateSilenceRequest) GetNamespaceId() uint64 { @@ -4617,7 +4617,7 @@ type CreateSilenceResponse struct { func (x *CreateSilenceResponse) Reset() { *x = CreateSilenceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[76] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4630,7 +4630,7 @@ func (x *CreateSilenceResponse) String() string { func (*CreateSilenceResponse) ProtoMessage() {} func (x *CreateSilenceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[76] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4643,7 +4643,7 @@ func (x *CreateSilenceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateSilenceResponse.ProtoReflect.Descriptor instead. func (*CreateSilenceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{76} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{76} } func (x *CreateSilenceResponse) GetId() string { @@ -4667,7 +4667,7 @@ type ListSilencesRequest struct { func (x *ListSilencesRequest) Reset() { *x = ListSilencesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[77] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4680,7 +4680,7 @@ func (x *ListSilencesRequest) String() string { func (*ListSilencesRequest) ProtoMessage() {} func (x *ListSilencesRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[77] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4693,7 +4693,7 @@ func (x *ListSilencesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSilencesRequest.ProtoReflect.Descriptor instead. func (*ListSilencesRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{77} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{77} } func (x *ListSilencesRequest) GetSubscriptionId() uint64 { @@ -4735,7 +4735,7 @@ type ListSilencesResponse struct { func (x *ListSilencesResponse) Reset() { *x = ListSilencesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[78] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4748,7 +4748,7 @@ func (x *ListSilencesResponse) String() string { func (*ListSilencesResponse) ProtoMessage() {} func (x *ListSilencesResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[78] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4761,7 +4761,7 @@ func (x *ListSilencesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSilencesResponse.ProtoReflect.Descriptor instead. func (*ListSilencesResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{78} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{78} } func (x *ListSilencesResponse) GetSilences() []*Silence { @@ -4782,7 +4782,7 @@ type GetSilenceRequest struct { func (x *GetSilenceRequest) Reset() { *x = GetSilenceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[79] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4795,7 +4795,7 @@ func (x *GetSilenceRequest) String() string { func (*GetSilenceRequest) ProtoMessage() {} func (x *GetSilenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[79] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4808,7 +4808,7 @@ func (x *GetSilenceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSilenceRequest.ProtoReflect.Descriptor instead. func (*GetSilenceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{79} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{79} } func (x *GetSilenceRequest) GetId() string { @@ -4829,7 +4829,7 @@ type GetSilenceResponse struct { func (x *GetSilenceResponse) Reset() { *x = GetSilenceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[80] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4842,7 +4842,7 @@ func (x *GetSilenceResponse) String() string { func (*GetSilenceResponse) ProtoMessage() {} func (x *GetSilenceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[80] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4855,7 +4855,7 @@ func (x *GetSilenceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSilenceResponse.ProtoReflect.Descriptor instead. func (*GetSilenceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{80} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{80} } func (x *GetSilenceResponse) GetSilence() *Silence { @@ -4876,7 +4876,7 @@ type ExpireSilenceRequest struct { func (x *ExpireSilenceRequest) Reset() { *x = ExpireSilenceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[81] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4889,7 +4889,7 @@ func (x *ExpireSilenceRequest) String() string { func (*ExpireSilenceRequest) ProtoMessage() {} func (x *ExpireSilenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[81] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4902,7 +4902,7 @@ func (x *ExpireSilenceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExpireSilenceRequest.ProtoReflect.Descriptor instead. func (*ExpireSilenceRequest) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{81} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{81} } func (x *ExpireSilenceRequest) GetId() string { @@ -4921,7 +4921,7 @@ type ExpireSilenceResponse struct { func (x *ExpireSilenceResponse) Reset() { *x = ExpireSilenceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[82] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4934,7 +4934,7 @@ func (x *ExpireSilenceResponse) String() string { func (*ExpireSilenceResponse) ProtoMessage() {} func (x *ExpireSilenceResponse) ProtoReflect() protoreflect.Message { - mi := &file_odpf_siren_v1beta1_siren_proto_msgTypes[82] + mi := &file_raystack_siren_v1beta1_siren_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4947,12 +4947,12 @@ func (x *ExpireSilenceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ExpireSilenceResponse.ProtoReflect.Descriptor instead. func (*ExpireSilenceResponse) Descriptor() ([]byte, []int) { - return file_odpf_siren_v1beta1_siren_proto_rawDescGZIP(), []int{82} + return file_raystack_siren_v1beta1_siren_proto_rawDescGZIP(), []int{82} } -var File_odpf_siren_v1beta1_siren_proto protoreflect.FileDescriptor +var File_raystack_siren_v1beta1_siren_proto protoreflect.FileDescriptor -var file_odpf_siren_v1beta1_siren_proto_rawDesc = []byte{ +var file_raystack_siren_v1beta1_siren_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x6f, 0x64, 0x70, 0x66, 0x2f, 0x73, 0x69, 0x72, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x69, 0x72, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6f, 0x64, 0x70, 0x66, 0x2e, 0x73, 0x69, 0x72, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, @@ -6129,268 +6129,268 @@ var file_odpf_siren_v1beta1_siren_proto_rawDesc = []byte{ } var ( - file_odpf_siren_v1beta1_siren_proto_rawDescOnce sync.Once - file_odpf_siren_v1beta1_siren_proto_rawDescData = file_odpf_siren_v1beta1_siren_proto_rawDesc + file_raystack_siren_v1beta1_siren_proto_rawDescOnce sync.Once + file_raystack_siren_v1beta1_siren_proto_rawDescData = file_raystack_siren_v1beta1_siren_proto_rawDesc ) -func file_odpf_siren_v1beta1_siren_proto_rawDescGZIP() []byte { - file_odpf_siren_v1beta1_siren_proto_rawDescOnce.Do(func() { - file_odpf_siren_v1beta1_siren_proto_rawDescData = protoimpl.X.CompressGZIP(file_odpf_siren_v1beta1_siren_proto_rawDescData) +func file_raystack_siren_v1beta1_siren_proto_rawDescGZIP() []byte { + file_raystack_siren_v1beta1_siren_proto_rawDescOnce.Do(func() { + file_raystack_siren_v1beta1_siren_proto_rawDescData = protoimpl.X.CompressGZIP(file_raystack_siren_v1beta1_siren_proto_rawDescData) }) - return file_odpf_siren_v1beta1_siren_proto_rawDescData -} - -var file_odpf_siren_v1beta1_siren_proto_msgTypes = make([]protoimpl.MessageInfo, 100) -var file_odpf_siren_v1beta1_siren_proto_goTypes = []interface{}{ - (*Provider)(nil), // 0: odpf.siren.v1beta1.Provider - (*ListProvidersRequest)(nil), // 1: odpf.siren.v1beta1.ListProvidersRequest - (*ListProvidersResponse)(nil), // 2: odpf.siren.v1beta1.ListProvidersResponse - (*CreateProviderRequest)(nil), // 3: odpf.siren.v1beta1.CreateProviderRequest - (*CreateProviderResponse)(nil), // 4: odpf.siren.v1beta1.CreateProviderResponse - (*GetProviderRequest)(nil), // 5: odpf.siren.v1beta1.GetProviderRequest - (*GetProviderResponse)(nil), // 6: odpf.siren.v1beta1.GetProviderResponse - (*UpdateProviderRequest)(nil), // 7: odpf.siren.v1beta1.UpdateProviderRequest - (*UpdateProviderResponse)(nil), // 8: odpf.siren.v1beta1.UpdateProviderResponse - (*DeleteProviderRequest)(nil), // 9: odpf.siren.v1beta1.DeleteProviderRequest - (*DeleteProviderResponse)(nil), // 10: odpf.siren.v1beta1.DeleteProviderResponse - (*Namespace)(nil), // 11: odpf.siren.v1beta1.Namespace - (*ListNamespacesRequest)(nil), // 12: odpf.siren.v1beta1.ListNamespacesRequest - (*ListNamespacesResponse)(nil), // 13: odpf.siren.v1beta1.ListNamespacesResponse - (*CreateNamespaceRequest)(nil), // 14: odpf.siren.v1beta1.CreateNamespaceRequest - (*CreateNamespaceResponse)(nil), // 15: odpf.siren.v1beta1.CreateNamespaceResponse - (*GetNamespaceRequest)(nil), // 16: odpf.siren.v1beta1.GetNamespaceRequest - (*GetNamespaceResponse)(nil), // 17: odpf.siren.v1beta1.GetNamespaceResponse - (*UpdateNamespaceRequest)(nil), // 18: odpf.siren.v1beta1.UpdateNamespaceRequest - (*UpdateNamespaceResponse)(nil), // 19: odpf.siren.v1beta1.UpdateNamespaceResponse - (*DeleteNamespaceRequest)(nil), // 20: odpf.siren.v1beta1.DeleteNamespaceRequest - (*DeleteNamespaceResponse)(nil), // 21: odpf.siren.v1beta1.DeleteNamespaceResponse - (*ReceiverMetadata)(nil), // 22: odpf.siren.v1beta1.ReceiverMetadata - (*Subscription)(nil), // 23: odpf.siren.v1beta1.Subscription - (*ListSubscriptionsRequest)(nil), // 24: odpf.siren.v1beta1.ListSubscriptionsRequest - (*ListSubscriptionsResponse)(nil), // 25: odpf.siren.v1beta1.ListSubscriptionsResponse - (*CreateSubscriptionRequest)(nil), // 26: odpf.siren.v1beta1.CreateSubscriptionRequest - (*CreateSubscriptionResponse)(nil), // 27: odpf.siren.v1beta1.CreateSubscriptionResponse - (*GetSubscriptionRequest)(nil), // 28: odpf.siren.v1beta1.GetSubscriptionRequest - (*GetSubscriptionResponse)(nil), // 29: odpf.siren.v1beta1.GetSubscriptionResponse - (*UpdateSubscriptionRequest)(nil), // 30: odpf.siren.v1beta1.UpdateSubscriptionRequest - (*UpdateSubscriptionResponse)(nil), // 31: odpf.siren.v1beta1.UpdateSubscriptionResponse - (*DeleteSubscriptionRequest)(nil), // 32: odpf.siren.v1beta1.DeleteSubscriptionRequest - (*DeleteSubscriptionResponse)(nil), // 33: odpf.siren.v1beta1.DeleteSubscriptionResponse - (*Receiver)(nil), // 34: odpf.siren.v1beta1.Receiver - (*ListReceiversRequest)(nil), // 35: odpf.siren.v1beta1.ListReceiversRequest - (*ListReceiversResponse)(nil), // 36: odpf.siren.v1beta1.ListReceiversResponse - (*CreateReceiverRequest)(nil), // 37: odpf.siren.v1beta1.CreateReceiverRequest - (*CreateReceiverResponse)(nil), // 38: odpf.siren.v1beta1.CreateReceiverResponse - (*GetReceiverRequest)(nil), // 39: odpf.siren.v1beta1.GetReceiverRequest - (*GetReceiverResponse)(nil), // 40: odpf.siren.v1beta1.GetReceiverResponse - (*UpdateReceiverRequest)(nil), // 41: odpf.siren.v1beta1.UpdateReceiverRequest - (*UpdateReceiverResponse)(nil), // 42: odpf.siren.v1beta1.UpdateReceiverResponse - (*DeleteReceiverRequest)(nil), // 43: odpf.siren.v1beta1.DeleteReceiverRequest - (*DeleteReceiverResponse)(nil), // 44: odpf.siren.v1beta1.DeleteReceiverResponse - (*NotifyReceiverRequest)(nil), // 45: odpf.siren.v1beta1.NotifyReceiverRequest - (*NotifyReceiverResponse)(nil), // 46: odpf.siren.v1beta1.NotifyReceiverResponse - (*Alert)(nil), // 47: odpf.siren.v1beta1.Alert - (*ListAlertsRequest)(nil), // 48: odpf.siren.v1beta1.ListAlertsRequest - (*ListAlertsResponse)(nil), // 49: odpf.siren.v1beta1.ListAlertsResponse - (*CreateAlertsRequest)(nil), // 50: odpf.siren.v1beta1.CreateAlertsRequest - (*CreateAlertsResponse)(nil), // 51: odpf.siren.v1beta1.CreateAlertsResponse - (*CreateAlertsWithNamespaceRequest)(nil), // 52: odpf.siren.v1beta1.CreateAlertsWithNamespaceRequest - (*CreateAlertsWithNamespaceResponse)(nil), // 53: odpf.siren.v1beta1.CreateAlertsWithNamespaceResponse - (*Annotations)(nil), // 54: odpf.siren.v1beta1.Annotations - (*Labels)(nil), // 55: odpf.siren.v1beta1.Labels - (*Rule)(nil), // 56: odpf.siren.v1beta1.Rule - (*Variables)(nil), // 57: odpf.siren.v1beta1.Variables - (*ListRulesRequest)(nil), // 58: odpf.siren.v1beta1.ListRulesRequest - (*ListRulesResponse)(nil), // 59: odpf.siren.v1beta1.ListRulesResponse - (*UpdateRuleRequest)(nil), // 60: odpf.siren.v1beta1.UpdateRuleRequest - (*UpdateRuleResponse)(nil), // 61: odpf.siren.v1beta1.UpdateRuleResponse - (*TemplateVariables)(nil), // 62: odpf.siren.v1beta1.TemplateVariables - (*Template)(nil), // 63: odpf.siren.v1beta1.Template - (*ListTemplatesRequest)(nil), // 64: odpf.siren.v1beta1.ListTemplatesRequest - (*ListTemplatesResponse)(nil), // 65: odpf.siren.v1beta1.ListTemplatesResponse - (*UpsertTemplateRequest)(nil), // 66: odpf.siren.v1beta1.UpsertTemplateRequest - (*UpsertTemplateResponse)(nil), // 67: odpf.siren.v1beta1.UpsertTemplateResponse - (*GetTemplateRequest)(nil), // 68: odpf.siren.v1beta1.GetTemplateRequest - (*GetTemplateResponse)(nil), // 69: odpf.siren.v1beta1.GetTemplateResponse - (*DeleteTemplateRequest)(nil), // 70: odpf.siren.v1beta1.DeleteTemplateRequest - (*DeleteTemplateResponse)(nil), // 71: odpf.siren.v1beta1.DeleteTemplateResponse - (*RenderTemplateRequest)(nil), // 72: odpf.siren.v1beta1.RenderTemplateRequest - (*RenderTemplateResponse)(nil), // 73: odpf.siren.v1beta1.RenderTemplateResponse - (*Silence)(nil), // 74: odpf.siren.v1beta1.Silence - (*CreateSilenceRequest)(nil), // 75: odpf.siren.v1beta1.CreateSilenceRequest - (*CreateSilenceResponse)(nil), // 76: odpf.siren.v1beta1.CreateSilenceResponse - (*ListSilencesRequest)(nil), // 77: odpf.siren.v1beta1.ListSilencesRequest - (*ListSilencesResponse)(nil), // 78: odpf.siren.v1beta1.ListSilencesResponse - (*GetSilenceRequest)(nil), // 79: odpf.siren.v1beta1.GetSilenceRequest - (*GetSilenceResponse)(nil), // 80: odpf.siren.v1beta1.GetSilenceResponse - (*ExpireSilenceRequest)(nil), // 81: odpf.siren.v1beta1.ExpireSilenceRequest - (*ExpireSilenceResponse)(nil), // 82: odpf.siren.v1beta1.ExpireSilenceResponse - nil, // 83: odpf.siren.v1beta1.Provider.LabelsEntry - nil, // 84: odpf.siren.v1beta1.CreateProviderRequest.LabelsEntry - nil, // 85: odpf.siren.v1beta1.UpdateProviderRequest.LabelsEntry - nil, // 86: odpf.siren.v1beta1.Namespace.LabelsEntry - nil, // 87: odpf.siren.v1beta1.CreateNamespaceRequest.LabelsEntry - nil, // 88: odpf.siren.v1beta1.UpdateNamespaceRequest.LabelsEntry - nil, // 89: odpf.siren.v1beta1.Subscription.MatchEntry - nil, // 90: odpf.siren.v1beta1.ListSubscriptionsRequest.MatchEntry - nil, // 91: odpf.siren.v1beta1.ListSubscriptionsRequest.NotificationMatchEntry - nil, // 92: odpf.siren.v1beta1.CreateSubscriptionRequest.MatchEntry - nil, // 93: odpf.siren.v1beta1.UpdateSubscriptionRequest.MatchEntry - nil, // 94: odpf.siren.v1beta1.Receiver.LabelsEntry - nil, // 95: odpf.siren.v1beta1.CreateReceiverRequest.LabelsEntry - nil, // 96: odpf.siren.v1beta1.UpdateReceiverRequest.LabelsEntry - nil, // 97: odpf.siren.v1beta1.RenderTemplateRequest.VariablesEntry - nil, // 98: odpf.siren.v1beta1.ListSilencesRequest.MatchEntry - nil, // 99: odpf.siren.v1beta1.ListSilencesRequest.SubscriptionMatchEntry + return file_raystack_siren_v1beta1_siren_proto_rawDescData +} + +var file_raystack_siren_v1beta1_siren_proto_msgTypes = make([]protoimpl.MessageInfo, 100) +var file_raystack_siren_v1beta1_siren_proto_goTypes = []interface{}{ + (*Provider)(nil), // 0: raystack.siren.v1beta1.Provider + (*ListProvidersRequest)(nil), // 1: raystack.siren.v1beta1.ListProvidersRequest + (*ListProvidersResponse)(nil), // 2: raystack.siren.v1beta1.ListProvidersResponse + (*CreateProviderRequest)(nil), // 3: raystack.siren.v1beta1.CreateProviderRequest + (*CreateProviderResponse)(nil), // 4: raystack.siren.v1beta1.CreateProviderResponse + (*GetProviderRequest)(nil), // 5: raystack.siren.v1beta1.GetProviderRequest + (*GetProviderResponse)(nil), // 6: raystack.siren.v1beta1.GetProviderResponse + (*UpdateProviderRequest)(nil), // 7: raystack.siren.v1beta1.UpdateProviderRequest + (*UpdateProviderResponse)(nil), // 8: raystack.siren.v1beta1.UpdateProviderResponse + (*DeleteProviderRequest)(nil), // 9: raystack.siren.v1beta1.DeleteProviderRequest + (*DeleteProviderResponse)(nil), // 10: raystack.siren.v1beta1.DeleteProviderResponse + (*Namespace)(nil), // 11: raystack.siren.v1beta1.Namespace + (*ListNamespacesRequest)(nil), // 12: raystack.siren.v1beta1.ListNamespacesRequest + (*ListNamespacesResponse)(nil), // 13: raystack.siren.v1beta1.ListNamespacesResponse + (*CreateNamespaceRequest)(nil), // 14: raystack.siren.v1beta1.CreateNamespaceRequest + (*CreateNamespaceResponse)(nil), // 15: raystack.siren.v1beta1.CreateNamespaceResponse + (*GetNamespaceRequest)(nil), // 16: raystack.siren.v1beta1.GetNamespaceRequest + (*GetNamespaceResponse)(nil), // 17: raystack.siren.v1beta1.GetNamespaceResponse + (*UpdateNamespaceRequest)(nil), // 18: raystack.siren.v1beta1.UpdateNamespaceRequest + (*UpdateNamespaceResponse)(nil), // 19: raystack.siren.v1beta1.UpdateNamespaceResponse + (*DeleteNamespaceRequest)(nil), // 20: raystack.siren.v1beta1.DeleteNamespaceRequest + (*DeleteNamespaceResponse)(nil), // 21: raystack.siren.v1beta1.DeleteNamespaceResponse + (*ReceiverMetadata)(nil), // 22: raystack.siren.v1beta1.ReceiverMetadata + (*Subscription)(nil), // 23: raystack.siren.v1beta1.Subscription + (*ListSubscriptionsRequest)(nil), // 24: raystack.siren.v1beta1.ListSubscriptionsRequest + (*ListSubscriptionsResponse)(nil), // 25: raystack.siren.v1beta1.ListSubscriptionsResponse + (*CreateSubscriptionRequest)(nil), // 26: raystack.siren.v1beta1.CreateSubscriptionRequest + (*CreateSubscriptionResponse)(nil), // 27: raystack.siren.v1beta1.CreateSubscriptionResponse + (*GetSubscriptionRequest)(nil), // 28: raystack.siren.v1beta1.GetSubscriptionRequest + (*GetSubscriptionResponse)(nil), // 29: raystack.siren.v1beta1.GetSubscriptionResponse + (*UpdateSubscriptionRequest)(nil), // 30: raystack.siren.v1beta1.UpdateSubscriptionRequest + (*UpdateSubscriptionResponse)(nil), // 31: raystack.siren.v1beta1.UpdateSubscriptionResponse + (*DeleteSubscriptionRequest)(nil), // 32: raystack.siren.v1beta1.DeleteSubscriptionRequest + (*DeleteSubscriptionResponse)(nil), // 33: raystack.siren.v1beta1.DeleteSubscriptionResponse + (*Receiver)(nil), // 34: raystack.siren.v1beta1.Receiver + (*ListReceiversRequest)(nil), // 35: raystack.siren.v1beta1.ListReceiversRequest + (*ListReceiversResponse)(nil), // 36: raystack.siren.v1beta1.ListReceiversResponse + (*CreateReceiverRequest)(nil), // 37: raystack.siren.v1beta1.CreateReceiverRequest + (*CreateReceiverResponse)(nil), // 38: raystack.siren.v1beta1.CreateReceiverResponse + (*GetReceiverRequest)(nil), // 39: raystack.siren.v1beta1.GetReceiverRequest + (*GetReceiverResponse)(nil), // 40: raystack.siren.v1beta1.GetReceiverResponse + (*UpdateReceiverRequest)(nil), // 41: raystack.siren.v1beta1.UpdateReceiverRequest + (*UpdateReceiverResponse)(nil), // 42: raystack.siren.v1beta1.UpdateReceiverResponse + (*DeleteReceiverRequest)(nil), // 43: raystack.siren.v1beta1.DeleteReceiverRequest + (*DeleteReceiverResponse)(nil), // 44: raystack.siren.v1beta1.DeleteReceiverResponse + (*NotifyReceiverRequest)(nil), // 45: raystack.siren.v1beta1.NotifyReceiverRequest + (*NotifyReceiverResponse)(nil), // 46: raystack.siren.v1beta1.NotifyReceiverResponse + (*Alert)(nil), // 47: raystack.siren.v1beta1.Alert + (*ListAlertsRequest)(nil), // 48: raystack.siren.v1beta1.ListAlertsRequest + (*ListAlertsResponse)(nil), // 49: raystack.siren.v1beta1.ListAlertsResponse + (*CreateAlertsRequest)(nil), // 50: raystack.siren.v1beta1.CreateAlertsRequest + (*CreateAlertsResponse)(nil), // 51: raystack.siren.v1beta1.CreateAlertsResponse + (*CreateAlertsWithNamespaceRequest)(nil), // 52: raystack.siren.v1beta1.CreateAlertsWithNamespaceRequest + (*CreateAlertsWithNamespaceResponse)(nil), // 53: raystack.siren.v1beta1.CreateAlertsWithNamespaceResponse + (*Annotations)(nil), // 54: raystack.siren.v1beta1.Annotations + (*Labels)(nil), // 55: raystack.siren.v1beta1.Labels + (*Rule)(nil), // 56: raystack.siren.v1beta1.Rule + (*Variables)(nil), // 57: raystack.siren.v1beta1.Variables + (*ListRulesRequest)(nil), // 58: raystack.siren.v1beta1.ListRulesRequest + (*ListRulesResponse)(nil), // 59: raystack.siren.v1beta1.ListRulesResponse + (*UpdateRuleRequest)(nil), // 60: raystack.siren.v1beta1.UpdateRuleRequest + (*UpdateRuleResponse)(nil), // 61: raystack.siren.v1beta1.UpdateRuleResponse + (*TemplateVariables)(nil), // 62: raystack.siren.v1beta1.TemplateVariables + (*Template)(nil), // 63: raystack.siren.v1beta1.Template + (*ListTemplatesRequest)(nil), // 64: raystack.siren.v1beta1.ListTemplatesRequest + (*ListTemplatesResponse)(nil), // 65: raystack.siren.v1beta1.ListTemplatesResponse + (*UpsertTemplateRequest)(nil), // 66: raystack.siren.v1beta1.UpsertTemplateRequest + (*UpsertTemplateResponse)(nil), // 67: raystack.siren.v1beta1.UpsertTemplateResponse + (*GetTemplateRequest)(nil), // 68: raystack.siren.v1beta1.GetTemplateRequest + (*GetTemplateResponse)(nil), // 69: raystack.siren.v1beta1.GetTemplateResponse + (*DeleteTemplateRequest)(nil), // 70: raystack.siren.v1beta1.DeleteTemplateRequest + (*DeleteTemplateResponse)(nil), // 71: raystack.siren.v1beta1.DeleteTemplateResponse + (*RenderTemplateRequest)(nil), // 72: raystack.siren.v1beta1.RenderTemplateRequest + (*RenderTemplateResponse)(nil), // 73: raystack.siren.v1beta1.RenderTemplateResponse + (*Silence)(nil), // 74: raystack.siren.v1beta1.Silence + (*CreateSilenceRequest)(nil), // 75: raystack.siren.v1beta1.CreateSilenceRequest + (*CreateSilenceResponse)(nil), // 76: raystack.siren.v1beta1.CreateSilenceResponse + (*ListSilencesRequest)(nil), // 77: raystack.siren.v1beta1.ListSilencesRequest + (*ListSilencesResponse)(nil), // 78: raystack.siren.v1beta1.ListSilencesResponse + (*GetSilenceRequest)(nil), // 79: raystack.siren.v1beta1.GetSilenceRequest + (*GetSilenceResponse)(nil), // 80: raystack.siren.v1beta1.GetSilenceResponse + (*ExpireSilenceRequest)(nil), // 81: raystack.siren.v1beta1.ExpireSilenceRequest + (*ExpireSilenceResponse)(nil), // 82: raystack.siren.v1beta1.ExpireSilenceResponse + nil, // 83: raystack.siren.v1beta1.Provider.LabelsEntry + nil, // 84: raystack.siren.v1beta1.CreateProviderRequest.LabelsEntry + nil, // 85: raystack.siren.v1beta1.UpdateProviderRequest.LabelsEntry + nil, // 86: raystack.siren.v1beta1.Namespace.LabelsEntry + nil, // 87: raystack.siren.v1beta1.CreateNamespaceRequest.LabelsEntry + nil, // 88: raystack.siren.v1beta1.UpdateNamespaceRequest.LabelsEntry + nil, // 89: raystack.siren.v1beta1.Subscription.MatchEntry + nil, // 90: raystack.siren.v1beta1.ListSubscriptionsRequest.MatchEntry + nil, // 91: raystack.siren.v1beta1.ListSubscriptionsRequest.NotificationMatchEntry + nil, // 92: raystack.siren.v1beta1.CreateSubscriptionRequest.MatchEntry + nil, // 93: raystack.siren.v1beta1.UpdateSubscriptionRequest.MatchEntry + nil, // 94: raystack.siren.v1beta1.Receiver.LabelsEntry + nil, // 95: raystack.siren.v1beta1.CreateReceiverRequest.LabelsEntry + nil, // 96: raystack.siren.v1beta1.UpdateReceiverRequest.LabelsEntry + nil, // 97: raystack.siren.v1beta1.RenderTemplateRequest.VariablesEntry + nil, // 98: raystack.siren.v1beta1.ListSilencesRequest.MatchEntry + nil, // 99: raystack.siren.v1beta1.ListSilencesRequest.SubscriptionMatchEntry (*structpb.Struct)(nil), // 100: google.protobuf.Struct (*timestamppb.Timestamp)(nil), // 101: google.protobuf.Timestamp } -var file_odpf_siren_v1beta1_siren_proto_depIdxs = []int32{ - 100, // 0: odpf.siren.v1beta1.Provider.credentials:type_name -> google.protobuf.Struct - 83, // 1: odpf.siren.v1beta1.Provider.labels:type_name -> odpf.siren.v1beta1.Provider.LabelsEntry - 101, // 2: odpf.siren.v1beta1.Provider.created_at:type_name -> google.protobuf.Timestamp - 101, // 3: odpf.siren.v1beta1.Provider.updated_at:type_name -> google.protobuf.Timestamp - 0, // 4: odpf.siren.v1beta1.ListProvidersResponse.providers:type_name -> odpf.siren.v1beta1.Provider - 100, // 5: odpf.siren.v1beta1.CreateProviderRequest.credentials:type_name -> google.protobuf.Struct - 84, // 6: odpf.siren.v1beta1.CreateProviderRequest.labels:type_name -> odpf.siren.v1beta1.CreateProviderRequest.LabelsEntry - 0, // 7: odpf.siren.v1beta1.GetProviderResponse.provider:type_name -> odpf.siren.v1beta1.Provider - 100, // 8: odpf.siren.v1beta1.UpdateProviderRequest.credentials:type_name -> google.protobuf.Struct - 85, // 9: odpf.siren.v1beta1.UpdateProviderRequest.labels:type_name -> odpf.siren.v1beta1.UpdateProviderRequest.LabelsEntry - 100, // 10: odpf.siren.v1beta1.Namespace.credentials:type_name -> google.protobuf.Struct - 86, // 11: odpf.siren.v1beta1.Namespace.labels:type_name -> odpf.siren.v1beta1.Namespace.LabelsEntry - 101, // 12: odpf.siren.v1beta1.Namespace.created_at:type_name -> google.protobuf.Timestamp - 101, // 13: odpf.siren.v1beta1.Namespace.updated_at:type_name -> google.protobuf.Timestamp - 11, // 14: odpf.siren.v1beta1.ListNamespacesResponse.namespaces:type_name -> odpf.siren.v1beta1.Namespace - 100, // 15: odpf.siren.v1beta1.CreateNamespaceRequest.credentials:type_name -> google.protobuf.Struct - 87, // 16: odpf.siren.v1beta1.CreateNamespaceRequest.labels:type_name -> odpf.siren.v1beta1.CreateNamespaceRequest.LabelsEntry - 101, // 17: odpf.siren.v1beta1.CreateNamespaceRequest.created_at:type_name -> google.protobuf.Timestamp - 101, // 18: odpf.siren.v1beta1.CreateNamespaceRequest.updated_at:type_name -> google.protobuf.Timestamp - 11, // 19: odpf.siren.v1beta1.GetNamespaceResponse.namespace:type_name -> odpf.siren.v1beta1.Namespace - 100, // 20: odpf.siren.v1beta1.UpdateNamespaceRequest.credentials:type_name -> google.protobuf.Struct - 88, // 21: odpf.siren.v1beta1.UpdateNamespaceRequest.labels:type_name -> odpf.siren.v1beta1.UpdateNamespaceRequest.LabelsEntry - 100, // 22: odpf.siren.v1beta1.ReceiverMetadata.configuration:type_name -> google.protobuf.Struct - 22, // 23: odpf.siren.v1beta1.Subscription.receivers:type_name -> odpf.siren.v1beta1.ReceiverMetadata - 89, // 24: odpf.siren.v1beta1.Subscription.match:type_name -> odpf.siren.v1beta1.Subscription.MatchEntry - 101, // 25: odpf.siren.v1beta1.Subscription.created_at:type_name -> google.protobuf.Timestamp - 101, // 26: odpf.siren.v1beta1.Subscription.updated_at:type_name -> google.protobuf.Timestamp - 90, // 27: odpf.siren.v1beta1.ListSubscriptionsRequest.match:type_name -> odpf.siren.v1beta1.ListSubscriptionsRequest.MatchEntry - 91, // 28: odpf.siren.v1beta1.ListSubscriptionsRequest.notification_match:type_name -> odpf.siren.v1beta1.ListSubscriptionsRequest.NotificationMatchEntry - 23, // 29: odpf.siren.v1beta1.ListSubscriptionsResponse.subscriptions:type_name -> odpf.siren.v1beta1.Subscription - 22, // 30: odpf.siren.v1beta1.CreateSubscriptionRequest.receivers:type_name -> odpf.siren.v1beta1.ReceiverMetadata - 92, // 31: odpf.siren.v1beta1.CreateSubscriptionRequest.match:type_name -> odpf.siren.v1beta1.CreateSubscriptionRequest.MatchEntry - 23, // 32: odpf.siren.v1beta1.GetSubscriptionResponse.subscription:type_name -> odpf.siren.v1beta1.Subscription - 22, // 33: odpf.siren.v1beta1.UpdateSubscriptionRequest.receivers:type_name -> odpf.siren.v1beta1.ReceiverMetadata - 93, // 34: odpf.siren.v1beta1.UpdateSubscriptionRequest.match:type_name -> odpf.siren.v1beta1.UpdateSubscriptionRequest.MatchEntry - 94, // 35: odpf.siren.v1beta1.Receiver.labels:type_name -> odpf.siren.v1beta1.Receiver.LabelsEntry - 100, // 36: odpf.siren.v1beta1.Receiver.configurations:type_name -> google.protobuf.Struct - 100, // 37: odpf.siren.v1beta1.Receiver.data:type_name -> google.protobuf.Struct - 101, // 38: odpf.siren.v1beta1.Receiver.created_at:type_name -> google.protobuf.Timestamp - 101, // 39: odpf.siren.v1beta1.Receiver.updated_at:type_name -> google.protobuf.Timestamp - 34, // 40: odpf.siren.v1beta1.ListReceiversResponse.receivers:type_name -> odpf.siren.v1beta1.Receiver - 95, // 41: odpf.siren.v1beta1.CreateReceiverRequest.labels:type_name -> odpf.siren.v1beta1.CreateReceiverRequest.LabelsEntry - 100, // 42: odpf.siren.v1beta1.CreateReceiverRequest.configurations:type_name -> google.protobuf.Struct - 34, // 43: odpf.siren.v1beta1.GetReceiverResponse.receiver:type_name -> odpf.siren.v1beta1.Receiver - 96, // 44: odpf.siren.v1beta1.UpdateReceiverRequest.labels:type_name -> odpf.siren.v1beta1.UpdateReceiverRequest.LabelsEntry - 100, // 45: odpf.siren.v1beta1.UpdateReceiverRequest.configurations:type_name -> google.protobuf.Struct - 100, // 46: odpf.siren.v1beta1.NotifyReceiverRequest.payload:type_name -> google.protobuf.Struct - 101, // 47: odpf.siren.v1beta1.Alert.triggered_at:type_name -> google.protobuf.Timestamp - 47, // 48: odpf.siren.v1beta1.ListAlertsResponse.alerts:type_name -> odpf.siren.v1beta1.Alert - 100, // 49: odpf.siren.v1beta1.CreateAlertsRequest.body:type_name -> google.protobuf.Struct - 47, // 50: odpf.siren.v1beta1.CreateAlertsResponse.alerts:type_name -> odpf.siren.v1beta1.Alert - 100, // 51: odpf.siren.v1beta1.CreateAlertsWithNamespaceRequest.body:type_name -> google.protobuf.Struct - 47, // 52: odpf.siren.v1beta1.CreateAlertsWithNamespaceResponse.alerts:type_name -> odpf.siren.v1beta1.Alert - 57, // 53: odpf.siren.v1beta1.Rule.variables:type_name -> odpf.siren.v1beta1.Variables - 101, // 54: odpf.siren.v1beta1.Rule.created_at:type_name -> google.protobuf.Timestamp - 101, // 55: odpf.siren.v1beta1.Rule.updated_at:type_name -> google.protobuf.Timestamp - 56, // 56: odpf.siren.v1beta1.ListRulesResponse.rules:type_name -> odpf.siren.v1beta1.Rule - 57, // 57: odpf.siren.v1beta1.UpdateRuleRequest.variables:type_name -> odpf.siren.v1beta1.Variables - 56, // 58: odpf.siren.v1beta1.UpdateRuleResponse.rule:type_name -> odpf.siren.v1beta1.Rule - 101, // 59: odpf.siren.v1beta1.Template.created_at:type_name -> google.protobuf.Timestamp - 101, // 60: odpf.siren.v1beta1.Template.updated_at:type_name -> google.protobuf.Timestamp - 62, // 61: odpf.siren.v1beta1.Template.variables:type_name -> odpf.siren.v1beta1.TemplateVariables - 63, // 62: odpf.siren.v1beta1.ListTemplatesResponse.templates:type_name -> odpf.siren.v1beta1.Template - 62, // 63: odpf.siren.v1beta1.UpsertTemplateRequest.variables:type_name -> odpf.siren.v1beta1.TemplateVariables - 63, // 64: odpf.siren.v1beta1.GetTemplateResponse.template:type_name -> odpf.siren.v1beta1.Template - 97, // 65: odpf.siren.v1beta1.RenderTemplateRequest.variables:type_name -> odpf.siren.v1beta1.RenderTemplateRequest.VariablesEntry - 100, // 66: odpf.siren.v1beta1.Silence.target_expression:type_name -> google.protobuf.Struct - 101, // 67: odpf.siren.v1beta1.Silence.created_at:type_name -> google.protobuf.Timestamp - 101, // 68: odpf.siren.v1beta1.Silence.updated_at:type_name -> google.protobuf.Timestamp - 101, // 69: odpf.siren.v1beta1.Silence.deleted_at:type_name -> google.protobuf.Timestamp - 100, // 70: odpf.siren.v1beta1.CreateSilenceRequest.target_expression:type_name -> google.protobuf.Struct - 98, // 71: odpf.siren.v1beta1.ListSilencesRequest.match:type_name -> odpf.siren.v1beta1.ListSilencesRequest.MatchEntry - 99, // 72: odpf.siren.v1beta1.ListSilencesRequest.subscription_match:type_name -> odpf.siren.v1beta1.ListSilencesRequest.SubscriptionMatchEntry - 74, // 73: odpf.siren.v1beta1.ListSilencesResponse.silences:type_name -> odpf.siren.v1beta1.Silence - 74, // 74: odpf.siren.v1beta1.GetSilenceResponse.silence:type_name -> odpf.siren.v1beta1.Silence - 1, // 75: odpf.siren.v1beta1.SirenService.ListProviders:input_type -> odpf.siren.v1beta1.ListProvidersRequest - 3, // 76: odpf.siren.v1beta1.SirenService.CreateProvider:input_type -> odpf.siren.v1beta1.CreateProviderRequest - 5, // 77: odpf.siren.v1beta1.SirenService.GetProvider:input_type -> odpf.siren.v1beta1.GetProviderRequest - 7, // 78: odpf.siren.v1beta1.SirenService.UpdateProvider:input_type -> odpf.siren.v1beta1.UpdateProviderRequest - 9, // 79: odpf.siren.v1beta1.SirenService.DeleteProvider:input_type -> odpf.siren.v1beta1.DeleteProviderRequest - 45, // 80: odpf.siren.v1beta1.SirenService.NotifyReceiver:input_type -> odpf.siren.v1beta1.NotifyReceiverRequest - 12, // 81: odpf.siren.v1beta1.SirenService.ListNamespaces:input_type -> odpf.siren.v1beta1.ListNamespacesRequest - 14, // 82: odpf.siren.v1beta1.SirenService.CreateNamespace:input_type -> odpf.siren.v1beta1.CreateNamespaceRequest - 16, // 83: odpf.siren.v1beta1.SirenService.GetNamespace:input_type -> odpf.siren.v1beta1.GetNamespaceRequest - 18, // 84: odpf.siren.v1beta1.SirenService.UpdateNamespace:input_type -> odpf.siren.v1beta1.UpdateNamespaceRequest - 20, // 85: odpf.siren.v1beta1.SirenService.DeleteNamespace:input_type -> odpf.siren.v1beta1.DeleteNamespaceRequest - 24, // 86: odpf.siren.v1beta1.SirenService.ListSubscriptions:input_type -> odpf.siren.v1beta1.ListSubscriptionsRequest - 26, // 87: odpf.siren.v1beta1.SirenService.CreateSubscription:input_type -> odpf.siren.v1beta1.CreateSubscriptionRequest - 28, // 88: odpf.siren.v1beta1.SirenService.GetSubscription:input_type -> odpf.siren.v1beta1.GetSubscriptionRequest - 30, // 89: odpf.siren.v1beta1.SirenService.UpdateSubscription:input_type -> odpf.siren.v1beta1.UpdateSubscriptionRequest - 32, // 90: odpf.siren.v1beta1.SirenService.DeleteSubscription:input_type -> odpf.siren.v1beta1.DeleteSubscriptionRequest - 35, // 91: odpf.siren.v1beta1.SirenService.ListReceivers:input_type -> odpf.siren.v1beta1.ListReceiversRequest - 37, // 92: odpf.siren.v1beta1.SirenService.CreateReceiver:input_type -> odpf.siren.v1beta1.CreateReceiverRequest - 39, // 93: odpf.siren.v1beta1.SirenService.GetReceiver:input_type -> odpf.siren.v1beta1.GetReceiverRequest - 41, // 94: odpf.siren.v1beta1.SirenService.UpdateReceiver:input_type -> odpf.siren.v1beta1.UpdateReceiverRequest - 43, // 95: odpf.siren.v1beta1.SirenService.DeleteReceiver:input_type -> odpf.siren.v1beta1.DeleteReceiverRequest - 48, // 96: odpf.siren.v1beta1.SirenService.ListAlerts:input_type -> odpf.siren.v1beta1.ListAlertsRequest - 50, // 97: odpf.siren.v1beta1.SirenService.CreateAlerts:input_type -> odpf.siren.v1beta1.CreateAlertsRequest - 52, // 98: odpf.siren.v1beta1.SirenService.CreateAlertsWithNamespace:input_type -> odpf.siren.v1beta1.CreateAlertsWithNamespaceRequest - 58, // 99: odpf.siren.v1beta1.SirenService.ListRules:input_type -> odpf.siren.v1beta1.ListRulesRequest - 60, // 100: odpf.siren.v1beta1.SirenService.UpdateRule:input_type -> odpf.siren.v1beta1.UpdateRuleRequest - 64, // 101: odpf.siren.v1beta1.SirenService.ListTemplates:input_type -> odpf.siren.v1beta1.ListTemplatesRequest - 68, // 102: odpf.siren.v1beta1.SirenService.GetTemplate:input_type -> odpf.siren.v1beta1.GetTemplateRequest - 66, // 103: odpf.siren.v1beta1.SirenService.UpsertTemplate:input_type -> odpf.siren.v1beta1.UpsertTemplateRequest - 70, // 104: odpf.siren.v1beta1.SirenService.DeleteTemplate:input_type -> odpf.siren.v1beta1.DeleteTemplateRequest - 72, // 105: odpf.siren.v1beta1.SirenService.RenderTemplate:input_type -> odpf.siren.v1beta1.RenderTemplateRequest - 75, // 106: odpf.siren.v1beta1.SirenService.CreateSilence:input_type -> odpf.siren.v1beta1.CreateSilenceRequest - 77, // 107: odpf.siren.v1beta1.SirenService.ListSilences:input_type -> odpf.siren.v1beta1.ListSilencesRequest - 79, // 108: odpf.siren.v1beta1.SirenService.GetSilence:input_type -> odpf.siren.v1beta1.GetSilenceRequest - 81, // 109: odpf.siren.v1beta1.SirenService.ExpireSilence:input_type -> odpf.siren.v1beta1.ExpireSilenceRequest - 2, // 110: odpf.siren.v1beta1.SirenService.ListProviders:output_type -> odpf.siren.v1beta1.ListProvidersResponse - 4, // 111: odpf.siren.v1beta1.SirenService.CreateProvider:output_type -> odpf.siren.v1beta1.CreateProviderResponse - 6, // 112: odpf.siren.v1beta1.SirenService.GetProvider:output_type -> odpf.siren.v1beta1.GetProviderResponse - 8, // 113: odpf.siren.v1beta1.SirenService.UpdateProvider:output_type -> odpf.siren.v1beta1.UpdateProviderResponse - 10, // 114: odpf.siren.v1beta1.SirenService.DeleteProvider:output_type -> odpf.siren.v1beta1.DeleteProviderResponse - 46, // 115: odpf.siren.v1beta1.SirenService.NotifyReceiver:output_type -> odpf.siren.v1beta1.NotifyReceiverResponse - 13, // 116: odpf.siren.v1beta1.SirenService.ListNamespaces:output_type -> odpf.siren.v1beta1.ListNamespacesResponse - 15, // 117: odpf.siren.v1beta1.SirenService.CreateNamespace:output_type -> odpf.siren.v1beta1.CreateNamespaceResponse - 17, // 118: odpf.siren.v1beta1.SirenService.GetNamespace:output_type -> odpf.siren.v1beta1.GetNamespaceResponse - 19, // 119: odpf.siren.v1beta1.SirenService.UpdateNamespace:output_type -> odpf.siren.v1beta1.UpdateNamespaceResponse - 21, // 120: odpf.siren.v1beta1.SirenService.DeleteNamespace:output_type -> odpf.siren.v1beta1.DeleteNamespaceResponse - 25, // 121: odpf.siren.v1beta1.SirenService.ListSubscriptions:output_type -> odpf.siren.v1beta1.ListSubscriptionsResponse - 27, // 122: odpf.siren.v1beta1.SirenService.CreateSubscription:output_type -> odpf.siren.v1beta1.CreateSubscriptionResponse - 29, // 123: odpf.siren.v1beta1.SirenService.GetSubscription:output_type -> odpf.siren.v1beta1.GetSubscriptionResponse - 31, // 124: odpf.siren.v1beta1.SirenService.UpdateSubscription:output_type -> odpf.siren.v1beta1.UpdateSubscriptionResponse - 33, // 125: odpf.siren.v1beta1.SirenService.DeleteSubscription:output_type -> odpf.siren.v1beta1.DeleteSubscriptionResponse - 36, // 126: odpf.siren.v1beta1.SirenService.ListReceivers:output_type -> odpf.siren.v1beta1.ListReceiversResponse - 38, // 127: odpf.siren.v1beta1.SirenService.CreateReceiver:output_type -> odpf.siren.v1beta1.CreateReceiverResponse - 40, // 128: odpf.siren.v1beta1.SirenService.GetReceiver:output_type -> odpf.siren.v1beta1.GetReceiverResponse - 42, // 129: odpf.siren.v1beta1.SirenService.UpdateReceiver:output_type -> odpf.siren.v1beta1.UpdateReceiverResponse - 44, // 130: odpf.siren.v1beta1.SirenService.DeleteReceiver:output_type -> odpf.siren.v1beta1.DeleteReceiverResponse - 49, // 131: odpf.siren.v1beta1.SirenService.ListAlerts:output_type -> odpf.siren.v1beta1.ListAlertsResponse - 51, // 132: odpf.siren.v1beta1.SirenService.CreateAlerts:output_type -> odpf.siren.v1beta1.CreateAlertsResponse - 53, // 133: odpf.siren.v1beta1.SirenService.CreateAlertsWithNamespace:output_type -> odpf.siren.v1beta1.CreateAlertsWithNamespaceResponse - 59, // 134: odpf.siren.v1beta1.SirenService.ListRules:output_type -> odpf.siren.v1beta1.ListRulesResponse - 61, // 135: odpf.siren.v1beta1.SirenService.UpdateRule:output_type -> odpf.siren.v1beta1.UpdateRuleResponse - 65, // 136: odpf.siren.v1beta1.SirenService.ListTemplates:output_type -> odpf.siren.v1beta1.ListTemplatesResponse - 69, // 137: odpf.siren.v1beta1.SirenService.GetTemplate:output_type -> odpf.siren.v1beta1.GetTemplateResponse - 67, // 138: odpf.siren.v1beta1.SirenService.UpsertTemplate:output_type -> odpf.siren.v1beta1.UpsertTemplateResponse - 71, // 139: odpf.siren.v1beta1.SirenService.DeleteTemplate:output_type -> odpf.siren.v1beta1.DeleteTemplateResponse - 73, // 140: odpf.siren.v1beta1.SirenService.RenderTemplate:output_type -> odpf.siren.v1beta1.RenderTemplateResponse - 76, // 141: odpf.siren.v1beta1.SirenService.CreateSilence:output_type -> odpf.siren.v1beta1.CreateSilenceResponse - 78, // 142: odpf.siren.v1beta1.SirenService.ListSilences:output_type -> odpf.siren.v1beta1.ListSilencesResponse - 80, // 143: odpf.siren.v1beta1.SirenService.GetSilence:output_type -> odpf.siren.v1beta1.GetSilenceResponse - 82, // 144: odpf.siren.v1beta1.SirenService.ExpireSilence:output_type -> odpf.siren.v1beta1.ExpireSilenceResponse +var file_raystack_siren_v1beta1_siren_proto_depIdxs = []int32{ + 100, // 0: raystack.siren.v1beta1.Provider.credentials:type_name -> google.protobuf.Struct + 83, // 1: raystack.siren.v1beta1.Provider.labels:type_name -> raystack.siren.v1beta1.Provider.LabelsEntry + 101, // 2: raystack.siren.v1beta1.Provider.created_at:type_name -> google.protobuf.Timestamp + 101, // 3: raystack.siren.v1beta1.Provider.updated_at:type_name -> google.protobuf.Timestamp + 0, // 4: raystack.siren.v1beta1.ListProvidersResponse.providers:type_name -> raystack.siren.v1beta1.Provider + 100, // 5: raystack.siren.v1beta1.CreateProviderRequest.credentials:type_name -> google.protobuf.Struct + 84, // 6: raystack.siren.v1beta1.CreateProviderRequest.labels:type_name -> raystack.siren.v1beta1.CreateProviderRequest.LabelsEntry + 0, // 7: raystack.siren.v1beta1.GetProviderResponse.provider:type_name -> raystack.siren.v1beta1.Provider + 100, // 8: raystack.siren.v1beta1.UpdateProviderRequest.credentials:type_name -> google.protobuf.Struct + 85, // 9: raystack.siren.v1beta1.UpdateProviderRequest.labels:type_name -> raystack.siren.v1beta1.UpdateProviderRequest.LabelsEntry + 100, // 10: raystack.siren.v1beta1.Namespace.credentials:type_name -> google.protobuf.Struct + 86, // 11: raystack.siren.v1beta1.Namespace.labels:type_name -> raystack.siren.v1beta1.Namespace.LabelsEntry + 101, // 12: raystack.siren.v1beta1.Namespace.created_at:type_name -> google.protobuf.Timestamp + 101, // 13: raystack.siren.v1beta1.Namespace.updated_at:type_name -> google.protobuf.Timestamp + 11, // 14: raystack.siren.v1beta1.ListNamespacesResponse.namespaces:type_name -> raystack.siren.v1beta1.Namespace + 100, // 15: raystack.siren.v1beta1.CreateNamespaceRequest.credentials:type_name -> google.protobuf.Struct + 87, // 16: raystack.siren.v1beta1.CreateNamespaceRequest.labels:type_name -> raystack.siren.v1beta1.CreateNamespaceRequest.LabelsEntry + 101, // 17: raystack.siren.v1beta1.CreateNamespaceRequest.created_at:type_name -> google.protobuf.Timestamp + 101, // 18: raystack.siren.v1beta1.CreateNamespaceRequest.updated_at:type_name -> google.protobuf.Timestamp + 11, // 19: raystack.siren.v1beta1.GetNamespaceResponse.namespace:type_name -> raystack.siren.v1beta1.Namespace + 100, // 20: raystack.siren.v1beta1.UpdateNamespaceRequest.credentials:type_name -> google.protobuf.Struct + 88, // 21: raystack.siren.v1beta1.UpdateNamespaceRequest.labels:type_name -> raystack.siren.v1beta1.UpdateNamespaceRequest.LabelsEntry + 100, // 22: raystack.siren.v1beta1.ReceiverMetadata.configuration:type_name -> google.protobuf.Struct + 22, // 23: raystack.siren.v1beta1.Subscription.receivers:type_name -> raystack.siren.v1beta1.ReceiverMetadata + 89, // 24: raystack.siren.v1beta1.Subscription.match:type_name -> raystack.siren.v1beta1.Subscription.MatchEntry + 101, // 25: raystack.siren.v1beta1.Subscription.created_at:type_name -> google.protobuf.Timestamp + 101, // 26: raystack.siren.v1beta1.Subscription.updated_at:type_name -> google.protobuf.Timestamp + 90, // 27: raystack.siren.v1beta1.ListSubscriptionsRequest.match:type_name -> raystack.siren.v1beta1.ListSubscriptionsRequest.MatchEntry + 91, // 28: raystack.siren.v1beta1.ListSubscriptionsRequest.notification_match:type_name -> raystack.siren.v1beta1.ListSubscriptionsRequest.NotificationMatchEntry + 23, // 29: raystack.siren.v1beta1.ListSubscriptionsResponse.subscriptions:type_name -> raystack.siren.v1beta1.Subscription + 22, // 30: raystack.siren.v1beta1.CreateSubscriptionRequest.receivers:type_name -> raystack.siren.v1beta1.ReceiverMetadata + 92, // 31: raystack.siren.v1beta1.CreateSubscriptionRequest.match:type_name -> raystack.siren.v1beta1.CreateSubscriptionRequest.MatchEntry + 23, // 32: raystack.siren.v1beta1.GetSubscriptionResponse.subscription:type_name -> raystack.siren.v1beta1.Subscription + 22, // 33: raystack.siren.v1beta1.UpdateSubscriptionRequest.receivers:type_name -> raystack.siren.v1beta1.ReceiverMetadata + 93, // 34: raystack.siren.v1beta1.UpdateSubscriptionRequest.match:type_name -> raystack.siren.v1beta1.UpdateSubscriptionRequest.MatchEntry + 94, // 35: raystack.siren.v1beta1.Receiver.labels:type_name -> raystack.siren.v1beta1.Receiver.LabelsEntry + 100, // 36: raystack.siren.v1beta1.Receiver.configurations:type_name -> google.protobuf.Struct + 100, // 37: raystack.siren.v1beta1.Receiver.data:type_name -> google.protobuf.Struct + 101, // 38: raystack.siren.v1beta1.Receiver.created_at:type_name -> google.protobuf.Timestamp + 101, // 39: raystack.siren.v1beta1.Receiver.updated_at:type_name -> google.protobuf.Timestamp + 34, // 40: raystack.siren.v1beta1.ListReceiversResponse.receivers:type_name -> raystack.siren.v1beta1.Receiver + 95, // 41: raystack.siren.v1beta1.CreateReceiverRequest.labels:type_name -> raystack.siren.v1beta1.CreateReceiverRequest.LabelsEntry + 100, // 42: raystack.siren.v1beta1.CreateReceiverRequest.configurations:type_name -> google.protobuf.Struct + 34, // 43: raystack.siren.v1beta1.GetReceiverResponse.receiver:type_name -> raystack.siren.v1beta1.Receiver + 96, // 44: raystack.siren.v1beta1.UpdateReceiverRequest.labels:type_name -> raystack.siren.v1beta1.UpdateReceiverRequest.LabelsEntry + 100, // 45: raystack.siren.v1beta1.UpdateReceiverRequest.configurations:type_name -> google.protobuf.Struct + 100, // 46: raystack.siren.v1beta1.NotifyReceiverRequest.payload:type_name -> google.protobuf.Struct + 101, // 47: raystack.siren.v1beta1.Alert.triggered_at:type_name -> google.protobuf.Timestamp + 47, // 48: raystack.siren.v1beta1.ListAlertsResponse.alerts:type_name -> raystack.siren.v1beta1.Alert + 100, // 49: raystack.siren.v1beta1.CreateAlertsRequest.body:type_name -> google.protobuf.Struct + 47, // 50: raystack.siren.v1beta1.CreateAlertsResponse.alerts:type_name -> raystack.siren.v1beta1.Alert + 100, // 51: raystack.siren.v1beta1.CreateAlertsWithNamespaceRequest.body:type_name -> google.protobuf.Struct + 47, // 52: raystack.siren.v1beta1.CreateAlertsWithNamespaceResponse.alerts:type_name -> raystack.siren.v1beta1.Alert + 57, // 53: raystack.siren.v1beta1.Rule.variables:type_name -> raystack.siren.v1beta1.Variables + 101, // 54: raystack.siren.v1beta1.Rule.created_at:type_name -> google.protobuf.Timestamp + 101, // 55: raystack.siren.v1beta1.Rule.updated_at:type_name -> google.protobuf.Timestamp + 56, // 56: raystack.siren.v1beta1.ListRulesResponse.rules:type_name -> raystack.siren.v1beta1.Rule + 57, // 57: raystack.siren.v1beta1.UpdateRuleRequest.variables:type_name -> raystack.siren.v1beta1.Variables + 56, // 58: raystack.siren.v1beta1.UpdateRuleResponse.rule:type_name -> raystack.siren.v1beta1.Rule + 101, // 59: raystack.siren.v1beta1.Template.created_at:type_name -> google.protobuf.Timestamp + 101, // 60: raystack.siren.v1beta1.Template.updated_at:type_name -> google.protobuf.Timestamp + 62, // 61: raystack.siren.v1beta1.Template.variables:type_name -> raystack.siren.v1beta1.TemplateVariables + 63, // 62: raystack.siren.v1beta1.ListTemplatesResponse.templates:type_name -> raystack.siren.v1beta1.Template + 62, // 63: raystack.siren.v1beta1.UpsertTemplateRequest.variables:type_name -> raystack.siren.v1beta1.TemplateVariables + 63, // 64: raystack.siren.v1beta1.GetTemplateResponse.template:type_name -> raystack.siren.v1beta1.Template + 97, // 65: raystack.siren.v1beta1.RenderTemplateRequest.variables:type_name -> raystack.siren.v1beta1.RenderTemplateRequest.VariablesEntry + 100, // 66: raystack.siren.v1beta1.Silence.target_expression:type_name -> google.protobuf.Struct + 101, // 67: raystack.siren.v1beta1.Silence.created_at:type_name -> google.protobuf.Timestamp + 101, // 68: raystack.siren.v1beta1.Silence.updated_at:type_name -> google.protobuf.Timestamp + 101, // 69: raystack.siren.v1beta1.Silence.deleted_at:type_name -> google.protobuf.Timestamp + 100, // 70: raystack.siren.v1beta1.CreateSilenceRequest.target_expression:type_name -> google.protobuf.Struct + 98, // 71: raystack.siren.v1beta1.ListSilencesRequest.match:type_name -> raystack.siren.v1beta1.ListSilencesRequest.MatchEntry + 99, // 72: raystack.siren.v1beta1.ListSilencesRequest.subscription_match:type_name -> raystack.siren.v1beta1.ListSilencesRequest.SubscriptionMatchEntry + 74, // 73: raystack.siren.v1beta1.ListSilencesResponse.silences:type_name -> raystack.siren.v1beta1.Silence + 74, // 74: raystack.siren.v1beta1.GetSilenceResponse.silence:type_name -> raystack.siren.v1beta1.Silence + 1, // 75: raystack.siren.v1beta1.SirenService.ListProviders:input_type -> raystack.siren.v1beta1.ListProvidersRequest + 3, // 76: raystack.siren.v1beta1.SirenService.CreateProvider:input_type -> raystack.siren.v1beta1.CreateProviderRequest + 5, // 77: raystack.siren.v1beta1.SirenService.GetProvider:input_type -> raystack.siren.v1beta1.GetProviderRequest + 7, // 78: raystack.siren.v1beta1.SirenService.UpdateProvider:input_type -> raystack.siren.v1beta1.UpdateProviderRequest + 9, // 79: raystack.siren.v1beta1.SirenService.DeleteProvider:input_type -> raystack.siren.v1beta1.DeleteProviderRequest + 45, // 80: raystack.siren.v1beta1.SirenService.NotifyReceiver:input_type -> raystack.siren.v1beta1.NotifyReceiverRequest + 12, // 81: raystack.siren.v1beta1.SirenService.ListNamespaces:input_type -> raystack.siren.v1beta1.ListNamespacesRequest + 14, // 82: raystack.siren.v1beta1.SirenService.CreateNamespace:input_type -> raystack.siren.v1beta1.CreateNamespaceRequest + 16, // 83: raystack.siren.v1beta1.SirenService.GetNamespace:input_type -> raystack.siren.v1beta1.GetNamespaceRequest + 18, // 84: raystack.siren.v1beta1.SirenService.UpdateNamespace:input_type -> raystack.siren.v1beta1.UpdateNamespaceRequest + 20, // 85: raystack.siren.v1beta1.SirenService.DeleteNamespace:input_type -> raystack.siren.v1beta1.DeleteNamespaceRequest + 24, // 86: raystack.siren.v1beta1.SirenService.ListSubscriptions:input_type -> raystack.siren.v1beta1.ListSubscriptionsRequest + 26, // 87: raystack.siren.v1beta1.SirenService.CreateSubscription:input_type -> raystack.siren.v1beta1.CreateSubscriptionRequest + 28, // 88: raystack.siren.v1beta1.SirenService.GetSubscription:input_type -> raystack.siren.v1beta1.GetSubscriptionRequest + 30, // 89: raystack.siren.v1beta1.SirenService.UpdateSubscription:input_type -> raystack.siren.v1beta1.UpdateSubscriptionRequest + 32, // 90: raystack.siren.v1beta1.SirenService.DeleteSubscription:input_type -> raystack.siren.v1beta1.DeleteSubscriptionRequest + 35, // 91: raystack.siren.v1beta1.SirenService.ListReceivers:input_type -> raystack.siren.v1beta1.ListReceiversRequest + 37, // 92: raystack.siren.v1beta1.SirenService.CreateReceiver:input_type -> raystack.siren.v1beta1.CreateReceiverRequest + 39, // 93: raystack.siren.v1beta1.SirenService.GetReceiver:input_type -> raystack.siren.v1beta1.GetReceiverRequest + 41, // 94: raystack.siren.v1beta1.SirenService.UpdateReceiver:input_type -> raystack.siren.v1beta1.UpdateReceiverRequest + 43, // 95: raystack.siren.v1beta1.SirenService.DeleteReceiver:input_type -> raystack.siren.v1beta1.DeleteReceiverRequest + 48, // 96: raystack.siren.v1beta1.SirenService.ListAlerts:input_type -> raystack.siren.v1beta1.ListAlertsRequest + 50, // 97: raystack.siren.v1beta1.SirenService.CreateAlerts:input_type -> raystack.siren.v1beta1.CreateAlertsRequest + 52, // 98: raystack.siren.v1beta1.SirenService.CreateAlertsWithNamespace:input_type -> raystack.siren.v1beta1.CreateAlertsWithNamespaceRequest + 58, // 99: raystack.siren.v1beta1.SirenService.ListRules:input_type -> raystack.siren.v1beta1.ListRulesRequest + 60, // 100: raystack.siren.v1beta1.SirenService.UpdateRule:input_type -> raystack.siren.v1beta1.UpdateRuleRequest + 64, // 101: raystack.siren.v1beta1.SirenService.ListTemplates:input_type -> raystack.siren.v1beta1.ListTemplatesRequest + 68, // 102: raystack.siren.v1beta1.SirenService.GetTemplate:input_type -> raystack.siren.v1beta1.GetTemplateRequest + 66, // 103: raystack.siren.v1beta1.SirenService.UpsertTemplate:input_type -> raystack.siren.v1beta1.UpsertTemplateRequest + 70, // 104: raystack.siren.v1beta1.SirenService.DeleteTemplate:input_type -> raystack.siren.v1beta1.DeleteTemplateRequest + 72, // 105: raystack.siren.v1beta1.SirenService.RenderTemplate:input_type -> raystack.siren.v1beta1.RenderTemplateRequest + 75, // 106: raystack.siren.v1beta1.SirenService.CreateSilence:input_type -> raystack.siren.v1beta1.CreateSilenceRequest + 77, // 107: raystack.siren.v1beta1.SirenService.ListSilences:input_type -> raystack.siren.v1beta1.ListSilencesRequest + 79, // 108: raystack.siren.v1beta1.SirenService.GetSilence:input_type -> raystack.siren.v1beta1.GetSilenceRequest + 81, // 109: raystack.siren.v1beta1.SirenService.ExpireSilence:input_type -> raystack.siren.v1beta1.ExpireSilenceRequest + 2, // 110: raystack.siren.v1beta1.SirenService.ListProviders:output_type -> raystack.siren.v1beta1.ListProvidersResponse + 4, // 111: raystack.siren.v1beta1.SirenService.CreateProvider:output_type -> raystack.siren.v1beta1.CreateProviderResponse + 6, // 112: raystack.siren.v1beta1.SirenService.GetProvider:output_type -> raystack.siren.v1beta1.GetProviderResponse + 8, // 113: raystack.siren.v1beta1.SirenService.UpdateProvider:output_type -> raystack.siren.v1beta1.UpdateProviderResponse + 10, // 114: raystack.siren.v1beta1.SirenService.DeleteProvider:output_type -> raystack.siren.v1beta1.DeleteProviderResponse + 46, // 115: raystack.siren.v1beta1.SirenService.NotifyReceiver:output_type -> raystack.siren.v1beta1.NotifyReceiverResponse + 13, // 116: raystack.siren.v1beta1.SirenService.ListNamespaces:output_type -> raystack.siren.v1beta1.ListNamespacesResponse + 15, // 117: raystack.siren.v1beta1.SirenService.CreateNamespace:output_type -> raystack.siren.v1beta1.CreateNamespaceResponse + 17, // 118: raystack.siren.v1beta1.SirenService.GetNamespace:output_type -> raystack.siren.v1beta1.GetNamespaceResponse + 19, // 119: raystack.siren.v1beta1.SirenService.UpdateNamespace:output_type -> raystack.siren.v1beta1.UpdateNamespaceResponse + 21, // 120: raystack.siren.v1beta1.SirenService.DeleteNamespace:output_type -> raystack.siren.v1beta1.DeleteNamespaceResponse + 25, // 121: raystack.siren.v1beta1.SirenService.ListSubscriptions:output_type -> raystack.siren.v1beta1.ListSubscriptionsResponse + 27, // 122: raystack.siren.v1beta1.SirenService.CreateSubscription:output_type -> raystack.siren.v1beta1.CreateSubscriptionResponse + 29, // 123: raystack.siren.v1beta1.SirenService.GetSubscription:output_type -> raystack.siren.v1beta1.GetSubscriptionResponse + 31, // 124: raystack.siren.v1beta1.SirenService.UpdateSubscription:output_type -> raystack.siren.v1beta1.UpdateSubscriptionResponse + 33, // 125: raystack.siren.v1beta1.SirenService.DeleteSubscription:output_type -> raystack.siren.v1beta1.DeleteSubscriptionResponse + 36, // 126: raystack.siren.v1beta1.SirenService.ListReceivers:output_type -> raystack.siren.v1beta1.ListReceiversResponse + 38, // 127: raystack.siren.v1beta1.SirenService.CreateReceiver:output_type -> raystack.siren.v1beta1.CreateReceiverResponse + 40, // 128: raystack.siren.v1beta1.SirenService.GetReceiver:output_type -> raystack.siren.v1beta1.GetReceiverResponse + 42, // 129: raystack.siren.v1beta1.SirenService.UpdateReceiver:output_type -> raystack.siren.v1beta1.UpdateReceiverResponse + 44, // 130: raystack.siren.v1beta1.SirenService.DeleteReceiver:output_type -> raystack.siren.v1beta1.DeleteReceiverResponse + 49, // 131: raystack.siren.v1beta1.SirenService.ListAlerts:output_type -> raystack.siren.v1beta1.ListAlertsResponse + 51, // 132: raystack.siren.v1beta1.SirenService.CreateAlerts:output_type -> raystack.siren.v1beta1.CreateAlertsResponse + 53, // 133: raystack.siren.v1beta1.SirenService.CreateAlertsWithNamespace:output_type -> raystack.siren.v1beta1.CreateAlertsWithNamespaceResponse + 59, // 134: raystack.siren.v1beta1.SirenService.ListRules:output_type -> raystack.siren.v1beta1.ListRulesResponse + 61, // 135: raystack.siren.v1beta1.SirenService.UpdateRule:output_type -> raystack.siren.v1beta1.UpdateRuleResponse + 65, // 136: raystack.siren.v1beta1.SirenService.ListTemplates:output_type -> raystack.siren.v1beta1.ListTemplatesResponse + 69, // 137: raystack.siren.v1beta1.SirenService.GetTemplate:output_type -> raystack.siren.v1beta1.GetTemplateResponse + 67, // 138: raystack.siren.v1beta1.SirenService.UpsertTemplate:output_type -> raystack.siren.v1beta1.UpsertTemplateResponse + 71, // 139: raystack.siren.v1beta1.SirenService.DeleteTemplate:output_type -> raystack.siren.v1beta1.DeleteTemplateResponse + 73, // 140: raystack.siren.v1beta1.SirenService.RenderTemplate:output_type -> raystack.siren.v1beta1.RenderTemplateResponse + 76, // 141: raystack.siren.v1beta1.SirenService.CreateSilence:output_type -> raystack.siren.v1beta1.CreateSilenceResponse + 78, // 142: raystack.siren.v1beta1.SirenService.ListSilences:output_type -> raystack.siren.v1beta1.ListSilencesResponse + 80, // 143: raystack.siren.v1beta1.SirenService.GetSilence:output_type -> raystack.siren.v1beta1.GetSilenceResponse + 82, // 144: raystack.siren.v1beta1.SirenService.ExpireSilence:output_type -> raystack.siren.v1beta1.ExpireSilenceResponse 110, // [110:145] is the sub-list for method output_type 75, // [75:110] is the sub-list for method input_type 75, // [75:75] is the sub-list for extension type_name @@ -6398,13 +6398,13 @@ var file_odpf_siren_v1beta1_siren_proto_depIdxs = []int32{ 0, // [0:75] is the sub-list for field type_name } -func init() { file_odpf_siren_v1beta1_siren_proto_init() } -func file_odpf_siren_v1beta1_siren_proto_init() { - if File_odpf_siren_v1beta1_siren_proto != nil { +func init() { file_raystack_siren_v1beta1_siren_proto_init() } +func file_raystack_siren_v1beta1_siren_proto_init() { + if File_raystack_siren_v1beta1_siren_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_odpf_siren_v1beta1_siren_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Provider); i { case 0: return &v.state @@ -6416,7 +6416,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListProvidersRequest); i { case 0: return &v.state @@ -6428,7 +6428,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListProvidersResponse); i { case 0: return &v.state @@ -6440,7 +6440,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateProviderRequest); i { case 0: return &v.state @@ -6452,7 +6452,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateProviderResponse); i { case 0: return &v.state @@ -6464,7 +6464,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetProviderRequest); i { case 0: return &v.state @@ -6476,7 +6476,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetProviderResponse); i { case 0: return &v.state @@ -6488,7 +6488,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateProviderRequest); i { case 0: return &v.state @@ -6500,7 +6500,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateProviderResponse); i { case 0: return &v.state @@ -6512,7 +6512,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteProviderRequest); i { case 0: return &v.state @@ -6524,7 +6524,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteProviderResponse); i { case 0: return &v.state @@ -6536,7 +6536,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Namespace); i { case 0: return &v.state @@ -6548,7 +6548,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListNamespacesRequest); i { case 0: return &v.state @@ -6560,7 +6560,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListNamespacesResponse); i { case 0: return &v.state @@ -6572,7 +6572,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateNamespaceRequest); i { case 0: return &v.state @@ -6584,7 +6584,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateNamespaceResponse); i { case 0: return &v.state @@ -6596,7 +6596,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetNamespaceRequest); i { case 0: return &v.state @@ -6608,7 +6608,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetNamespaceResponse); i { case 0: return &v.state @@ -6620,7 +6620,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateNamespaceRequest); i { case 0: return &v.state @@ -6632,7 +6632,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateNamespaceResponse); i { case 0: return &v.state @@ -6644,7 +6644,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteNamespaceRequest); i { case 0: return &v.state @@ -6656,7 +6656,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteNamespaceResponse); i { case 0: return &v.state @@ -6668,7 +6668,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReceiverMetadata); i { case 0: return &v.state @@ -6680,7 +6680,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Subscription); i { case 0: return &v.state @@ -6692,7 +6692,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSubscriptionsRequest); i { case 0: return &v.state @@ -6704,7 +6704,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSubscriptionsResponse); i { case 0: return &v.state @@ -6716,7 +6716,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateSubscriptionRequest); i { case 0: return &v.state @@ -6728,7 +6728,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateSubscriptionResponse); i { case 0: return &v.state @@ -6740,7 +6740,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSubscriptionRequest); i { case 0: return &v.state @@ -6752,7 +6752,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSubscriptionResponse); i { case 0: return &v.state @@ -6764,7 +6764,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateSubscriptionRequest); i { case 0: return &v.state @@ -6776,7 +6776,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateSubscriptionResponse); i { case 0: return &v.state @@ -6788,7 +6788,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteSubscriptionRequest); i { case 0: return &v.state @@ -6800,7 +6800,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteSubscriptionResponse); i { case 0: return &v.state @@ -6812,7 +6812,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Receiver); i { case 0: return &v.state @@ -6824,7 +6824,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListReceiversRequest); i { case 0: return &v.state @@ -6836,7 +6836,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListReceiversResponse); i { case 0: return &v.state @@ -6848,7 +6848,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateReceiverRequest); i { case 0: return &v.state @@ -6860,7 +6860,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateReceiverResponse); i { case 0: return &v.state @@ -6872,7 +6872,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetReceiverRequest); i { case 0: return &v.state @@ -6884,7 +6884,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetReceiverResponse); i { case 0: return &v.state @@ -6896,7 +6896,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateReceiverRequest); i { case 0: return &v.state @@ -6908,7 +6908,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateReceiverResponse); i { case 0: return &v.state @@ -6920,7 +6920,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteReceiverRequest); i { case 0: return &v.state @@ -6932,7 +6932,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteReceiverResponse); i { case 0: return &v.state @@ -6944,7 +6944,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NotifyReceiverRequest); i { case 0: return &v.state @@ -6956,7 +6956,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NotifyReceiverResponse); i { case 0: return &v.state @@ -6968,7 +6968,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Alert); i { case 0: return &v.state @@ -6980,7 +6980,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListAlertsRequest); i { case 0: return &v.state @@ -6992,7 +6992,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListAlertsResponse); i { case 0: return &v.state @@ -7004,7 +7004,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAlertsRequest); i { case 0: return &v.state @@ -7016,7 +7016,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAlertsResponse); i { case 0: return &v.state @@ -7028,7 +7028,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAlertsWithNamespaceRequest); i { case 0: return &v.state @@ -7040,7 +7040,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAlertsWithNamespaceResponse); i { case 0: return &v.state @@ -7052,7 +7052,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Annotations); i { case 0: return &v.state @@ -7064,7 +7064,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Labels); i { case 0: return &v.state @@ -7076,7 +7076,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Rule); i { case 0: return &v.state @@ -7088,7 +7088,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Variables); i { case 0: return &v.state @@ -7100,7 +7100,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListRulesRequest); i { case 0: return &v.state @@ -7112,7 +7112,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListRulesResponse); i { case 0: return &v.state @@ -7124,7 +7124,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateRuleRequest); i { case 0: return &v.state @@ -7136,7 +7136,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateRuleResponse); i { case 0: return &v.state @@ -7148,7 +7148,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TemplateVariables); i { case 0: return &v.state @@ -7160,7 +7160,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Template); i { case 0: return &v.state @@ -7172,7 +7172,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTemplatesRequest); i { case 0: return &v.state @@ -7184,7 +7184,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTemplatesResponse); i { case 0: return &v.state @@ -7196,7 +7196,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpsertTemplateRequest); i { case 0: return &v.state @@ -7208,7 +7208,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpsertTemplateResponse); i { case 0: return &v.state @@ -7220,7 +7220,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTemplateRequest); i { case 0: return &v.state @@ -7232,7 +7232,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTemplateResponse); i { case 0: return &v.state @@ -7244,7 +7244,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteTemplateRequest); i { case 0: return &v.state @@ -7256,7 +7256,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteTemplateResponse); i { case 0: return &v.state @@ -7268,7 +7268,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RenderTemplateRequest); i { case 0: return &v.state @@ -7280,7 +7280,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RenderTemplateResponse); i { case 0: return &v.state @@ -7292,7 +7292,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Silence); i { case 0: return &v.state @@ -7304,7 +7304,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateSilenceRequest); i { case 0: return &v.state @@ -7316,7 +7316,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateSilenceResponse); i { case 0: return &v.state @@ -7328,7 +7328,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSilencesRequest); i { case 0: return &v.state @@ -7340,7 +7340,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSilencesResponse); i { case 0: return &v.state @@ -7352,7 +7352,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSilenceRequest); i { case 0: return &v.state @@ -7364,7 +7364,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSilenceResponse); i { case 0: return &v.state @@ -7376,7 +7376,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExpireSilenceRequest); i { case 0: return &v.state @@ -7388,7 +7388,7 @@ func file_odpf_siren_v1beta1_siren_proto_init() { return nil } } - file_odpf_siren_v1beta1_siren_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_raystack_siren_v1beta1_siren_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExpireSilenceResponse); i { case 0: return &v.state @@ -7405,18 +7405,18 @@ func file_odpf_siren_v1beta1_siren_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_odpf_siren_v1beta1_siren_proto_rawDesc, + RawDescriptor: file_raystack_siren_v1beta1_siren_proto_rawDesc, NumEnums: 0, NumMessages: 100, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_odpf_siren_v1beta1_siren_proto_goTypes, - DependencyIndexes: file_odpf_siren_v1beta1_siren_proto_depIdxs, - MessageInfos: file_odpf_siren_v1beta1_siren_proto_msgTypes, + GoTypes: file_raystack_siren_v1beta1_siren_proto_goTypes, + DependencyIndexes: file_raystack_siren_v1beta1_siren_proto_depIdxs, + MessageInfos: file_raystack_siren_v1beta1_siren_proto_msgTypes, }.Build() - File_odpf_siren_v1beta1_siren_proto = out.File - file_odpf_siren_v1beta1_siren_proto_rawDesc = nil - file_odpf_siren_v1beta1_siren_proto_goTypes = nil - file_odpf_siren_v1beta1_siren_proto_depIdxs = nil + File_raystack_siren_v1beta1_siren_proto = out.File + file_raystack_siren_v1beta1_siren_proto_rawDesc = nil + file_raystack_siren_v1beta1_siren_proto_goTypes = nil + file_raystack_siren_v1beta1_siren_proto_depIdxs = nil } diff --git a/proto/odpf/siren/v1beta1/siren.pb.gw.go b/proto/raystack/siren/v1beta1/siren.pb.gw.go similarity index 94% rename from proto/odpf/siren/v1beta1/siren.pb.gw.go rename to proto/raystack/siren/v1beta1/siren.pb.gw.go index c80c5764..ee41b78e 100644 --- a/proto/odpf/siren/v1beta1/siren.pb.gw.go +++ b/proto/raystack/siren/v1beta1/siren.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: odpf/siren/v1beta1/siren.proto +// source: raystack/siren/v1beta1/siren.proto /* Package sirenv1beta1 is a reverse proxy. @@ -1817,7 +1817,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListProviders", runtime.WithHTTPPathPattern("/v1beta1/providers")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListProviders", runtime.WithHTTPPathPattern("/v1beta1/providers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1842,7 +1842,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1867,7 +1867,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1892,7 +1892,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1917,7 +1917,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1942,7 +1942,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/NotifyReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}/send")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/NotifyReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}/send")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1967,7 +1967,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListNamespaces", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListNamespaces", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1992,7 +1992,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2017,7 +2017,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2042,7 +2042,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2067,7 +2067,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2092,7 +2092,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListSubscriptions", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListSubscriptions", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2117,7 +2117,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2142,7 +2142,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2167,7 +2167,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2192,7 +2192,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2217,7 +2217,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListReceivers", runtime.WithHTTPPathPattern("/v1beta1/receivers")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListReceivers", runtime.WithHTTPPathPattern("/v1beta1/receivers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2242,7 +2242,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2267,7 +2267,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2292,7 +2292,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2317,7 +2317,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2342,7 +2342,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2367,7 +2367,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2392,7 +2392,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateAlertsWithNamespace", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}/{namespace_id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateAlertsWithNamespace", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}/{namespace_id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2417,7 +2417,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListRules", runtime.WithHTTPPathPattern("/v1beta1/rules")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListRules", runtime.WithHTTPPathPattern("/v1beta1/rules")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2442,7 +2442,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateRule", runtime.WithHTTPPathPattern("/v1beta1/rules")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateRule", runtime.WithHTTPPathPattern("/v1beta1/rules")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2467,7 +2467,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListTemplates", runtime.WithHTTPPathPattern("/v1beta1/templates")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListTemplates", runtime.WithHTTPPathPattern("/v1beta1/templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2492,7 +2492,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2517,7 +2517,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpsertTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpsertTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2542,7 +2542,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2567,7 +2567,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/RenderTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}/render")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/RenderTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}/render")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2592,7 +2592,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateSilence", runtime.WithHTTPPathPattern("/v1beta1/silences")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateSilence", runtime.WithHTTPPathPattern("/v1beta1/silences")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2617,7 +2617,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListSilences", runtime.WithHTTPPathPattern("/v1beta1/silences")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListSilences", runtime.WithHTTPPathPattern("/v1beta1/silences")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2642,7 +2642,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2667,7 +2667,7 @@ func RegisterSirenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ExpireSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ExpireSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2731,7 +2731,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListProviders", runtime.WithHTTPPathPattern("/v1beta1/providers")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListProviders", runtime.WithHTTPPathPattern("/v1beta1/providers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2753,7 +2753,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2775,7 +2775,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2797,7 +2797,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2819,7 +2819,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteProvider", runtime.WithHTTPPathPattern("/v1beta1/providers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2841,7 +2841,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/NotifyReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}/send")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/NotifyReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}/send")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2863,7 +2863,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListNamespaces", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListNamespaces", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2885,7 +2885,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2907,7 +2907,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2929,7 +2929,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2951,7 +2951,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteNamespace", runtime.WithHTTPPathPattern("/v1beta1/namespaces/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2973,7 +2973,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListSubscriptions", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListSubscriptions", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2995,7 +2995,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3017,7 +3017,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3039,7 +3039,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3061,7 +3061,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteSubscription", runtime.WithHTTPPathPattern("/v1beta1/subscriptions/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3083,7 +3083,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListReceivers", runtime.WithHTTPPathPattern("/v1beta1/receivers")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListReceivers", runtime.WithHTTPPathPattern("/v1beta1/receivers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3105,7 +3105,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3127,7 +3127,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3149,7 +3149,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3171,7 +3171,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteReceiver", runtime.WithHTTPPathPattern("/v1beta1/receivers/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3193,7 +3193,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3215,7 +3215,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateAlerts", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3237,7 +3237,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateAlertsWithNamespace", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}/{namespace_id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateAlertsWithNamespace", runtime.WithHTTPPathPattern("/v1beta1/alerts/{provider_type}/{provider_id}/{namespace_id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3259,7 +3259,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListRules", runtime.WithHTTPPathPattern("/v1beta1/rules")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListRules", runtime.WithHTTPPathPattern("/v1beta1/rules")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3281,7 +3281,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpdateRule", runtime.WithHTTPPathPattern("/v1beta1/rules")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpdateRule", runtime.WithHTTPPathPattern("/v1beta1/rules")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3303,7 +3303,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListTemplates", runtime.WithHTTPPathPattern("/v1beta1/templates")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListTemplates", runtime.WithHTTPPathPattern("/v1beta1/templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3325,7 +3325,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3347,7 +3347,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/UpsertTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/UpsertTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3369,7 +3369,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3391,7 +3391,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/RenderTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}/render")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/RenderTemplate", runtime.WithHTTPPathPattern("/v1beta1/templates/{name}/render")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3413,7 +3413,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/CreateSilence", runtime.WithHTTPPathPattern("/v1beta1/silences")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/CreateSilence", runtime.WithHTTPPathPattern("/v1beta1/silences")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3435,7 +3435,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ListSilences", runtime.WithHTTPPathPattern("/v1beta1/silences")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ListSilences", runtime.WithHTTPPathPattern("/v1beta1/silences")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3457,7 +3457,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/GetSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/GetSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3479,7 +3479,7 @@ func RegisterSirenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/odpf.siren.v1beta1.SirenService/ExpireSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/raystack.siren.v1beta1.SirenService/ExpireSilence", runtime.WithHTTPPathPattern("/v1beta1/silences/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return diff --git a/proto/odpf/siren/v1beta1/siren.pb.validate.go b/proto/raystack/siren/v1beta1/siren.pb.validate.go similarity index 99% rename from proto/odpf/siren/v1beta1/siren.pb.validate.go rename to proto/raystack/siren/v1beta1/siren.pb.validate.go index eb6e5ca6..2cc9bd29 100644 --- a/proto/odpf/siren/v1beta1/siren.pb.validate.go +++ b/proto/raystack/siren/v1beta1/siren.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: odpf/siren/v1beta1/siren.proto +// source: raystack/siren/v1beta1/siren.proto package sirenv1beta1 diff --git a/proto/odpf/siren/v1beta1/siren_grpc.pb.go b/proto/raystack/siren/v1beta1/siren_grpc.pb.go similarity index 89% rename from proto/odpf/siren/v1beta1/siren_grpc.pb.go rename to proto/raystack/siren/v1beta1/siren_grpc.pb.go index 40064365..e51ce35e 100644 --- a/proto/odpf/siren/v1beta1/siren_grpc.pb.go +++ b/proto/raystack/siren/v1beta1/siren_grpc.pb.go @@ -65,7 +65,7 @@ func NewSirenServiceClient(cc grpc.ClientConnInterface) SirenServiceClient { func (c *sirenServiceClient) ListProviders(ctx context.Context, in *ListProvidersRequest, opts ...grpc.CallOption) (*ListProvidersResponse, error) { out := new(ListProvidersResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListProviders", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListProviders", in, out, opts...) if err != nil { return nil, err } @@ -74,7 +74,7 @@ func (c *sirenServiceClient) ListProviders(ctx context.Context, in *ListProvider func (c *sirenServiceClient) CreateProvider(ctx context.Context, in *CreateProviderRequest, opts ...grpc.CallOption) (*CreateProviderResponse, error) { out := new(CreateProviderResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateProvider", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateProvider", in, out, opts...) if err != nil { return nil, err } @@ -83,7 +83,7 @@ func (c *sirenServiceClient) CreateProvider(ctx context.Context, in *CreateProvi func (c *sirenServiceClient) GetProvider(ctx context.Context, in *GetProviderRequest, opts ...grpc.CallOption) (*GetProviderResponse, error) { out := new(GetProviderResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/GetProvider", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/GetProvider", in, out, opts...) if err != nil { return nil, err } @@ -92,7 +92,7 @@ func (c *sirenServiceClient) GetProvider(ctx context.Context, in *GetProviderReq func (c *sirenServiceClient) UpdateProvider(ctx context.Context, in *UpdateProviderRequest, opts ...grpc.CallOption) (*UpdateProviderResponse, error) { out := new(UpdateProviderResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/UpdateProvider", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/UpdateProvider", in, out, opts...) if err != nil { return nil, err } @@ -101,7 +101,7 @@ func (c *sirenServiceClient) UpdateProvider(ctx context.Context, in *UpdateProvi func (c *sirenServiceClient) DeleteProvider(ctx context.Context, in *DeleteProviderRequest, opts ...grpc.CallOption) (*DeleteProviderResponse, error) { out := new(DeleteProviderResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/DeleteProvider", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/DeleteProvider", in, out, opts...) if err != nil { return nil, err } @@ -110,7 +110,7 @@ func (c *sirenServiceClient) DeleteProvider(ctx context.Context, in *DeleteProvi func (c *sirenServiceClient) NotifyReceiver(ctx context.Context, in *NotifyReceiverRequest, opts ...grpc.CallOption) (*NotifyReceiverResponse, error) { out := new(NotifyReceiverResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/NotifyReceiver", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/NotifyReceiver", in, out, opts...) if err != nil { return nil, err } @@ -119,7 +119,7 @@ func (c *sirenServiceClient) NotifyReceiver(ctx context.Context, in *NotifyRecei func (c *sirenServiceClient) ListNamespaces(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error) { out := new(ListNamespacesResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListNamespaces", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListNamespaces", in, out, opts...) if err != nil { return nil, err } @@ -128,7 +128,7 @@ func (c *sirenServiceClient) ListNamespaces(ctx context.Context, in *ListNamespa func (c *sirenServiceClient) CreateNamespace(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*CreateNamespaceResponse, error) { out := new(CreateNamespaceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateNamespace", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateNamespace", in, out, opts...) if err != nil { return nil, err } @@ -137,7 +137,7 @@ func (c *sirenServiceClient) CreateNamespace(ctx context.Context, in *CreateName func (c *sirenServiceClient) GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) { out := new(GetNamespaceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/GetNamespace", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/GetNamespace", in, out, opts...) if err != nil { return nil, err } @@ -146,7 +146,7 @@ func (c *sirenServiceClient) GetNamespace(ctx context.Context, in *GetNamespaceR func (c *sirenServiceClient) UpdateNamespace(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*UpdateNamespaceResponse, error) { out := new(UpdateNamespaceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/UpdateNamespace", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/UpdateNamespace", in, out, opts...) if err != nil { return nil, err } @@ -155,7 +155,7 @@ func (c *sirenServiceClient) UpdateNamespace(ctx context.Context, in *UpdateName func (c *sirenServiceClient) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) { out := new(DeleteNamespaceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/DeleteNamespace", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/DeleteNamespace", in, out, opts...) if err != nil { return nil, err } @@ -164,7 +164,7 @@ func (c *sirenServiceClient) DeleteNamespace(ctx context.Context, in *DeleteName func (c *sirenServiceClient) ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) { out := new(ListSubscriptionsResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListSubscriptions", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListSubscriptions", in, out, opts...) if err != nil { return nil, err } @@ -173,7 +173,7 @@ func (c *sirenServiceClient) ListSubscriptions(ctx context.Context, in *ListSubs func (c *sirenServiceClient) CreateSubscription(ctx context.Context, in *CreateSubscriptionRequest, opts ...grpc.CallOption) (*CreateSubscriptionResponse, error) { out := new(CreateSubscriptionResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateSubscription", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateSubscription", in, out, opts...) if err != nil { return nil, err } @@ -182,7 +182,7 @@ func (c *sirenServiceClient) CreateSubscription(ctx context.Context, in *CreateS func (c *sirenServiceClient) GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*GetSubscriptionResponse, error) { out := new(GetSubscriptionResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/GetSubscription", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/GetSubscription", in, out, opts...) if err != nil { return nil, err } @@ -191,7 +191,7 @@ func (c *sirenServiceClient) GetSubscription(ctx context.Context, in *GetSubscri func (c *sirenServiceClient) UpdateSubscription(ctx context.Context, in *UpdateSubscriptionRequest, opts ...grpc.CallOption) (*UpdateSubscriptionResponse, error) { out := new(UpdateSubscriptionResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/UpdateSubscription", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/UpdateSubscription", in, out, opts...) if err != nil { return nil, err } @@ -200,7 +200,7 @@ func (c *sirenServiceClient) UpdateSubscription(ctx context.Context, in *UpdateS func (c *sirenServiceClient) DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*DeleteSubscriptionResponse, error) { out := new(DeleteSubscriptionResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/DeleteSubscription", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/DeleteSubscription", in, out, opts...) if err != nil { return nil, err } @@ -209,7 +209,7 @@ func (c *sirenServiceClient) DeleteSubscription(ctx context.Context, in *DeleteS func (c *sirenServiceClient) ListReceivers(ctx context.Context, in *ListReceiversRequest, opts ...grpc.CallOption) (*ListReceiversResponse, error) { out := new(ListReceiversResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListReceivers", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListReceivers", in, out, opts...) if err != nil { return nil, err } @@ -218,7 +218,7 @@ func (c *sirenServiceClient) ListReceivers(ctx context.Context, in *ListReceiver func (c *sirenServiceClient) CreateReceiver(ctx context.Context, in *CreateReceiverRequest, opts ...grpc.CallOption) (*CreateReceiverResponse, error) { out := new(CreateReceiverResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateReceiver", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateReceiver", in, out, opts...) if err != nil { return nil, err } @@ -227,7 +227,7 @@ func (c *sirenServiceClient) CreateReceiver(ctx context.Context, in *CreateRecei func (c *sirenServiceClient) GetReceiver(ctx context.Context, in *GetReceiverRequest, opts ...grpc.CallOption) (*GetReceiverResponse, error) { out := new(GetReceiverResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/GetReceiver", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/GetReceiver", in, out, opts...) if err != nil { return nil, err } @@ -236,7 +236,7 @@ func (c *sirenServiceClient) GetReceiver(ctx context.Context, in *GetReceiverReq func (c *sirenServiceClient) UpdateReceiver(ctx context.Context, in *UpdateReceiverRequest, opts ...grpc.CallOption) (*UpdateReceiverResponse, error) { out := new(UpdateReceiverResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/UpdateReceiver", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/UpdateReceiver", in, out, opts...) if err != nil { return nil, err } @@ -245,7 +245,7 @@ func (c *sirenServiceClient) UpdateReceiver(ctx context.Context, in *UpdateRecei func (c *sirenServiceClient) DeleteReceiver(ctx context.Context, in *DeleteReceiverRequest, opts ...grpc.CallOption) (*DeleteReceiverResponse, error) { out := new(DeleteReceiverResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/DeleteReceiver", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/DeleteReceiver", in, out, opts...) if err != nil { return nil, err } @@ -254,7 +254,7 @@ func (c *sirenServiceClient) DeleteReceiver(ctx context.Context, in *DeleteRecei func (c *sirenServiceClient) ListAlerts(ctx context.Context, in *ListAlertsRequest, opts ...grpc.CallOption) (*ListAlertsResponse, error) { out := new(ListAlertsResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListAlerts", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListAlerts", in, out, opts...) if err != nil { return nil, err } @@ -263,7 +263,7 @@ func (c *sirenServiceClient) ListAlerts(ctx context.Context, in *ListAlertsReque func (c *sirenServiceClient) CreateAlerts(ctx context.Context, in *CreateAlertsRequest, opts ...grpc.CallOption) (*CreateAlertsResponse, error) { out := new(CreateAlertsResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateAlerts", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateAlerts", in, out, opts...) if err != nil { return nil, err } @@ -272,7 +272,7 @@ func (c *sirenServiceClient) CreateAlerts(ctx context.Context, in *CreateAlertsR func (c *sirenServiceClient) CreateAlertsWithNamespace(ctx context.Context, in *CreateAlertsWithNamespaceRequest, opts ...grpc.CallOption) (*CreateAlertsWithNamespaceResponse, error) { out := new(CreateAlertsWithNamespaceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateAlertsWithNamespace", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateAlertsWithNamespace", in, out, opts...) if err != nil { return nil, err } @@ -281,7 +281,7 @@ func (c *sirenServiceClient) CreateAlertsWithNamespace(ctx context.Context, in * func (c *sirenServiceClient) ListRules(ctx context.Context, in *ListRulesRequest, opts ...grpc.CallOption) (*ListRulesResponse, error) { out := new(ListRulesResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListRules", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListRules", in, out, opts...) if err != nil { return nil, err } @@ -290,7 +290,7 @@ func (c *sirenServiceClient) ListRules(ctx context.Context, in *ListRulesRequest func (c *sirenServiceClient) UpdateRule(ctx context.Context, in *UpdateRuleRequest, opts ...grpc.CallOption) (*UpdateRuleResponse, error) { out := new(UpdateRuleResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/UpdateRule", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/UpdateRule", in, out, opts...) if err != nil { return nil, err } @@ -299,7 +299,7 @@ func (c *sirenServiceClient) UpdateRule(ctx context.Context, in *UpdateRuleReque func (c *sirenServiceClient) ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) { out := new(ListTemplatesResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListTemplates", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListTemplates", in, out, opts...) if err != nil { return nil, err } @@ -308,7 +308,7 @@ func (c *sirenServiceClient) ListTemplates(ctx context.Context, in *ListTemplate func (c *sirenServiceClient) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) { out := new(GetTemplateResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/GetTemplate", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/GetTemplate", in, out, opts...) if err != nil { return nil, err } @@ -317,7 +317,7 @@ func (c *sirenServiceClient) GetTemplate(ctx context.Context, in *GetTemplateReq func (c *sirenServiceClient) UpsertTemplate(ctx context.Context, in *UpsertTemplateRequest, opts ...grpc.CallOption) (*UpsertTemplateResponse, error) { out := new(UpsertTemplateResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/UpsertTemplate", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/UpsertTemplate", in, out, opts...) if err != nil { return nil, err } @@ -326,7 +326,7 @@ func (c *sirenServiceClient) UpsertTemplate(ctx context.Context, in *UpsertTempl func (c *sirenServiceClient) DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateResponse, error) { out := new(DeleteTemplateResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/DeleteTemplate", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/DeleteTemplate", in, out, opts...) if err != nil { return nil, err } @@ -335,7 +335,7 @@ func (c *sirenServiceClient) DeleteTemplate(ctx context.Context, in *DeleteTempl func (c *sirenServiceClient) RenderTemplate(ctx context.Context, in *RenderTemplateRequest, opts ...grpc.CallOption) (*RenderTemplateResponse, error) { out := new(RenderTemplateResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/RenderTemplate", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/RenderTemplate", in, out, opts...) if err != nil { return nil, err } @@ -344,7 +344,7 @@ func (c *sirenServiceClient) RenderTemplate(ctx context.Context, in *RenderTempl func (c *sirenServiceClient) CreateSilence(ctx context.Context, in *CreateSilenceRequest, opts ...grpc.CallOption) (*CreateSilenceResponse, error) { out := new(CreateSilenceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/CreateSilence", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/CreateSilence", in, out, opts...) if err != nil { return nil, err } @@ -353,7 +353,7 @@ func (c *sirenServiceClient) CreateSilence(ctx context.Context, in *CreateSilenc func (c *sirenServiceClient) ListSilences(ctx context.Context, in *ListSilencesRequest, opts ...grpc.CallOption) (*ListSilencesResponse, error) { out := new(ListSilencesResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ListSilences", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ListSilences", in, out, opts...) if err != nil { return nil, err } @@ -362,7 +362,7 @@ func (c *sirenServiceClient) ListSilences(ctx context.Context, in *ListSilencesR func (c *sirenServiceClient) GetSilence(ctx context.Context, in *GetSilenceRequest, opts ...grpc.CallOption) (*GetSilenceResponse, error) { out := new(GetSilenceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/GetSilence", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/GetSilence", in, out, opts...) if err != nil { return nil, err } @@ -371,7 +371,7 @@ func (c *sirenServiceClient) GetSilence(ctx context.Context, in *GetSilenceReque func (c *sirenServiceClient) ExpireSilence(ctx context.Context, in *ExpireSilenceRequest, opts ...grpc.CallOption) (*ExpireSilenceResponse, error) { out := new(ExpireSilenceResponse) - err := c.cc.Invoke(ctx, "/odpf.siren.v1beta1.SirenService/ExpireSilence", in, out, opts...) + err := c.cc.Invoke(ctx, "/raystack.siren.v1beta1.SirenService/ExpireSilence", in, out, opts...) if err != nil { return nil, err } @@ -552,7 +552,7 @@ func _SirenService_ListProviders_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListProviders", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListProviders", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListProviders(ctx, req.(*ListProvidersRequest)) @@ -570,7 +570,7 @@ func _SirenService_CreateProvider_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateProvider", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateProvider", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateProvider(ctx, req.(*CreateProviderRequest)) @@ -588,7 +588,7 @@ func _SirenService_GetProvider_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/GetProvider", + FullMethod: "/raystack.siren.v1beta1.SirenService/GetProvider", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).GetProvider(ctx, req.(*GetProviderRequest)) @@ -606,7 +606,7 @@ func _SirenService_UpdateProvider_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/UpdateProvider", + FullMethod: "/raystack.siren.v1beta1.SirenService/UpdateProvider", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).UpdateProvider(ctx, req.(*UpdateProviderRequest)) @@ -624,7 +624,7 @@ func _SirenService_DeleteProvider_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/DeleteProvider", + FullMethod: "/raystack.siren.v1beta1.SirenService/DeleteProvider", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).DeleteProvider(ctx, req.(*DeleteProviderRequest)) @@ -642,7 +642,7 @@ func _SirenService_NotifyReceiver_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/NotifyReceiver", + FullMethod: "/raystack.siren.v1beta1.SirenService/NotifyReceiver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).NotifyReceiver(ctx, req.(*NotifyReceiverRequest)) @@ -660,7 +660,7 @@ func _SirenService_ListNamespaces_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListNamespaces", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListNamespaces", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListNamespaces(ctx, req.(*ListNamespacesRequest)) @@ -678,7 +678,7 @@ func _SirenService_CreateNamespace_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateNamespace", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateNamespace(ctx, req.(*CreateNamespaceRequest)) @@ -696,7 +696,7 @@ func _SirenService_GetNamespace_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/GetNamespace", + FullMethod: "/raystack.siren.v1beta1.SirenService/GetNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).GetNamespace(ctx, req.(*GetNamespaceRequest)) @@ -714,7 +714,7 @@ func _SirenService_UpdateNamespace_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/UpdateNamespace", + FullMethod: "/raystack.siren.v1beta1.SirenService/UpdateNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).UpdateNamespace(ctx, req.(*UpdateNamespaceRequest)) @@ -732,7 +732,7 @@ func _SirenService_DeleteNamespace_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/DeleteNamespace", + FullMethod: "/raystack.siren.v1beta1.SirenService/DeleteNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).DeleteNamespace(ctx, req.(*DeleteNamespaceRequest)) @@ -750,7 +750,7 @@ func _SirenService_ListSubscriptions_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListSubscriptions", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListSubscriptions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListSubscriptions(ctx, req.(*ListSubscriptionsRequest)) @@ -768,7 +768,7 @@ func _SirenService_CreateSubscription_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateSubscription", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateSubscription", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateSubscription(ctx, req.(*CreateSubscriptionRequest)) @@ -786,7 +786,7 @@ func _SirenService_GetSubscription_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/GetSubscription", + FullMethod: "/raystack.siren.v1beta1.SirenService/GetSubscription", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).GetSubscription(ctx, req.(*GetSubscriptionRequest)) @@ -804,7 +804,7 @@ func _SirenService_UpdateSubscription_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/UpdateSubscription", + FullMethod: "/raystack.siren.v1beta1.SirenService/UpdateSubscription", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).UpdateSubscription(ctx, req.(*UpdateSubscriptionRequest)) @@ -822,7 +822,7 @@ func _SirenService_DeleteSubscription_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/DeleteSubscription", + FullMethod: "/raystack.siren.v1beta1.SirenService/DeleteSubscription", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).DeleteSubscription(ctx, req.(*DeleteSubscriptionRequest)) @@ -840,7 +840,7 @@ func _SirenService_ListReceivers_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListReceivers", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListReceivers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListReceivers(ctx, req.(*ListReceiversRequest)) @@ -858,7 +858,7 @@ func _SirenService_CreateReceiver_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateReceiver", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateReceiver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateReceiver(ctx, req.(*CreateReceiverRequest)) @@ -876,7 +876,7 @@ func _SirenService_GetReceiver_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/GetReceiver", + FullMethod: "/raystack.siren.v1beta1.SirenService/GetReceiver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).GetReceiver(ctx, req.(*GetReceiverRequest)) @@ -894,7 +894,7 @@ func _SirenService_UpdateReceiver_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/UpdateReceiver", + FullMethod: "/raystack.siren.v1beta1.SirenService/UpdateReceiver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).UpdateReceiver(ctx, req.(*UpdateReceiverRequest)) @@ -912,7 +912,7 @@ func _SirenService_DeleteReceiver_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/DeleteReceiver", + FullMethod: "/raystack.siren.v1beta1.SirenService/DeleteReceiver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).DeleteReceiver(ctx, req.(*DeleteReceiverRequest)) @@ -930,7 +930,7 @@ func _SirenService_ListAlerts_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListAlerts", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListAlerts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListAlerts(ctx, req.(*ListAlertsRequest)) @@ -948,7 +948,7 @@ func _SirenService_CreateAlerts_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateAlerts", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateAlerts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateAlerts(ctx, req.(*CreateAlertsRequest)) @@ -966,7 +966,7 @@ func _SirenService_CreateAlertsWithNamespace_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateAlertsWithNamespace", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateAlertsWithNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateAlertsWithNamespace(ctx, req.(*CreateAlertsWithNamespaceRequest)) @@ -984,7 +984,7 @@ func _SirenService_ListRules_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListRules", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListRules", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListRules(ctx, req.(*ListRulesRequest)) @@ -1002,7 +1002,7 @@ func _SirenService_UpdateRule_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/UpdateRule", + FullMethod: "/raystack.siren.v1beta1.SirenService/UpdateRule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).UpdateRule(ctx, req.(*UpdateRuleRequest)) @@ -1020,7 +1020,7 @@ func _SirenService_ListTemplates_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListTemplates", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListTemplates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListTemplates(ctx, req.(*ListTemplatesRequest)) @@ -1038,7 +1038,7 @@ func _SirenService_GetTemplate_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/GetTemplate", + FullMethod: "/raystack.siren.v1beta1.SirenService/GetTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).GetTemplate(ctx, req.(*GetTemplateRequest)) @@ -1056,7 +1056,7 @@ func _SirenService_UpsertTemplate_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/UpsertTemplate", + FullMethod: "/raystack.siren.v1beta1.SirenService/UpsertTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).UpsertTemplate(ctx, req.(*UpsertTemplateRequest)) @@ -1074,7 +1074,7 @@ func _SirenService_DeleteTemplate_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/DeleteTemplate", + FullMethod: "/raystack.siren.v1beta1.SirenService/DeleteTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).DeleteTemplate(ctx, req.(*DeleteTemplateRequest)) @@ -1092,7 +1092,7 @@ func _SirenService_RenderTemplate_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/RenderTemplate", + FullMethod: "/raystack.siren.v1beta1.SirenService/RenderTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).RenderTemplate(ctx, req.(*RenderTemplateRequest)) @@ -1110,7 +1110,7 @@ func _SirenService_CreateSilence_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/CreateSilence", + FullMethod: "/raystack.siren.v1beta1.SirenService/CreateSilence", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).CreateSilence(ctx, req.(*CreateSilenceRequest)) @@ -1128,7 +1128,7 @@ func _SirenService_ListSilences_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ListSilences", + FullMethod: "/raystack.siren.v1beta1.SirenService/ListSilences", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ListSilences(ctx, req.(*ListSilencesRequest)) @@ -1146,7 +1146,7 @@ func _SirenService_GetSilence_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/GetSilence", + FullMethod: "/raystack.siren.v1beta1.SirenService/GetSilence", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).GetSilence(ctx, req.(*GetSilenceRequest)) @@ -1164,7 +1164,7 @@ func _SirenService_ExpireSilence_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/odpf.siren.v1beta1.SirenService/ExpireSilence", + FullMethod: "/raystack.siren.v1beta1.SirenService/ExpireSilence", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SirenServiceServer).ExpireSilence(ctx, req.(*ExpireSilenceRequest)) @@ -1176,7 +1176,7 @@ func _SirenService_ExpireSilence_Handler(srv interface{}, ctx context.Context, d // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SirenService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "odpf.siren.v1beta1.SirenService", + ServiceName: "raystack.siren.v1beta1.SirenService", HandlerType: (*SirenServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1321,5 +1321,5 @@ var SirenService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "odpf/siren/v1beta1/siren.proto", + Metadata: "raystack/siren/v1beta1/siren.proto", } diff --git a/test/e2e_test/cortex_alerting_test.go b/test/e2e_test/cortex_alerting_test.go index d99b90b0..63ebdd7b 100644 --- a/test/e2e_test/cortex_alerting_test.go +++ b/test/e2e_test/cortex_alerting_test.go @@ -14,15 +14,15 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/mcuadros/go-defaults" - "github.com/odpf/salt/db" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/alert" - "github.com/odpf/siren/core/log" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/core/silence" - "github.com/odpf/siren/internal/server" - "github.com/odpf/siren/internal/store/model" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/db" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/alert" + "github.com/raystack/siren/core/log" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/core/silence" + "github.com/raystack/siren/internal/server" + "github.com/raystack/siren/internal/store/model" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/suite" "google.golang.org/protobuf/types/known/structpb" ) @@ -40,13 +40,19 @@ func (s *CortexAlertingTestSuite) SetupTest() { apiPort, err := getFreePort() s.Require().Nil(err) + grpcPort, err := getFreePort() + s.Require().Nil(err) + s.appConfig = &config.Config{} defaults.SetDefaults(s.appConfig) s.appConfig.Log.Level = "error" s.appConfig.Service = server.Config{ - Port: apiPort, + Port: apiPort, + GRPC: server.GRPCConfig{ + Port: grpcPort, + }, EncryptionKey: testEncryptionKey, } s.appConfig.Notification = notification.Config{ @@ -78,7 +84,7 @@ func (s *CortexAlertingTestSuite) SetupTest() { StartSirenServer(*s.appConfig) ctx := context.Background() - s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", apiPort)) + s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", grpcPort)) s.Require().NoError(err) _, err = s.client.CreateProvider(ctx, &sirenv1beta1.CreateProviderRequest{ @@ -112,7 +118,7 @@ func (s *CortexAlertingTestSuite) TestAlerting() { "value": 1, "labels": { "severity": "WARNING", - "team": "odpf", + "team": "raystack", "service": "some-service", "environment": "integration" }, @@ -126,8 +132,8 @@ func (s *CortexAlertingTestSuite) TestAlerting() { ]` _, err := s.client.CreateNamespace(ctx, &sirenv1beta1.CreateNamespaceRequest{ - Name: "new-odpf-1", - Urn: "new-odpf-1", + Name: "new-raystack-1", + Urn: "new-raystack-1", Provider: 1, Credentials: nil, Labels: map[string]string{ @@ -142,10 +148,10 @@ func (s *CortexAlertingTestSuite) TestAlerting() { }) s.Require().NoError(err) _, err = s.client.CreateReceiver(ctx, &sirenv1beta1.CreateReceiverRequest{ - Name: "odpf-http", + Name: "raystack-http", Type: "http", Labels: map[string]string{ - "entity": "odpf", + "entity": "raystack", "kind": "http", }, Configurations: configs, @@ -161,7 +167,7 @@ func (s *CortexAlertingTestSuite) TestAlerting() { }, }, Match: map[string]string{ - "team": "odpf", + "team": "raystack", "service": "some-service", "environment": "integration", }, @@ -169,7 +175,7 @@ func (s *CortexAlertingTestSuite) TestAlerting() { s.Require().NoError(err) for { - bodyBytes, err := triggerCortexAlert(s.testBench.NginxHost, "new-odpf-1", triggerAlertBody) + bodyBytes, err := triggerCortexAlert(s.testBench.NginxHost, "new-raystack-1", triggerAlertBody) s.Assert().NoError(err) if err != nil { break @@ -202,7 +208,7 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { "summary": "this is test alert", "service": "some-service", "environment": "integration", - "team": "odpf" + "team": "raystack" }, "annotations": { "metric_name": "test_alert", @@ -220,7 +226,7 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { "groupLabels": {}, "commonLabels": { "environment": "integration", - "team": "odpf" + "team": "raystack" }, "commonAnnotations": { "metric_name": "test_alert", @@ -230,14 +236,14 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { }, "externalURL": "/api/prom/alertmanager", "version": "4", - "groupKey": "{}/{environment=\"integration\",team=\"odpf\"}:{}", + "groupKey": "{}/{environment=\"integration\",team=\"raystack\"}:{}", "truncatedAlerts": 0 }` ) _, err := s.client.CreateNamespace(ctx, &sirenv1beta1.CreateNamespaceRequest{ - Name: "new-odpf-1", - Urn: "new-odpf-1", + Name: "new-raystack-1", + Urn: "new-raystack-1", Provider: 1, Credentials: nil, Labels: map[string]string{ @@ -249,7 +255,7 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { s.Run("incoming alert in alerts hook API with matching subscription labels should trigger notification", func() { waitChan := make(chan struct{}, 1) - // add receiver odpf-http + // add receiver raystack-http testServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { body, err := io.ReadAll(r.Body) defer r.Body.Close() @@ -276,7 +282,7 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { Template string `json:"template"` } - expectedBody := `{"alertname":"some alert name","environment":"integration","generator_url":"","id":"0998ab88-3f5d-4d4a-a66f-40960b105f37","key1":"value1","key2":"value2","metric_name":"test_alert","metric_value":"1","notification_type":"subscriber","num_alerts_firing":1,"resource":"test_alert","service":"some-service","severity":"WARNING","status":"firing","summary":"this is test alert","team":"odpf","template":"alert_test"}` + expectedBody := `{"alertname":"some alert name","environment":"integration","generator_url":"","id":"0998ab88-3f5d-4d4a-a66f-40960b105f37","key1":"value1","key2":"value2","metric_name":"test_alert","metric_value":"1","notification_type":"subscriber","num_alerts_firing":1,"resource":"test_alert","service":"some-service","severity":"WARNING","status":"firing","summary":"this is test alert","team":"raystack","template":"alert_test"}` var ( expectedStruct sampleStruct @@ -299,10 +305,10 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { }) s.Require().NoError(err) _, err = s.client.CreateReceiver(ctx, &sirenv1beta1.CreateReceiverRequest{ - Name: "odpf-http", + Name: "raystack-http", Type: "http", Labels: map[string]string{ - "entity": "odpf", + "entity": "raystack", "kind": "http", }, Configurations: configs, @@ -318,7 +324,7 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { }, }, Match: map[string]string{ - "team": "odpf", + "team": "raystack", "service": "some-service", "environment": "integration", }, @@ -340,7 +346,7 @@ func (s *CortexAlertingTestSuite) TestIncomingHookAPI() { s.Run("triggering cortex alert with matching subscription labels and silence by labels should not trigger notification", func() { targetExpression, err := structpb.NewStruct(map[string]interface{}{ - "team": "odpf", + "team": "raystack", "service": "some-service", "environment": "integration", }) @@ -447,8 +453,8 @@ func (s *CortexAlertingTestSuite) TestSendNotification() { ctx := context.Background() _, err := s.client.CreateNamespace(ctx, &sirenv1beta1.CreateNamespaceRequest{ - Name: "new-odpf-1", - Urn: "new-odpf-1", + Name: "new-raystack-1", + Urn: "new-raystack-1", Provider: 1, Credentials: nil, Labels: map[string]string{ @@ -496,10 +502,10 @@ func (s *CortexAlertingTestSuite) TestSendNotification() { }) s.Require().NoError(err) _, err = s.client.CreateReceiver(ctx, &sirenv1beta1.CreateReceiverRequest{ - Name: "odpf-http", + Name: "raystack-http", Type: "http", Labels: map[string]string{ - "entity": "odpf", + "entity": "raystack", "kind": "http", }, Configurations: configs, @@ -515,7 +521,7 @@ func (s *CortexAlertingTestSuite) TestSendNotification() { }, }, Match: map[string]string{ - "team": "odpf", + "team": "raystack", "service": "some-service", "environment": "integration", }, diff --git a/test/e2e_test/cortex_helper_test.go b/test/e2e_test/cortex_helper_test.go index fdc52cd4..738bce09 100644 --- a/test/e2e_test/cortex_helper_test.go +++ b/test/e2e_test/cortex_helper_test.go @@ -10,14 +10,14 @@ import ( "time" "github.com/google/uuid" - "github.com/odpf/salt/db" - "github.com/odpf/salt/dockertestx" - "github.com/odpf/salt/log" - "github.com/odpf/siren/config" - "github.com/odpf/siren/internal/store/postgres/migrations" - "github.com/odpf/siren/plugins/providers/cortex" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" "github.com/ory/dockertest/v3" + "github.com/raystack/salt/db" + "github.com/raystack/salt/dockertestx" + "github.com/raystack/salt/log" + "github.com/raystack/siren/config" + "github.com/raystack/siren/internal/store/postgres/migrations" + "github.com/raystack/siren/plugins/providers/cortex" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/suite" "google.golang.org/protobuf/types/known/structpb" ) @@ -43,7 +43,7 @@ func bootstrapCortexTestData(s *suite.Suite, ctx context.Context, client sirenv1 }) s.Require().NoError(err) - // add namespace odpf-test + // add namespace raystack-test _, err = client.CreateNamespace(ctx, &sirenv1beta1.CreateNamespaceRequest{ Name: "fake", Urn: "fake", @@ -51,16 +51,16 @@ func bootstrapCortexTestData(s *suite.Suite, ctx context.Context, client sirenv1 }) s.Require().NoError(err) - // add receiver odpf-http + // add receiver raystack-http configs, err := structpb.NewStruct(map[string]interface{}{ - "url": "http://fake-webhook-endpoint.odpf.io", + "url": "http://fake-webhook-endpoint.raystack.io", }) s.Require().NoError(err) _, err = client.CreateReceiver(ctx, &sirenv1beta1.CreateReceiverRequest{ - Name: "odpf-http", + Name: "raystack-http", Type: "http", Labels: map[string]string{ - "entity": "odpf", + "entity": "raystack", "kind": "http", }, Configurations: configs, diff --git a/test/e2e_test/cortex_namespace_test.go b/test/e2e_test/cortex_namespace_test.go index 894915dc..e1be2e0d 100644 --- a/test/e2e_test/cortex_namespace_test.go +++ b/test/e2e_test/cortex_namespace_test.go @@ -8,10 +8,10 @@ import ( "github.com/google/go-cmp/cmp" "github.com/mcuadros/go-defaults" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/server" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/server" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/suite" ) @@ -27,13 +27,19 @@ func (s *CortexNamespaceTestSuite) SetupTest() { apiPort, err := getFreePort() s.Require().Nil(err) + grpcPort, err := getFreePort() + s.Require().Nil(err) + s.appConfig = &config.Config{} defaults.SetDefaults(s.appConfig) s.appConfig.Log.Level = "error" s.appConfig.Service = server.Config{ - Port: apiPort, + Port: apiPort, + GRPC: server.GRPCConfig{ + Port: grpcPort, + }, EncryptionKey: testEncryptionKey, } s.appConfig.Notification = notification.Config{ @@ -56,7 +62,7 @@ func (s *CortexNamespaceTestSuite) SetupTest() { StartSirenServer(*s.appConfig) ctx := context.Background() - s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", apiPort)) + s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", grpcPort)) s.Require().NoError(err) _, err = s.client.CreateProvider(ctx, &sirenv1beta1.CreateProviderRequest{ @@ -80,8 +86,8 @@ func (s *CortexNamespaceTestSuite) TestNamespace() { s.Run("initial state alert config not set, add a namespace will set config for the provider tenant", func() { _, err := s.client.CreateNamespace(ctx, &sirenv1beta1.CreateNamespaceRequest{ - Name: "new-odpf-1", - Urn: "new-odpf-1", + Name: "new-raystack-1", + Urn: "new-raystack-1", Provider: 1, Credentials: nil, Labels: map[string]string{ @@ -90,7 +96,7 @@ func (s *CortexNamespaceTestSuite) TestNamespace() { }) s.Require().NoError(err) - bodyBytes, err := fetchCortexAlertmanagerConfig(s.testBench.NginxHost, "new-odpf-1") + bodyBytes, err := fetchCortexAlertmanagerConfig(s.testBench.NginxHost, "new-raystack-1") s.Require().NoError(err) expectedScenarioCortexAM, err := os.ReadFile("testdata/cortex/expected-cortexamconfig-scenario.yaml") diff --git a/test/e2e_test/cortex_rule_test.go b/test/e2e_test/cortex_rule_test.go index ef83fc0f..465e603b 100644 --- a/test/e2e_test/cortex_rule_test.go +++ b/test/e2e_test/cortex_rule_test.go @@ -7,10 +7,10 @@ import ( "testing" "github.com/mcuadros/go-defaults" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/server" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/server" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/suite" ) @@ -29,6 +29,9 @@ func (s *CortexRuleTestSuite) SetupTest() { apiPort, err := getFreePort() s.Require().Nil(err) + grpcPort, err := getFreePort() + s.Require().Nil(err) + s.appConfig = &config.Config{} defaults.SetDefaults(s.appConfig) @@ -36,6 +39,7 @@ func (s *CortexRuleTestSuite) SetupTest() { s.appConfig.Log.Level = "error" s.appConfig.Service = server.Config{ Port: apiPort, + GRPC: server.GRPCConfig{Port: grpcPort}, EncryptionKey: testEncryptionKey, } s.appConfig.Notification = notification.Config{ @@ -59,7 +63,7 @@ func (s *CortexRuleTestSuite) SetupTest() { StartSirenServer(*s.appConfig) ctx := context.Background() - s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", apiPort)) + s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", grpcPort)) s.Require().NoError(err) bootstrapCortexTestData(&s.Suite, ctx, s.client, s.testBench.NginxHost) diff --git a/test/e2e_test/helper_test.go b/test/e2e_test/helper_test.go index ea33c1e8..e7642c2d 100644 --- a/test/e2e_test/helper_test.go +++ b/test/e2e_test/helper_test.go @@ -9,12 +9,12 @@ import ( "strings" "github.com/google/go-cmp/cmp" - "github.com/odpf/salt/log" - "github.com/odpf/siren/cli" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/rule" - "github.com/odpf/siren/core/template" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/salt/log" + "github.com/raystack/siren/cli" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/rule" + "github.com/raystack/siren/core/template" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" "gopkg.in/yaml.v3" diff --git a/test/e2e_test/notification_test.go b/test/e2e_test/notification_test.go index ddf55a25..02dd761d 100644 --- a/test/e2e_test/notification_test.go +++ b/test/e2e_test/notification_test.go @@ -13,10 +13,10 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/mcuadros/go-defaults" - "github.com/odpf/siren/config" - "github.com/odpf/siren/core/notification" - "github.com/odpf/siren/internal/server" - sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1" + "github.com/raystack/siren/config" + "github.com/raystack/siren/core/notification" + "github.com/raystack/siren/internal/server" + sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1" "github.com/stretchr/testify/suite" "google.golang.org/protobuf/types/known/structpb" ) @@ -36,12 +36,18 @@ func (s *NotificationTestSuite) SetupTest() { apiPort, err := getFreePort() s.Require().Nil(err) + grpcPort, err := getFreePort() + s.Require().Nil(err) + s.appConfig = &config.Config{} defaults.SetDefaults(s.appConfig) s.appConfig.Log.Level = "error" s.appConfig.Service = server.Config{ + GRPC: server.GRPCConfig{ + Port: grpcPort, + }, Port: apiPort, EncryptionKey: testEncryptionKey, } @@ -72,7 +78,7 @@ func (s *NotificationTestSuite) SetupTest() { StartSirenMessageWorker(*s.appConfig, s.closeWorkerChannel) ctx := context.Background() - s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", apiPort)) + s.client, s.cancelClient, err = CreateClient(ctx, fmt.Sprintf("localhost:%d", grpcPort)) s.Require().NoError(err) bootstrapCortexTestData(&s.Suite, ctx, s.client, s.testBench.NginxHost) diff --git a/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-1.yaml b/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-1.yaml index 55c049db..0dd06f03 100644 --- a/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-1.yaml +++ b/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-1.yaml @@ -8,9 +8,9 @@ system: alertname: CPU usage has been above 85 for last 5m {{ $labels.host }} environment: "{{ $labels.environment }}" severity: WARNING - team: odpf-infra-2 + team: raystack-infra-2 annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx metric_name: cpu_usage_user metric_value: '{{ printf "%0.2f" $value }}' resource: "{{ $labels.host }}" @@ -23,9 +23,9 @@ system: alertname: CPU usage has been above 90 for last 5m {{ $labels.host }} environment: "{{ $labels.environment }}" severity: CRITICAL - team: odpf-infra-2 + team: raystack-infra-2 annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx metric_name: cpu_usage_user metric_value: '{{ printf "%0.2f" $value }}' resource: "{{ $labels.host }}" @@ -40,9 +40,9 @@ system: alertname: CPU usage has been above 90 for last 5m {{ $labels.host }} environment: "{{ $labels.environment }}" severity: CRITICAL - team: odpf-infra-2 + team: raystack-infra-2 annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx metric_name: cpu_usage_user metric_value: '{{ printf "%0.2f" $value }}' resource: "{{ $labels.host }}" diff --git a/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-2.yaml b/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-2.yaml index e5e98ed8..bcd932c1 100644 --- a/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-2.yaml +++ b/test/e2e_test/testdata/cortex/expected-cortexrule-scenario-2.yaml @@ -8,9 +8,9 @@ system: alertname: CPU usage has been above 90 for last 5m {{ $labels.host }} environment: "{{ $labels.environment }}" severity: CRITICAL - team: odpf-infra-2 + team: raystack-infra-2 annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx metric_name: cpu_usage_user metric_value: '{{ printf "%0.2f" $value }}' resource: "{{ $labels.host }}" diff --git a/test/e2e_test/testdata/cortex/rule-sample-scenario-1.yaml b/test/e2e_test/testdata/cortex/rule-sample-scenario-1.yaml index 3164dcce..7540ad8a 100644 --- a/test/e2e_test/testdata/cortex/rule-sample-scenario-1.yaml +++ b/test/e2e_test/testdata/cortex/rule-sample-scenario-1.yaml @@ -9,10 +9,10 @@ rules: enabled: true variables: - name: team - value: odpf-infra-2 + value: raystack-infra-2 cpu-usage-very-critical: template: cpu-usage-very-critical enabled: true variables: - name: team - value: odpf-infra-2 + value: raystack-infra-2 diff --git a/test/e2e_test/testdata/cortex/rule-sample-scenario-2.yaml b/test/e2e_test/testdata/cortex/rule-sample-scenario-2.yaml index a2c1a1d8..754db97b 100644 --- a/test/e2e_test/testdata/cortex/rule-sample-scenario-2.yaml +++ b/test/e2e_test/testdata/cortex/rule-sample-scenario-2.yaml @@ -9,10 +9,10 @@ rules: enabled: false variables: - name: team - value: odpf-infra-2 + value: raystack-infra-2 cpu-usage-very-critical: template: cpu-usage-very-critical enabled: true variables: - name: team - value: odpf-infra-2 + value: raystack-infra-2 diff --git a/test/e2e_test/testdata/cortex/template-rule-sample-1.yaml b/test/e2e_test/testdata/cortex/template-rule-sample-1.yaml index faa37045..aac3876b 100644 --- a/test/e2e_test/testdata/cortex/template-rule-sample-1.yaml +++ b/test/e2e_test/testdata/cortex/template-rule-sample-1.yaml @@ -11,7 +11,7 @@ body: environment: "{{ $labels.environment }}" team: "[[.team]]" annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx summary: CPU usage has been {{ printf "%0.2f" $value }} for last [[.for]] on host {{ $labels.host }} resource: "{{ $labels.host }}" template: cpu-usage @@ -26,7 +26,7 @@ body: environment: "{{ $labels.environment }}" team: "[[.team]]" annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx summary: CPU usage has been {{ printf "%0.2f" $value }} for last [[.for]] on host {{ $labels.host }} resource: "{{ $labels.host }}" template: cpu-usage @@ -46,6 +46,6 @@ variables: - name: team type: string description: For eg team name which the alert should go to - default: odpf-infra + default: raystack-infra tags: - systems diff --git a/test/e2e_test/testdata/cortex/template-rule-sample-2.yaml b/test/e2e_test/testdata/cortex/template-rule-sample-2.yaml index 759a88c5..ec2454d7 100644 --- a/test/e2e_test/testdata/cortex/template-rule-sample-2.yaml +++ b/test/e2e_test/testdata/cortex/template-rule-sample-2.yaml @@ -11,7 +11,7 @@ body: environment: "{{ $labels.environment }}" team: "[[.team]]" annotations: - dashboard: https://dashboard.odpf.io/xxx + dashboard: https://dashboard.raystack.io/xxx summary: CPU usage has been {{ printf "%0.2f" $value }} for last [[.for]] on host {{ $labels.host }} resource: "{{ $labels.host }}" template: cpu-usage @@ -28,6 +28,6 @@ variables: - name: team type: string description: For eg team name which the alert should go to - default: odpf-infra + default: raystack-infra tags: - systems