Skip to content

Commit

Permalink
feat(monitoring): update the API
Browse files Browse the repository at this point in the history
#### monitoring:v1
The following keys were added:
- schemas.StatisticalTimeSeriesFilter.description
- schemas.StatisticalTimeSeriesFilter.id
- schemas.StatisticalTimeSeriesFilter.properties.numTimeSeries.description
- schemas.StatisticalTimeSeriesFilter.properties.numTimeSeries.format
- schemas.StatisticalTimeSeriesFilter.properties.numTimeSeries.type
- schemas.StatisticalTimeSeriesFilter.properties.rankingMethod.description
- schemas.StatisticalTimeSeriesFilter.properties.rankingMethod.enum
- schemas.StatisticalTimeSeriesFilter.properties.rankingMethod.enumDescriptions
- schemas.StatisticalTimeSeriesFilter.properties.rankingMethod.type
- schemas.StatisticalTimeSeriesFilter.type
- schemas.TimeSeriesFilter.properties.statisticalTimeSeriesFilter.$ref
- schemas.TimeSeriesFilter.properties.statisticalTimeSeriesFilter.description
- schemas.TimeSeriesFilterRatio.properties.statisticalTimeSeriesFilter.$ref
- schemas.TimeSeriesFilterRatio.properties.statisticalTimeSeriesFilter.description

#### monitoring:v3
The following keys were added:
- schemas.ListTimeSeriesResponse.properties.unit.description
- schemas.ListTimeSeriesResponse.properties.unit.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 16, 2020
1 parent 83bd08d commit ef6f4b2
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 3 deletions.
34 changes: 33 additions & 1 deletion discovery/monitoring-v1.json
Expand Up @@ -275,7 +275,7 @@
}
}
},
"revision": "20200502",
"revision": "20200612",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
"Aggregation": {
Expand Down Expand Up @@ -896,6 +896,30 @@
},
"type": "object"
},
"StatisticalTimeSeriesFilter": {
"description": "A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API.",
"id": "StatisticalTimeSeriesFilter",
"properties": {
"numTimeSeries": {
"description": "How many time series to output.",
"format": "int32",
"type": "integer"
},
"rankingMethod": {
"description": "rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.",
"enum": [
"METHOD_UNSPECIFIED",
"METHOD_CLUSTER_OUTLIER"
],
"enumDescriptions": [
"Not allowed in well-formed requests.",
"Compute the outlier score of each stream."
],
"type": "string"
}
},
"type": "object"
},
"Text": {
"description": "A widget that displays textual content.",
"id": "Text",
Expand Down Expand Up @@ -984,6 +1008,10 @@
"secondaryAggregation": {
"$ref": "Aggregation",
"description": "Apply a second aggregation after aggregation is applied."
},
"statisticalTimeSeriesFilter": {
"$ref": "StatisticalTimeSeriesFilter",
"description": "Statistics based time series filter. Note: This field is deprecated and completely ignored by the API."
}
},
"type": "object"
Expand All @@ -1007,6 +1035,10 @@
"secondaryAggregation": {
"$ref": "Aggregation",
"description": "Apply a second aggregation after the ratio is computed."
},
"statisticalTimeSeriesFilter": {
"$ref": "StatisticalTimeSeriesFilter",
"description": "Statistics based time series filter. Note: This field is deprecated and completely ignored by the API."
}
},
"type": "object"
Expand Down
6 changes: 5 additions & 1 deletion discovery/monitoring-v3.json
Expand Up @@ -1848,7 +1848,7 @@
}
}
},
"revision": "20200526",
"revision": "20200612",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
"Aggregation": {
Expand Down Expand Up @@ -3141,6 +3141,10 @@
"$ref": "TimeSeries"
},
"type": "array"
},
"unit": {
"description": "The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be \"{not_a_unit}\".",
"type": "string"
}
},
"type": "object"
Expand Down
21 changes: 21 additions & 0 deletions src/apis/monitoring/v1.ts
Expand Up @@ -456,6 +456,19 @@ export namespace monitoring_v1 {
*/
sparkChartType?: string | null;
}
/**
* A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API.
*/
export interface Schema$StatisticalTimeSeriesFilter {
/**
* How many time series to output.
*/
numTimeSeries?: number | null;
/**
* rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
*/
rankingMethod?: string | null;
}
/**
* A widget that displays textual content.
*/
Expand Down Expand Up @@ -510,6 +523,10 @@ export namespace monitoring_v1 {
* Apply a second aggregation after aggregation is applied.
*/
secondaryAggregation?: Schema$Aggregation;
/**
* Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
*/
statisticalTimeSeriesFilter?: Schema$StatisticalTimeSeriesFilter;
}
/**
* A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series.
Expand All @@ -531,6 +548,10 @@ export namespace monitoring_v1 {
* Apply a second aggregation after the ratio is computed.
*/
secondaryAggregation?: Schema$Aggregation;
/**
* Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
*/
statisticalTimeSeriesFilter?: Schema$StatisticalTimeSeriesFilter;
}
/**
* TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API.
Expand Down
7 changes: 6 additions & 1 deletion src/apis/monitoring/v3.ts
Expand Up @@ -985,6 +985,10 @@ export namespace monitoring_v3 {
* One or more time series that match the filter included in the request.
*/
timeSeries?: Schema$TimeSeries[];
/**
* The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be "{not_a_unit}".
*/
unit?: string | null;
}
/**
* The protocol for the ListUptimeCheckConfigs response.
Expand Down Expand Up @@ -6833,7 +6837,8 @@ export namespace monitoring_v3 {
* // {
* // "executionErrors": [],
* // "nextPageToken": "my_nextPageToken",
* // "timeSeries": []
* // "timeSeries": [],
* // "unit": "my_unit"
* // }
* }
*
Expand Down

0 comments on commit ef6f4b2

Please sign in to comment.