@@ -653,6 +653,54 @@ def __init__(
653653 )
654654
655655
656+ class CartesianBounds (Agg [_R ]):
657+ """
658+ A metric aggregation that computes the spatial bounding box containing
659+ all values for a Point or Shape field.
660+
661+ :arg field: The field on which to run the aggregation.
662+ :arg missing: The value to apply to documents that do not have a
663+ value. By default, documents without a value are ignored.
664+ :arg script:
665+ """
666+
667+ name = "cartesian_bounds"
668+
669+ def __init__ (
670+ self ,
671+ * ,
672+ field : Union [str , "InstrumentedField" , "DefaultType" ] = DEFAULT ,
673+ missing : Union [str , int , float , bool , "DefaultType" ] = DEFAULT ,
674+ script : Union ["types.Script" , Dict [str , Any ], "DefaultType" ] = DEFAULT ,
675+ ** kwargs : Any ,
676+ ):
677+ super ().__init__ (field = field , missing = missing , script = script , ** kwargs )
678+
679+
680+ class CartesianCentroid (Agg [_R ]):
681+ """
682+ A metric aggregation that computes the weighted centroid from all
683+ coordinate values for point and shape fields.
684+
685+ :arg field: The field on which to run the aggregation.
686+ :arg missing: The value to apply to documents that do not have a
687+ value. By default, documents without a value are ignored.
688+ :arg script:
689+ """
690+
691+ name = "cartesian_centroid"
692+
693+ def __init__ (
694+ self ,
695+ * ,
696+ field : Union [str , "InstrumentedField" , "DefaultType" ] = DEFAULT ,
697+ missing : Union [str , int , float , bool , "DefaultType" ] = DEFAULT ,
698+ script : Union ["types.Script" , Dict [str , Any ], "DefaultType" ] = DEFAULT ,
699+ ** kwargs : Any ,
700+ ):
701+ super ().__init__ (field = field , missing = missing , script = script , ** kwargs )
702+
703+
656704class CategorizeText (Bucket [_R ]):
657705 """
658706 A multi-bucket aggregation that groups semi-structured text into
@@ -735,6 +783,43 @@ def __init__(
735783 )
736784
737785
786+ class ChangePoint (Pipeline [_R ]):
787+ """
788+ A sibling pipeline that detects, spikes, dips, and change points in a
789+ metric. Given a distribution of values provided by the sibling multi-
790+ bucket aggregation, this aggregation indicates the bucket of any spike
791+ or dip and/or the bucket at which the largest change in the
792+ distribution of values, if they are statistically significant. There
793+ must be at least 22 bucketed values. Fewer than 1,000 is preferred.
794+
795+ :arg format: `DecimalFormat` pattern for the output value. If
796+ specified, the formatted value is returned in the aggregation’s
797+ `value_as_string` property.
798+ :arg gap_policy: Policy to apply when gaps are found in the data.
799+ Defaults to `skip` if omitted.
800+ :arg buckets_path: Path to the buckets that contain one set of values
801+ to correlate.
802+ """
803+
804+ name = "change_point"
805+
806+ def __init__ (
807+ self ,
808+ * ,
809+ format : Union [str , "DefaultType" ] = DEFAULT ,
810+ gap_policy : Union [
811+ Literal ["skip" , "insert_zeros" , "keep_values" ], "DefaultType"
812+ ] = DEFAULT ,
813+ buckets_path : Union [
814+ str , Sequence [str ], Mapping [str , str ], "DefaultType"
815+ ] = DEFAULT ,
816+ ** kwargs : Any ,
817+ ):
818+ super ().__init__ (
819+ format = format , gap_policy = gap_policy , buckets_path = buckets_path , ** kwargs
820+ )
821+
822+
738823class Children (Bucket [_R ]):
739824 """
740825 A single bucket aggregation that selects child documents that have the
0 commit comments