hussein-awala commented on code in PR #30059:
URL: https://github.com/apache/airflow/pull/30059#discussion_r1135746773


##########
airflow/providers/datadog/hooks/datadog.py:
##########
@@ -152,3 +157,27 @@ def post_event(
 
         self.validate_response(response)
         return response
+
+    @staticmethod
+    def get_connection_form_widgets() -> dict[str, Any]:
+        """Returns connection widgets to add to connection form"""
+        from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
+        from flask_babel import lazy_gettext
+        from wtforms import StringField
+
+        return {
+            "api_host": StringField(lazy_gettext("Datadog API endpoint"), 
widget=BS3TextFieldWidget()),
+            "api_key": StringField(lazy_gettext("Datadog API key"), 
widget=BS3TextFieldWidget()),
+            "app_key": StringField(lazy_gettext("Datadog application key"), 
widget=BS3TextFieldWidget()),
+            "source_type_name": StringField(
+                lazy_gettext("Datadog source type name"), 
widget=BS3TextFieldWidget()

Review Comment:
   I had the same impression :+1: 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to