-
Notifications
You must be signed in to change notification settings - Fork 17
/
INetworkTargetGroupMetrics.go
77 lines (63 loc) · 1.94 KB
/
INetworkTargetGroupMetrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package awselasticloadbalancingv2
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch"
)
// Contains all metrics for a Target Group of a Network Load Balancer.
type INetworkTargetGroupMetrics interface {
// Return the given named metric for this Network Target Group.
// Default: Average over 5 minutes.
//
Custom(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// The number of targets that are considered healthy.
// Default: Average over 5 minutes.
//
HealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// The number of targets that are considered unhealthy.
// Default: Average over 5 minutes.
//
UnHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
}
// The jsii proxy for INetworkTargetGroupMetrics
type jsiiProxy_INetworkTargetGroupMetrics struct {
_ byte // padding
}
func (i *jsiiProxy_INetworkTargetGroupMetrics) Custom(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := i.validateCustomParameters(metricName, props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
i,
"custom",
[]interface{}{metricName, props},
&returns,
)
return returns
}
func (i *jsiiProxy_INetworkTargetGroupMetrics) HealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := i.validateHealthyHostCountParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
i,
"healthyHostCount",
[]interface{}{props},
&returns,
)
return returns
}
func (i *jsiiProxy_INetworkTargetGroupMetrics) UnHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := i.validateUnHealthyHostCountParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
i,
"unHealthyHostCount",
[]interface{}{props},
&returns,
)
return returns
}