All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetEvent | Get /events/{eventId} | Get single event |
| GetEventSources | Get /eventSources | Get event sources |
| GetEventTags | Get /eventTags | Get event tags |
| GetEventTypes | Get /eventTypes | Get event types |
| GetEvents | Post /events | Get events |
| GetEventsHistogram | Post /eventsHistogram | Get events histogram |
TopologyEvent GetEvent(ctx, eventId).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).PlayHeadTimestampMs(playHeadTimestampMs).Execute()
Get single event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
eventId := "eventId_example" // string | The Identifier of an event.
startTimestampMs := int32(56) // int32 |
endTimestampMs := int32(56) // int32 |
playHeadTimestampMs := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventApi.GetEvent(context.Background(), eventId).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).PlayHeadTimestampMs(playHeadTimestampMs).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventApi.GetEvent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEvent`: TopologyEvent
fmt.Fprintf(os.Stdout, "Response from `EventApi.GetEvent`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| eventId | string | The Identifier of an event. |
Other parameters are passed through a pointer to a apiGetEventRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
startTimestampMs | int32 | | endTimestampMs | int32 | | playHeadTimestampMs | int32 | |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StringItemsWithTotal GetEventSources(ctx).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).TopologyQuery(topologyQuery).Limit(limit).IncludeConnectedComponents(includeConnectedComponents).PlayHeadTimestampMs(playHeadTimestampMs).EventTypes(eventTypes).EventCategories(eventCategories).EventSources(eventSources).EventTags(eventTags).Match(match).Execute()
Get event sources
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
startTimestampMs := int32(56) // int32 |
endTimestampMs := int32(56) // int32 |
topologyQuery := "topologyQuery_example" // string |
limit := int32(56) // int32 |
includeConnectedComponents := true // bool | (optional)
playHeadTimestampMs := int32(56) // int32 | (optional)
eventTypes := []string{"Inner_example"} // []string | (optional)
eventCategories := []openapiclient.EventCategory{openapiclient.EventCategory("Changes")} // []EventCategory | The category labels of an event. (optional)
eventSources := []string{"Inner_example"} // []string | (optional)
eventTags := []string{"Inner_example"} // []string | (optional)
match := "match_example" // string | (optional) (default to "")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventApi.GetEventSources(context.Background()).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).TopologyQuery(topologyQuery).Limit(limit).IncludeConnectedComponents(includeConnectedComponents).PlayHeadTimestampMs(playHeadTimestampMs).EventTypes(eventTypes).EventCategories(eventCategories).EventSources(eventSources).EventTags(eventTags).Match(match).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventApi.GetEventSources``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventSources`: StringItemsWithTotal
fmt.Fprintf(os.Stdout, "Response from `EventApi.GetEventSources`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEventSourcesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| startTimestampMs | int32 | ||
| endTimestampMs | int32 | ||
| topologyQuery | string | ||
| limit | int32 | ||
| includeConnectedComponents | bool | ||
| playHeadTimestampMs | int32 | ||
| eventTypes | []string | ||
| eventCategories | []EventCategory | The category labels of an event. | |
| eventSources | []string | ||
| eventTags | []string | ||
| match | string | [default to ""] |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StringItemsWithTotal GetEventTags(ctx).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).TopologyQuery(topologyQuery).Limit(limit).IncludeConnectedComponents(includeConnectedComponents).PlayHeadTimestampMs(playHeadTimestampMs).EventTypes(eventTypes).EventCategories(eventCategories).EventSources(eventSources).EventTags(eventTags).Match(match).Execute()
Get event tags
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
startTimestampMs := int32(56) // int32 |
endTimestampMs := int32(56) // int32 |
topologyQuery := "topologyQuery_example" // string |
limit := int32(56) // int32 |
includeConnectedComponents := true // bool | (optional)
playHeadTimestampMs := int32(56) // int32 | (optional)
eventTypes := []string{"Inner_example"} // []string | (optional)
eventCategories := []openapiclient.EventCategory{openapiclient.EventCategory("Changes")} // []EventCategory | The category labels of an event. (optional)
eventSources := []string{"Inner_example"} // []string | (optional)
eventTags := []string{"Inner_example"} // []string | (optional)
match := "match_example" // string | (optional) (default to "")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventApi.GetEventTags(context.Background()).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).TopologyQuery(topologyQuery).Limit(limit).IncludeConnectedComponents(includeConnectedComponents).PlayHeadTimestampMs(playHeadTimestampMs).EventTypes(eventTypes).EventCategories(eventCategories).EventSources(eventSources).EventTags(eventTags).Match(match).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventApi.GetEventTags``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventTags`: StringItemsWithTotal
fmt.Fprintf(os.Stdout, "Response from `EventApi.GetEventTags`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEventTagsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| startTimestampMs | int32 | ||
| endTimestampMs | int32 | ||
| topologyQuery | string | ||
| limit | int32 | ||
| includeConnectedComponents | bool | ||
| playHeadTimestampMs | int32 | ||
| eventTypes | []string | ||
| eventCategories | []EventCategory | The category labels of an event. | |
| eventSources | []string | ||
| eventTags | []string | ||
| match | string | [default to ""] |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StringItemsWithTotal GetEventTypes(ctx).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).TopologyQuery(topologyQuery).Limit(limit).IncludeConnectedComponents(includeConnectedComponents).PlayHeadTimestampMs(playHeadTimestampMs).EventTypes(eventTypes).EventCategories(eventCategories).EventSources(eventSources).EventTags(eventTags).Match(match).Execute()
Get event types
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
startTimestampMs := int32(56) // int32 |
endTimestampMs := int32(56) // int32 |
topologyQuery := "topologyQuery_example" // string |
limit := int32(56) // int32 |
includeConnectedComponents := true // bool | (optional)
playHeadTimestampMs := int32(56) // int32 | (optional)
eventTypes := []string{"Inner_example"} // []string | (optional)
eventCategories := []openapiclient.EventCategory{openapiclient.EventCategory("Changes")} // []EventCategory | The category labels of an event. (optional)
eventSources := []string{"Inner_example"} // []string | (optional)
eventTags := []string{"Inner_example"} // []string | (optional)
match := "match_example" // string | (optional) (default to "")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventApi.GetEventTypes(context.Background()).StartTimestampMs(startTimestampMs).EndTimestampMs(endTimestampMs).TopologyQuery(topologyQuery).Limit(limit).IncludeConnectedComponents(includeConnectedComponents).PlayHeadTimestampMs(playHeadTimestampMs).EventTypes(eventTypes).EventCategories(eventCategories).EventSources(eventSources).EventTags(eventTags).Match(match).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventApi.GetEventTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventTypes`: StringItemsWithTotal
fmt.Fprintf(os.Stdout, "Response from `EventApi.GetEventTypes`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEventTypesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| startTimestampMs | int32 | ||
| endTimestampMs | int32 | ||
| topologyQuery | string | ||
| limit | int32 | ||
| includeConnectedComponents | bool | ||
| playHeadTimestampMs | int32 | ||
| eventTypes | []string | ||
| eventCategories | []EventCategory | The category labels of an event. | |
| eventSources | []string | ||
| eventTags | []string | ||
| match | string | [default to ""] |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventItemsWithTotal GetEvents(ctx).EventListRequest(eventListRequest).Execute()
Get events
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
eventListRequest := *openapiclient.NewEventListRequest(int32(123), int32(123), "TopologyQuery_example", int32(123)) // EventListRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventApi.GetEvents(context.Background()).EventListRequest(eventListRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventApi.GetEvents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEvents`: EventItemsWithTotal
fmt.Fprintf(os.Stdout, "Response from `EventApi.GetEvents`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEventsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| eventListRequest | EventListRequest |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventsHistogram GetEventsHistogram(ctx).EventsHistogramRequest(eventsHistogramRequest).Execute()
Get events histogram
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
eventsHistogramRequest := *openapiclient.NewEventsHistogramRequest(int32(123), int32(123), "TopologyQuery_example", int32(123)) // EventsHistogramRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventApi.GetEventsHistogram(context.Background()).EventsHistogramRequest(eventsHistogramRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventApi.GetEventsHistogram``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsHistogram`: EventsHistogram
fmt.Fprintf(os.Stdout, "Response from `EventApi.GetEventsHistogram`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEventsHistogramRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| eventsHistogramRequest | EventsHistogramRequest |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]