function Schedule::setExclusionPatterns
Metrics with names that match a rule in the inclusion_patterns are targeted by this schedule. Metrics that match the exclusion_patterns are not targeted for this schedule, even if they match an inclusion pattern.
Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;</code>
Parameters
\Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ Experimental/ MetricConfigResponse/ Schedule.php, line 87
Class
- Schedule
- A Schedule is used to apply a particular scheduling configuration to a metric. If a metric name matches a schedule's patterns, then the metric adopts the configuration specified by the schedule.
Namespace
Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponseCode
public function setExclusionPatterns($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern::class);
$this->exclusion_patterns = $arr;
return $this;
}