Skip to content

xmatters/xmatters-go

Repository files navigation

xmatters-go

Package xmatters-go provides a Go client for interacting with the xMatters REST API.

xMatters is a communication platform that enables enterprises to manage and automate communication with their employees, customers, and other stakeholders during incidents and other critical events. This package allows you to programmatically access and utilize the xMatters REST API to integrate xMatters functionality into your Go applications.

This client library is primarily used by the xMatters Terraform Provider.

License: MPL2.0 API

Installation

go get github.com/xmatters/xmatters-go

Example Usage

// Create a new XMattersAPI client with your API Token
apiToken := "your-api-token"
xmattersClient, err := xmatters.NewWithAPIToken(&apiToken)
if err != nil {
    log.Fatal(err)
}

// Use the client to interact with the xMatters REST API
// For example, retrieve information about users:
users, err := xmattersClient.GetPersonList(nil)
if err != nil {
    log.Fatal(err)
}
fmt.Println(users)

Available Types

type Device

type Device struct { ... }

Device represents a device in xMatters.

type Group

type Group struct { ... }

Group represents a group in xMatters.

type GroupMember struct { ... }

GroupMember represents a shorthand version of a group member. It contains the ID and type of the member, which can be a person, device, or group.

type Person

type Person struct { ... }

Person represents a person in xMatters.

type Service

type Service struct { ... }

Service represents a service in xMatters.

type Site

type Site struct { ... }

Site represents a site in xMatters.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages