-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IoT Sitewise L2 Construct #423
Comments
What is the status of this RFC? I would like to resume work on this. Should I create a new RFC ticket, or can someone re-open this issue? |
Thanks for reopening @rix0rrr . I have posted a message on slack searching for a bar raiser (assuming one is needed). Here are some of my API ideas for Asset Models: Create an Asset Modelconst generatorModel = new sw.AssetModel(this, 'GeneratorModel', {
name: 'Generator model 262966 Doppler',
}); Add properties to an asset modelconst serialNum = new sw.Attribute({
name: 'serial',
defaultValue: 'noserial',
dataType: sw.DataType.STRING,
});
generatorModel.addAttribute(serialNum);
const watts_1m = new sw.Measurement({
name: 'watts_1m',
unit: 'Watts/min',
dataType: sw.DataType.DOUBLE,
});
generatorModel.addMeasurement(watts_1m);
const watts_5m = new sw.Metric({
name: 'sum_watts_5m',
expression: 'sum(watts_1m)',
dataType: sw.DataType.DOUBLE,
tumblingWindow: { interval: '5m' },
variables: [{ name: 'watts_1m', property: watts_1m }],
});
generatorModel.addMetric(watts_5m); Create an asset hierarchyThe The const nuclearPlant = new AssetModel(this, 'NuclearPlant', { name: 'Nuclear Power Plant' });
const steamPlant = new AssetModel(this, 'SteamPlant', { name: 'Steam Plant' });
const boiler = new AssetModel(this, 'Boiler', { name: 'Boiler model A' });
const reactor = new AssetModel(this, 'Reactor', { name: 'Uranium reactor' });
const controlRods = new AssetModel(this, 'Control', { name: 'Control Rods' });
const generationPlant = new AssetModel(this, 'GenerationPlant', { name: 'Generation' });
const turbine = new AssetModel(this, 'Turbine', { name: 'Steam Turbine model B' });
const generator = new AssetModel(this, 'Generator', { name: 'Generator model C' });
const cooler = new AssetModel(this, 'Cooler', { name: 'Generator cooler' });
const coolantPump = new AssetModel(this, 'Pump', { name: 'Coolant Pump' });
const transformer = new AssetModel(this, 'Transformer');
reactor.addChild(controlRods);
generator
.addChild(cooler)
.addChild(coolantPump);
nuclearPlant
.addChildren(
steamPlant
.addChildren(boiler, reactor)
)
.addChildren(
generationPlant
.addChildren(turbine, generator, transformer)
) |
Ultimately, one of my visions would be to create a curated repository of asset models for industrial equipment, ideally maintained by manufacturers themselves. Much like we have the constructs library with reusable patterns we could have a one-stop-shop for asset models. |
Closing this ticket. We believe the functionality is beneficial, but does not intersect with the core framework and should be vended and maintained separately. |
Description
I would like to implement IoT Sitewise L2 Construct. It has already got some votes (see, aws/aws-cdk#11451). Also, the resource relationships in Sitewise are complex, so there is worth expressing in CDK I think.
Roles
Workflow
status/proposed
)status/review
)api-approved
applied to pull request)status/final-comments-period
)status/approved
)status/planning
)status/implementing
)status/done
)The text was updated successfully, but these errors were encountered: