應用程式參數 - AWS Panorama

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

應用程式參數

參數是具有基本類型的節點,可以在部署過程中被覆蓋。參數可以具有默認值和裝潢者,它指示應用程序的用户如何配置它。

參數類型
  • string— 字串。例如: DEBUG

  • int32— 整數。例如 20

  • float32— 浮點數。例如 47.5

  • booleantrue或者false

下面的示例顯示了兩個參數,一個字符串和一個數字,它們作為輸入發送到代碼節點。

範例 圖形 .json — 參數
"nodes": [ { "name": "detection_threshold", "interface": "float32", "value": 20.0, "overridable": true, "decorator": { "title": "Threshold", "description": "The minimum confidence percentage for a positive classification." } }, { "name": "log_level", "interface": "string", "value": "INFO", "overridable": true, "decorator": { "title": "Logging level", "description": "DEBUG, INFO, WARNING, ERROR, or CRITICAL." } } ... ], "edges": [ { "producer": "detection_threshold", "consumer": "code_node.threshold" }, { "producer": "log_level", "consumer": "code_node.log_level" } ... ] }

您可以直接在應用程序清單中修改參數,或在部署時使用覆蓋提供新值。如需詳細資訊,請參閱帶覆蓋的部署時配置