示例#1
0
 /// <summary>
 /// Initializes a new instance of the V2beta2ObjectMetricStatus class.
 /// </summary>
 /// <param name="current">current contains the current value for the
 /// given metric</param>
 /// <param name="metric">metric identifies the target metric by name
 /// and selector</param>
 public V2beta2ObjectMetricStatus(V2beta2MetricValueStatus current, V2beta2CrossVersionObjectReference describedObject, V2beta2MetricIdentifier metric)
 {
     Current         = current;
     DescribedObject = describedObject;
     Metric          = metric;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V2beta2ObjectMetricSource class.
 /// </summary>
 /// <param name="metric">metric identifies the target metric by name
 /// and selector</param>
 /// <param name="target">target specifies the target value for the
 /// given metric</param>
 public V2beta2ObjectMetricSource(V2beta2CrossVersionObjectReference describedObject, V2beta2MetricIdentifier metric, V2beta2MetricTarget target)
 {
     DescribedObject = describedObject;
     Metric          = metric;
     Target          = target;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V2beta2PodsMetricSource class.
 /// </summary>
 /// <param name="metric">metric identifies the target metric by name
 /// and selector</param>
 /// <param name="target">target specifies the target value for the
 /// given metric</param>
 public V2beta2PodsMetricSource(V2beta2MetricIdentifier metric, V2beta2MetricTarget target)
 {
     Metric = metric;
     Target = target;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V2beta2ExternalMetricStatus
 /// class.
 /// </summary>
 /// <param name="current">current contains the current value for the
 /// given metric</param>
 /// <param name="metric">metric identifies the target metric by name
 /// and selector</param>
 public V2beta2ExternalMetricStatus(V2beta2MetricValueStatus current, V2beta2MetricIdentifier metric)
 {
     Current = current;
     Metric  = metric;
     CustomInit();
 }