Repository navigation
Replies: 1 comment 1 reply
|
metricHealthHostCount() is actually a construct method of NetworkTargetGroup L2 construct class and only available when you create a new |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I see there is method
NetworkTargetGroup.metricHealthyHostCount()to generateHealthyHostCountmetric but when I useelbv2.NetworkTargetGroup.fromTargetGroupAttributes()to obtain existing instance then it gives object of typeINetworkTargetGroupwhich does not implementmetricHealthyHostCount. I can use sth like this:but previous method looks better/is shorter/don't need to specify some params.
And sth like this (casting) does not work:
All reactions