Package-level declarations

Types

Link copied to clipboard
data class AggregationArgs(val alignmentPeriod: Output<String>? = null, val crossSeriesReducer: Output<AggregationCrossSeriesReducer>? = null, val groupByFields: Output<List<String>>? = null, val perSeriesAligner: Output<AggregationPerSeriesAligner>? = null) : ConvertibleToJava<AggregationArgs>

Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example "the 95% latency across the average of all tasks in a cluster". This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation).

Link copied to clipboard
Link copied to clipboard
data class AlertStrategyArgs(val autoClose: Output<String>? = null, val notificationChannelStrategy: Output<List<NotificationChannelStrategyArgs>>? = null, val notificationRateLimit: Output<NotificationRateLimitArgs>? = null) : ConvertibleToJava<AlertStrategyArgs>

Control over how the notification channels in notification_channels are notified when this alert fires.

Link copied to clipboard
Link copied to clipboard
data class AppEngineArgs(val moduleId: Output<String>? = null) : ConvertibleToJava<AppEngineArgs>

App Engine service. Learn more at https://cloud.google.com/appengine.

Link copied to clipboard
Link copied to clipboard
class AvailabilityCriteriaArgs : ConvertibleToJava<AvailabilityCriteriaArgs>

Future parameters for the availability SLI.

Link copied to clipboard
data class BasicAuthenticationArgs(val password: Output<String>? = null, val username: Output<String>? = null) : ConvertibleToJava<BasicAuthenticationArgs>

