GlobalEventRules.Rules
Overview
Available Operations
ReorderByIndex
Example Usage
package main
import(
"context"
"os"
squadcastsdk "github.com/solarwinds/squadcast-sdk-go"
"github.com/solarwinds/squadcast-sdk-go/models/components"
"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.GlobalEventRules.Rules.ReorderByIndex(ctx, operations.GlobalEventRulesReorderRulesetByIndexRequest{
GerID: 281260,
AlertSourceVersion: "<value>",
AlertSourceShortname: "<value>",
RuleID: "<id>",
V3GlobalEventRulesReorderRuleRequest: components.V3GlobalEventRulesReorderRuleRequest{},
})
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