Class: AWSCDK::IoTFleetWise::CfnCampaign::TimeBasedCollectionSchemeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTFleetWise::CfnCampaign::TimeBasedCollectionSchemeProperty
- Defined in:
- io_t_fleet_wise/cfn_campaign.rb
Overview
Information about a collection scheme that uses a time period to decide how often to collect data.
Instance Attribute Summary collapse
-
#period_ms ⇒ Numeric
readonly
The time period (in milliseconds) to decide how often to collect data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(period_ms:) ⇒ TimeBasedCollectionSchemeProperty
constructor
A new instance of TimeBasedCollectionSchemeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(period_ms:) ⇒ TimeBasedCollectionSchemeProperty
Returns a new instance of TimeBasedCollectionSchemeProperty.
1585 1586 1587 1588 |
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1585 def initialize(period_ms:) @period_ms = period_ms Jsii::Type.check_type(@period_ms, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "periodMs") end |
Instance Attribute Details
#period_ms ⇒ Numeric (readonly)
The time period (in milliseconds) to decide how often to collect data.
For example, if the time period is 60000 , the Edge Agent software collects data once every minute.
1596 1597 1598 |
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1596 def period_ms @period_ms end |
Class Method Details
.jsii_properties ⇒ Object
1598 1599 1600 1601 1602 |
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1598 def self.jsii_properties { :period_ms => "periodMs", } end |
Instance Method Details
#to_jsii ⇒ Object
1604 1605 1606 1607 1608 1609 1610 |
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1604 def to_jsii result = {} result.merge!({ "periodMs" => @period_ms, }) result.compact end |