SIEM HTTP Destination Events

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

List SIEM HTTP Destination Events

SDK Method

siem_http_destination_event.List()

Return Values

Returns a *siem_http_destination_event.Iter and an error. Range over All() to receive files_sdk.SiemHttpDestinationEvent values and errors. Check each loop error before using its resource. Next() and Err() remain supported.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator.

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.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for siemHttpDestinationEvent, err := range siemHttpDestinationEventIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(siemHttpDestinationEvent)
}

Show SIEM HTTP Destination Event

SDK Method

siem_http_destination_event.Find()

Return Values

Returns a files_sdk.SiemHttpDestinationEvent value and an error.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator.

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.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}
fmt.Println(siemHttpDestinationEvent)

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.