Documentation
¶
Index ¶
- Constants
- func Provider() *schema.Provider
- func String(s string) int
- func Strings(strings []string) string
- type Clients
- type Config
- type OccurrenceGroup
- func (g *OccurrenceGroup) Delete(client *pingdom.Client) error
- func (g *OccurrenceGroup) ID() string
- func (g *OccurrenceGroup) List(client *pingdom.Client) ([]pingdom.Occurrence, error)
- func (g *OccurrenceGroup) MustExists(client *pingdom.Client) error
- func (g *OccurrenceGroup) Populate(client *pingdom.Client, d *schema.ResourceData) error
- func (g *OccurrenceGroup) Sample(client *pingdom.Client) (*pingdom.Occurrence, int, error)
- func (g *OccurrenceGroup) Size(client *pingdom.Client) (int, error)
- func (g *OccurrenceGroup) Update(client *pingdom.Client, from int64, to int64) error
Constants ¶
View Source
const ( WEBHOOK string = "webhook" LIBRATO string = "librato" )
View Source
const (
DeleteUserRetryTimeout = 1 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clients ¶
type Clients struct { Pingdom *pingdom.Client PingdomExt *pingdomext.Client Solarwinds *solarwinds.Client }
type Config ¶
type Config struct { APIToken string `mapstructure:"api_token"` SolarwindsUser string `mapstructure:"solarwinds_user"` SolarwindsPassword string `mapstructure:"solarwinds_password"` SolarwindsOrgID string `mapstructure:"solarwinds_org_id"` }
Config respresents the client configuration
type OccurrenceGroup ¶
type OccurrenceGroup pingdom.ListOccurrenceQuery
func NewOccurrenceGroupWithResourceData ¶
func NewOccurrenceGroupWithResourceData(d *schema.ResourceData) (*OccurrenceGroup, error)
func (*OccurrenceGroup) ID ¶
func (g *OccurrenceGroup) ID() string
ID returns unique id for an OccurrenceGroup. An OccurrenceGroup is essentially a query against Maintenance Occurrence. The result of query can overlap, so there is no unique resource id for queries on the Pingdom side.
func (*OccurrenceGroup) List ¶
func (g *OccurrenceGroup) List(client *pingdom.Client) ([]pingdom.Occurrence, error)
func (*OccurrenceGroup) MustExists ¶
func (g *OccurrenceGroup) MustExists(client *pingdom.Client) error
func (*OccurrenceGroup) Populate ¶
func (g *OccurrenceGroup) Populate(client *pingdom.Client, d *schema.ResourceData) error
func (*OccurrenceGroup) Sample ¶
func (g *OccurrenceGroup) Sample(client *pingdom.Client) (*pingdom.Occurrence, int, error)
Source Files
¶
- config.go
- data_source_pingdom_contact.go
- data_source_pingdom_contacts.go
- data_source_pingdom_integration.go
- data_source_pingdom_integrations.go
- data_source_pingdom_team.go
- data_source_pingdom_teams.go
- provider.go
- resource_pingdom_check.go
- resource_pingdom_contact.go
- resource_pingdom_integration.go
- resource_pingdom_maintenance.go
- resource_pingdom_occurrence.go
- resource_pingdom_team.go
- resource_pingdom_tms_check.go
- resource_pingdom_user.go
- utils.go
Click to show internal directories.
Click to hide internal directories.