russellcardullo / go-pingdom Goto Github PK
View Code? Open in Web Editor NEWNo longer maintained: Pingdom API access from Go
License: MIT License
No longer maintained: Pingdom API access from Go
License: MIT License
This doesn't appear to be a supported attribute on the check types.
See https://www.pingdom.com/resources/api#MethodModify+Check & https://www.pingdom.com/resources/api#MethodCreate+New+Check
When creating a new HTTP check using the latest go-pingdom client, we receive the following error:
400 Bad Request: Invalid parameter value: alert_policy
--- FAIL: TestCheckServiceList (0.00s)
check_test.go:145: ListChecks returned [{ID:85975 Name:My check 1 Resolution:1 SendToAndroid:false SendToEmail:false SendToIPhone:false SendToSms:false SendToTwitter:false SendNotificationWhenDown:0 NotifyAgainEvery:0 NotifyWhenBackup:false Created:0 Hostname:example.com Status:up LastErrorTime:1297446423 LastTestTime:1300977363 LastResponseTime:355 Paused:false ContactIds:[] IntegrationIds:[] Type:{Name:http HTTP:<nil>} Tags:[{Name:apache Type:a Count:2}]} {ID:161748 Name:My check 2 Resolution:5 SendToAndroid:false SendToEmail:false SendToIPhone:false SendToSms:false SendToTwitter:false SendNotificationWhenDown:0 NotifyAgainEvery:0 NotifyWhenBackup:false Created:0 Hostname:mydomain.com Status:up LastErrorTime:1299194968 LastTestTime:1300977268 LastResponseTime:1141 Paused:false ContactIds:[] IntegrationIds:[] Type:{Name:ping HTTP:<nil>} Tags:[{Name:nginx Type:u Count:1}]} {ID:208655 Name:My check 3 Resolution:1 SendToAndroid:false SendToEmail:false SendToIPhone:false SendToSms:false SendToTwitter:false SendNotificationWhenDown:0 NotifyAgainEvery:0 NotifyWhenBackup:false Created:0 Hostname:example.net Status:down LastErrorTime:1300527997 LastTestTime:1300977337 LastResponseTime:800 Paused:false ContactIds:[] IntegrationIds:[] Type:{Name:http HTTP:<nil>} Tags:[{Name:apache Type:a Count:2}]}], want [{ID:85975 Name:My check 1 Resolution:1 SendToAndroid:false SendToEmail:false SendToIPhone:false SendToSms:false SendToTwitter:false SendNotificationWhenDown:0 NotifyAgainEvery:0 NotifyWhenBackup:false Created:0 Hostname:example.com Status:up LastErrorTime:1297446423 LastTestTime:1300977363 LastResponseTime:355 Paused:false ContactIds:[] IntegrationIds:[] Type:{Name:http HTTP:<nil>} Tags:[{Name:apache Type:a Count:2}]} {ID:161748 Name:My check 2 Resolution:5 SendToAndroid:false SendToEmail:false SendToIPhone:false SendToSms:false SendToTwitter:false SendNotificationWhenDown:0 NotifyAgainEvery:0 NotifyWhenBackup:false Created:0 Hostname:mydomain.com Status:up LastErrorTime:1299194968 LastTestTime:1300977268 LastResponseTime:1141 Paused:false ContactIds:[] IntegrationIds:[] Type:{Name:ping HTTP:<nil>} Tags:[{Name:nginx Type:u Count:1}]} {ID:208655 Name:My check 3 Resolution:1 SendToAndroid:false SendToEmail:false SendToIPhone:false SendToSms:false SendToTwitter:false SendNotificationWhenDown:0 NotifyAgainEvery:0 NotifyWhenBackup:false Created:0 Hostname:example.net Status:down LastErrorTime:1300527997 LastTestTime:1300977337 LastResponseTime:800 Paused:false ContactIds:[] IntegrationIds:[] Type:{Name:http HTTP:<nil>} Tags:[{Name:apache Type:a Count:2}]}]
As from time to time we need to get list of IPs of pingdom servers, I want to add /probes to the client.
Let me know if you work on that already.
Please add support for httpcustom type
https://docs.pingdom.com/api/#tag/Checks/paths/~1checks/post
Check update have required parameter. Based on Pingdom documentation there is no mandatory parameters.
Now pingdom.Checks.Update(id, check)
fails with errors from Valid() like
2018/05/03 10:15:44 Invalid value for `Name`. Must contain non-empty string
Hi,
Pingdom API have an endpoint to create a contact target : https://www.pingdom.com/api/2.1/#MethodCreate+a+new+contact+target
How can i do that using the go-pingdom ?
Thanks.
Sorry if this is an obvious issue on my end. I am new to Go dep.
Solving failure: No versions of github.com/russellcardullo/go-pingdom met constraints: master: Could not introduce github.com/russellcardullo/go-pingdom@master, as its subpackage github.com/russellcardullo/go-pingdom does not contain usable Go code (*build.NoGoError).. (Package is required by (root).) gomod: Could not introduce github.com/russellcardullo/go-pingdom@gomod, as its subpackage github.com/russellcardullo/go-pingdom does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
Hi All,
How one should create a new httpcheck but, with support for https protocol.
I tried this with no help, I got an HTTP check:
newCheck := pingdom.HttpCheck{
Name: ing.Name,
Hostname: ing.Spec.Rules[0].Host,
Port: 443,
Resolution: 5,
}
check, err := client.Checks.Create(&newCheck)
Thanks in advance!
Allow the consumer of this package to use a custom http.Client
instance with a custom timeout rather than using the default client.
Please let me know if anyone is busy with adding Teams Service
to the client.
I wanna do that shortly, if there are no objections
Api 2.1 with old appkey will be deprecated
Are you planning to migrate to 3.1 ?
Hi,
We are using a few Transaction Checks in Pingdom. Although there is no "public" page for the Transactions Check API , there are some read-only API calls available for transactions checks.
Can we add support for these types of checks as well? I am happy to work on it and create a PR.
Thanks !
Nikita
Firstly, thanks for the hard work on the library. We use it and your Terraform provider.
It would be nice to have the ipv6
option available when creating/updating a check. https://docs.pingdom.com/api/#tag/Checks/paths/~1checks/post
In turn, it would be nice to have that in your Terraform provider as well.
I can work on this if you like.
The Pingdom API returns probe_filters
as part of the get check details
API call, this field is missing from the CheckResponse
struct
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.