stackstorm----action元資料介紹
本文學習自stackstorm官方文件,如有不正確之處,還請大神指教.
action的元資料用於描述action,並且作為yaml檔案被定義.
而yaml檔案是一種標記語言,其較直觀的表現的形式,在展示上更易查錯和關係描述
屬性特徵
name ---- action的名稱, 例如 name: 「send_sms」
runner_type ---- 執行action的runner型別, 例如 runner_type : 「python-script」
description ---- 該action的yaml檔案描述, 例如 介紹其用途
enabled ---- 禁用時無法呼叫action, 例如: enabled: true 或者 enabled: false [指禁用時]
entry_point ---- action執行入口,在路徑 /opt/stackstorm/packs/$/actions/ 下的action 指令碼啟動檔案
parameters ---- 引數,字典型別的引數,可選擇的去描述元資料型別,預設的引數.元資料的引數型別: string,boolean,number,object,integer,array
tags ---- 為此actions 標記乙個陣列用來達到提供補充資訊的目的
例子的引數釋義
例如:parameters:
from_number:
type: 「string」
description: 「your twilio 『from』 number in e.164 format. example +14151234567.」
required: false ---- 此引數不是必需的
position: 0
to_number:
type: 「string」
description: 「recipient number in e.164 format. example +14151234567.」
required: true ---- 此引數是必需的
position: 1
secret: true ---- 引數to_number 的屬性secret值為true.如果乙個屬性作為乙個secret被標記,這個值的屬性將在stackstorm服務日誌被遮蔽.
body:
type: 「string」 ---- 此引數的型別
description: 「body of the message.」 ---- 此引數的描述
required: true
position: 2
default: 「hello } dude !」
此action攜帶的引數有三個 (from_number, to_number, body)
JdbcTemplate和元資料介紹
一 jdbctemplate 二 元資料 元資料 metadata 即定義資料的資料。簡單來說就是資料庫 表 列的定義資訊 parametermetadata 可以用於獲取有管preparedstatement物件和器預編譯sql語句,例 引數個數,獲取指定位置佔位符的sql型別 獲取paramet...
大資料介紹
大資料技術的戰略意義不在於掌握龐大的資料量,而在於對這些資料進行專業化處理。資料一直都在以每年50 的速度增長,也就是說每兩年就增長一倍。大資料是由結構化和非結構化資料組成的 10 的結構化資料,儲存在資料庫中 90 的非結構化資料,它們與人類資訊密切相關 資料結構 參閱c語言資料結構 資料結構是計...
大資料介紹
一 什麼是大資料 大資料是指無法在一定時間內用常規軟體工具對其內容進行抓取 管理和處理的資料集合。大資料技術,是指從各種各樣型別的資料中,快速獲得有價值資訊的能力。適用於大資料的技術,包括大規模並行處理 mpp 資料庫,資料探勘電網,分布式檔案系統,分布式資料庫,雲計算平台,網際網路,和可擴充套件的...