Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defmodule Astarte.Core.Triggers.SimpleEvents.DeviceRegisteredEvent do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// This file is part of Astarte.
//
// Copyright 2025 SECO Mind Srl
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

message DeviceRegisteredEvent {
}
5 changes: 5 additions & 0 deletions lib/astarte_core/triggers/simple_events/simple_event.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ defmodule Astarte.Core.Triggers.SimpleEvents.SimpleEvent do
json_name: "deviceErrorEvent",
oneof: 0

field :device_registered_event, 20,
type: Astarte.Core.Triggers.SimpleEvents.DeviceRegisteredEvent,
json_name: "deviceRegisteredEvent",
oneof: 0

field :device_deletion_started_event, 21,
type: Astarte.Core.Triggers.SimpleEvents.DeviceDeletionStartedEvent,
json_name: "deviceDeletionStartedEvent",
Expand Down
2 changes: 2 additions & 0 deletions lib/astarte_core/triggers/simple_events/simple_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ syntax = "proto3";

import "lib/astarte_core/triggers/simple_events/device_connected_event.proto";
import "lib/astarte_core/triggers/simple_events/device_disconnected_event.proto";
import "lib/astarte_core/triggers/simple_events/device_registered_event.proto";
import "lib/astarte_core/triggers/simple_events/device_deletion_started_event.proto";
import "lib/astarte_core/triggers/simple_events/device_deletion_finished_event.proto";
import "lib/astarte_core/triggers/simple_events/device_error_event.proto";
Expand Down Expand Up @@ -58,6 +59,7 @@ message SimpleEvent {
InterfaceRemovedEvent interface_removed_event = 16;
InterfaceMinorUpdatedEvent interface_minor_updated_event = 17;
DeviceErrorEvent device_error_event = 19;
DeviceRegisteredEvent device_registered_event = 20;
DeviceDeletionStartedEvent device_deletion_started_event = 21;
DeviceDeletionFinishedEvent device_deletion_finished_event = 22;
}
Expand Down
Loading