Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.5.0"
".": "2.6.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 32
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-242450ea46eb8c3e843fd6c4bf87e73192b5f62f6da697cd091d13c6aa7a991b.yml
openapi_spec_hash: c1c561976de1abcacede71fd5ab9b3d9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-91f4286859fc23813c5255b877395c87dd81520c3913fdfdae3cfa343e1a4873.yml
openapi_spec_hash: 71746b5b65f20617ee021e071d5f7f92
config_hash: 70e7e80b5e87f94981bee396c6cd41e8
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.6.0 (2026-07-27)

Full Changelog: [v2.5.0...v2.6.0](https://github.com/context-dot-dev/context-go-sdk/compare/v2.5.0...v2.6.0)

### Features

* **api:** api update ([5b78bbb](https://github.com/context-dot-dev/context-go-sdk/commit/5b78bbb8adb906ed1d8f8134c13d26afa03eafdd))
* **api:** api update ([c0bdc14](https://github.com/context-dot-dev/context-go-sdk/commit/c0bdc141d92f4211cedf92b143544488569f7db4))

## 2.5.0 (2026-07-22)

Full Changelog: [v2.4.0...v2.5.0](https://github.com/context-dot-dev/context-go-sdk/compare/v2.4.0...v2.5.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/context-dot-dev/context-go-sdk@v2.5.0'
go get -u 'github.com/context-dot-dev/context-go-sdk@v2.6.0'
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "2.5.0" // x-release-please-version
const PackageVersion = "2.6.0" // x-release-please-version
339 changes: 187 additions & 152 deletions monitor.go

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,23 @@ func TestMonitorNewWithOptionalParams(t *testing.T) {
option.WithAPIKey("My API Key"),
)
_, err := client.Monitors.New(context.TODO(), contextdev.MonitorNewParams{
ChangeDetection: contextdev.MonitorNewParamsChangeDetectionUnion{
OfExact: &contextdev.MonitorNewParamsChangeDetectionExact{},
},
Name: "Acme pricing page",
Schedule: contextdev.MonitorNewParamsSchedule{
Frequency: 6,
Type: "interval",
Unit: "hours",
},
Target: contextdev.MonitorNewParamsTargetUnion{
OfPage: &contextdev.MonitorNewParamsTargetPage{
URL: "https://acme.com/pricing",
Instructions: contextdev.String("Report pricing or plan availability changes. Ignore counters, timestamps, testimonials, and navigation."),
NormalizeWhitespace: contextdev.Bool(true),
},
},
ChangeDetection: contextdev.MonitorNewParamsChangeDetectionUnion{
OfExact: &contextdev.MonitorNewParamsChangeDetectionExact{},
},
Mode: contextdev.MonitorNewParamsModeWeb,
Schedule: contextdev.MonitorNewParamsSchedule{
Frequency: 6,
Type: "interval",
Unit: "hours",
},
Tags: []string{"pricing", "competitor"},
Webhook: contextdev.MonitorNewParamsWebhook{
URL: "https://example.com/webhook",
Expand Down Expand Up @@ -113,6 +114,7 @@ func TestMonitorUpdateWithOptionalParams(t *testing.T) {
Target: contextdev.MonitorUpdateParamsTargetUnion{
OfPage: &contextdev.MonitorUpdateParamsTargetPage{
URL: "https://acme.com/pricing",
Instructions: contextdev.String("Report pricing or plan availability changes. Ignore counters, timestamps, testimonials, and navigation."),
NormalizeWhitespace: contextdev.Bool(true),
},
},
Expand Down
Loading