@@ -56,8 +56,8 @@ package istio.mixer.v1.config;
56
56
// adapter: prometheus
57
57
// params:
58
58
//
59
- // constructors :
60
- // - instanceName : RequestCountByService
59
+ // instances :
60
+ // - name : RequestCountByService
61
61
// template: istio.mixer.adapter.metric.Metric
62
62
// params:
63
63
// value: 1
@@ -79,8 +79,8 @@ message ServiceConfig {
79
79
repeated AspectRule rules = 3 [deprecated = true ];
80
80
81
81
// Under development, DO NOT USE
82
- // Optional. List of constructors that can be referenced from [actions][istio.mixer.v1.config.Action.instances]
83
- repeated Constructor constructors = 4 ;
82
+ // Optional. List of instances that can be referenced from [actions][istio.mixer.v1.config.Action.instances]
83
+ repeated Instance instances = 4 ;
84
84
85
85
// Under development, DO NOT USE
86
86
// Optional. List of actions that apply for this service
@@ -301,7 +301,7 @@ message EmailAddress {
301
301
// selector is `true`
302
302
//
303
303
// The following example instructs Mixer to invoke 'prometheus-handler' handler for all services and pass it the
304
- // instance constructed using the 'RequestCountByService' constructor .
304
+ // instance constructed using the 'RequestCountByService' instance .
305
305
//
306
306
// ```yaml
307
307
// actionRules:
@@ -336,7 +336,7 @@ message Rule {
336
336
// Action describes which [Handler][istio.mixer.v1.config.Handler] to invoke and what data to pass to it for processing.
337
337
//
338
338
// The following example instructs Mixer to invoke 'prometheus-handler' handler and pass it the object
339
- // constructed using the constructor 'RequestCountByService'
339
+ // constructed using the instance 'RequestCountByService'
340
340
//
341
341
// ```yaml
342
342
// - handler: prometheus-handler
@@ -347,41 +347,41 @@ message Action {
347
347
// Required. The handler to invoke. Must match the `name` of a [Handler][istio.mixer.v1.config.Handler.name] in scope.
348
348
string handler = 2 ;
349
349
350
- // Required. Each value must match the `instance_name ` of the
351
- // [Constructor ][istio.mixer.v1.config.Constructor.instance_name ]s in scope.
352
- // Referenced constructors are evaluated by resolving the attributes/literals for all the fields.
350
+ // Required. Each value must match the `name ` of the
351
+ // [Instance ][istio.mixer.v1.config.Instance.name ]s in scope.
352
+ // Referenced instances are evaluated by resolving the attributes/literals for all the fields.
353
353
// The constructed objects are then passed to the `handler` referenced within this action.
354
354
repeated string instances = 3 ;
355
355
}
356
356
357
- // A Constructor tells Mixer how to create instances for particular template.
357
+ // A Instance tells Mixer how to create instances for particular template.
358
358
//
359
- // Constructor is defined by the operator. Constructor is defined relative to a known
359
+ // Instance is defined by the operator. Instance is defined relative to a known
360
360
// template. Their purpose is to tell Mixer how to use attributes or literals to produce
361
361
// instances of the specified template at runtime.
362
362
//
363
363
// The following example instructs Mixer to construct an instance associated with template
364
364
// 'istio.mixer.adapter.metric.Metric'. It provides a mapping from the template's fields to expressions.
365
- // Instances produced with this constructor can be referenced by [Actions][istio.mixer.v1.config.Action] using name
365
+ // Instances produced with this instance can be referenced by [Actions][istio.mixer.v1.config.Action] using name
366
366
// 'RequestCountByService'.
367
367
//
368
368
// ```yaml
369
- // - instanceName : RequestCountByService
369
+ // - name : RequestCountByService
370
370
// template: istio.mixer.adapter.metric.Metric
371
371
// params:
372
372
// value: 1
373
373
// dimensions:
374
374
// source: origin.service
375
375
// target_ip: destination.ip
376
376
// ```
377
- message Constructor {
378
- // Required. The name of this constructor
377
+ message Instance {
378
+ // Required. The name of this instance
379
379
//
380
- // Must be unique amongst other Constructors in scope. Used by [Action][istio.mixer.v1.config.Action] to refer
381
- // to an instance produced by this constructor .
382
- string instance_name = 1 ;
380
+ // Must be unique amongst other Instances in scope. Used by [Action][istio.mixer.v1.config.Action] to refer
381
+ // to an instance produced by this instance .
382
+ string name = 1 ;
383
383
384
- // Required. The name of the template this constructor creates instances for.
384
+ // Required. The name of the template this instance creates instances for.
385
385
// The value must match the name of the available template in scope.
386
386
string template = 2 ;
387
387
@@ -393,8 +393,8 @@ message Constructor {
393
393
// Handler allows the operator to configure a specific adapter implementation.
394
394
// Each adapter implementation defines its own `params` proto.
395
395
//
396
- // In the following example we define a `metrics` adapter using the Mixer's prepackaged
397
- // prometheus adapter. This adapter doesn't require any parameters.
396
+ // In the following example we define a `metrics` handler using the Mixer's prepackaged
397
+ // prometheus adapter. This handler doesn't require any parameters.
398
398
//
399
399
// ```yaml
400
400
// name: prometheus-handler
0 commit comments