The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only Basic HTTP authentication (https://tools.ietf.org/html/rfc7617) is supported in Uptime checks.

Link copied to clipboard
data class BasicServiceArgs(val serviceLabels: Output<Map<String, String>>? = null, val serviceType: Output<String>? = null) : ConvertibleToJava<BasicServiceArgs>

A well-known service type, defined by its service type and service labels. Documentation and examples here (https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).

Link copied to clipboard
Link copied to clipboard
data class BasicSliArgs(val availability: Output<AvailabilityCriteriaArgs>? = null, val latency: Output<LatencyCriteriaArgs>? = null, val location: Output<List<String>>? = null, val method: Output<List<String>>? = null, val version: Output<List<String>>? = null) : ConvertibleToJava<BasicSliArgs>

An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service.

Link copied to clipboard
Link copied to clipboard
data class CloudEndpointsArgs(val service: Output<String>? = null) : ConvertibleToJava<CloudEndpointsArgs>

Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints.

Link copied to clipboard
Link copied to clipboard
data class CloudRunArgs(val location: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<CloudRunArgs>

Cloud Run service. Learn more at https://cloud.google.com/run.

Link copied to clipboard
Link copied to clipboard
data class ClusterIstioArgs(val clusterName: Output<String>? = null, val location: Output<String>? = null, val serviceName: Output<String>? = null, val serviceNamespace: Output<String>? = null) : ConvertibleToJava<ClusterIstioArgs>

Istio service scoped to a single Kubernetes cluster. Learn more at https://istio.io. Clusters running OSS Istio will have their services ingested as this type.

Link copied to clipboard
Link copied to clipboard
data class ConditionArgs(val conditionAbsent: Output<MetricAbsenceArgs>? = null, val conditionMatchedLog: Output<LogMatchArgs>? = null, val conditionMonitoringQueryLanguage: Output<MonitoringQueryLanguageConditionArgs>? = null, val conditionThreshold: Output<MetricThresholdArgs>? = null, val displayName: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<ConditionArgs>

A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong.

Link copied to clipboard
Link copied to clipboard
data class ContentMatcherArgs(val content: Output<String>? = null, val jsonPathMatcher: Output<JsonPathMatcherArgs>? = null, val matcher: Output<ContentMatcherMatcher>? = null) : ConvertibleToJava<ContentMatcherArgs>

Optional. Used to perform content matching. This allows matching based on substrings and regular expressions, together with their negations. Only the first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB of a TCP check's response) are examined for purposes of content matching.

Link copied to clipboard
Link copied to clipboard
data class CriteriaArgs(val policies: Output<List<String>>? = null) : ConvertibleToJava<CriteriaArgs>

Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied.

Link copied to clipboard
Link copied to clipboard
class CustomArgs : ConvertibleToJava<CustomArgs>

Use a custom service to designate a service that you want to monitor when none of the other service types (like App Engine, Cloud Run, or a GKE type) matches your intended service.

Link copied to clipboard

Builder for CustomArgs.

Link copied to clipboard
data class DistributionCutArgs(val distributionFilter: Output<String>? = null, val range: Output<GoogleMonitoringV3RangeArgs>? = null) : ConvertibleToJava<DistributionCutArgs>

A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max.

Link copied to clipboard
data class DocumentationArgs(val content: Output<String>? = null, val mimeType: Output<String>? = null) : ConvertibleToJava<DocumentationArgs>

A content string and a MIME type that describes the content string's format.

Link copied to clipboard
Link copied to clipboard
data class ForecastOptionsArgs(val forecastHorizon: Output<String>) : ConvertibleToJava<ForecastOptionsArgs>

Options used when forecasting the time series and testing the predicted value against the threshold.

Link copied to clipboard
data class GetAlertPolicyPlainArgs(val alertPolicyId: String, val project: String? = null) : ConvertibleToJava<GetAlertPolicyPlainArgs>
Link copied to clipboard
data class GetGroupPlainArgs(val groupId: String, val project: String? = null) : ConvertibleToJava<GetGroupPlainArgs>
Link copied to clipboard
Link copied to clipboard
data class GetMetricDescriptorPlainArgs(val metricDescriptorId: String, val project: String? = null) : ConvertibleToJava<GetMetricDescriptorPlainArgs>
Link copied to clipboard
data class GetNotificationChannelPlainArgs(val notificationChannelId: String, val project: String? = null) : ConvertibleToJava<GetNotificationChannelPlainArgs>
Link copied to clipboard
data class GetServiceLevelObjectivePlainArgs(val serviceId: String, val serviceLevelObjectiveId: String, val v3Id: String, val v3Id1: String, val view: String? = null) : ConvertibleToJava<GetServiceLevelObjectivePlainArgs>
Link copied to clipboard
data class GetServicePlainArgs(val serviceId: String, val v3Id: String, val v3Id1: String) : ConvertibleToJava<GetServicePlainArgs>
Link copied to clipboard
data class GetSnoozePlainArgs(val project: String? = null, val snoozeId: String) : ConvertibleToJava<GetSnoozePlainArgs>
Link copied to clipboard
Link copied to clipboard
data class GetUptimeCheckConfigPlainArgs(val project: String? = null, val uptimeCheckConfigId: String) : ConvertibleToJava<GetUptimeCheckConfigPlainArgs>
Link copied to clipboard
data class GkeNamespaceArgs(val clusterName: Output<String>? = null, val location: Output<String>? = null, val namespaceName: Output<String>? = null) : ConvertibleToJava<GkeNamespaceArgs>

GKE Namespace. The field names correspond to the resource metadata labels on monitored resources that fall under a namespace (for example, k8s_container or k8s_pod).

Link copied to clipboard
Link copied to clipboard
data class GkeServiceArgs(val clusterName: Output<String>? = null, val location: Output<String>? = null, val namespaceName: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<GkeServiceArgs>

GKE Service. The "service" here represents a Kubernetes service object (https://kubernetes.io/docs/concepts/services-networking/service). The field names correspond to the resource labels on k8s_service monitored resources (https://cloud.google.com/monitoring/api/resources#tag_k8s_service).

Link copied to clipboard
Link copied to clipboard
data class GkeWorkloadArgs(val clusterName: Output<String>? = null, val location: Output<String>? = null, val namespaceName: Output<String>? = null, val topLevelControllerName: Output<String>? = null, val topLevelControllerType: Output<String>? = null) : ConvertibleToJava<GkeWorkloadArgs>

A GKE Workload (Deployment, StatefulSet, etc). The field names correspond to the metadata labels on monitored resources that fall under a workload (for example, k8s_container or k8s_pod).

Link copied to clipboard
Link copied to clipboard
data class GoogleMonitoringV3RangeArgs(val max: Output<Double>? = null, val min: Output<Double>? = null) : ConvertibleToJava<GoogleMonitoringV3RangeArgs>

Range of numerical values within min and max.

Link copied to clipboard
data class HttpCheckArgs(val acceptedResponseStatusCodes: Output<List<ResponseStatusCodeArgs>>? = null, val authInfo: Output<BasicAuthenticationArgs>? = null, val body: Output<String>? = null, val contentType: Output<HttpCheckContentType>? = null, val customContentType: Output<String>? = null, val headers: Output<Map<String, String>>? = null, val maskHeaders: Output<Boolean>? = null, val path: Output<String>? = null, val pingConfig: Output<PingConfigArgs>? = null, val port: Output<Int>? = null, val requestMethod: Output<HttpCheckRequestMethod>? = null, val useSsl: Output<Boolean>? = null, val validateSsl: Output<Boolean>? = null) : ConvertibleToJava<HttpCheckArgs>

Information involved in an HTTP/HTTPS Uptime check request.

Link copied to clipboard
Link copied to clipboard
data class InternalCheckerArgs(val displayName: Output<String>? = null, val gcpZone: Output<String>? = null, val name: Output<String>? = null, val network: Output<String>? = null, val peerProjectId: Output<String>? = null, val state: Output<InternalCheckerState>? = null) : ConvertibleToJava<InternalCheckerArgs>

An internal checker allows Uptime checks to run on private/internal GCP resources.

Link copied to clipboard
data class IstioCanonicalServiceArgs(val canonicalService: Output<String>? = null, val canonicalServiceNamespace: Output<String>? = null, val meshUid: Output<String>? = null) : ConvertibleToJava<IstioCanonicalServiceArgs>

Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.8 will have their services ingested as this type.

Link copied to clipboard
data class JsonPathMatcherArgs(val jsonMatcher: Output<JsonPathMatcherJsonMatcher>? = null, val jsonPath: Output<String>? = null) : ConvertibleToJava<JsonPathMatcherArgs>

Information needed to perform a JSONPath content match. Used for ContentMatcherOption::MATCHES_JSON_PATH and ContentMatcherOption::NOT_MATCHES_JSON_PATH.

Link copied to clipboard
data class LabelDescriptorArgs(val description: Output<String>? = null, val key: Output<String>? = null, val valueType: Output<LabelDescriptorValueType>? = null) : ConvertibleToJava<LabelDescriptorArgs>

A description of a label.

Link copied to clipboard
data class LatencyCriteriaArgs(val threshold: Output<String>? = null) : ConvertibleToJava<LatencyCriteriaArgs>

Parameters for a latency threshold SLI.

Link copied to clipboard
data class LogMatchArgs(val filter: Output<String>, val labelExtractors: Output<Map<String, String>>? = null) : ConvertibleToJava<LogMatchArgs>

A condition type that checks whether a log message in the scoping project (https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.

Link copied to clipboard
Link copied to clipboard
data class MeshIstioArgs(val meshUid: Output<String>? = null, val serviceName: Output<String>? = null, val serviceNamespace: Output<String>? = null) : ConvertibleToJava<MeshIstioArgs>

Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8 will have their services ingested as this type.

Link copied to clipboard
Link copied to clipboard
data class MetricAbsenceArgs(val aggregations: Output<List<AggregationArgs>>? = null, val duration: Output<String>? = null, val filter: Output<String>, val trigger: Output<TriggerArgs>? = null) : ConvertibleToJava<MetricAbsenceArgs>

A condition type that checks that monitored resources are reporting data. The configuration defines a metric and a set of monitored resources. The predicate is considered in violation when a time series for the specified metric of a monitored resource does not include any data in the specified duration.

Link copied to clipboard
Link copied to clipboard
data class MetricDescriptorMetadataArgs(val ingestDelay: Output<String>? = null, val launchStage: Output<MetricDescriptorMetadataLaunchStage>? = null, val samplePeriod: Output<String>? = null) : ConvertibleToJava<MetricDescriptorMetadataArgs>

Additional annotations that can be used to guide the usage of a metric.

Link copied to clipboard
data class MetricRangeArgs(val range: Output<GoogleMonitoringV3RangeArgs>? = null, val timeSeries: Output<String>? = null) : ConvertibleToJava<MetricRangeArgs>

A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.

Link copied to clipboard
Link copied to clipboard
data class MetricThresholdArgs(val aggregations: Output<List<AggregationArgs>>? = null, val comparison: Output<MetricThresholdComparison>? = null, val denominatorAggregations: Output<List<AggregationArgs>>? = null, val denominatorFilter: Output<String>? = null, val duration: Output<String>? = null, val evaluationMissingData: Output<MetricThresholdEvaluationMissingData>? = null, val filter: Output<String>, val forecastOptions: Output<ForecastOptionsArgs>? = null, val thresholdValue: Output<Double>? = null, val trigger: Output<TriggerArgs>? = null) : ConvertibleToJava<MetricThresholdArgs>

A condition type that compares a collection of time series against a threshold.

Link copied to clipboard
data class MonitoredResourceArgs(val labels: Output<Map<String, String>>, val type: Output<String>) : ConvertibleToJava<MonitoredResourceArgs>

An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "instance_id" and "zone": { "type": "gce_instance", "labels": { "project_id": "my-project", "instance_id": "12345678901234", "zone": "us-central1-a" }}

Link copied to clipboard
data class MonitoringQueryLanguageConditionArgs(val duration: Output<String>? = null, val evaluationMissingData: Output<MonitoringQueryLanguageConditionEvaluationMissingData>? = null, val query: Output<String>? = null, val trigger: Output<TriggerArgs>? = null) : ConvertibleToJava<MonitoringQueryLanguageConditionArgs>

A condition type that allows alert policies to be defined using Monitoring Query Language (https://cloud.google.com/monitoring/mql).

Link copied to clipboard
data class MutationRecordArgs(val mutateTime: Output<String>? = null, val mutatedBy: Output<String>? = null) : ConvertibleToJava<MutationRecordArgs>

Describes a change made to a configuration.

Link copied to clipboard
Link copied to clipboard
data class NotificationChannelStrategyArgs(val notificationChannelNames: Output<List<String>>? = null, val renotifyInterval: Output<String>? = null) : ConvertibleToJava<NotificationChannelStrategyArgs>

Control over how the notification channels in notification_channels are notified when this alert fires, on a per-channel basis.

Link copied to clipboard
data class NotificationRateLimitArgs(val period: Output<String>? = null) : ConvertibleToJava<NotificationRateLimitArgs>

Control over the rate of notifications sent to this alert policy's notification channels.

Link copied to clipboard
data class PerformanceThresholdArgs(val basicSliPerformance: Output<BasicSliArgs>? = null, val performance: Output<RequestBasedSliArgs>? = null, val threshold: Output<Double>? = null) : ConvertibleToJava<PerformanceThresholdArgs>

A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance.

Link copied to clipboard
data class PingConfigArgs(val pingsCount: Output<Int>? = null) : ConvertibleToJava<PingConfigArgs>

Information involved in sending ICMP pings alongside public HTTP/TCP checks. For HTTP, the pings are performed for each part of the redirect chain.

Link copied to clipboard
Link copied to clipboard
data class RequestBasedSliArgs(val distributionCut: Output<DistributionCutArgs>? = null, val goodTotalRatio: Output<TimeSeriesRatioArgs>? = null) : ConvertibleToJava<RequestBasedSliArgs>

Service Level Indicators for which atomic units of service are counted directly.

Link copied to clipboard
data class ResourceGroupArgs(val groupId: Output<String>? = null, val resourceType: Output<ResourceGroupResourceType>? = null) : ConvertibleToJava<ResourceGroupArgs>

The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored.

Link copied to clipboard
Link copied to clipboard
data class ResponseStatusCodeArgs(val statusClass: Output<ResponseStatusCodeStatusClass>? = null, val statusValue: Output<Int>? = null) : ConvertibleToJava<ResponseStatusCodeArgs>

A status to accept. Either a status code class like "2xx", or an integer status code like "200".

Link copied to clipboard
data class ServiceLevelIndicatorArgs(val basicSli: Output<BasicSliArgs>? = null, val requestBased: Output<RequestBasedSliArgs>? = null, val windowsBased: Output<WindowsBasedSliArgs>? = null) : ConvertibleToJava<ServiceLevelIndicatorArgs>

A Service-Level Indicator (SLI) describes the "performance" of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a "custom" SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 <= performance <= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries.

Link copied to clipboard
data class StatusArgs(val code: Output<Int>? = null, val details: Output<List<Map<String, String>>>? = null, val message: Output<String>? = null) : ConvertibleToJava<StatusArgs>

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

Link copied to clipboard

Builder for StatusArgs.

Link copied to clipboard
data class TcpCheckArgs(val pingConfig: Output<PingConfigArgs>? = null, val port: Output<Int>? = null) : ConvertibleToJava<TcpCheckArgs>

Information required for a TCP Uptime check request.

Link copied to clipboard
Link copied to clipboard
data class TelemetryArgs(val resourceName: Output<String>? = null) : ConvertibleToJava<TelemetryArgs>

Configuration for how to query telemetry on a Service.

Link copied to clipboard
Link copied to clipboard
data class TimeIntervalArgs(val endTime: Output<String>, val startTime: Output<String>? = null) : ConvertibleToJava<TimeIntervalArgs>

Describes a time interval: Reads: A half-open time interval. It includes the end time but excludes the start time: (startTime, endTime]. The start time must be specified, must be earlier than the end time, and should be no older than the data retention period for the metric. Writes: A closed time interval. It extends from the start time to the end time, and includes both: startTime, endTime. Valid time intervals depend on the MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time, and the end time must not be more than 25 hours in the past or more than five minutes in the future. For GAUGE metrics, the startTime value is technically optional; if no value is specified, the start time defaults to the value of the end time, and the interval represents a single point in time. If both start and end times are specified, they must be identical. Such an interval is valid only for GAUGE metrics, which are point-in-time measurements. The end time of a new interval must be at least a millisecond after the end time of the previous interval. For DELTA metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For DELTA metrics, the start time of the next interval must be at least a millisecond after the end time of the previous interval. For CUMULATIVE metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points. The new start time must be at least a millisecond after the end time of the previous interval. The start time of a new interval must be at least a millisecond after the end time of the previous interval because intervals are closed. If the start time of a new interval is the same as the end time of the previous interval, then data written at the new start time could overwrite data written at the previous end time.

Link copied to clipboard
Link copied to clipboard
data class TimeSeriesRatioArgs(val badServiceFilter: Output<String>? = null, val goodServiceFilter: Output<String>? = null, val totalServiceFilter: Output<String>? = null) : ConvertibleToJava<TimeSeriesRatioArgs>

A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed.

Link copied to clipboard
data class TriggerArgs(val count: Output<Int>? = null, val percent: Output<Double>? = null) : ConvertibleToJava<TriggerArgs>

Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a {count: 1} trigger is used.

Link copied to clipboard
Link copied to clipboard
data class WindowsBasedSliArgs(val goodBadMetricFilter: Output<String>? = null, val goodTotalRatioThreshold: Output<PerformanceThresholdArgs>? = null, val metricMeanInRange: Output<MetricRangeArgs>? = null, val metricSumInRange: Output<MetricRangeArgs>? = null, val windowPeriod: Output<String>? = null) : ConvertibleToJava<WindowsBasedSliArgs>

A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion.