Incidents.Events
Overview
Available Operations
List
offset - non zero value
limit - non zero value, maximum is 10
sort - sort it by either asc or desc
deduped - if set to true, it will return only the deduplicated events. if set to false, it will return only the non-deduplicated event, otherwise it will return all the eventsExample Usage
package main
import(
"context"
"os"
squadcastsdk "github.com/solarwinds/squadcast-sdk-go"
"github.com/solarwinds/squadcast-sdk-go/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := squadcastsdk.New(
squadcastsdk.WithSecurity(os.Getenv("SQUADCASTSDK_BEARER_AUTH")),
)
res, err := s.Incidents.Events.List(ctx, operations.IncidentsGetIncidentEventsRequest{
IncidentID: "<id>",
Offset: "<value>",
Limit: "<value>",
Sort: "<value>",
Deduped: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}Parameters
Parameter
Type
Required
Description
Response
Errors
Error Type
Status Code
Content Type
Last updated