function Schedule::setPeriodSec
Describes the collection period for each metric in seconds. A period of 0 means to not export.
Generated from protobuf field <code>int32 period_sec = 3;</code>
Parameters
int $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ Experimental/ MetricConfigResponse/ Schedule.php, line 137
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 setPeriodSec($var) {
GPBUtil::checkInt32($var);
$this->period_sec = $var;
return $this;
}