Skip to content
2 changes: 1 addition & 1 deletion monitor_services_create_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type MonitorServiceToken struct {

// Create token options
type MonitorTokenCreateOptions struct {
EntityIDs []int `json:"entity_ids"`
EntityIDs []any `json:"entity_ids"`
}

// CreateMonitorServiceTokenForServiceType to create token for a given serviceType
Expand Down
2 changes: 1 addition & 1 deletion test/integration/monitor_services_token_creation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestMonitorServicesTokenCreation_Get_smoke(t *testing.T) {
t.Errorf("Error listing Databases, expected struct, got error %v", err)
}

var entityIDs []int
var entityIDs []any
for _, db := range dbs {
entityIDs = append(entityIDs, db.ID)
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/monitor_services_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCreateMonitorServicesToken(t *testing.T) {

// Create request data for POST request
opts := linodego.MonitorTokenCreateOptions{
EntityIDs: []int{12345, 54321},
EntityIDs: []any{12345, "us-54321"},
}

token, err := base.Client.CreateMonitorServiceTokenForServiceType(context.Background(), "dbaas", opts)
Expand Down