Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37791,18 +37791,13 @@ components:
example: 10.0
format: double
type: number
rate:
description: Number of events to sample (1 in N).
example: 10
format: int64
minimum: 1
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType'
required:
- id
- type
- include
- percentage
- enabled
type: object
ObservabilityPipelineSampleProcessorType:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
ObservabilityPipelineSampleProcessor.JSON_PROPERTY_ID,
ObservabilityPipelineSampleProcessor.JSON_PROPERTY_INCLUDE,
ObservabilityPipelineSampleProcessor.JSON_PROPERTY_PERCENTAGE,
ObservabilityPipelineSampleProcessor.JSON_PROPERTY_RATE,
ObservabilityPipelineSampleProcessor.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
Expand All @@ -46,9 +45,6 @@ public class ObservabilityPipelineSampleProcessor {
public static final String JSON_PROPERTY_PERCENTAGE = "percentage";
private Double percentage;

public static final String JSON_PROPERTY_RATE = "rate";
private Long rate;

public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineSampleProcessorType type =
ObservabilityPipelineSampleProcessorType.SAMPLE;
Expand All @@ -60,11 +56,13 @@ public ObservabilityPipelineSampleProcessor(
@JsonProperty(required = true, value = JSON_PROPERTY_ENABLED) Boolean enabled,
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
@JsonProperty(required = true, value = JSON_PROPERTY_INCLUDE) String include,
@JsonProperty(required = true, value = JSON_PROPERTY_PERCENTAGE) Double percentage,
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
ObservabilityPipelineSampleProcessorType type) {
this.enabled = enabled;
this.id = id;
this.include = include;
this.percentage = percentage;
this.type = type;
this.unparsed |= !type.isValid();
}
Expand Down Expand Up @@ -161,9 +159,8 @@ public ObservabilityPipelineSampleProcessor percentage(Double percentage) {
*
* @return percentage
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PERCENTAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getPercentage() {
return percentage;
}
Expand All @@ -172,27 +169,6 @@ public void setPercentage(Double percentage) {
this.percentage = percentage;
}

public ObservabilityPipelineSampleProcessor rate(Long rate) {
this.rate = rate;
return this;
}

/**
* Number of events to sample (1 in N). minimum: 1
*
* @return rate
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getRate() {
return rate;
}

public void setRate(Long rate) {
this.rate = rate;
}

public ObservabilityPipelineSampleProcessor type(ObservabilityPipelineSampleProcessorType type) {
this.type = type;
this.unparsed |= !type.isValid();
Expand Down Expand Up @@ -279,16 +255,14 @@ public boolean equals(Object o) {
&& Objects.equals(this.id, observabilityPipelineSampleProcessor.id)
&& Objects.equals(this.include, observabilityPipelineSampleProcessor.include)
&& Objects.equals(this.percentage, observabilityPipelineSampleProcessor.percentage)
&& Objects.equals(this.rate, observabilityPipelineSampleProcessor.rate)
&& Objects.equals(this.type, observabilityPipelineSampleProcessor.type)
&& Objects.equals(
this.additionalProperties, observabilityPipelineSampleProcessor.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(
displayName, enabled, id, include, percentage, rate, type, additionalProperties);
return Objects.hash(displayName, enabled, id, include, percentage, type, additionalProperties);
}

@Override
Expand All @@ -300,7 +274,6 @@ public String toString() {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" include: ").append(toIndentedString(include)).append("\n");
sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n");
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Loading