Class: AWSCDK::IoTFleetWise::CfnCampaign::TimeBasedCollectionSchemeProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(period_ms:) ⇒ TimeBasedCollectionSchemeProperty

Returns a new instance of TimeBasedCollectionSchemeProperty.

Parameters:

  • period_ms (Numeric)

    The time period (in milliseconds) to decide how often to collect data.



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_msNumeric (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_propertiesObject



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_jsiiObject



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