SIEM HTTP Destination Events

A SiemHttpDestinationEvent is a log record for SIEM publishing failures and recoveries.

List SIEM HTTP Destination Events

SDK Method

siemhttpdestinationevent.List()

Return Object

[]*SiemHttpDestinationEvent

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Additional Arguments

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    siem_http_destination_event "github.com/Files-com/files-sdk-go/v3/siemhttpdestinationevent"
)

siemHttpDestinationEventIterator, err := siem_http_destination_event.List(files_sdk.SiemHttpDestinationEventListParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

for siemHttpDestinationEventIterator.Next() {
    siemHttpDestinationEvent := siemHttpDestinationEventIterator.siemHttpDestinationEvent()
}
err = siemHttpDestinationEventIterator.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

Show SIEM HTTP Destination Event

SDK Method

siemhttpdestinationevent.Find()

Return Object

SiemHttpDestinationEvent

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

SiemHttpDestinationEventFindParams Fields

FieldDescription
Id
int64
Required
Siem Http Destination Event ID.

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    siem_http_destination_event "github.com/Files-com/files-sdk-go/v3/siemhttpdestinationevent"
)

siemHttpDestinationEvent, err := siem_http_destination_event.Find(files_sdk.SiemHttpDestinationEventFindParams{Id: 1})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

The SiemHttpDestinationEvent Object

Some of the methods above return a SiemHttpDestinationEvent object. The attributes of this object are listed below.

AttributeDescription
Id
int64
Event ID
EventType
string
Type of SIEM event being recorded.
Status
string
Status of event.
Possible values: success, failure, partial_failure, in_progress, skipped
Body
string
Event body.
EventErrors
array(string)
Event errors.
CreatedAt
date-time
Event create date/time.
BodyUrl
string
Link to log file.
SiemHttpDestinationId
int64
SIEM ID.