2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.io.openhabcloud.internal.actions;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.core.automation.Action;
20 import org.openhab.core.automation.handler.ModuleHandler;
21 import org.openhab.io.openhabcloud.internal.CloudService;
24 * This is a {@link ModuleHandler} implementation for {@link Action}s to send a log notification to the cloud.
26 * @author Christoph Weitkamp - Initial contribution
29 public class SendLogNotificationActionHandler extends BaseNotificationActionHandler {
31 public static final String TYPE_ID = "notification.SendLogNotification";
32 public static final String EXTENDED_TYPE_ID = "notification.SendExtendedLogNotification";
34 public SendLogNotificationActionHandler(Action module, CloudService cloudService) {
35 super(module, cloudService);
39 public @Nullable Map<String, Object> execute(Map<String, Object> context) {
40 cloudService.sendLogNotification(message, icon, severity);