All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteEventsParametersDelete | Delete /events/parameters/{app_key} | |
GetEventsGet | Get /events/{id} | |
GetEventsGetAll | Get /events | |
GetEventsParametersGet | Get /events/parameters | |
PostEventsPost | Post /events |
string DeleteEventsParametersDelete(ctx, appKey).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
appKey := "appKey_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsAPI.DeleteEventsParametersDelete(context.Background(), appKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.DeleteEventsParametersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteEventsParametersDelete`: string
fmt.Fprintf(os.Stdout, "Response from `EventsAPI.DeleteEventsParametersDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
appKey | string |
Other parameters are passed through a pointer to a apiDeleteEventsParametersDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventSchema GetEventsGet(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsAPI.GetEventsGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.GetEventsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsGet`: EventSchema
fmt.Fprintf(os.Stdout, "Response from `EventsAPI.GetEventsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiGetEventsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginationSchema GetEventsGetAll(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsAPI.GetEventsGetAll(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.GetEventsGetAll``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsGetAll`: PaginationSchema
fmt.Fprintf(os.Stdout, "Response from `EventsAPI.GetEventsGetAll`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetEventsGetAllRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]EventSchema GetEventsParametersGet(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsAPI.GetEventsParametersGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.GetEventsParametersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsParametersGet`: []EventSchema
fmt.Fprintf(os.Stdout, "Response from `EventsAPI.GetEventsParametersGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetEventsParametersGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventSchema PostEventsPost(ctx).RequestBody(requestBody).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
requestBody := *openapiclient.NewEventSchema("ClientSource_example", "ClientUuid_example", map[string]interface{}(123), "EventType_example", "Id_example", map[string]interface{}(123), "SchemaVersion_example", "Severity_example", "Status_example") // EventSchema | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsAPI.PostEventsPost(context.Background()).RequestBody(requestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.PostEventsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostEventsPost`: EventSchema
fmt.Fprintf(os.Stdout, "Response from `EventsAPI.PostEventsPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiPostEventsPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
requestBody | EventSchema |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]