func (c *Client) EmitAuditEvent(eventType string, fields events.EventFields) error {
	_, err := c.PostJSON(c.Endpoint("events"), &auditEventReq{
		Type:   eventType,
		Fields: fields,
	})
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
// EmitAuditEvent sends an auditable event to the auth server (part of evets.IAuditLog interface)
EmitAuditEvent sends an auditable event to the auth server (part of evets.IAuditLog interface)
// EmitAuditEvent sends an auditable event to the auth server ( part of evets . IAuditLog interface )
func (c *Client) EmitAuditEvent(eventType string, fields events.EventFields) error {
	_, err := c.PostJSON(c.Endpoint("events"), &auditEventReq{
		Type:   eventType,
		Fields: fields,
	})
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
func ( c * Client ) EmitAuditEvent ( eventType string , fields events . EventFields ) error { _ , err := c . PostJSON ( c . Endpoint ( " " ) , & auditEventReq { Type : eventType , Fields : fields , } ) if err != nil { return trace . Wrap ( err ) } return nil }
EmitAuditEvent sends an auditable event to the auth server (part of evets.IAuditLog interface)
EmitAuditEvent sends an auditable event to the auth server ( part of evets . IAuditLog interface )