Function: event.Create
Creates an event.
Syntax
{
"method": "event.Create",
"params": {
"segmentId": "...",
"type": "...",
"category": "...",
"name": "...",
"desc": "...",
"prio": "...",
"tags": "...",
"location": "...",
"geoPos": "...",
"beginTime": "...",
"utcOffset": "...",
"text": "...",
"graphics": "...",
"textMacros": "...",
"datapointId": "...",
"locationId": "...",
"activityId": "...",
"incident": "...",
"stateType": "...",
"stateText": "...",
"startValue": "...",
"functionality": "...",
"animationScheme": "...",
"cameras": "...",
"extRef": "...",
"extSource": "...",
"props": "...",
"processing": "...",
},
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}AdvFuture<AdvGuid> Create( EnumStateFlags type
std::optional<AdvGuid> segmentId = std::nullopt,
std::optional<AdvString> category = std::nullopt,
std::optional<AdvString> name = std::nullopt,
std::optional<AdvString> desc = std::nullopt,
std::optional<int> prio = std::nullopt,
std::optional<AdvString> tags = std::nullopt,
std::optional<AdvString> location = std::nullopt,
std::optional<GeoPosition> geoPos = std::nullopt,
std::optional<AdvTime> beginTime = std::nullopt,
std::optional<int> utcOffset = std::nullopt,
std::optional<AdvString> text = std::nullopt,
std::optional<AdvObject> graphics = std::nullopt,
std::optional<AdvObject> textMacros = std::nullopt,
std::optional<AdvGuid> datapointId = std::nullopt,
std::optional<AdvGuid> locationId = std::nullopt,
std::optional<AdvGuid> activityId = std::nullopt,
std::optional<Incident> incident = std::nullopt,
std::optional<EnumStateFlags> stateType = std::nullopt,
std::optional<AdvString> stateText = std::nullopt,
std::optional<AdvString> startValue = std::nullopt,
std::optional<AdvString> functionality = std::nullopt,
std::optional<AdvString> animationScheme = std::nullopt,
std::optional<std::vector<AdvGuid>> cameras = std::nullopt,
std::optional<AdvString> extRef = std::nullopt,
std::optional<AdvString> extSource = std::nullopt,
std::optional<AdvObject> props = std::nullopt,
std::optional<EnumEventProcessingFlags> processing = std::nullopt );public Task<Guid> CreateAsync(EnumStateFlags type,
Guid? segmentId = null,
string? category = null,
string? name = null,
string? desc = null,
long? prio = null,
string? tags = null,
string? location = null,
GeoPosition? geoPos = null,
DateTime? beginTime = null,
long? utcOffset = null,
string? text = null,
IDictionary<long,
string>? graphics = null,
IDictionary<long,
string>? textMacros = null,
Guid? datapointId = null,
Guid? locationId = null,
Guid? activityId = null,
Incident? incident = null,
EnumStateFlags? stateType = null,
string? stateText = null,
string? startValue = null,
string? functionality = null,
string? animationScheme = null,
IList<Guid>? cameras = null,
string? extRef = null,
string? extSource = null,
IDictionary<string,
object?>? props = null,
EnumEventProcessingFlags? processing = null,
CancellationToken ct = default);create(type: EnumStateFlags, segmentId?: string | undefined, category?: string | undefined, name?: string | undefined, desc?: string | undefined, prio?: number | undefined, tags?: string | undefined, location?: string | undefined, geoPos?: GeoPosition | undefined, beginTime?: Date | undefined, utcOffset?: number | undefined, text?: string | undefined, graphics?: Map<string, string> | undefined, textMacros?: Map<string, string> | undefined, datapointId?: string | undefined, locationId?: string | undefined, activityId?: string | undefined, incident?: Incident | undefined, stateType?: EnumStateFlags | undefined, stateText?: string | undefined, startValue?: string | undefined, functionality?: string | undefined, animationScheme?: string | undefined, cameras?: string[] | undefined, extRef?: string | undefined, extSource?: string | undefined, props?: Map<string, Object> | undefined, processing?: EnumEventProcessingFlags | undefined): Promise<string>;Parameters
segmentId : guid optional
type : int (EnumStateFlags)
Only one logical value should be set for type.
category : string optional
name : string optional
desc : string optional
prio : int optional
tags : string optional
location : string optional
geoPos : GeoPosition optional
beginTime : time optional
utcOffset : int optional
text : string optional
graphics : string[#] optional
textMacros : string[#] optional
datapointId : guid optional
From this Datapoint other missing props will be set.
locationId : guid optional
From this location other missing props will be set.
activityId : guid optional
incident : Incident optional
stateType : int (EnumStateFlags) optional
Only one logical value should be set for type.
stateText : string optional
startValue : string optional
functionality : string optional
animationScheme : string optional
cameras : guid[] optional
extRef : string optional
extSource : string optional
props : value{} optional
processing : int (EnumEventProcessingFlags) optional
Result : guid
Id of the newly created Event.
Remarks
This method requires API write access.